403Webshell
Server IP : 3.147.158.171  /  Your IP : 216.73.216.216
Web Server : Apache/2.4.67 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-2-178.us-east-2.compute.internal 6.1.172-216.329.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 20 06:31:34 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /tsai/cb-build/.git/objects/ee/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tsai/cb-build/.git/objects/ee/2cba690b843236257bee85b27a7e60205d5506
x��blob 1548318var zN=Object.create;var tp=Object.defineProperty,BN=Object.defineProperties,jN=Object.getOwnPropertyDescriptor,$N=Object.getOwnPropertyDescriptors,HN=Object.getOwnPropertyNames,ep=Object.getOwnPropertySymbols,UN=Object.getPrototypeOf,f_=Object.prototype.hasOwnProperty,ED=Object.prototype.propertyIsEnumerable;var DD=(t,i,e)=>i in t?tp(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,j=(t,i)=>{for(var e in i||={})f_.call(i,e)&&DD(t,e,i[e]);if(ep)for(var e of ep(i))ED.call(i,e)&&DD(t,e,i[e]);return t;},Ne=(t,i)=>BN(t,$N(i));var g_=(t,i)=>{var e={};for(var n in t)f_.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&ep)for(var n of ep(t))i.indexOf(n)<0&&ED.call(t,n)&&(e[n]=t[n]);return e;};var Le=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),np=(t,i)=>{for(var e in i)tp(t,e,{get:i[e],enumerable:!0});},qN=(t,i,e,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of HN(i))!f_.call(t,r)&&r!==e&&tp(t,r,{get:()=>i[r],enumerable:!(n=jN(i,r))||n.enumerable});return t;};var ID=(t,i,e)=>(e=t!=null?zN(UN(t)):{},qN(i||!t||!t.__esModule?tp(e,"default",{value:t,enumerable:!0}):e,t));var Fd=(t,i,e)=>new Promise((n,r)=>{var o=l=>{try{s(e.next(l));}catch(c){r(c);}},a=l=>{try{s(e.throw(l));}catch(c){r(c);}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,i)).next());});var Cl=Le((wye,oR)=>{"use strict";oR.exports=TypeError;});var aR=Le(()=>{"use strict";});var Am=Le((Eye,IR)=>{"use strict";var oC=typeof Map=="function"&&Map.prototype,Zw=Object.getOwnPropertyDescriptor&&oC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r0=oC&&Zw&&typeof Zw.get=="function"?Zw.get:null,sR=oC&&Map.prototype.forEach,aC=typeof Set=="function"&&Set.prototype,Kw=Object.getOwnPropertyDescriptor&&aC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o0=aC&&Kw&&typeof Kw.get=="function"?Kw.get:null,lR=aC&&Set.prototype.forEach,bq=typeof WeakMap=="function"&&WeakMap.prototype,Mm=bq?WeakMap.prototype.has:null,vq=typeof WeakSet=="function"&&WeakSet.prototype,Sm=vq?WeakSet.prototype.has:null,yq=typeof WeakRef=="function"&&WeakRef.prototype,cR=yq?WeakRef.prototype.deref:null,xq=Boolean.prototype.valueOf,wq=Object.prototype.toString,Cq=Function.prototype.toString,Dq=String.prototype.match,sC=String.prototype.slice,Ms=String.prototype.replace,Eq=String.prototype.toUpperCase,dR=String.prototype.toLowerCase,vR=RegExp.prototype.test,uR=Array.prototype.concat,ea=Array.prototype.join,Iq=Array.prototype.slice,mR=Math.floor,eC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xw=Object.getOwnPropertySymbols,tC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,pd=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Tm=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===pd||!0)?Symbol.toStringTag:null,yR=Object.prototype.propertyIsEnumerable,pR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__;}:null);function hR(t,i){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||vR.call(/e/,i))return i;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-mR(-t):mR(t);if(n!==t){var r=String(n),o=sC.call(i,r.length+1);return Ms.call(r,e,"$&_")+"."+Ms.call(Ms.call(o,/([0-9]{3})/g,"$&_"),/_$/,"");}}return Ms.call(i,e,"$&_");}var nC=aR(),fR=nC.custom,gR=CR(fR)?fR:null,xR={__proto__:null,double:'"',single:"'"},kq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};IR.exports=function t(i,e,n,r){var o=e||{};if(La(o,"quoteStyle")&&!La(xR,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(La(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=La(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(La(o,"indent")&&o.indent!==null&&o.indent!=="	"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(La(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof i>"u")return"undefined";if(i===null)return"null";if(typeof i=="boolean")return i?"true":"false";if(typeof i=="string")return ER(i,o);if(typeof i=="number"){if(i===0)return 1/0/i>0?"0":"-0";var l=String(i);return s?hR(i,l):l;}if(typeof i=="bigint"){var c=String(i)+"n";return s?hR(i,c):c;}var p=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof i=="object")return iC(i)?"[Array]":"[Object]";var g=qq(o,n);if(typeof r>"u")r=[];else if(DR(r,i)>=0)return"[Circular]";function _(ti,zi,Nn){if(zi&&(r=Iq.call(r),r.push(zi)),Nn){var he={depth:o.depth};return La(o,"quoteStyle")&&(he.quoteStyle=o.quoteStyle),t(ti,he,n+1,r);}return t(ti,o,n+1,r);}if(typeof i=="function"&&!_R(i)){var b=Nq(i),v=i0(i,_);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(v.length>0?" { "+ea.call(v,", ")+" }":"");}if(CR(i)){var I=pd?Ms.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):tC.call(i);return typeof i=="object"&&!pd?km(I):I;}if($q(i)){for(var A="<"+dR.call(String(i.nodeName)),$=i.attributes||[],Z=0;Z<$.length;Z++)A+=" "+$[Z].name+"="+wR(Mq($[Z].value),"double",o);return A+=">",i.childNodes&&i.childNodes.length&&(A+="..."),A+="</"+dR.call(String(i.nodeName))+">",A;}if(iC(i)){if(i.length===0)return"[]";var B=i0(i,_);return g&&!Uq(B)?"["+rC(B,g)+"]":"[ "+ea.call(B,", ")+" ]";}if(Tq(i)){var ae=i0(i,_);return!("cause"in Error.prototype)&&"cause"in i&&!yR.call(i,"cause")?"{ ["+String(i)+"] "+ea.call(uR.call("[cause]: "+_(i.cause),ae),", ")+" }":ae.length===0?"["+String(i)+"]":"{ ["+String(i)+"] "+ea.call(ae,", ")+" }";}if(typeof i=="object"&&a){if(gR&&typeof i[gR]=="function"&&nC)return nC(i,{depth:p-n});if(a!=="symbol"&&typeof i.inspect=="function")return i.inspect();}if(Lq(i)){var _e=[];return sR&&sR.call(i,function(ti,zi){_e.push(_(zi,i,!0)+" => "+_(ti,i));}),bR("Map",r0.call(i),_e,g);}if(Bq(i)){var Ce=[];return lR&&lR.call(i,function(ti){Ce.push(_(ti,i));}),bR("Set",o0.call(i),Ce,g);}if(Vq(i))return Jw("WeakMap");if(jq(i))return Jw("WeakSet");if(zq(i))return Jw("WeakRef");if(Rq(i))return km(_(Number(i)));if(Pq(i))return km(_(eC.call(i)));if(Oq(i))return km(xq.call(i));if(Aq(i))return km(_(String(i)));if(typeof window<"u"&&i===window)return"{ [object Window] }";if(typeof globalThis<"u"&&i===globalThis||typeof global<"u"&&i===global)return"{ [object globalThis] }";if(!Sq(i)&&!_R(i)){var et=i0(i,_),xt=pR?pR(i)===Object.prototype:i instanceof Object||i.constructor===Object,rn=i instanceof Object?"":"null prototype",xn=!xt&&Tm&&Object(i)===i&&Tm in i?sC.call(Ss(i),8,-1):rn?"Object":"",$r=xt||typeof i.constructor!="function"?"":i.constructor.name?i.constructor.name+" ":"",_i=$r+(xn||rn?"["+ea.call(uR.call([],xn||[],rn||[]),": ")+"] ":"");return et.length===0?_i+"{}":g?_i+"{"+rC(et,g)+"}":_i+"{ "+ea.call(et,", ")+" }";}return String(i);};function wR(t,i,e){var n=e.quoteStyle||i,r=xR[n];return r+t+r;}function Mq(t){return Ms.call(String(t),/"/g,"&quot;");}function Dl(t){return!Tm||!(typeof t=="object"&&(Tm in t||typeof t[Tm]<"u"));}function iC(t){return Ss(t)==="[object Array]"&&Dl(t);}function Sq(t){return Ss(t)==="[object Date]"&&Dl(t);}function _R(t){return Ss(t)==="[object RegExp]"&&Dl(t);}function Tq(t){return Ss(t)==="[object Error]"&&Dl(t);}function Aq(t){return Ss(t)==="[object String]"&&Dl(t);}function Rq(t){return Ss(t)==="[object Number]"&&Dl(t);}function Oq(t){return Ss(t)==="[object Boolean]"&&Dl(t);}function CR(t){if(pd)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!tC)return!1;try{return tC.call(t),!0;}catch{}return!1;}function Pq(t){if(!t||typeof t!="object"||!eC)return!1;try{return eC.call(t),!0;}catch{}return!1;}var Fq=Object.prototype.hasOwnProperty||function(t){return t in this;};function La(t,i){return Fq.call(t,i);}function Ss(t){return wq.call(t);}function Nq(t){if(t.name)return t.name;var i=Dq.call(Cq.call(t),/^function\s*([\w$]+)/);return i?i[1]:null;}function DR(t,i){if(t.indexOf)return t.indexOf(i);for(var e=0,n=t.length;e<n;e++)if(t[e]===i)return e;return-1;}function Lq(t){if(!r0||!t||typeof t!="object")return!1;try{r0.call(t);try{o0.call(t);}catch{return!0;}return t instanceof Map;}catch{}return!1;}function Vq(t){if(!Mm||!t||typeof t!="object")return!1;try{Mm.call(t,Mm);try{Sm.call(t,Sm);}catch{return!0;}return t instanceof WeakMap;}catch{}return!1;}function zq(t){if(!cR||!t||typeof t!="object")return!1;try{return cR.call(t),!0;}catch{}return!1;}function Bq(t){if(!o0||!t||typeof t!="object")return!1;try{o0.call(t);try{r0.call(t);}catch{return!0;}return t instanceof Set;}catch{}return!1;}function jq(t){if(!Sm||!t||typeof t!="object")return!1;try{Sm.call(t,Sm);try{Mm.call(t,Mm);}catch{return!0;}return t instanceof WeakSet;}catch{}return!1;}function $q(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function";}function ER(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength,n="... "+e+" more character"+(e>1?"s":"");return ER(sC.call(t,0,i.maxStringLength),i)+n;}var r=kq[i.quoteStyle||"single"];r.lastIndex=0;var o=Ms.call(Ms.call(t,r,"\\$1"),/[\x00-\x1f]/g,Hq);return wR(o,"single",i);}function Hq(t){var i=t.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];return e?"\\"+e:"\\x"+(i<16?"0":"")+Eq.call(i.toString(16));}function km(t){return"Object("+t+")";}function Jw(t){return t+" { ? }";}function bR(t,i,e,n){var r=n?rC(e,n):ea.call(e,", ");return t+" ("+i+") {"+r+"}";}function Uq(t){for(var i=0;i<t.length;i++)if(DR(t[i],`
`)>=0)return!1;return!0;}function qq(t,i){var e;if(t.indent==="	")e="	";else if(typeof t.indent=="number"&&t.indent>0)e=ea.call(Array(t.indent+1)," ");else return null;return{base:e,prev:ea.call(Array(i+1),e)};}function rC(t,i){if(t.length===0)return"";var e=`
`+i.prev+i.base;return e+ea.call(t,","+e)+`
`+i.prev;}function i0(t,i){var e=iC(t),n=[];if(e){n.length=t.length;for(var r=0;r<t.length;r++)n[r]=La(t,r)?i(t[r],t):"";}var o=typeof Xw=="function"?Xw(t):[],a;if(pd){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s];}for(var l in t)La(t,l)&&(e&&String(Number(l))===l&&l<t.length||pd&&a["$"+l]instanceof Symbol||(vR.call(/[^\w$]/,l)?n.push(i(l,t)+": "+i(t[l],t)):n.push(l+": "+i(t[l],t))));if(typeof Xw=="function")for(var c=0;c<o.length;c++)yR.call(t,o[c])&&n.push("["+i(o[c])+"]: "+i(t[o[c]],t));return n;}});var MR=Le((Iye,kR)=>{"use strict";var Wq=Am(),Gq=Cl(),a0=function(t,i,e){for(var n=t,r;(r=n.next)!=null;n=r)if(r.key===i)return n.next=r.next,e||(r.next=t.next,t.next=r),r;},Qq=function(t,i){if(t){var e=a0(t,i);return e&&e.value;}},Yq=function(t,i,e){var n=a0(t,i);n?n.value=e:t.next={key:i,next:t.next,value:e};},Zq=function(t,i){return t?!!a0(t,i):!1;},Kq=function(t,i){if(t)return a0(t,i,!0);};kR.exports=function(){var i,e={assert:function(n){if(!e.has(n))throw new Gq("Side channel does not contain "+Wq(n));},delete:function(n){var r=i&&i.next,o=Kq(i,n);return o&&r&&r===o&&(i=void 0),!!o;},get:function(n){return Qq(i,n);},has:function(n){return Zq(i,n);},set:function(n,r){i||(i={next:void 0}),Yq(i,n,r);}};return e;};});var lC=Le((kye,SR)=>{"use strict";SR.exports=Object;});var AR=Le((Mye,TR)=>{"use strict";TR.exports=Error;});var OR=Le((Sye,RR)=>{"use strict";RR.exports=EvalError;});var FR=Le((Tye,PR)=>{"use strict";PR.exports=RangeError;});var LR=Le((Aye,NR)=>{"use strict";NR.exports=ReferenceError;});var zR=Le((Rye,VR)=>{"use strict";VR.exports=SyntaxError;});var jR=Le((Oye,BR)=>{"use strict";BR.exports=URIError;});var HR=Le((Pye,$R)=>{"use strict";$R.exports=Math.abs;});var qR=Le((Fye,UR)=>{"use strict";UR.exports=Math.floor;});var GR=Le((Nye,WR)=>{"use strict";WR.exports=Math.max;});var YR=Le((Lye,QR)=>{"use strict";QR.exports=Math.min;});var KR=Le((Vye,ZR)=>{"use strict";ZR.exports=Math.pow;});var JR=Le((zye,XR)=>{"use strict";XR.exports=Math.round;});var tO=Le((Bye,eO)=>{"use strict";eO.exports=Number.isNaN||function(i){return i!==i;};});var iO=Le((jye,nO)=>{"use strict";var Xq=tO();nO.exports=function(i){return Xq(i)||i===0?i:i<0?-1:1;};});var oO=Le(($ye,rO)=>{"use strict";rO.exports=Object.getOwnPropertyDescriptor;});var cC=Le((Hye,aO)=>{"use strict";var s0=oO();if(s0)try{s0([],"length");}catch{s0=null;}aO.exports=s0;});var lO=Le((Uye,sO)=>{"use strict";var l0=Object.defineProperty||!1;if(l0)try{l0({},"a",{value:1});}catch{l0=!1;}sO.exports=l0;});var dO=Le((qye,cO)=>{"use strict";cO.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},e=Symbol("test"),n=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;i[e]=r;for(var o in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var a=Object.getOwnPropertySymbols(i);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(i,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(i,e);if(s.value!==r||s.enumerable!==!0)return!1;}return!0;};});var pO=Le((Wye,mO)=>{"use strict";var uO=typeof Symbol<"u"&&Symbol,Jq=dO();mO.exports=function(){return typeof uO!="function"||typeof Symbol!="function"||typeof uO("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jq();};});var dC=Le((Gye,hO)=>{"use strict";hO.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;});var uC=Le((Qye,fO)=>{"use strict";var eW=lC();fO.exports=eW.getPrototypeOf||null;});var bO=Le((Yye,_O)=>{"use strict";var tW="Function.prototype.bind called on incompatible ",nW=Object.prototype.toString,iW=Math.max,rW="[object Function]",gO=function(i,e){for(var n=[],r=0;r<i.length;r+=1)n[r]=i[r];for(var o=0;o<e.length;o+=1)n[o+i.length]=e[o];return n;},oW=function(i,e){for(var n=[],r=e||0,o=0;r<i.length;r+=1,o+=1)n[o]=i[r];return n;},aW=function(t,i){for(var e="",n=0;n<t.length;n+=1)e+=t[n],n+1<t.length&&(e+=i);return e;};_O.exports=function(i){var e=this;if(typeof e!="function"||nW.apply(e)!==rW)throw new TypeError(tW+e);for(var n=oW(arguments,1),r,o=function(){if(this instanceof r){var p=e.apply(this,gO(n,arguments));return Object(p)===p?p:this;}return e.apply(i,gO(n,arguments));},a=iW(0,e.length-n.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(r=Function("binder","return function ("+aW(s,",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var c=function(){};c.prototype=e.prototype,r.prototype=new c(),c.prototype=null;}return r;};});var Rm=Le((Zye,vO)=>{"use strict";var sW=bO();vO.exports=Function.prototype.bind||sW;});var c0=Le((Kye,yO)=>{"use strict";yO.exports=Function.prototype.call;});var mC=Le((Xye,xO)=>{"use strict";xO.exports=Function.prototype.apply;});var CO=Le((Jye,wO)=>{"use strict";wO.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;});var EO=Le((exe,DO)=>{"use strict";var lW=Rm(),cW=mC(),dW=c0(),uW=CO();DO.exports=uW||lW.call(dW,cW);});var pC=Le((txe,IO)=>{"use strict";var mW=Rm(),pW=Cl(),hW=c0(),fW=EO();IO.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new pW("a function is required");return fW(mW,hW,i);};});var RO=Le((nxe,AO)=>{"use strict";var gW=pC(),kO=cC(),SO;try{SO=[].__proto__===Array.prototype;}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t;}var hC=!!SO&&kO&&kO(Object.prototype,"__proto__"),TO=Object,MO=TO.getPrototypeOf;AO.exports=hC&&typeof hC.get=="function"?gW([hC.get]):typeof MO=="function"?function(i){return MO(i==null?i:TO(i));}:!1;});var LO=Le((ixe,NO)=>{"use strict";var OO=dC(),PO=uC(),FO=RO();NO.exports=OO?function(i){return OO(i);}:PO?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return PO(i);}:FO?function(i){return FO(i);}:null;});var zO=Le((rxe,VO)=>{"use strict";var _W=Function.prototype.call,bW=Object.prototype.hasOwnProperty,vW=Rm();VO.exports=vW.call(_W,bW);});var m0=Le((oxe,qO)=>{"use strict";var ft,yW=lC(),xW=AR(),wW=OR(),CW=FR(),DW=LR(),_d=zR(),gd=Cl(),EW=jR(),IW=HR(),kW=qR(),MW=GR(),SW=YR(),TW=KR(),AW=JR(),RW=iO(),HO=Function,fC=function(t){try{return HO('"use strict"; return ('+t+").constructor;")();}catch{}},Om=cC(),OW=lO(),gC=function(){throw new gd();},PW=Om?function(){try{return arguments.callee,gC;}catch{try{return Om(arguments,"callee").get;}catch{return gC;}}}():gC,hd=pO()(),Jn=LO(),FW=uC(),NW=dC(),UO=mC(),Pm=c0(),fd={},LW=typeof Uint8Array>"u"||!Jn?ft:Jn(Uint8Array),El={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ft:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ft:ArrayBuffer,"%ArrayIteratorPrototype%":hd&&Jn?Jn([][Symbol.iterator]()):ft,"%AsyncFromSyncIteratorPrototype%":ft,"%AsyncFunction%":fd,"%AsyncGenerator%":fd,"%AsyncGeneratorFunction%":fd,"%AsyncIteratorPrototype%":fd,"%Atomics%":typeof Atomics>"u"?ft:Atomics,"%BigInt%":typeof BigInt>"u"?ft:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ft:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ft:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ft:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":xW,"%eval%":eval,"%EvalError%":wW,"%Float32Array%":typeof Float32Array>"u"?ft:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ft:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ft:FinalizationRegistry,"%Function%":HO,"%GeneratorFunction%":fd,"%Int8Array%":typeof Int8Array>"u"?ft:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ft:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ft:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hd&&Jn?Jn(Jn([][Symbol.iterator]())):ft,"%JSON%":typeof JSON=="object"?JSON:ft,"%Map%":typeof Map>"u"?ft:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hd||!Jn?ft:Jn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":yW,"%Object.getOwnPropertyDescriptor%":Om,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ft:Promise,"%Proxy%":typeof Proxy>"u"?ft:Proxy,"%RangeError%":CW,"%ReferenceError%":DW,"%Reflect%":typeof Reflect>"u"?ft:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ft:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hd||!Jn?ft:Jn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ft:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hd&&Jn?Jn(""[Symbol.iterator]()):ft,"%Symbol%":hd?Symbol:ft,"%SyntaxError%":_d,"%ThrowTypeError%":PW,"%TypedArray%":LW,"%TypeError%":gd,"%Uint8Array%":typeof Uint8Array>"u"?ft:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ft:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ft:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ft:Uint32Array,"%URIError%":EW,"%WeakMap%":typeof WeakMap>"u"?ft:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ft:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ft:WeakSet,"%Function.prototype.call%":Pm,"%Function.prototype.apply%":UO,"%Object.defineProperty%":OW,"%Object.getPrototypeOf%":FW,"%Math.abs%":IW,"%Math.floor%":kW,"%Math.max%":MW,"%Math.min%":SW,"%Math.pow%":TW,"%Math.round%":AW,"%Math.sign%":RW,"%Reflect.getPrototypeOf%":NW};if(Jn)try{null.error;}catch(t){BO=Jn(Jn(t)),El["%Error.prototype%"]=BO;}var BO,VW=function t(i){var e;if(i==="%AsyncFunction%")e=fC("async function () {}");else if(i==="%GeneratorFunction%")e=fC("function* () {}");else if(i==="%AsyncGeneratorFunction%")e=fC("async function* () {}");else if(i==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(e=n.prototype);}else if(i==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&Jn&&(e=Jn(r.prototype));}return El[i]=e,e;},jO={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fm=Rm(),d0=zO(),zW=Fm.call(Pm,Array.prototype.concat),BW=Fm.call(UO,Array.prototype.splice),$O=Fm.call(Pm,String.prototype.replace),u0=Fm.call(Pm,String.prototype.slice),jW=Fm.call(Pm,RegExp.prototype.exec),$W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,HW=/\\(\\)?/g,UW=function(i){var e=u0(i,0,1),n=u0(i,-1);if(e==="%"&&n!=="%")throw new _d("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&e!=="%")throw new _d("invalid intrinsic syntax, expected opening `%`");var r=[];return $O(i,$W,function(o,a,s,l){r[r.length]=s?$O(l,HW,"$1"):a||o;}),r;},qW=function(i,e){var n=i,r;if(d0(jO,n)&&(r=jO[n],n="%"+r[0]+"%"),d0(El,n)){var o=El[n];if(o===fd&&(o=VW(n)),typeof o>"u"&&!e)throw new gd("intrinsic "+i+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o};}throw new _d("intrinsic "+i+" does not exist!");};qO.exports=function(i,e){if(typeof i!="string"||i.length===0)throw new gd("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new gd('"allowMissing" argument must be a boolean');if(jW(/^%?[^%]*%?$/,i)===null)throw new _d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=UW(i),r=n.length>0?n[0]:"",o=qW("%"+r+"%",e),a=o.name,s=o.value,l=!1,c=o.alias;c&&(r=c[0],BW(n,zW([0,1],c)));for(var p=1,g=!0;p<n.length;p+=1){var _=n[p],b=u0(_,0,1),v=u0(_,-1);if((b==='"'||b==="'"||b==="`"||v==='"'||v==="'"||v==="`")&&b!==v)throw new _d("property names with quotes must have matching quotes");if((_==="constructor"||!g)&&(l=!0),r+="."+_,a="%"+r+"%",d0(El,a))s=El[a];else if(s!=null){if(!(_ in s)){if(!e)throw new gd("base intrinsic for "+i+" exists, but the property is not available.");return;}if(Om&&p+1>=n.length){var I=Om(s,_);g=!!I,g&&"get"in I&&!("originalValue"in I.get)?s=I.get:s=s[_];}else g=d0(s,_),s=s[_];g&&!l&&(El[a]=s);}}return s;};});var _C=Le((axe,QO)=>{"use strict";var WO=m0(),GO=pC(),WW=GO([WO("%String.prototype.indexOf%")]);QO.exports=function(i,e){var n=WO(i,!!e);return typeof n=="function"&&WW(i,".prototype.")>-1?GO([n]):n;};});var bC=Le((sxe,ZO)=>{"use strict";var GW=m0(),Nm=_C(),QW=Am(),YW=Cl(),YO=GW("%Map%",!0),ZW=Nm("Map.prototype.get",!0),KW=Nm("Map.prototype.set",!0),XW=Nm("Map.prototype.has",!0),JW=Nm("Map.prototype.delete",!0),eG=Nm("Map.prototype.size",!0);ZO.exports=!!YO&&function(){var i,e={assert:function(n){if(!e.has(n))throw new YW("Side channel does not contain "+QW(n));},delete:function(n){if(i){var r=JW(i,n);return eG(i)===0&&(i=void 0),r;}return!1;},get:function(n){if(i)return ZW(i,n);},has:function(n){return i?XW(i,n):!1;},set:function(n,r){i||(i=new YO()),KW(i,n,r);}};return e;};});var XO=Le((lxe,KO)=>{"use strict";var tG=m0(),h0=_C(),nG=Am(),p0=bC(),iG=Cl(),bd=tG("%WeakMap%",!0),rG=h0("WeakMap.prototype.get",!0),oG=h0("WeakMap.prototype.set",!0),aG=h0("WeakMap.prototype.has",!0),sG=h0("WeakMap.prototype.delete",!0);KO.exports=bd?function(){var i,e,n={assert:function(r){if(!n.has(r))throw new iG("Side channel does not contain "+nG(r));},delete:function(r){if(bd&&r&&(typeof r=="object"||typeof r=="function")){if(i)return sG(i,r);}else if(p0&&e)return e.delete(r);return!1;},get:function(r){return bd&&r&&(typeof r=="object"||typeof r=="function")&&i?rG(i,r):e&&e.get(r);},has:function(r){return bd&&r&&(typeof r=="object"||typeof r=="function")&&i?aG(i,r):!!e&&e.has(r);},set:function(r,o){bd&&r&&(typeof r=="object"||typeof r=="function")?(i||(i=new bd()),oG(i,r,o)):p0&&(e||(e=p0()),e.set(r,o));}};return n;}:p0;});var eP=Le((cxe,JO)=>{"use strict";var lG=Cl(),cG=Am(),dG=MR(),uG=bC(),mG=XO(),pG=mG||uG||dG;JO.exports=function(){var i,e={assert:function(n){if(!e.has(n))throw new lG("Side channel does not contain "+cG(n));},delete:function(n){return!!i&&i.delete(n);},get:function(n){return i&&i.get(n);},has:function(n){return!!i&&i.has(n);},set:function(n,r){i||(i=pG()),i.set(n,r);}};return e;};});var f0=Le((dxe,tP)=>{"use strict";var hG=String.prototype.replace,fG=/%20/g,vC={RFC1738:"RFC1738",RFC3986:"RFC3986"};tP.exports={default:vC.RFC3986,formatters:{RFC1738:function(t){return hG.call(t,fG,"+");},RFC3986:function(t){return String(t);}},RFC1738:vC.RFC1738,RFC3986:vC.RFC3986};});var wC=Le((uxe,iP)=>{"use strict";var gG=f0(),yC=Object.prototype.hasOwnProperty,Il=Array.isArray,ta=function(){for(var t=[],i=0;i<256;++i)t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return t;}(),_G=function(i){for(;i.length>1;){var e=i.pop(),n=e.obj[e.prop];if(Il(n)){for(var r=[],o=0;o<n.length;++o)typeof n[o]<"u"&&r.push(n[o]);e.obj[e.prop]=r;}}},nP=function(i,e){for(var n=e&&e.plainObjects?{__proto__:null}:{},r=0;r<i.length;++r)typeof i[r]<"u"&&(n[r]=i[r]);return n;},bG=function t(i,e,n){if(!e)return i;if(typeof e!="object"&&typeof e!="function"){if(Il(i))i.push(e);else if(i&&typeof i=="object")(n&&(n.plainObjects||n.allowPrototypes)||!yC.call(Object.prototype,e))&&(i[e]=!0);else return[i,e];return i;}if(!i||typeof i!="object")return[i].concat(e);var r=i;return Il(i)&&!Il(e)&&(r=nP(i,n)),Il(i)&&Il(e)?(e.forEach(function(o,a){if(yC.call(i,a)){var s=i[a];s&&typeof s=="object"&&o&&typeof o=="object"?i[a]=t(s,o,n):i.push(o);}else i[a]=o;}),i):Object.keys(e).reduce(function(o,a){var s=e[a];return yC.call(o,a)?o[a]=t(o[a],s,n):o[a]=s,o;},r);},vG=function(i,e){return Object.keys(e).reduce(function(n,r){return n[r]=e[r],n;},i);},yG=function(t,i,e){var n=t.replace(/\+/g," ");if(e==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n);}catch{return n;}},xC=1024,xG=function(i,e,n,r,o){if(i.length===0)return i;var a=i;if(typeof i=="symbol"?a=Symbol.prototype.toString.call(i):typeof i!="string"&&(a=String(i)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B";});for(var s="",l=0;l<a.length;l+=xC){for(var c=a.length>=xC?a.slice(l,l+xC):a,p=[],g=0;g<c.length;++g){var _=c.charCodeAt(g);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||o===gG.RFC1738&&(_===40||_===41)){p[p.length]=c.charAt(g);continue;}if(_<128){p[p.length]=ta[_];continue;}if(_<2048){p[p.length]=ta[192|_>>6]+ta[128|_&63];continue;}if(_<55296||_>=57344){p[p.length]=ta[224|_>>12]+ta[128|_>>6&63]+ta[128|_&63];continue;}g+=1,_=65536+((_&1023)<<10|c.charCodeAt(g)&1023),p[p.length]=ta[240|_>>18]+ta[128|_>>12&63]+ta[128|_>>6&63]+ta[128|_&63];}s+=p.join("");}return s;},wG=function(i){for(var e=[{obj:{o:i},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],p=a[c];typeof p=="object"&&p!==null&&n.indexOf(p)===-1&&(e.push({obj:a,prop:c}),n.push(p));}return _G(e),i;},CG=function(i){return Object.prototype.toString.call(i)==="[object RegExp]";},DG=function(i){return!i||typeof i!="object"?!1:!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i));},EG=function(i,e){return[].concat(i,e);},IG=function(i,e){if(Il(i)){for(var n=[],r=0;r<i.length;r+=1)n.push(e(i[r]));return n;}return e(i);};iP.exports={arrayToObject:nP,assign:vG,combine:EG,compact:wG,decode:yG,encode:xG,isBuffer:DG,isRegExp:CG,maybeMap:IG,merge:bG};});var cP=Le((mxe,lP)=>{"use strict";var oP=eP(),g0=wC(),Lm=f0(),kG=Object.prototype.hasOwnProperty,aP={brackets:function(i){return i+"[]";},comma:"comma",indices:function(i,e){return i+"["+e+"]";},repeat:function(i){return i;}},na=Array.isArray,MG=Array.prototype.push,sP=function(t,i){MG.apply(t,na(i)?i:[i]);},SG=Date.prototype.toISOString,rP=Lm.default,Un={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:g0.encode,encodeValuesOnly:!1,filter:void 0,format:rP,formatter:Lm.formatters[rP],indices:!1,serializeDate:function(i){return SG.call(i);},skipNulls:!1,strictNullHandling:!1},TG=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint";},CC={},AG=function t(i,e,n,r,o,a,s,l,c,p,g,_,b,v,I,A,$,Z){for(var B=i,ae=Z,_e=0,Ce=!1;(ae=ae.get(CC))!==void 0&&!Ce;){var et=ae.get(i);if(_e+=1,typeof et<"u"){if(et===_e)throw new RangeError("Cyclic object value");Ce=!0;}typeof ae.get(CC)>"u"&&(_e=0);}if(typeof p=="function"?B=p(e,B):B instanceof Date?B=b(B):n==="comma"&&na(B)&&(B=g0.maybeMap(B,function(fn){return fn instanceof Date?b(fn):fn;})),B===null){if(a)return c&&!A?c(e,Un.encoder,$,"key",v):e;B="";}if(TG(B)||g0.isBuffer(B)){if(c){var xt=A?e:c(e,Un.encoder,$,"key",v);return[I(xt)+"="+I(c(B,Un.encoder,$,"value",v))];}return[I(e)+"="+I(String(B))];}var rn=[];if(typeof B>"u")return rn;var xn;if(n==="comma"&&na(B))A&&c&&(B=g0.maybeMap(B,c)),xn=[{value:B.length>0?B.join(",")||null:void 0}];else if(na(p))xn=p;else{var $r=Object.keys(B);xn=g?$r.sort(g):$r;}var _i=l?String(e).replace(/\./g,"%2E"):String(e),ti=r&&na(B)&&B.length===1?_i+"[]":_i;if(o&&na(B)&&B.length===0)return ti+"[]";for(var zi=0;zi<xn.length;++zi){var Nn=xn[zi],he=typeof Nn=="object"&&Nn&&typeof Nn.value<"u"?Nn.value:B[Nn];if(!(s&&he===null)){var we=_&&l?String(Nn).replace(/\./g,"%2E"):String(Nn),Se=na(B)?typeof n=="function"?n(ti,we):ti:ti+(_?"."+we:"["+we+"]");Z.set(i,_e);var ut=oP();ut.set(CC,Z),sP(rn,t(he,Se,n,r,o,a,s,l,n==="comma"&&A&&na(B)?null:c,p,g,_,b,v,I,A,$,ut));}}return rn;},RG=function(i){if(!i)return Un;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var e=i.charset||Un.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Lm.default;if(typeof i.format<"u"){if(!kG.call(Lm.formatters,i.format))throw new TypeError("Unknown format option provided.");n=i.format;}var r=Lm.formatters[n],o=Un.filter;(typeof i.filter=="function"||na(i.filter))&&(o=i.filter);var a;if(i.arrayFormat in aP?a=i.arrayFormat:"indices"in i?a=i.indices?"indices":"repeat":a=Un.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:Un.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:Un.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:Un.allowEmptyArrays,arrayFormat:a,charset:e,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:Un.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?Un.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:Un.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:Un.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:Un.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:Un.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:Un.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:Un.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:Un.strictNullHandling};};lP.exports=function(t,i){var e=t,n=RG(i),r,o;typeof n.filter=="function"?(o=n.filter,e=o("",e)):na(n.filter)&&(o=n.filter,r=o);var a=[];if(typeof e!="object"||e===null)return"";var s=aP[n.arrayFormat],l=s==="comma"&&n.commaRoundTrip;r||(r=Object.keys(e)),n.sort&&r.sort(n.sort);for(var c=oP(),p=0;p<r.length;++p){var g=r[p],_=e[g];n.skipNulls&&_===null||sP(a,AG(_,g,s,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c));}var b=a.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:"";};});var pP=Le((pxe,mP)=>{"use strict";var kl=wC(),DC=Object.prototype.hasOwnProperty,dP=Array.isArray,vn={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:kl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},OG=function(t){return t.replace(/&#(\d+);/g,function(i,e){return String.fromCharCode(parseInt(e,10));});},uP=function(t,i,e){if(t&&typeof t=="string"&&i.comma&&t.indexOf(",")>-1)return t.split(",");if(i.throwOnLimitExceeded&&e>=i.arrayLimit)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");return t;},PG="utf8=%26%2310003%3B",FG="utf8=%E2%9C%93",NG=function(i,e){var n={__proto__:null},r=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=e.parameterLimit===1/0?void 0:e.parameterLimit,a=r.split(e.delimiter,e.throwOnLimitExceeded?o+1:o);if(e.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,l,c=e.charset;if(e.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===FG?c="utf-8":a[l]===PG&&(c="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var p=a[l],g=p.indexOf("]="),_=g===-1?p.indexOf("="):g+1,b,v;_===-1?(b=e.decoder(p,vn.decoder,c,"key"),v=e.strictNullHandling?null:""):(b=e.decoder(p.slice(0,_),vn.decoder,c,"key"),v=kl.maybeMap(uP(p.slice(_+1),e,dP(n[b])?n[b].length:0),function(A){return e.decoder(A,vn.decoder,c,"value");})),v&&e.interpretNumericEntities&&c==="iso-8859-1"&&(v=OG(String(v))),p.indexOf("[]=")>-1&&(v=dP(v)?[v]:v);var I=DC.call(n,b);I&&e.duplicates==="combine"?n[b]=kl.combine(n[b],v):(!I||e.duplicates==="last")&&(n[b]=v);}return n;},LG=function(t,i,e,n){var r=0;if(t.length>0&&t[t.length-1]==="[]"){var o=t.slice(0,-1).join("");r=Array.isArray(i)&&i[o]?i[o].length:0;}for(var a=n?i:uP(i,e,r),s=t.length-1;s>=0;--s){var l,c=t[s];if(c==="[]"&&e.parseArrays)l=e.allowEmptyArrays&&(a===""||e.strictNullHandling&&a===null)?[]:kl.combine([],a);else{l=e.plainObjects?{__proto__:null}:{};var p=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,g=e.decodeDotInKeys?p.replace(/%2E/g,"."):p,_=parseInt(g,10);!e.parseArrays&&g===""?l={0:a}:!isNaN(_)&&c!==g&&String(_)===g&&_>=0&&e.parseArrays&&_<=e.arrayLimit?(l=[],l[_]=a):g!=="__proto__"&&(l[g]=a);}a=l;}return a;},VG=function(i,e,n,r){if(i){var o=n.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,p=[];if(c){if(!n.plainObjects&&DC.call(Object.prototype,c)&&!n.allowPrototypes)return;p.push(c);}for(var g=0;n.depth>0&&(l=s.exec(o))!==null&&g<n.depth;){if(g+=1,!n.plainObjects&&DC.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(l[1]);}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");p.push("["+o.slice(l.index)+"]");}return LG(p,e,n,r);}},zG=function(i){if(!i)return vn;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.decodeDotInKeys<"u"&&typeof i.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(i.decoder!==null&&typeof i.decoder<"u"&&typeof i.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof i.throwOnLimitExceeded<"u"&&typeof i.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=typeof i.charset>"u"?vn.charset:i.charset,n=typeof i.duplicates>"u"?vn.duplicates:i.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof i.allowDots>"u"?i.decodeDotInKeys===!0?!0:vn.allowDots:!!i.allowDots;return{allowDots:r,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:vn.allowEmptyArrays,allowPrototypes:typeof i.allowPrototypes=="boolean"?i.allowPrototypes:vn.allowPrototypes,allowSparse:typeof i.allowSparse=="boolean"?i.allowSparse:vn.allowSparse,arrayLimit:typeof i.arrayLimit=="number"?i.arrayLimit:vn.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:vn.charsetSentinel,comma:typeof i.comma=="boolean"?i.comma:vn.comma,decodeDotInKeys:typeof i.decodeDotInKeys=="boolean"?i.decodeDotInKeys:vn.decodeDotInKeys,decoder:typeof i.decoder=="function"?i.decoder:vn.decoder,delimiter:typeof i.delimiter=="string"||kl.isRegExp(i.delimiter)?i.delimiter:vn.delimiter,depth:typeof i.depth=="number"||i.depth===!1?+i.depth:vn.depth,duplicates:n,ignoreQueryPrefix:i.ignoreQueryPrefix===!0,interpretNumericEntities:typeof i.interpretNumericEntities=="boolean"?i.interpretNumericEntities:vn.interpretNumericEntities,parameterLimit:typeof i.parameterLimit=="number"?i.parameterLimit:vn.parameterLimit,parseArrays:i.parseArrays!==!1,plainObjects:typeof i.plainObjects=="boolean"?i.plainObjects:vn.plainObjects,strictDepth:typeof i.strictDepth=="boolean"?!!i.strictDepth:vn.strictDepth,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:vn.strictNullHandling,throwOnLimitExceeded:typeof i.throwOnLimitExceeded=="boolean"?i.throwOnLimitExceeded:!1};};mP.exports=function(t,i){var e=zG(i);if(t===""||t===null||typeof t>"u")return e.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?NG(t,e):t,r=e.plainObjects?{__proto__:null}:{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],l=VG(s,n[s],e,typeof t=="string");r=kl.merge(r,l,e);}return e.allowSparse===!0?r:kl.compact(r);};});var fP=Le((hxe,hP)=>{"use strict";var BG=cP(),jG=pP(),$G=f0();hP.exports={formats:$G,parse:jG,stringify:BG};});var IC=Le(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.DrupalJsonApiParams=void 0;var gP=fP(),EC=class{constructor(i,e){this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this.qsOptions={},this.config={useShortCutForQueryGeneration:!0,alwaysUseFieldNameForKeys:!1},e!==void 0&&(this.config=e),this.initialize(i);}addCustomParam(i){return this.data=Object.assign(Object.assign({},this.data),i),this;}addFields(i,e){return this.data.fields[i]=e.join(","),this;}addSort(i,e){let n="";return e!==void 0&&e==="DESC"&&(n="-"),this.data.sort=this.data.sort.concat(n+i),this;}addPageLimit(i){return this.data.page===void 0?this.data.page={limit:i}:this.data.page.limit=i,this;}addPageOffset(i){return this.data.page===void 0?this.data.page={offset:i}:this.data.page.offset=i,this;}addInclude(i){return this.data.include=this.data.include.concat(i),this;}addGroup(i,e="OR",n){return this.data.filter[i]={group:Object.assign({conjunction:e},n!==void 0&&{memberOf:n})},this;}addFilter(i,e,n="=",r,o){let a=this.getIndexId(this.data.filter,o||i,!!o);if((n==="IS NULL"||n==="IS NOT NULL")&&(e=null),e===null){if(!(n==="IS NULL"||n==="IS NOT NULL"))throw new TypeError(`Value cannot be null for the operator "${n}"`);return this.data.filter[a]={condition:Object.assign(Object.assign({path:i},{operator:n}),r!==void 0&&{memberOf:r})},this;}if(Array.isArray(e)){switch(n){case"BETWEEN":case"NOT BETWEEN":if(e.length!==2)throw new TypeError(`Value must consists of 2 items for the "${n}"`);break;case"IN":case"NOT IN":break;default:throw new TypeError(`Value cannot be an array for the operator "${n}"`);}return this.data.filter[a]={condition:Object.assign(Object.assign({path:i,value:e},{operator:n}),r!==void 0&&{memberOf:r})},this;}return this.config.useShortCutForQueryGeneration&&r===void 0&&i===a&&this.data.filter[i]===void 0?(n==="="?this.data.filter[a]=e:this.data.filter[a]={value:e,operator:n},this):(this.data.filter[a]={condition:Object.assign(Object.assign({path:i,value:e},this.config.useShortCutForQueryGeneration?n!=="="&&{operator:n}:{operator:n}),r!==void 0&&{memberOf:r})},this);}getIndexId(i,e,n){n=n||this.config.alwaysUseFieldNameForKeys;let r;return i[e]===void 0?r=e:r=this.generateKeyName(i,e,n),r;}generateKeyName(i,e,n=!1){let r=Object.keys(i).length;if(n)for(let o=1;o<=r;o++){let a=`${e}--${o}`;if(i[a]===void 0)return a;}return r.toString();}getQueryObject(){let i=JSON.parse(JSON.stringify(this.data));return this.data.include.length&&(i.include=this.data.include.join(",")),this.data.sort.length&&(i.sort=this.data.sort.join(",")),i;}getQueryString(i){let e=this.getQueryObject(),n=i||this.getQsOption();return gP.stringify(e,n);}clear(){return this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this;}initializeWithQueryObject(i){return this.clear(),Object.keys(i).forEach(n=>{switch(n){case"sort":i.sort.length&&(this.data.sort=i.sort.split(","));break;case"include":i.include.length&&(this.data.include=i.include.split(","));break;default:this.data[n]=i[n];}}),this;}initializeWithQueryString(i,e){this.clear();let n=e||this.getQsOption();return this.initializeWithQueryObject(gP.parse(i,n)),this;}clone(i){let e=JSON.parse(JSON.stringify(i.getQueryObject()));return this.initializeWithQueryObject(e),this;}setQsOption(i){return this.qsOptions=i,this;}getQsOption(){return this.qsOptions;}initialize(i){if(i===void 0)this.initializeWithQueryString("");else if(typeof i=="object")try{i.getQueryObject(),this.clone(i);}catch{this.initializeWithQueryObject(i);}else this.initializeWithQueryString(i);return this;}};_0.DrupalJsonApiParams=EC;});function MD(t,i){return Object.is(t,i);}var Ln=null,Nd=!1,y_=1,vi=Symbol("SIGNAL");function lt(t){let i=Ln;return Ln=t,i;}function SD(){return Ln;}function WN(){return Nd;}var Ls={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function rp(t){if(Nd)throw new Error("");if(Ln===null)return;Ln.consumerOnSignalRead(t);let i=Ln.nextProducerIndex++;if(ap(Ln),i<Ln.producerNode.length&&Ln.producerNode[i]!==t&&Ld(Ln)){let e=Ln.producerNode[i];op(e,Ln.producerIndexOfThis[i]);}Ln.producerNode[i]!==t&&(Ln.producerNode[i]=t,Ln.producerIndexOfThis[i]=Ld(Ln)?PD(t,Ln,i):0),Ln.producerLastReadVersion[i]=t.version;}function GN(){y_++;}function TD(t){if(!(Ld(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===y_)){if(!t.producerMustRecompute(t)&&!zd(t)){kD(t);return;}t.producerRecomputeValue(t),kD(t);}}function AD(t){if(t.liveConsumerNode===void 0)return;let i=Nd;Nd=!0;try{for(let e of t.liveConsumerNode)e.dirty||OD(e);}finally{Nd=i;}}function RD(){return Ln?.consumerAllowSignalWrites!==!1;}function OD(t){t.dirty=!0,AD(t),t.consumerMarkedDirty?.(t);}function kD(t){t.dirty=!1,t.lastCleanEpoch=y_;}function Bl(t){return t&&(t.nextProducerIndex=0),lt(t);}function Vd(t,i){if(lt(i),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ld(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)op(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop();}}function zd(t){ap(t);for(let i=0;i<t.producerNode.length;i++){let e=t.producerNode[i],n=t.producerLastReadVersion[i];if(n!==e.version||(TD(e),n!==e.version))return!0;}return!1;}function jl(t){if(ap(t),Ld(t))for(let i=0;i<t.producerNode.length;i++)op(t.producerNode[i],t.producerIndexOfThis[i]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0);}function PD(t,i,e){if(FD(t),t.liveConsumerNode.length===0&&ND(t))for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=PD(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(i)-1;}function op(t,i){if(FD(t),t.liveConsumerNode.length===1&&ND(t))for(let n=0;n<t.producerNode.length;n++)op(t.producerNode[n],t.producerIndexOfThis[n]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[i]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[i]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,i<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[i],r=t.liveConsumerNode[i];ap(r),r.producerIndexOfThis[n]=i;}}function Ld(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0;}function ap(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[];}function FD(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[];}function ND(t){return t.producerNode!==void 0;}function x_(t){let i=Object.create(QN);i.computation=t;let e=()=>{if(TD(i),rp(i),i.value===ip)throw i.error;return i.value;};return e[vi]=i,e;}var __=Symbol("UNSET"),b_=Symbol("COMPUTING"),ip=Symbol("ERRORED"),QN=Ne(j({},Ls),{value:__,dirty:!0,error:null,equal:MD,kind:"computed",producerMustRecompute(t){return t.value===__||t.value===b_;},producerRecomputeValue(t){if(t.value===b_)throw new Error("Detected cycle in computations.");let i=t.value;t.value=b_;let e=Bl(t),n,r=!1;try{n=t.computation(),lt(null),r=i!==__&&i!==ip&&n!==ip&&t.equal(i,n);}catch(o){n=ip,t.error=o;}finally{Vd(t,e);}if(r){t.value=i;return;}t.value=n,t.version++;}});function YN(){throw new Error();}var LD=YN;function VD(){LD();}function zD(t){LD=t;}var ZN=null;function BD(t){let i=Object.create(w_);i.value=t;let e=()=>(rp(i),i.value);return e[vi]=i,e;}function sp(t,i){RD()||VD(),t.equal(t.value,i)||(t.value=i,KN(t));}function jD(t,i){RD()||VD(),sp(t,i(t.value));}var w_=Ne(j({},Ls),{equal:MD,value:void 0,kind:"signal"});function KN(t){t.version++,GN(),AD(t),ZN?.();}function $D(t,i,e){let n=Object.create(XN);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;let r=l=>{n.cleanupFn=l;};function o(l){return l.fn===null&&l.schedule===null;}function a(l){o(l)||(jl(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=v_);}let s=()=>{if(n.fn===null)return;if(WN())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!zd(n))return;n.hasRun=!0;let l=Bl(n);try{n.cleanupFn(),n.cleanupFn=v_,n.fn(r);}finally{Vd(n,l);}};return n.ref={notify:()=>OD(n),run:s,cleanup:()=>n.cleanupFn(),destroy:()=>a(n),[vi]:n},n.ref;}var v_=()=>{},XN=Ne(j({},Ls),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref);},hasRun:!1,cleanupFn:v_});function Ge(t){return typeof t=="function";}function $l(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack;});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e;}var lp=$l(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=e;});function Vs(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1);}}var Ie=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null;}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(Ge(n))try{n();}catch(o){i=o instanceof lp?o.errors:[o];}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{HD(o);}catch(a){i=i??[],a instanceof lp?i=[...i,...a.errors]:i.push(a);}}if(i)throw new lp(i);}}add(i){var e;if(i&&i!==this)if(this.closed)HD(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this);}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i);}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i);}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i;}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Vs(e,i);}remove(i){let{_finalizers:e}=this;e&&Vs(e,i),i instanceof t&&i._removeParent(this);}};Ie.EMPTY=(()=>{let t=new Ie();return t.closed=!0,t;})();var C_=Ie.EMPTY;function cp(t){return t instanceof Ie||t&&"closed"in t&&Ge(t.remove)&&Ge(t.add)&&Ge(t.unsubscribe);}function HD(t){Ge(t)?t():t.unsubscribe();}var Hr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Hl={setTimeout(t,i,...e){let{delegate:n}=Hl;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e);},clearTimeout(t){let{delegate:i}=Hl;return(i?.clearTimeout||clearTimeout)(t);},delegate:void 0};function dp(t){Hl.setTimeout(()=>{let{onUnhandledError:i}=Hr;if(i)i(t);else throw t;});}function Bd(){}var UD=D_("C",void 0,void 0);function qD(t){return D_("E",void 0,t);}function WD(t){return D_("N",t,void 0);}function D_(t,i,e){return{kind:t,value:i,error:e};}var zs=null;function Ul(t){if(Hr.useDeprecatedSynchronousErrorHandling){let i=!zs;if(i&&(zs={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=zs;if(zs=null,e)throw n;}}else t();}function GD(t){Hr.useDeprecatedSynchronousErrorHandling&&zs&&(zs.errorThrown=!0,zs.error=t);}var Bs=class extends Ie{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,cp(i)&&i.add(this)):this.destination=tL;}static create(i,e,n){return new ca(i,e,n);}next(i){this.isStopped?I_(WD(i),this):this._next(i);}error(i){this.isStopped?I_(qD(i),this):(this.isStopped=!0,this._error(i));}complete(){this.isStopped?I_(UD,this):(this.isStopped=!0,this._complete());}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null);}_next(i){this.destination.next(i);}_error(i){try{this.destination.error(i);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}},JN=Function.prototype.bind;function E_(t,i){return JN.call(t,i);}var k_=class{constructor(i){this.partialObserver=i;}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i);}catch(n){up(n);}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i);}catch(n){up(n);}else up(i);}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete();}catch(e){up(e);}}},ca=class extends Bs{constructor(i,e,n){super();let r;if(Ge(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&Hr.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&E_(i.next,o),error:i.error&&E_(i.error,o),complete:i.complete&&E_(i.complete,o)}):r=i;}this.destination=new k_(r);}};function up(t){Hr.useDeprecatedSynchronousErrorHandling?GD(t):dp(t);}function eL(t){throw t;}function I_(t,i){let{onStoppedNotification:e}=Hr;e&&Hl.setTimeout(()=>e(t,i));}var tL={closed:!0,next:Bd,error:eL,complete:Bd};var ql=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ai(t){return t;}function M_(...t){return S_(t);}function S_(t){return t.length===0?Ai:t.length===1?t[0]:function(e){return t.reduce((n,r)=>r(n),e);};}var $e=(()=>{class t{constructor(e){e&&(this._subscribe=e);}lift(e){let n=new t();return n.source=this,n.operator=e,n;}subscribe(e,n,r){let o=iL(e)?e:new ca(e,n,r);return Ul(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o));}),o;}_trySubscribe(e){try{return this._subscribe(e);}catch(n){e.error(n);}}forEach(e,n){return n=QD(n),new n((r,o)=>{let a=new ca({next:s=>{try{e(s);}catch(l){o(l),a.unsubscribe();}},error:o,complete:r});this.subscribe(a);});}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e);}[ql](){return this;}pipe(...e){return S_(e)(this);}toPromise(e){return e=QD(e),new e((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o));});}}return t.create=i=>new t(i),t;})();function QD(t){var i;return(i=t??Hr.Promise)!==null&&i!==void 0?i:Promise;}function nL(t){return t&&Ge(t.next)&&Ge(t.error)&&Ge(t.complete);}function iL(t){return t&&t instanceof Bs||nL(t)&&cp(t);}function T_(t){return Ge(t?.lift);}function Te(t){return i=>{if(T_(i))return i.lift(function(e){try{return t(e,this);}catch(n){this.error(n);}});throw new TypeError("Unable to lift unknown Observable type");};}function Ve(t,i,e,n,r){return new A_(t,i,e,n,r);}var A_=class extends Bs{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s);}catch(l){i.error(l);}}:super._next,this._error=r?function(s){try{r(s);}catch(l){i.error(l);}finally{this.unsubscribe();}}:super._error,this._complete=n?function(){try{n();}catch(s){i.error(s);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this));}}};function Wl(){return Te((t,i)=>{let e=null;t._refCount++;let n=Ve(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return;}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe();});t.subscribe(n),n.closed||(e=t.connect());});}var qa=class extends $e{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,T_(i)&&(this.lift=i.lift);}_subscribe(i){return this.getSubject().subscribe(i);}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject;}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe();}connect(){let i=this._connection;if(!i){i=this._connection=new Ie();let e=this.getSubject();i.add(this.source.subscribe(Ve(e,void 0,()=>{this._teardown(),e.complete();},n=>{this._teardown(),e.error(n);},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ie.EMPTY);}return i;}refCount(){return Wl()(this);}};var YD=$l(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var U=(()=>{class t extends $e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null;}lift(e){let n=new mp(this,this);return n.operator=e,n;}_throwIfClosed(){if(this.closed)throw new YD();}next(e){Ul(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e);}});}error(e){Ul(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e);}});}complete(){Ul(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null;}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0;}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e);}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e);}_innerSubscribe(e){let{hasError:n,isStopped:r,observers:o}=this;return n||r?C_:(this.currentObservers=null,o.push(e),new Ie(()=>{this.currentObservers=null,Vs(o,e);}));}_checkFinalizedStatuses(e){let{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete();}asObservable(){let e=new $e();return e.source=this,e;}}return t.create=(i,e)=>new mp(i,e),t;})(),mp=class extends U{constructor(i,e){super(),this.destination=i,this.source=e;}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i);}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i);}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i);}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:C_;}};var Ut=class extends U{constructor(i){super(),this._value=i;}get value(){return this.getValue();}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e;}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n;}next(i){super.next(this._value=i);}};var jd={now(){return(jd.delegate||Date).now();},delegate:void 0};var da=class extends U{constructor(i=1/0,e=1/0,n=jd){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e);}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i);}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a<o.length&&!i.closed;a+=n?1:2)i.next(o[a]);return this._checkFinalizedStatuses(i),e;}_trimBuffer(){let{_bufferSize:i,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*i;if(i<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let a=e.now(),s=0;for(let l=1;l<n.length&&n[l]<=a;l+=2)s=l;s&&n.splice(0,s+1);}}};var pp=class extends Ie{constructor(i,e){super();}schedule(i,e=0){return this;}};var $d={setInterval(t,i,...e){let{delegate:n}=$d;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e);},clearInterval(t){let{delegate:i}=$d;return(i?.clearInterval||clearInterval)(t);},delegate:void 0};var hp=class extends pp{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1;}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,e),this;}requestAsyncId(i,e,n=0){return $d.setInterval(i.flush.bind(i,this),n);}recycleAsyncId(i,e,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return e;e!=null&&$d.clearInterval(e);}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(i,e);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(i,e){let n=!1,r;try{this.work(i);}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error");}if(n)return this.unsubscribe(),r;}unsubscribe(){if(!this.closed){let{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Vs(n,this),i!=null&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe();}}};var Gl=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e;}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e);}};Gl.now=jd.now;var fp=class extends Gl{constructor(i,e=Gl.now){super(i,e),this.actions=[],this._active=!1;}flush(i){let{actions:e}=this;if(this._active){e.push(i);return;}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n;}}};var Hd=new fp(hp),ZD=Hd;var gn=new $e(t=>t.complete());function gp(t){return t&&Ge(t.schedule);}function R_(t){return t[t.length-1];}function _p(t){return Ge(R_(t))?t.pop():void 0;}function fo(t){return gp(R_(t))?t.pop():void 0;}function KD(t,i){return typeof R_(t)=="number"?t.pop():i;}function JD(t,i,e,n){function r(o){return o instanceof e?o:new e(function(a){a(o);});}return new(e||(e=Promise))(function(o,a){function s(p){try{c(n.next(p));}catch(g){a(g);}}function l(p){try{c(n.throw(p));}catch(g){a(g);}}function c(p){p.done?o(p.value):r(p.value).then(s,l);}c((n=n.apply(t,i||[])).next());});}function XD(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t};}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.");}function js(t){return this instanceof js?(this.v=t,this):new js(t);}function eE(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this;},r;function a(b){return function(v){return Promise.resolve(v).then(b,g);};}function s(b,v){n[b]&&(r[b]=function(I){return new Promise(function(A,$){o.push([b,I,A,$])>1||l(b,I);});},v&&(r[b]=v(r[b])));}function l(b,v){try{c(n[b](v));}catch(I){_(o[0][3],I);}}function c(b){b.value instanceof js?Promise.resolve(b.value.v).then(p,g):_(o[0][2],b);}function p(b){l("next",b);}function g(b){l("throw",b);}function _(b,v){b(v),o.shift(),o.length&&l(o[0][0],o[0][1]);}}function tE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof XD=="function"?XD(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this;},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value);});};}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s});},a);}}var bp=t=>t&&typeof t.length=="number"&&typeof t!="function";function vp(t){return Ge(t?.then);}function yp(t){return Ge(t[ql]);}function xp(t){return Symbol.asyncIterator&&Ge(t?.[Symbol.asyncIterator]);}function wp(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);}function rL(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator;}var Cp=rL();function Dp(t){return Ge(t?.[Cp]);}function Ep(t){return eE(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:r}=yield js(e.read());if(r)return yield js��(void 0);yield yield js(n);}}finally{e.releaseLock();}});}function Ip(t){return Ge(t?.getReader);}function Lt(t){if(t instanceof $e)return t;if(t!=null){if(yp(t))return oL(t);if(bp(t))return aL(t);if(vp(t))return sL(t);if(xp(t))return nE(t);if(Dp(t))return lL(t);if(Ip(t))return cL(t);}throw wp(t);}function oL(t){return new $e(i=>{let e=t[ql]();if(Ge(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable");});}function aL(t){return new $e(i=>{for(let e=0;e<t.length&&!i.closed;e++)i.next(t[e]);i.complete();});}function sL(t){return new $e(i=>{t.then(e=>{i.closed||(i.next(e),i.complete());},e=>i.error(e)).then(null,dp);});}function lL(t){return new $e(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete();});}function nE(t){return new $e(i=>{dL(t,i).catch(e=>i.error(e));});}function cL(t){return nE(Ep(t));}function dL(t,i){var e,n,r,o;return JD(this,void 0,void 0,function*(){try{for(e=tE(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return;}}catch(a){r={error:a};}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e));}finally{if(r)throw r.error;}}i.complete();});}function Bi(t,i,e,n=0,r=!1){let o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe();},n);if(t.add(o),!r)return o;}function kp(t,i=0){return Te((e,n)=>{e.subscribe(Ve(n,r=>Bi(n,t,()=>n.next(r),i),()=>Bi(n,t,()=>n.complete(),i),r=>Bi(n,t,()=>n.error(r),i)));});}function Mp(t,i=0){return Te((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i));});}function iE(t,i){return Lt(t).pipe(Mp(i),kp(i));}function rE(t,i){return Lt(t).pipe(Mp(i),kp(i));}function oE(t,i){return new $e(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule());});});}function aE(t,i){return new $e(e=>{let n;return Bi(e,i,()=>{n=t[Cp](),Bi(e,i,()=>{let r,o;try{({value:r,done:o}=n.next());}catch(a){e.error(a);return;}o?e.complete():e.next(r);},0,!0);}),()=>Ge(n?.return)&&n.return();});}function Sp(t,i){if(!t)throw new Error("Iterable cannot be null");return new $e(e=>{Bi(e,i,()=>{let n=t[Symbol.asyncIterator]();Bi(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value);});},0,!0);});});}function sE(t,i){return Sp(Ep(t),i);}function lE(t,i){if(t!=null){if(yp(t))return iE(t,i);if(bp(t))return oE(t,i);if(vp(t))return rE(t,i);if(xp(t))return Sp(t,i);if(Dp(t))return aE(t,i);if(Ip(t))return sE(t,i);}throw wp(t);}function Rt(t,i){return i?lE(t,i):Lt(t);}function se(...t){let i=fo(t);return Rt(t,i);}function Wa(t,i){let e=Ge(t)?t:()=>t,n=r=>r.error(e());return new $e(i?r=>i.schedule(n,0,r):n);}function Ga(t){return!!t&&(t instanceof $e||Ge(t.lift)&&Ge(t.subscribe));}var ua=$l(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence";});function cE(t){return t instanceof Date&&!isNaN(t);}function me(t,i){return Te((e,n)=>{let r=0;e.subscribe(Ve(n,o=>{n.next(t.call(i,o,r++));}));});}var{isArray:uL}=Array;function mL(t,i){return uL(i)?t(...i):t(i);}function Tp(t){return me(i=>mL(t,i));}var{isArray:pL}=Array,{getPrototypeOf:hL,prototype:fL,keys:gL}=Object;function Ap(t){if(t.length===1){let i=t[0];if(pL(i))return{args:i,keys:null};if(_L(i)){let e=gL(i);return{args:e.map(n=>i[n]),keys:e};}}return{args:t,keys:null};}function _L(t){return t&&typeof t=="object"&&hL(t)===fL;}function Rp(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{});}function Ur(...t){let i=fo(t),e=_p(t),{args:n,keys:r}=Ap(t);if(n.length===0)return Rt([],i);let o=new $e(bL(n,i,r?a=>Rp(r,a):Ai));return e?o.pipe(Tp(e)):o;}function bL(t,i,e=Ai){return n=>{dE(i,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l<r;l++)dE(i,()=>{let c=Rt(t[l],i),p=!1;c.subscribe(Ve(n,g=>{o[l]=g,p||(p=!0,s--),s||n.next(e(o.slice()));},()=>{--a||n.complete();}));},n);},n);};}function dE(t,i,e){t?Bi(e,t,i):i();}function Op(t,i,e,n,r,o,a,s){let l=[],c=0,p=0,g=!1,_=()=>{g&&!l.length&&!c&&i.complete();},b=I=>c<n?v(I):l.push(I),v=I=>{o&&i.next(I),c++;let A=!1;Lt(e(I,p++)).subscribe(Ve(i,$=>{r?.($),o?b($):i.next($);},()=>{A=!0;},void 0,()=>{if(A)try{for(c--;l.length&&c<n;){let $=l.shift();a?Bi(i,a,()=>v($)):v($);}_();}catch($){i.error($);}}));};return t.subscribe(Ve(i,b,()=>{g=!0,_();})),()=>{s?.();};}function Tn(t,i,e=1/0){return Ge(i)?Tn((n,r)=>me((o,a)=>i(n,o,r,a))(Lt(t(n,r))),e):(typeof i=="number"&&(e=i),Te((n,r)=>Op(n,r,t,e)));}function go(t=1/0){return Tn(Ai,t);}function uE(){return go(1);}function Qa(...t){return uE()(Rt(t,fo(t)));}function _o(t){return new $e(i=>{Lt(t()).subscribe(i);});}function Ud(...t){let i=_p(t),{args:e,keys:n}=Ap(t),r=new $e(o=>{let{length:a}=e;if(!a){o.complete();return;}let s=new Array(a),l=a,c=a;for(let p=0;p<a;p++){let g=!1;Lt(e[p]).subscribe(Ve(o,_=>{g||(g=!0,c--),s[p]=_;},()=>l--,void 0,()=>{(!l||!g)&&(c||o.next(n?Rp(n,s):s),o.complete());}));}});return i?r.pipe(Tp(i)):r;}function qd(t=0,i,e=ZD){let n=-1;return i!=null&&(gp(i)?e=i:n=i),new $e(r=>{let o=cE(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete());},o);});}function qt(...t){let i=fo(t),e=KD(t,1/0),n=t;return n.length?n.length===1?Lt(n[0]):go(e)(Rt(n,i)):gn;}function ke(t,i){return Te((e,n)=>{let r=0;e.subscribe(Ve(n,o=>t.call(i,o,r++)&&n.next(o)));});}function mE(t){return Te((i,e)=>{let n=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let c=r;r=null,e.next(c);}a&&e.complete();},l=()=>{o=null,a&&e.complete();};i.subscribe(Ve(e,c=>{n=!0,r=c,o||Lt(t(c)).subscribe(o=Ve(e,s,l));},()=>{a=!0,(!n||!o||o.closed)&&e.complete();}));});}function Ql(t,i=Hd){return mE(()=>qd(t,i));}function Ji(t){return Te((i,e)=>{let n=null,r=!1,o;n=i.subscribe(Ve(e,void 0,void 0,a=>{o=Lt(t(a,Ji(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0;})),r&&(n.unsubscribe(),n=null,o.subscribe(e));});}function Pp(t,i,e,n,r){return(o,a)=>{let s=e,l=i,c=0;o.subscribe(Ve(a,p=>{let g=c++;l=s?t(l,p,g):(s=!0,p),n&&a.next(l);},r&&(()=>{s&&a.next(l),a.complete();})));};}function Wd(t,i){return Te(Pp(t,i,arguments.length>=2,!1,!0));}function ma(t,i){return Ge(i)?Tn(t,i,1):Tn(t,1);}function pa(t,i=Hd){return Te((e,n)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,n.next(c);}};function l(){let c=a+t,p=i.now();if(p<c){r=this.schedule(void 0,c-p),n.add(r);return;}s();}e.subscribe(Ve(n,c=>{o=c,a=i.now(),r||(r=i.schedule(l,t),n.add(r));},()=>{s(),n.complete();},void 0,()=>{o=r=null;}));});}function Ya(t){return Te((i,e)=>{let n=!1;i.subscribe(Ve(e,r=>{n=!0,e.next(r);},()=>{n||e.next(t),e.complete();}));});}function de(t){return t<=0?()=>gn:Te((i,e)=>{let n=0;i.subscribe(Ve(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete());}));});}function Yl(t,i=Ai){return t=t??vL,Te((e,n)=>{let r,o=!0;e.subscribe(Ve(n,a=>{let s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a));}));});}function vL(t,i){return t===i;}function Fp(t=yL){return Te((i,e)=>{let n=!1;i.subscribe(Ve(e,r=>{n=!0,e.next(r);},()=>n?e.complete():e.error(t())));});}function yL(){return new ua();}function Gd(t,i=1/0,e){return i=(i||0)<1?1/0:i,Te((n,r)=>Op(n,r,t,i,void 0,!0,e));}function bo(t){return Te((i,e)=>{try{i.subscribe(e);}finally{e.add(t);}});}function ha(t,i){let e=arguments.length>=2;return n=>n.pipe(t?ke((r,o)=>t(r,o,n)):Ai,de(1),e?Ya(i):Fp(()=>new ua()));}function Zl(t){return t<=0?()=>gn:Te((i,e)=>{let n=[];i.subscribe(Ve(e,r=>{n.push(r),t<n.length&&n.shift();},()=>{for(let r of n)e.next(r);e.complete();},void 0,()=>{n=null;}));});}function O_(t,i){let e=arguments.length>=2;return n=>n.pipe(t?ke((r,o)=>t(r,o,n)):Ai,Zl(1),e?Ya(i):Fp(()=>new ua()));}function Np(){return Te((t,i)=>{let e,n=!1;t.subscribe(Ve(i,r=>{let o=e;e=r,n&&i.next([o,r]),n=!0;}));});}function P_(t,i){return Te(Pp(t,i,arguments.length>=2,!0));}function Qd(t={}){let{connector:i=()=>new U(),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,p=!1,g=!1,_=()=>{s?.unsubscribe(),s=void 0;},b=()=>{_(),a=l=void 0,p=g=!1;},v=()=>{let I=a;b(),I?.unsubscribe();};return Te((I,A)=>{c++,!g&&!p&&_();let $=l=l??i();A.add(()=>{c--,c===0&&!g&&!p&&(s=F_(v,r));}),$.subscribe(A),!a&&c>0&&(a=new ca({next:Z=>$.next(Z),error:Z=>{g=!0,_(),s=F_(b,e,Z),$.error(Z);},complete:()=>{p=!0,_(),s=F_(b,n),$.complete();}}),Lt(I).subscribe(a));})(o);};}function F_(t,i,...e){if(i===!0){t();return;}if(i===!1)return;let n=new ca({next:()=>{n.unsubscribe(),t();}});return Lt(i(...e)).subscribe(n);}function Lp(t,i,e){let n,r=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:r=!1,scheduler:e}=t:n=t??1/0,Qd({connector:()=>new da(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r});}function $s(t){return ke((i,e)=>t<=e);}function yt(...t){let i=fo(t);return Te((e,n)=>{(i?Qa(t,e,i):Qa(t,e)).subscribe(n);});}function Xt(t,i){return Te((e,n)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&n.complete();e.subscribe(Ve(n,l=>{r?.unsubscribe();let c=0,p=o++;Lt(t(l,p)).subscribe(r=Ve(n,g=>n.next(i?i(l,g,p,c++):g),()=>{r=null,s();}));},()=>{a=!0,s();}));});}function Ae(t){return Te((i,e)=>{Lt(t).subscribe(Ve(e,()=>e.complete(),Bd)),!e.closed&&i.subscribe(e);});}function Za(t,i=!1){return Te((e,n)=>{let r=0;e.subscribe(Ve(n,o=>{let a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete();}));});}function on(t,i,e){let n=Ge(t)||i||e?{next:t,error:i,complete:e}:t;return n?Te((r,o)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;r.subscribe(Ve(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l);},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete();},l=>{var c;s=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l);},()=>{var l,c;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n);}));}):Ai;}var rI="https://g.co/ng/security#xss",X=class extends Error{code;constructor(i,e){super(Ch(i,e)),this.code=i;}};function Ch(t,i){return`${`NG0${Math.abs(t)}`}${i?": "+i:""}`;}var oI=Symbol("InputSignalNode#UNSET"),xL=Ne(j({},w_),{transformFn:void 0,applyValueToInputSignal(t,i){sp(t,i);}});function aI(t,i){let e=Object.create(xL);e.value=t,e.transformFn=i?.transform;function n(){if(rp(e),e.value===oI)throw new X(-950,!1);return e.value;}return n[vi]=e,n;}function lu(t){return{toString:t}.toString();}var Vp="__parameters__";function wL(t){return function(...e){if(t){let n=t(...e);for(let r in n)this[r]=n[r];}};}function sI(t,i,e){return lu(()=>{let n=wL(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,p){let g=l.hasOwnProperty(Vp)?l[Vp]:Object.defineProperty(l,Vp,{value:[]})[Vp];for(;g.length<=p;)g.push(null);return(g[p]=g[p]||[]).push(a),l;}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r;});}var yi=globalThis;function Vt(t){for(let i in t)if(t[i]===Vt)return i;throw Error("Could not find renamed property on target object.");}function CL(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e]);}function Oi(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Oi).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(`
`);return n>=0?e.slice(0,n):e;}function Z_(t,i){return t?i?`${t} ${i}`:t:i||"";}var DL=Vt({__forward_ref__:Vt});function Bn(t){return t.__forward_ref__=Bn,t.toString=function(){return Oi(this());},t;}function ni(t){return lI(t)?t():t;}function lI(t){return typeof t=="function"&&t.hasOwnProperty(DL)&&t.__forward_ref__===Bn;}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0};}function ie(t){return{providers:t.providers||[],imports:t.imports||[]};}function Dh(t){return pE(t,dI)||pE(t,uI);}function cI(t){return Dh(t)!==null;}function pE(t,i){return t.hasOwnProperty(i)?t[i]:null;}function EL(t){let i=t&&(t[dI]||t[uI]);return i||null;}function hE(t){return t&&(t.hasOwnProperty(fE)||t.hasOwnProperty(IL))?t[fE]:null;}var dI=Vt({ɵprov:Vt}),fE=Vt({ɵinj:Vt}),uI=Vt({ngInjectableDef:Vt}),IL=Vt({ngInjectorDef:Vt}),R=class{_desc;ngMetadataName="InjectionToken";ɵprov;constructor(i,e){this._desc=i,this.ɵprov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.ɵprov=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}));}get multi(){return this;}toString(){return`InjectionToken ${this._desc}`;}};function mI(t){return t&&!!t.ɵproviders;}var kL=Vt({ɵcmp:Vt}),ML=Vt({ɵdir:Vt}),SL=Vt({ɵpipe:Vt}),TL=Vt({ɵmod:Vt}),Zp=Vt({ɵfac:Vt}),Xd=Vt({__NG_ELEMENT_ID__:Vt}),gE=Vt({__NG_ENV_ID__:Vt});function yo(t){return typeof t=="string"?t:t==null?"":String(t);}function AL(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():yo(t);}function RL(t,i){let e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new X(-200,t);}function lv(t,i){throw new X(-201,!1);}var rt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t;}(rt||{}),K_;function pI(){return K_;}function ji(t){let i=K_;return K_=t,i;}function hI(t,i,e){let n=Dh(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&rt.Optional)return null;if(i!==void 0)return i;lv(t,"Injector");}var OL={},Jd=OL,X_="__NG_DI_FLAG__",Kp="ngTempTokenPath",PL="ngTokenPath",FL=/\n/gm,NL="\u0275",_E="__source",tc;function LL(){return tc;}function Ka(t){let i=tc;return tc=t,i;}function VL(t,i=rt.Default){if(tc===void 0)throw new X(-203,!1);return tc===null?hI(t,void 0,i):tc.get(t,i&rt.Optional?null:void 0,i);}function J(t,i=rt.Default){return(pI()||VL)(ni(t),i);}function h(t,i=rt.Default){return J(t,Eh(i));}function Eh(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4);}function J_(t){let i=[];for(let e=0;e<t.length;e++){let n=ni(t[e]);if(Array.isArray(n)){if(n.length===0)throw new X(900,!1);let r,o=rt.Default;for(let a=0;a<n.length;a++){let s=n[a],l=zL(s);typeof l=="number"?l===-1?r=s.token:o|=l:r=s;}i.push(J(r,o));}else i.push(J(n));}return i;}function fI(t,i){return t[X_]=i,t.prototype[X_]=i,t;}function zL(t){return t[X_];}function BL(t,i,e,n){let r=t[Kp];throw i[_E]&&r.unshift(i[_E]),t.message=jL(`
`+t.message,r,e,n),t[PL]=r,t[Kp]=null,t;}function jL(t,i,e,n=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==NL?t.slice(2):t;let r=Oi(i);if(Array.isArray(i))r=i.map(Oi).join(" -> ");else if(typeof i=="object"){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):Oi(s)));}r=`{${o.join(", ")}}`;}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(FL,`
  `)}`;}var Yr=fI(sI("Optional"),8);var va=fI(sI("SkipSelf"),4);function qs(t,i){let e=t.hasOwnProperty(Zp);return e?t[Zp]:null;}function $L(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=i[n];if(e&&(r=e(r),o=e(o)),o!==r)return!1;}return!0;}function HL(t){return t.flat(Number.POSITIVE_INFINITY);}function cv(t,i){t.forEach(e=>Array.isArray(e)?cv(e,i):i(e));}function gI(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e);}function Xp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0];}function UL(t,i){let e=[];for(let n=0;n<t;n++)e.push(i);return e;}function qL(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(r===1)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;){let o=r-2;t[r]=t[o],r--;}t[i]=e,t[i+1]=n;}}function cu(t,i,e){let n=du(t,i);return n>=0?t[n|1]=e:(n=~n,qL(t,n,i,e)),n;}function N_(t,i){let e=du(t,i);if(e>=0)return t[e|1];}function du(t,i){return WL(t,i,1);}function WL(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let o=n+(r-n>>1),a=t[o<<e];if(i===a)return o<<e;a>i?r=o:n=o+1;}return~(r<<e);}var xo={},Ri=[],ic=new R(""),_I=new R("",-1),bI=new R(""),Jp=class{get(i,e=Jd){if(e===Jd){let n=new Error(`NullInjectorError: No provider for ${Oi(i)}!`);throw n.name="NullInjectorError",n;}return e;}};function vI(t,i){let e=t[TL]||null;if(!e&&i===!0)throw new Error(`Type ${Oi(t)} does not have '\u0275mod' property.`);return e;}function fa(t){return t[kL]||null;}function dv(t){return t[ML]||null;}function yI(t){return t[SL]||null;}function xI(t){let i=fa(t)||dv(t)||yI(t);return i!==null&&i.standalone;}function uu(t){return{ɵproviders:t};}function uv(...t){return{ɵproviders:wI(!0,t),ɵfromNgModule:!0};}function wI(t,...i){let e=[],n=new Set(),r,o=a=>{e.push(a);};return cv(i,a=>{let s=a;eb(s,o,[],n)&&(r||=[],r.push(s));}),r!==void 0&&CI(r,o),e;}function CI(t,i){for(let e=0;e<t.length;e++){let{ngModule:n,providers:r}=t[e];mv(r,o=>{i(o,n);});}}function eb(t,i,e,n){if(t=ni(t),!t)return!1;let r=null,o=hE(t),a=!o&&fa(t);if(!o&&!a){let l=t.ngModule;if(o=hE(l),o)r=l;else return!1;}else{if(a&&!a.standalone)return!1;r=t;}let s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)eb(c,i,e,n);}}else if(o){if(o.imports!=null&&!s){n.add(r);let c;try{cv(o.imports,p=>{eb(p,i,e,n)&&(c||=[],c.push(p));});}finally{}c!==void 0&&CI(c,i);}if(!s){let c=qs(r)||(()=>new r());i({provide:r,useFactory:c,deps:Ri},r),i({provide:bI,useValue:r,multi:!0},r),i({provide:ic,useValue:()=>J(r),multi:!0},r);}let l=o.providers;if(l!=null&&!s){let c=t;mv(l,p=>{i(p,c);});}}else return!1;return r!==t&&t.providers!==void 0;}function mv(t,i){for(let e of t)mI(e)&&(e=e.ɵproviders),Array.isArray(e)?mv(e,i):i(e);}var GL=Vt({provide:String,useValue:Vt});function DI(t){return t!==null&&typeof t=="object"&&GL in t;}function QL(t){return!!(t&&t.useExisting);}function YL(t){return!!(t&&t.useFactory);}function rc(t){return typeof t=="function";}function ZL(t){return!!t.useClass;}var Ih=new R(""),Hp={},KL={},L_;function kh(){return L_===void 0&&(L_=new Jp()),L_;}var Vn=class{},eu=class extends Vn{parent;source;scopes;records=new Map();_ngOnDestroyHooks=new Set();_onDestroyHooks=[];get destroyed(){return this._destroyed;}_destroyed=!1;injectorDefTypes;constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,nb(i,a=>this.processProvider(a)),this.records.set(_I,Kl(void 0,this)),r.has("environment")&&this.records.set(Vn,Kl(void 0,this));let o=this.records.get(Ih);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(bI,Ri,rt.Self));}destroy(){Zd(this),this._destroyed=!0;let i=lt(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),lt(i);}}onDestroy(i){return Zd(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i);}runInContext(i){Zd(this);let e=Ka(this),n=ji(void 0),r;try{return i();}finally{Ka(e),ji(n);}}get(i,e=Jd,n=rt.Default){if(Zd(this),i.hasOwnProperty(gE))return i[gE](this);n=Eh(n);let r,o=Ka(this),a=ji(void 0);try{if(!(n&rt.SkipSelf)){let l=this.records.get(i);if(l===void 0){let c=n4(i)&&Dh(i);c&&this.injectableDefInScope(c)?l=Kl(tb(i),Hp):l=null,this.records.set(i,l);}if(l!=null)return this.hydrate(i,l);}let s=n&rt.Self?kh():this.parent;return e=n&rt.Optional&&e===Jd?null:e,s.get(i,e);}catch(s){if(s.name==="NullInjectorError"){if((s[Kp]=s[Kp]||[]).unshift(Oi(i)),o)throw s;return BL(s,i,"R3InjectorError",this.source);}else throw s;}finally{ji(a),Ka(o);}}resolveInjectorInitializers(){let i=lt(null),e=Ka(this),n=ji(void 0),r;try{let o=this.get(ic,Ri,rt.Self);for(let a of o)a();}finally{Ka(e),ji(n),lt(i);}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Oi(n));return`R3Injector[${i.join(", ")}]`;}processProvider(i){i=ni(i);let e=rc(i)?i:ni(i&&i.provide),n=JL(i);if(!rc(i)&&i.multi===!0){let r=this.records.get(e);r||(r=Kl(void 0,Hp,!0),r.factory=()=>J_(r.multi),this.records.set(e,r)),e=i,r.multi.push(i);}this.records.set(e,n);}hydrate(i,e){let n=lt(null);try{return e.value===Hp&&(e.value=KL,e.value=e.factory()),typeof e.value=="object"&&e.value&&t4(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value;}finally{lt(n);}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=ni(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e);}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1);}};function tb(t){let i=Dh(t),e=i!==null?i.factory:qs(t);if(e!==null)return e;if(t instanceof R)throw new X(204,!1);if(t instanceof Function)return XL(t);throw new X(204,!1);}function XL(t){if(t.length>0)throw new X(204,!1);let e=EL(t);return e!==null?()=>e.factory(t):()=>new t();}function JL(t){if(DI(t))return Kl(void 0,t.useValue);{let i=EI(t);return Kl(i,Hp);}}function EI(t,i,e){let n;if(rc(t)){let r=ni(t);return qs(r)||tb(r);}else if(DI(t))n=()=>ni(t.useValue);else if(YL(t))n=()=>t.useFactory(...J_(t.deps||[]));else if(QL(t))n=()=>J(ni(t.useExisting));else{let r=ni(t&&(t.useClass||t.provide));if(e4(t))n=()=>new r(...J_(t.deps));else return qs(r)||tb(r);}return n;}function Zd(t){if(t.destroyed)throw new X(205,!1);}function Kl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0};}function e4(t){return!!t.deps;}function t4(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function";}function n4(t){return typeof t=="function"||typeof t=="object"&&t instanceof R;}function nb(t,i){for(let e of t)Array.isArray(e)?nb(e,i):e&&mI(e)?nb(e.ɵproviders,i):i(e);}function qi(t,i){t instanceof eu&&Zd(t);let e,n=Ka(t),r=ji(void 0);try{return i();}finally{Ka(n),ji(r);}}function II(){return pI()!==void 0||LL()!=null;}function Mh(t){if(!II())throw new X(-203,!1);}function i4(t){return typeof t=="function";}var ko=0,Qe=1,ze=2,wi=3,Gr=4,Wi=5,oc=6,eh=7,ii=8,tu=9,ga=10,Wt=11,nu=12,bE=13,mc=14,tr=15,Ws=16,Xl=17,_a=18,Sh=19,kI=20,Xa=21,Up=22,Gs=23,er=24,zn=25,pv=1;var Qs=7,th=8,ac=9,xi=10;function Ja(t){return Array.isArray(t)&&typeof t[pv]=="object";}function ya(t){return Array.isArray(t)&&t[pv]===!0;}function hv(t){return(t.flags&4)!==0;}function nl(t){return t.componentOffset>-1;}function Th(t){return(t.flags&1)===1;}function wo(t){return!!t.template;}function nh(t){return(t[ze]&512)!==0;}function mu(t){return(t[ze]&256)===256;}var ib=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n;}isFirstChange(){return this.firstChange;}};function MI(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n;}var tt=(()=>{let t=()=>SI;return t.ngInherit=!0,t;})();function SI(t){return t.type.prototype.ngOnChanges&&(t.setInput=o4),r4;}function r4(){let t=AI(this),i=t?.current;if(i){let e=t.previous;if(e===xo)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i);}}function o4(t,i,e,n,r){let o=this.declaredInputs[n],a=AI(t)||a4(t,{previous:xo,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new ib(c&&c.currentValue,e,l===xo),MI(t,i,r,e);}var TI="__ngSimpleChanges__";function AI(t){return t[TI]||null;}function a4(t,i){return t[TI]=i;}var vE=null;var yr=function(t,i,e){vE?.(t,i,e);},RI="svg",s4="math";function Co(t){for(;Array.isArray(t);)t=t[ko];return t;}function l4(t){for(;Array.isArray(t);){if(typeof t[pv]=="object")return t;t=t[ko];}return null;}function OI(t,i){return Co(i[t]);}function Zr(t,i){return Co(i[t.index]);}function fv(t,i){return t.data[i];}function gv(t,i){return t[i];}function Do(t,i){let e=i[t];return Ja(e)?e:e[ko];}function c4(t){return(t[ze]&4)===4;}function _v(t){return(t[ze]&128)===128;}function d4(t){return ya(t[wi]);}function es(t,i){return i==null?null:t[i];}function PI(t){t[Xl]=0;}function bv(t){t[ze]&1024||(t[ze]|=1024,_v(t)&&pu(t));}function u4(t,i){for(;t>0;)i=i[mc],t--;return i;}function Ah(t){return!!(t[ze]&9216||t[er]?.dirty);}function rb(t){t[ga].changeDetectionScheduler?.notify(9),t[ze]&64&&(t[ze]|=1024),Ah(t)&&pu(t);}function pu(t){t[ga].changeDetectionScheduler?.notify(0);let i=Ys(t);for(;i!==null&&!(i[ze]&8192||(i[ze]|=8192,!_v(i)));)i=Ys(i);}function FI(t,i){if(mu(t))throw new X(911,!1);t[Xa]===null&&(t[Xa]=[]),t[Xa].push(i);}function m4(t,i){if(t[Xa]===null)return;let e=t[Xa].indexOf(i);e!==-1&&t[Xa].splice(e,1);}function Ys(t){let i=t[wi];return ya(i)?i[wi]:i;}function NI(t){return t[eh]??=[];}function LI(t){return t.cleanup??=[];}function p4(t,i,e,n){let r=NI(i);r.push(e),t.firstCreatePass&&LI(t).push(n,r.length-1);}var Ye={lFrame:UI(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ob=!1;function h4(){return Ye.lFrame.elementDepthCount;}function f4(){Ye.lFrame.elementDepthCount++;}function g4(){Ye.lFrame.elementDepthCount--;}function Rh(){return Ye.bindingsEnabled;}function VI(){return Ye.skipHydrationRootTNode!==null;}function _4(t){return Ye.skipHydrationRootTNode===t;}function b4(){Ye.skipHydrationRootTNode=null;}function De(){return Ye.lFrame.lView;}function zt(){return Ye.lFrame.tView;}function k(t){return Ye.lFrame.contextLView=t,t[ii];}function M(t){return Ye.lFrame.contextLView=null,t;}function ai(){let t=zI();for(;t!==null&&t.type===64;)t=t.parent;return t;}function zI(){return Ye.lFrame.currentTNode;}function v4(){let t=Ye.lFrame,i=t.currentTNode;return t.isParent?i:i.parent;}function il(t,i){let e=Ye.lFrame;e.currentTNode=t,e.isParent=i;}function vv(){return Ye.lFrame.isParent;}function yv(){Ye.lFrame.isParent=!1;}function y4(){return Ye.lFrame.contextLView;}function BI(){return ob;}function ih(t){let i=ob;return ob=t,i;}function pc(){let t=Ye.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i;}function jI(){return Ye.lFrame.bindingIndex;}function x4(t){return Ye.lFrame.bindingIndex=t;}function ns(){return Ye.lFrame.bindingIndex++;}function Oh(t){let i=Ye.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e;}function w4(){return Ye.lFrame.inI18n;}function C4(t,i){let e=Ye.lFrame;e.bindingIndex=e.bindingRootIndex=t,ab(i);}function D4(){return Ye.lFrame.currentDirectiveIndex;}function ab(t){Ye.lFrame.currentDirectiveIndex=t;}function xv(t){let i=Ye.lFrame.currentDirectiveIndex;return i===-1?null:t[i];}function wv(){return Ye.lFrame.currentQueryIndex;}function Ph(t){Ye.lFrame.currentQueryIndex=t;}function E4(t){let i=t[Qe];return i.type===2?i.declTNode:i.type===1?t[Wi]:null;}function $I(t,i,e){if(e&rt.SkipSelf){let r=i,o=t;for(;r=r.parent,r===null&&!(e&rt.Host);)if(r=E4(o),r===null||(o=o[mc],r.type&10))break;if(r===null)return!1;i=r,t=o;}let n=Ye.lFrame=HI();return n.currentTNode=i,n.lView=t,!0;}function Cv(t){let i=HI(),e=t[Qe];Ye.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1;}function HI(){let t=Ye.lFrame,i=t===null?null:t.child;return i===null?UI(t):i;}function UI(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i;}function qI(){let t=Ye.lFrame;return Ye.lFrame=t.parent,t.currentTNode=null,t.lView=null,t;}var WI=qI;function Dv(){let t=qI();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0;}function I4(t){return(Ye.lFrame.contextLView=u4(t,Ye.lFrame.contextLView))[ii];}function Mo(){return Ye.lFrame.selectedIndex;}function Zs(t){Ye.lFrame.selectedIndex=t;}function rl(){let t=Ye.lFrame;return fv(t.tView,t.selectedIndex);}function wn(){Ye.lFrame.currentNamespace=RI;}function ol(){k4();}function k4(){Ye.lFrame.currentNamespace=null;}function M4(){return Ye.lFrame.currentNamespace;}var GI=!0;function Fh(){return GI;}function Nh(t){GI=t;}function S4(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){let a=SI(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a);}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o));}function Ev(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e<n;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:p}=o;a&&(t.contentHooks??=[]).push(-e,a),s&&((t.contentHooks??=[]).push(e,s),(t.contentCheckHooks??=[]).push(e,s)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),p!=null&&(t.destroyHooks??=[]).push(e,p);}}function qp(t,i,e){QI(t,i,3,e);}function Wp(t,i,e,n){(t[ze]&3)===e&&QI(t,i,e,n);}function V_(t,i){let e=t[ze];(e&3)===i&&(e&=16383,e+=1,t[ze]=e);}function QI(t,i,e,n){let r=n!==void 0?t[Xl]&65535:0,o=n??-1,a=i.length-1,s=0;for(let l=r;l<a;l++)if(typeof i[l+1]=="number"){if(s=i[l],n!=null&&s>=n)break;}else i[l]<0&&(t[Xl]+=65536),(s<o||o==-1)&&(T4(t,e,i,l),t[Xl]=(t[Xl]&4294901760)+l+2),l++;}function yE(t,i){yr(4,t,i);let e=lt(null);try{i.call(t);}finally{lt(e),yr(5,t,i);}}function T4(t,i,e,n){let r=e[n]<0,o=e[n+1],a=r?-e[n]:e[n],s=t[a];r?t[ze]>>14<t[Xl]>>16&&(t[ze]&3)===i&&(t[ze]+=16384,yE(s,o)):yE(s,o);}var nc=-1,Ks=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n;}};function A4(t){return t instanceof Ks;}function R4(t){return(t.flags&8)!==0;}function O4(t){return(t.flags&16)!==0;}function P4(t,i,e){let n=0;for(;n<e.length;){let r=e[n];if(typeof r=="number"){if(r!==0)break;n++;let o=e[n++],a=e[n++],s=e[n++];t.setAttribute(i,a,s,o);}else{let o=r,a=e[++n];F4(o)?t.setProperty(i,o,a):t.setAttribute(i,o,a),n++;}}return n;}function YI(t){return t===3||t===4||t===6;}function F4(t){return t.charCodeAt(0)===64;}function sc(t,i){if(!(i===null||i.length===0))if(t===null||t.length===0)t=i.slice();else{let e=-1;for(let n=0;n<i.length;n++){let r=i[n];typeof r=="number"?e=r:e===0||(e===-1||e===2?xE(t,e,r,null,i[++n]):xE(t,e,r,null,null));}}return t;}function xE(t,i,e,n,r){let o=0,a=t.length;if(i===-1)a=-1;else for(;o<t.length;){let s=t[o++];if(typeof s=="number"){if(s===i){a=-1;break;}else if(s>i){a=o-1;break;}}}for(;o<t.length;){let s=t[o];if(typeof s=="number")break;if(s===e){if(n===null){r!==null&&(t[o+1]=r);return;}else if(n===t[o+1]){t[o+2]=r;return;}}o++,n!==null&&o++,r!==null&&o++;}a!==-1&&(t.splice(a,0,i),o=a+1),t.splice(o++,0,e),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r);}var z_={},sb=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e;}get(i,e,n){n=Eh(n);let r=this.injector.get(i,z_,n);return r!==z_||e===z_?r:this.parentInjector.get(i,e,n);}};function ZI(t){return t!==nc;}function rh(t){return t&32767;}function N4(t){return t>>16;}function oh(t,i){let e=N4(t),n=i;for(;e>0;)n=n[mc],e--;return n;}var lb=!0;function ah(t){let i=lb;return lb=t,i;}var L4=256,KI=L4-1,XI=5,V4=0,vo={};function z4(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Xd)&&(n=e[Xd]),n==null&&(n=e[Xd]=V4++);let r=n&KI,o=1<<r;i.data[t+(r>>XI)]|=o;}function sh(t,i){let e=JI(t,i);if(e!==-1)return e;let n=i[Qe];n.firstCreatePass&&(t.injectorIndex=i.length,B_(n.data,t),B_(i,null),B_(n.blueprint,null));let r=Iv(t,i),o=t.injectorIndex;if(ZI(r)){let a=rh(r),s=oh(r,i),l=s[Qe].data;for(let c=0;c<8;c++)i[o+c]=s[a+c]|l[a+c];}return i[o+8]=r,o;}function B_(t,i){t.push(0,0,0,0,0,0,0,0,i);}function JI(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex;}function Iv(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=rk(r),n===null)return nc;if(e++,r=r[mc],n.injectorIndex!==-1)return n.injectorIndex|e<<16;}return nc;}function cb(t,i,e){z4(t,i,e);}function B4(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r<n;){let o=e[r];if(YI(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof e[r]=="string";)r++;else{if(o===i)return e[r+1];r=r+2;}}}return null;}function ek(t,i,e){if(e&rt.Optional||t!==void 0)return t;lv(i,"NodeInjector");}function tk(t,i,e,n){if(e&rt.Optional&&n===void 0&&(n=null),!(e&(rt.Self|rt.Host))){let r=t[tu],o=ji(void 0);try{return r?r.get(i,n,e&rt.Optional):hI(i,n,e&rt.Optional);}finally{ji(o);}}return ek(n,i,e);}function nk(t,i,e,n=rt.Default,r){if(t!==null){if(i[ze]&2048&&!(n&rt.Self)){let a=U4(t,i,e,n,vo);if(a!==vo)return a;}let o=ik(t,i,e,n,vo);if(o!==vo)return o;}return tk(i,e,n,r);}function ik(t,i,e,n,r){let o=$4(e);if(typeof o=="function"){if(!$I(i,t,n))return n&rt.Host?ek(r,e,n):tk(i,e,n,r);try{let a;if(a=o(n),a==null&&!(n&rt.Optional))lv(e);else return a;}finally{WI();}}else if(typeof o=="number"){let a=null,s=JI(t,i),l=nc,c=n&rt.Host?i[tr][Wi]:null;for((s===-1|��|n&rt.SkipSelf)&&(l=s===-1?Iv(t,i):i[s+8],l===nc||!CE(n,!1)?s=-1:(a=i[Qe],s=rh(l),i=oh(l,i)));s!==-1;){let p=i[Qe];if(wE(o,s,p.data)){let g=j4(s,i,e,a,n,c);if(g!==vo)return g;}l=i[s+8],l!==nc&&CE(n,i[Qe].data[s+8]===c)&&wE(o,s,i)?(a=p,s=rh(l),i=oh(l,i)):s=-1;}}return r;}function j4(t,i,e,n,r,o){let a=i[Qe],s=a.data[t+8],l=n==null?nl(s)&&lb:n!=a&&(s.type&3)!==0,c=r&rt.Host&&o===s,p=Gp(s,a,e,l,c);return p!==null?iu(i,a,p,s):vo;}function Gp(t,i,e,n,r){let o=t.providerIndexes,a=i.data,s=o&1048575,l=t.directiveStart,c=t.directiveEnd,p=o>>20,g=n?s:s+p,_=r?s+p:c;for(let b=g;b<_;b++){let v=a[b];if(b<l&&e===v||b>=l&&v.type===e)return b;}if(r){let b=a[l];if(b&&wo(b)&&b.type===e)return l;}return null;}function iu(t,i,e,n){let r=t[e],o=i.data;if(A4(r)){let a=r;a.resolving&&RL(AL(o[e]));let s=ah(a.canSeeViewProviders);a.resolving=!0;let l,c=a.injectImpl?ji(a.injectImpl):null,p=$I(t,n,rt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&S4(e,o[e],i);}finally{c!==null&&ji(c),ah(s),a.resolving=!1,WI();}}return r;}function $4(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Xd)?t[Xd]:void 0;return typeof i=="number"?i>=0?i&KI:H4:i;}function wE(t,i,e){let n=1<<t;return!!(e[i+(t>>XI)]&n);}function CE(t,i){return!(t&rt.Self)&&!(t&rt.Host&&i);}var Us=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e;}get(i,e,n){return nk(this._tNode,this._lView,i,Eh(n),e);}};function H4(){return new Us(ai(),De());}function He(t){return lu(()=>{let i=t.prototype.constructor,e=i[Zp]||db(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Zp]||db(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r);}return o=>new o();});}function db(t){return lI(t)?()=>{let i=db(ni(t));return i&&i();}:qs(t);}function U4(t,i,e,n,r){let o=t,a=i;for(;o!==null&&a!==null&&a[ze]&2048&&!nh(a);){let s=ik(o,a,e,n|rt.Self,vo);if(s!==vo)return s;let l=o.parent;if(!l){let c=a[kI];if(c){let p=c.get(e,vo,n);if(p!==vo)return p;}l=rk(a),a=a[mc];}o=l;}return r;}function rk(t){let i=t[Qe],e=i.type;return e===2?i.declTNode:e===1?t[Wi]:null;}function Lh(t){return B4(ai(),t);}function DE(t,i=null,e=null,n){let r=ok(t,i,e,n);return r.resolveInjectorInitializers(),r;}function ok(t,i=null,e=null,n,r=new Set()){let o=[e||Ri,uv(t)];return n=n||(typeof t=="object"?void 0:Oi(t)),new eu(o,i||kh(),n||null,r);}var Oe=class t{static THROW_IF_NOT_FOUND=Jd;static NULL=new Jp();static create(i,e){if(Array.isArray(i))return DE({name:""},e,i,"");{let n=i.name??"";return DE({name:n},i.parent,i.providers,n);}}static ɵprov=O({token:t,providedIn:"any",factory:()=>J(_I)});static __NG_ELEMENT_ID__=-1;};var ri=class{attributeName;constructor(i){this.attributeName=i;}__NG_ELEMENT_ID__=()=>Lh(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`;}},q4=new R("");q4.__NG_ELEMENT_ID__=t=>{let i=ai();if(i===null)throw new X(204,!1);if(i.type&2)return i.value;if(t&rt.Optional)return null;throw new X(204,!1);};var ak=!1,al=(()=>{class t{static __NG_ELEMENT_ID__=W4;static __NG_ENV_ID__=e=>e;}return t;})(),lh=class extends al{_lView;constructor(i){super(),this._lView=i;}onDestroy(i){return FI(this._lView,i),()=>m4(this._lView,i);}};function W4(){return new lh(De());}var Xs=class{},kv=new R("",{providedIn:"root",factory:()=>!1});var sk=new R(""),lk=new R(""),So=(()=>{class t{taskId=0;pendingTasks=new Set();get _hasPendingTasks(){return this.hasPendingTasks.value;}hasPendingTasks=new Ut(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e;}has(e){return this.pendingTasks.has(e);}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1);}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1);}static ɵprov=O({token:t,providedIn:"root",factory:()=>new t()});}return t;})();var ub=class extends U{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,II()&&(this.destroyRef=h(al,{optional:!0})??void 0,this.pendingTasks=h(So,{optional:!0})??void 0);}emit(i){let e=lt(null);try{super.next(i);}finally{lt(e);}}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l);}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return i instanceof Ie&&i.add(s),s;}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{i(e),n!==void 0&&this.pendingTasks?.remove(n);});};}},z=ub;function ru(...t){}function ck(t){let i,e;function n(){t=ru;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i);}catch{}}return i=setTimeout(()=>{t(),n();}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n();})),()=>n();}function EE(t){return queueMicrotask(()=>t()),()=>{t=ru;};}var Mv="isAngularZone",ch=Mv+"_ID",G4=0,le=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new z(!1);onMicrotaskEmpty=new z(!1);onStable=new z(!1);onError=new z(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=ak}=i;if(typeof Zone>"u")throw new X(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec())),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,Z4(a);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Mv)===!0;}static assertInAngularZone(){if(!t.isInAngularZone())throw new X(909,!1);}static assertNotInAngularZone(){if(t.isInAngularZone())throw new X(909,!1);}run(i,e,n){return this._inner.run(i,e,n);}runTask(i,e,n,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,Q4,ru,ru);try{return o.runTask(a,e,n);}finally{o.cancelTask(a);}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n);}runOutsideAngular(i){return this._outer.run(i);}},Q4={};function Sv(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null);}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null));}finally{t.isStable=!0;}}}function Y4(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){ck(()=>{t.callbackScheduled=!1,mb(t),t.isCheckStableRunning=!0,Sv(t),t.isCheckStableRunning=!1;});}t.scheduleInRootZone?Zone.root.run(()=>{i();}):t._outer.run(()=>{i();}),mb(t);}function Z4(t){let i=()=>{Y4(t);},e=G4++;t._inner=t._inner.fork({name:"angular",properties:{[Mv]:!0,[ch]:e,[ch+e]:!0},onInvokeTask:(n,r,o,a,s,l)=>{if(K4(l))return n.invokeTask(o,a,s,l);try{return IE(t),n.invokeTask(o,a,s,l);}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),kE(t);}},onInvoke:(n,r,o,a,s,l,c)=>{try{return IE(t),n.invoke(o,a,s,l,c);}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!X4(l)&&i(),kE(t);}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,mb(t),Sv(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask));},onHandleError:(n,r,o,a)=>(n.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)});}function mb(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1;}function IE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null));}function kE(t){t._nesting--,Sv(t);}var pb=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new z();onMicrotaskEmpty=new z();onStable=new z();onError=new z();run(i,e,n){return i.apply(e,n);}runGuarded(i,e,n){return i.apply(e,n);}runOutsideAngular(i){return i();}runTask(i,e,n,r){return i.apply(e,n);}};function K4(t){return dk(t,"__ignore_ng_zone__");}function X4(t){return dk(t,"__scheduler_tick__");}function dk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0;}var $i=class{_console=console;handleError(i){this._console.error("ERROR",i);}},J4=new R("",{providedIn:"root",factory:()=>{let t=h(le),i=h($i);return e=>t.runOutsideAngular(()=>i.handleError(e));}});function ME(t,i){return aI(t,i);}function e6(t){return aI(oI,t);}var ct=(ME.required=e6,ME);function t6(){return hc(ai(),De());}function hc(t,i){return new ee(Zr(t,i));}var ee=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e;}static __NG_ELEMENT_ID__=t6;}return t;})();function uk(t){return t instanceof ee?t.nativeElement:t;}var SE=new Set();function nr(t){SE.has(t)||(SE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}));}function is(t){return typeof t=="function"&&t[vi]!==void 0;}function Ci(t,i){nr("NgSignals");let e=BD(t),n=e[vi];return i?.equal&&(n.equal=i.equal),e.set=r=>sp(n,r),e.update=r=>jD(n,r),e.asReadonly=n6.bind(e),e;}function n6(){let t=this[vi];if(t.readonlyFn===void 0){let i=()=>this();i[vi]=t,t.readonlyFn=i;}return t.readonlyFn;}function mk(t){return is(t)&&typeof t.set=="function";}function i6(){return this._results[Symbol.iterator]();}var oi=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new U();}constructor(i=!1){this._emitDistinctChangesOnly=i;}get(i){return this._results[i];}map(i){return this._results.map(i);}filter(i){return this._results.filter(i);}find(i){return this._results.find(i);}reduce(i,e){return this._results.reduce(i,e);}forEach(i){this._results.forEach(i);}some(i){return this._results.some(i);}toArray(){return this._results.slice();}toString(){return this._results.toString();}reset(i,e){this.dirty=!1;let n=HL(i);(this._changesDetected=!$L(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(i){this._onDirty=i;}setDirty(){this.dirty=!0,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=i6;};function pk(t){return(t.flags&128)===128;}var hk=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t;}(hk||{}),fk=new Map(),r6=0;function o6(){return r6++;}function a6(t){fk.set(t[Sh],t);}function hb(t){fk.delete(t[Sh]);}var TE="__ngContext__";function sl(t,i){Ja(i)?(t[TE]=i[Sh],a6(i)):t[TE]=i;}function gk(t){return bk(t[nu]);}function _k(t){return bk(t[Gr]);}function bk(t){for(;t!==null&&!ya(t);)t=t[Gr];return t;}var fb;function vk(t){fb=t;}function yk(){if(fb!==void 0)return fb;if(typeof document<"u")return document;throw new X(210,!1);}var fc=new R("",{providedIn:"root",factory:()=>s6}),s6="ng",Tv=new R(""),xa=new R("",{providedIn:"platform",factory:()=>"unknown"});var mt=new R(""),hu=new R("",{providedIn:"root",factory:()=>yk().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var l6="h",c6="b";var xk=!1,d6=new R("",{providedIn:"root",factory:()=>xk});var Av=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t;}(Av||{}),gc=new R("");var Jl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t;}(Jl||{}),wk=(()=>{class t{impl=null;execute(){this.impl?.execute();}static ɵprov=O({token:t,providedIn:"root",factory:()=>new t()});}return t;})(),u6=[Jl.EarlyRead,Jl.Write,Jl.MixedReadWrite,Jl.Read],m6=(()=>{class t{ngZone=h(le);scheduler=h(Xs);errorHandler=h($i,{optional:!0});sequences=new Set();deferredRegistrations=new Set();executing=!1;constructor(){h(gc,{optional:!0});}execute(){this.executing=!0;for(let e of u6)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[e]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>n.hooks[e](n.pipelinedValue),n.snapshot));}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r);}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear();}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(7));}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e));}maybeTrace(e,n){return n?n.run(Av.AFTER_NEXT_RENDER,e):e();}static ɵprov=O({token:t,providedIn:"root",factory:()=>new t()});}return t;})(),gb=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,r,o=null){this.impl=i,this.hooks=e,this.once=n,this.snapshot=o,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();}};function fu(t,i){!i?.injector&&Mh(fu);let e=i?.injector??h(Oe);return nr("NgAfterRender"),Ck(t,e,i,!1);}function Cn(t,i){!i?.injector&&Mh(Cn);let e=i?.injector??h(Oe);return nr("NgAfterNextRender"),Ck(t,e,i,!0);}function p6(t,i){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[i]=t,e;}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read];}function Ck(t,i,e,n){let r=i.get(wk);r.impl??=i.get(m6);let o=i.get(gc,null,{optional:!0}),a=e?.phase??Jl.MixedReadWrite,s=e?.manualCleanup!==!0?i.get(al):null,l=new gb(r.impl,p6(t,a),n,s,o?.snapshot(null));return r.impl.register(l),l;}var h6=()=>null;function Dk(t,i,e=!1){return h6(t,i,e);}function Ek(t,i){let e=t.contentQueries;if(e!==null){let n=lt(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],a=e[r+1];if(a!==-1){let s=t.data[a];Ph(o),s.contentQueries(2,i[a],a);}}}finally{lt(n);}}}function _b(t,i,e){Ph(0);let n=lt(null);try{i(t,e);}finally{lt(n);}}function Rv(t,i,e){if(hv(i)){let n=lt(null);try{let r=i.directiveStart,o=i.directiveEnd;for(let a=r;a<o;a++){let s=t.data[a];if(s.contentQueries){let l=e[a];s.contentQueries(1,l,a);}}}finally{lt(n);}}}var Eo=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t;}(Eo||{}),zp;function f6(){if(zp===void 0&&(zp=null,yi.trustedTypes))try{zp=yi.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t});}catch{}return zp;}function Vh(t){return f6()?.createHTML(t)||t;}var Bp;function Ik(){if(Bp===void 0&&(Bp=null,yi.trustedTypes))try{Bp=yi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t});}catch{}return Bp;}function AE(t){return Ik()?.createHTML(t)||t;}function RE(t){return Ik()?.createScriptURL(t)||t;}var ba=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i;}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rI})`;}},bb=class extends ba{getTypeName(){return"HTML";}},vb=class extends ba{getTypeName(){return"Style";}},yb=class extends ba{getTypeName(){return"Script";}},xb=class extends ba{getTypeName(){return"URL";}},wb=class extends ba{getTypeName(){return"ResourceURL";}};function xr(t){return t instanceof ba?t.changingThisBreaksApplicationSecurity:t;}function wa(t,i){let e=g6(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${rI})`);}return e===i;}function g6(t){return t instanceof ba&&t.getTypeName()||null;}function kk(t){return new bb(t);}function Mk(t){return new vb(t);}function Sk(t){return new yb(t);}function Tk(t){return new xb(t);}function Ak(t){return new wb(t);}function _6(t){let i=new Db(t);return b6()?new Cb(i):i;}var Cb=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i;}getInertBodyElement(i){i="<body><remove></remove>"+i;try{let e=new window.DOMParser().parseFromString(Vh(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e);}catch{return null;}}},Db=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=Vh(i),e;}};function b6(){try{return!!new window.DOMParser().parseFromString(Vh(""),"text/html");}catch{return!1;}}var v6=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zh(t){return t=String(t),t.match(v6)?t:"unsafe:"+t;}function Ca(t){let i={};for(let e of t.split(","))i[e]=!0;return i;}function gu(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i;}var Rk=Ca("area,br,col,hr,img,wbr"),Ok=Ca("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pk=Ca("rp,rt"),y6=gu(Pk,Ok),x6=gu(Ok,Ca("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")),w6=gu(Pk,Ca("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")),OE=gu(Rk,x6,w6,y6),Fk=Ca("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),C6=Ca("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),D6=Ca("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"),E6=gu(Fk,C6,D6),I6=Ca("script,style,template"),Eb=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=S6(e);continue;}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=M6(e);if(o){e=o;break;}e=r.pop();}}return this.buf.join("");}startElement(i){let e=PE(i).toLowerCase();if(!OE.hasOwnProperty(e))return this.sanitizedSomething=!0,!I6.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),a=o.name,s=a.toLowerCase();if(!E6.hasOwnProperty(s)){this.sanitizedSomething=!0;continue;}let l=o.value;Fk[s]&&(l=zh(l)),this.buf.push(" ",a,'="',FE(l),'"');}return this.buf.push(">"),!0;}endElement(i){let e=PE(i).toLowerCase();OE.hasOwnProperty(e)&&!Rk.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"));}chars(i){this.buf.push(FE(i));}};function k6(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY;}function M6(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw Nk(i);return i;}function S6(t){let i=t.firstChild;if(i&&k6(t,i))throw Nk(i);return i;}function PE(t){let i=t.nodeName;return typeof i=="string"?i:"FORM";}function Nk(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);}var T6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,A6=/([^\#-~ |!])/g;function FE(t){return t.replace(/&/g,"&amp;").replace(T6,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";";}).replace(A6,function(i){return"&#"+i.charCodeAt(0)+";";}).replace(/</g,"&lt;").replace(/>/g,"&gt;");}var jp;function Ov(t,i){let e=null;try{jp=jp||_6(t);let n=i?String(i):"";e=jp.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=jp.getInertBodyElement(n);}while(n!==o);let s=new Eb().sanitizeChildren(NE(e)||e);return Vh(s);}finally{if(e){let n=NE(e)||e;for(;n.firstChild;)n.firstChild.remove();}}}function NE(t){return"content"in t&&R6(t)?t.content:null;}function R6(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE";}var si=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t;}(si||{});function _c(t){let i=Pv();return i?AE(i.sanitize(si.HTML,t)||""):wa(t,"HTML")?AE(xr(t)):Ov(yk(),yo(t));}function wr(t){let i=Pv();return i?i.sanitize(si.URL,t)||"":wa(t,"URL")?xr(t):zh(yo(t));}function O6(t){let i=Pv();if(i)return RE(i.sanitize(si.RESOURCE_URL,t)||"");if(wa(t,"ResourceURL"))return RE(xr(t));throw new X(904,!1);}function P6(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?O6:wr;}function Lk(t,i,e){return P6(i,e)(t);}function Pv(){let t=De();return t&&t[ga].sanitizer;}var F6=/^>|^->|<!--|-->|--!>|<!-$/g,N6=/(<|>)/g,L6="\u200B$1\u200B";function V6(t){return t.replace(F6,i=>i.replace(N6,L6));}function bc(t){return t.ownerDocument.defaultView;}function Vk(t){return t instanceof Function?t():t;}function z6(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r;}e=r+1;}}var zk="ng-template";function B6(t,i,e,n){let r=0;if(n){for(;r<i.length&&typeof i[r]=="string";r+=2)if(i[r]==="class"&&z6(i[r+1].toLowerCase(),e,0)!==-1)return!0;}else if(Fv(t))return!1;if(r=i.indexOf(1,r),r>-1){let o;for(;++r<i.length&&typeof(o=i[r])=="string";)if(o.toLowerCase()===e)return!0;}return!1;}function Fv(t){return t.type===4&&t.value!==zk;}function j6(t,i,e){let n=t.type===4&&!e?zk:t.value;return i===n;}function $6(t,i,e){let n=4,r=t.attrs,o=r!==null?q6(r):0,a=!1;for(let s=0;s<i.length;s++){let l=i[s];if(typeof l=="number"){if(!a&&!qr(n)&&!qr(l))return!1;if(a&&qr(l))continue;a=!1,n=l|n&1;continue;}if(!a)if(n&4){if(n=2|n&1,l!==""&&!j6(t,l,e)||l===""&&i.length===1){if(qr(n))return!1;a=!0;}}else if(n&8){if(r===null||!B6(t,r,l,e)){if(qr(n))return!1;a=!0;}}else{let c=i[++s],p=H6(l,r,Fv(t),e);if(p===-1){if(qr(n))return!1;a=!0;continue;}if(c!==""){let g;if(p>o?g="":g=r[p+1].toLowerCase(),n&2&&c!==g){if(qr(n))return!1;a=!0;}}}}return qr(n)||a;}function qr(t){return(t&1)===0;}function H6(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let o=!1;for(;r<i.length;){let a=i[r];if(a===t)return r;if(a===3||a===6)o=!0;else if(a===1||a===2){let s=i[++r];for(;typeof s=="string";)s=i[++r];continue;}else{if(a===4)break;if(a===0){r+=4;continue;}}r+=o?1:2;}return-1;}else return W6(i,t);}function Bk(t,i,e=!1){for(let n=0;n<i.length;n++)if($6(t,i[n],e))return!0;return!1;}function U6(t){let i=t.attrs;if(i!=null){let e=i.indexOf(5);if(!(e&1))return i[e+1];}return null;}function q6(t){for(let i=0;i<t.length;i++){let e=t[i];if(YI(e))return i;}return t.length;}function W6(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let n=t[e];if(typeof n=="number")return-1;if(n===i)return e;e++;}return-1;}function G6(t,i){e:for(let e=0;e<i.length;e++){let n=i[e];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0;}}return!1;}function LE(t,i){return t?":not("+i.trim()+")":i;}function Q6(t){let i=t[0],e=1,n=2,r="",o=!1;for(;e<t.length;){let a=t[e];if(typeof a=="string"){if(n&2){let s=t[++e];r+="["+a+(s.length>0?'="'+s+'"':"")+"]";}else n&8?r+="."+a:n&4&&(r+=" "+a);}else r!==""&&!qr(a)&&(i+=LE(o,r),r=""),n=a,o=o||!qr(n);e++;}return r!==""&&(i+=LE(o,r)),i;}function Y6(t){return t.map(Q6).join(",");}function Z6(t){let i=[],e=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&i.push(o,t[++n]):r===8&&e.push(o);else{if(!qr(r))break;r=o;}n++;}return e.length&&i.push(1,...e),i;}var li={};function K6(t,i){return t.createText(i);}function X6(t,i,e){t.setValue(i,e);}function J6(t,i){return t.createComment(V6(i));}function jk(t,i,e){return t.createElement(i,e);}function dh(t,i,e,n,r){t.insertBefore(i,e,n,r);}function $k(t,i,e){t.appendChild(i,e);}function VE(t,i,e,n,r){n!==null?dh(t,i,e,n,r):$k(t,i,e);}function eV(t,i,e){t.removeChild(null,i,e);}function tV(t,i,e){t.setAttribute(i,"style",e);}function nV(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e);}function Hk(t,i,e){let{mergedAttrs:n,classes:r,styles:o}=e;n!==null&&P4(t,i,n),r!==null&&nV(t,i,r),o!==null&&tV(t,i,o);}function Nv(t,i,e,n,r,o,a,s,l,c,p){let g=zn+n,_=g+r,b=iV(g,_),v=typeof c=="function"?c():c;return b[Qe]={type:t,blueprint:b,template:e,queries:null,viewQuery:s,declTNode:i,data:b.slice().fill(null,g),bindingStartIndex:g,expandoStartIndex:_,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:l,consts:v,incompleteFirstPass:!1,ssrId:p};}function iV(t,i){let e=[];for(let n=0;n<i;n++)e.push(n<t?null:li);return e;}function rV(t){let i=t.tView;return i===null||i.incompleteFirstPass?t.tView=Nv(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):i;}function Lv(t,i,e,n,r,o,a,s,l,c,p){let g=i.blueprint.slice();return g[ko]=r,g[ze]=n|4|128|8|64|1024,(c!==null||t&&t[ze]&2048)&&(g[ze]|=2048),PI(g),g[wi]=g[mc]=t,g[ii]=e,g[ga]=a||t&&t[ga],g[Wt]=s||t&&t[Wt],g[tu]=l||t&&t[tu]||null,g[Wi]=o,g[Sh]=o6(),g[oc]=p,g[kI]=c,g[tr]=i.type==2?t[tr]:g,g;}function oV(t,i,e){let n=Zr(i,t),r=rV(e),o=t[ga].rendererFactory,a=Vv(t,Lv(t,r,null,Uk(e),n,i,null,o.createRenderer(n,e),null,null,null));return t[i.index]=a;}function Uk(t){let i=16;return t.signals?i=4096:t.onPush&&(i=64),i;}function qk(t,i,e,n){if(e===0)return-1;let r=i.length;for(let o=0;o<e;o++)i.push(n),t.blueprint.push(n),t.data.push(null);return r;}function Vv(t,i){return t[nu]?t[bE][Gr]=i:t[nu]=i,t[bE]=i,i;}function d(t=1){Wk(zt(),De(),Mo()+t,!1);}function Wk(t,i,e,n){if(!n)if((i[ze]&3)===3){let o=t.preOrderCheckHooks;o!==null&&qp(i,o,e);}else{let o=t.preOrderHooks;o!==null&&Wp(i,o,0,e);}Zs(e);}var Bh=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t;}(Bh||{});function Gk(t,i,e,n){let r=lt(null);try{let[o,a,s]=t.inputs[e],l=null;a&Bh.SignalBased&&(l=i[o][vi]),l!==null&&l.transformFn!==void 0?n=l.transformFn(n):s!==null&&(n=s.call(i,n)),t.setInput!==null?t.setInput(i,l,n,e,o):MI(i,l,o,n);}finally{lt(r);}}function Qk(t,i,e,n,r){let o=Mo(),a=n&2;try{Zs(-1),a&&i.length>zn&&Wk(t,i,zn,!1),yr(a?2:0,r),e(n,r);}finally{Zs(o),yr(a?3:1,r);}}function zv(t,i,e){Rh()&&(sl(Zr(e,i),i),Yk(t,i,e));}function Yk(t,i,e){uV(t,i,e),(e.flags&64)===64&&mV(t,i,e);}function Bv(t,i,e=Zr){let n=i.localNames;if(n!==null){let r=i.index+1;for(let o=0;o<n.length;o+=2){let a=n[o+1],s=a===-1?e(i,t):t[a];t[r++]=s;}}}function aV(t,i,e,n){let o=n.get(d6,xk)||e===Eo.ShadowDom,a=t.selectRootElement(i,o);return sV(a),a;}function sV(t){lV(t);}var lV=()=>null;function cV(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t;}function vc(t,i,e,n,r,o,a,s){let l=i.inputs,c;if(!s&&l!=null&&(c=l[n]))$v(t,e,c,n,r),nl(i)&&dV(e,i.index);else if(i.type&3){let p=Zr(i,e);n=cV(n),r=a!=null?a(r,i.value||"",n):r,o.setProperty(p,n,r);}else i.type&12;}function dV(t,i){let e=Do(i,t);e[ze]&16||(e[ze]|=64);}function uV(t,i,e){let n=e.directiveStart,r=e.directiveEnd;nl(e)&&oV(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||sh(e,i);let o=e.initialInputs;for(let a=n;a<r;a++){let s=t.data[a],l=iu(i,t,a,e);if(sl(l,i),o!==null&&gV(i,a-n,l,s,e,o),wo(s)){let c=Do(e.index,i);c[ii]=iu(i,t,a,e);}}}function mV(t,i,e){let n=e.directiveStart,r=e.directiveEnd,o=e.index,a=D4();try{Zs(o);for(let s=n;s<r;s++){let l=t.data[s],c=i[s];ab(s),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&pV(l,c);}}finally{Zs(-1),ab(a);}}function pV(t,i){t.hostBindings!==null&&t.hostBindings(1,i);}function jv(t,i){let e=t.directiveRegistry,n=null;if(e)for(let r=0;r<e.length;r++){let o=e[r];Bk(i,o.selectors,!1)&&(n??=[],wo(o)?n.unshift(o):n.push(o));}return n;}function hV(t,i,e,n,r,o){let a=Zr(t,i);fV(i[Wt],a,o,t.value,e,n,r);}function fV(t,i,e,n,r,o,a){if(o==null)t.removeAttribute(i,r,e);else{let s=a==null?yo(o):a(o,n||"",r);t.setAttribute(i,r,s,e);}}function gV(t,i,e,n,r,o){let a=o[i];if(a!==null)for(let s=0;s<a.length;s+=2){let l=a[s],c=a[s+1];Gk(n,e,l,c);}}function Zk(t,i,e){return(t===null||wo(t))&&(e=l4(e[i.index])),e[Wt];}function Kk(t,i){let e=t[tu],n=e?e.get($i,null):null;n&&n.handleError(i);}function $v(t,i,e,n,r){for(let o=0;o<e.length;o+=2){let a=e[o],s=e[o+1],l=i[a],c=t.data[a];Gk(c,l,s,r);}}function _V(t,i){let e=Do(i,t),n=e[Qe];bV(n,e);let r=e[ko];r!==null&&e[oc]===null&&(e[oc]=Dk(r,e[tu])),Hv(n,e,e[ii]);}function bV(t,i){for(let e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e]);}function Hv(t,i,e){Cv(i);try{let n=t.viewQuery;n!==null&&_b(1,n,e);let r=t.template;r!==null&&Qk(t,i,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),i[_a]?.finishViewCreation(t),t.staticContentQueries&&Ek(t,i),t.staticViewQueries&&_b(2,t.viewQuery,e);let o=t.components;o!==null&&vV(i,o);}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n;}finally{i[ze]&=-5,Dv();}}function vV(t,i){for(let e=0;e<i.length;e++)_V(t,i[e]);}function _u(t,i,e,n){let r=lt(null);try{let o=i.tView,s=t[ze]&4096?4096:16,l=Lv(t,o,e,s,null,i,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),c=t[i.index];l[Ws]=c;let p=t[_a];return p!==null&&(l[_a]=p.createEmbeddedView(o)),Hv(o,l,e),l;}finally{lt(r);}}function lc(t,i){return!i||i.firstChild===null||pk(t);}var yV;function Uv(t,i){return yV(t,i);}var Io=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t;}(Io||{});function qv(t){return(t.flags&32)===32;}function ec(t,i,e,n,r){if(n!=null){let o,a=!1;ya(n)?o=n:Ja(n)&&(a=!0,n=n[ko]);let s=Co(n);t===0&&e!==null?r==null?$k(i,e,s):dh(i,e,s,r||null,!0):t===1&&e!==null?dh(i,e,s,r||null,!0):t===2?eV(i,s,a):t===3&&i.destroyNode(s),o!=null&&TV(i,t,o,e,r);}}function xV(t,i){Xk(t,i),i[ko]=null,i[Wi]=null;}function wV(t,i,e,n,r,o){n[ko]=r,n[Wi]=i,Hh(t,n,e,1,r,o);}function Xk(t,i){i[ga].changeDetectionScheduler?.notify(10),Hh(t,i,i[Wt],2,null,null);}function CV(t){let i=t[nu];if(!i)return j_(t[Qe],t);for(;i;){let e=null;if(Ja(i))e=i[nu];else{let n=i[xi];n&&(e=n);}if(!e){for(;i&&!i[Gr]&&i!==t;)Ja(i)&&j_(i[Qe],i),i=i[wi];i===null&&(i=t),Ja(i)&&j_(i[Qe],i),e=i&&i[Gr];}i=e;}}function Wv(t,i){let e=t[ac],n=e.indexOf(i);e.splice(n,1);}function jh(t,i){if(mu(i))return;let e=i[Wt];e.destroyNode&&Hh(t,i,e,3,null,null),CV(i);}function j_(t,i){if(mu(i))return;let e=lt(null);try{i[ze]&=-129,i[ze]|=256,i[er]&&jl(i[er]),EV(t,i),DV(t,i),i[Qe].type===1&&i[Wt].destroy();let n=i[Ws];if(n!==null&&ya(i[wi])){n!==i[wi]&&Wv(n,i);let r=i[_a];r!==null&&r.detachView(t);}hb(i);}finally{lt(e);}}function DV(t,i){let e=t.cleanup,n=i[eh];if(e!==null)for(let a=0;a<e.length-1;a+=2)if(typeof e[a]=="string"){let s=e[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2;}else{let s=n[e[a+1]];e[a].call(s);}n!==null&&(i[eh]=null);let r=i[Xa];if(r!==null){i[Xa]=null;for(let a=0;a<r.length;a++){let s=r[a];s();}}let o=i[Gs];if(o!==null){i[Gs]=null;for(let a of o��)a.destroy();}}function EV(t,i){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let n=0;n<e.length;n+=2){let r=i[e[n]];if(!(r instanceof Ks)){let o=e[n+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let s=r[o[a]],l=o[a+1];yr(4,s,l);try{l.call(s);}finally{yr(5,s,l);}}else{yr(4,r,o);try{o.call(r);}finally{yr(5,r,o);}}}}}function Jk(t,i,e){return IV(t,i.parent,e);}function IV(t,i,e){let n=i;for(;n!==null&&n.type&168;)i=n,n=i.parent;if(n===null)return e[ko];if(nl(n)){let{encapsulation:r}=t.data[n.directiveStart+n.componentOffset];if(r===Eo.None||r===Eo.Emulated)return null;}return Zr(n,e);}function eM(t,i,e){return MV(t,i,e);}function kV(t,i,e){return t.type&40?Zr(t,e):null;}var MV=kV,zE;function $h(t,i,e,n){let r=Jk(t,n,i),o=i[Wt],a=n.parent||i[Wi],s=eM(a,n,i);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)VE(o,r,e[l],s,!1);else VE(o,r,e,s,!1);zE!==void 0&&zE(o,n,i,e,r);}function Kd(t,i){if(i!==null){let e=i.type;if(e&3)return Zr(i,t);if(e&4)return Ib(-1,t[i.index]);if(e&8){let n=i.child;if(n!==null)return Kd(t,n);{let r=t[i.index];return ya(r)?Ib(-1,r):Co(r);}}else{if(e&128)return Kd(t,i.next);if(e&32)return Uv(i,t)()||Co(t[i.index]);{let n=tM(t,i);if(n!==null){if(Array.isArray(n))return n[0];let r=Ys(t[tr]);return Kd(r,n);}else return Kd(t,i.next);}}}return null;}function tM(t,i){if(i!==null){let n=t[tr][Wi],r=i.projection;return n.projection[r];}return null;}function Ib(t,i){let e=xi+t+1;if(e<i.length){let n=i[e],r=n[Qe].firstChild;if(r!==null)return Kd(n,r);}return i[Qs];}function Gv(t,i,e,n,r,o,a){for(;e!=null;){if(e.type===128){e=e.next;continue;}let s=n[e.index],l=e.type;if(a&&i===0&&(s&&sl(Co(s),n),e.flags|=2),!qv(e))if(l&8)Gv(t,i,e.child,n,r,o,!1),ec(i,t,r,s,o);else if(l&32){let c=Uv(e,n),p;for(;p=c();)ec(i,t,r,p,o);ec(i,t,r,s,o);}else l&16?nM(t,i,n,e,r,o):ec(i,t,r,s,o);e=a?e.projectionNext:e.next;}}function Hh(t,i,e,n,r,o){Gv(e,n,t.firstChild,i,r,o,!1);}function SV(t,i,e){let n=i[Wt],r=Jk(t,e,i),o=e.parent||i[Wi],a=eM(o,e,i);nM(n,0,i,e,r,a);}function nM(t,i,e,n,r,o){let a=e[tr],l=a[Wi].projection[n.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let p=l[c];ec(i,t,r,p,o);}else{let c=l,p=a[wi];pk(n)&&(c.flags|=128),Gv(t,i,c,p,r,o,!0);}}function TV(t,i,e,n,r){let o=e[Qs],a=Co(e);o!==a&&ec(i,t,n,o,r);for(let s=xi;s<e.length;s++){let l=e[s];Hh(l[Qe],l,t,i,n,o);}}function AV(t,i,e,n,r){if(i)r?t.addClass(e,n):t.removeClass(e,n);else{let o=n.indexOf("-")===-1?void 0:Io.DashCase;r==null?t.removeStyle(e,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Io.Important),t.setStyle(e,n,r,o));}}function uh(t,i,e,n,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue;}let o=i[e.index];o!==null&&n.push(Co(o)),ya(o)&&RV(o,n);let a=e.type;if(a&8)uh(t,i,e.child,n);else if(a&32){let s=Uv(e,i),l;for(;l=s();)n.push(l);}else if(a&16){let s=tM(i,e);if(Array.isArray(s))n.push(...s);else{let l=Ys(i[tr]);uh(l[Qe],l,s,n,!0);}}e=r?e.projectionNext:e.next;}return n;}function RV(t,i){for(let e=xi;e<t.length;e++){let n=t[e],r=n[Qe].firstChild;r!==null&&uh(n[Qe],n,r,i);}t[Qs]!==t[ko]&&i.push(t[Qs]);}var iM=[];function OV(t){return t[er]??PV(t);}function PV(t){let i=iM.pop()??Object.create(NV);return i.lView=t,i;}function FV(t){t.lView[er]!==t&&(t.lView=null,iM.push(t));}var NV=Ne(j({},Ls),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{pu(t.lView);},consumerOnSignalRead(){this.lView[er]=this;}});function LV(t){let i=t[er]??Object.create(VV);return i.lView=t,i;}var VV=Ne(j({},Ls),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Ys(t.lView);for(;i&&!rM(i[Qe]);)i=Ys(i);i&&bv(i);},consumerOnSignalRead(){this.lView[er]=this;}});function rM(t){return t.type!==2;}function oM(t){if(t[Gs]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Gs])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[ze]&8192);}}var zV=100;function aM(t,i=!0,e=0){let r=t[ga].rendererFactory,o=!1;o||r.begin?.();try{BV(t,e);}catch(a){throw i&&Kk(t,a),a;}finally{o||r.end?.();}}function BV(t,i){let e=BI();try{ih(!0),kb(t,i);let n=0;for(;Ah(t);){if(n===zV)throw new X(103,!1);n++,kb(t,1);}}finally{ih(e);}}function jV(t,i,e,n){if(mu(i))return;let r=i[ze],o=!1,a=!1;Cv(i);let s=!0,l=null,c=null;o||(rM(t)?(c=OV(i),l=Bl(c)):SD()===null?(s=!1,c=LV(i),l=Bl(c)):i[er]&&(jl(i[er]),i[er]=null));try{PI(i),x4(t.bindingStartIndex),e!==null&&Qk(t,i,e,2,n);let p=(r&3)===3;if(!o)if(p){let b=t.preOrderCheckHooks;b!==null&&qp(i,b,null);}else{let b=t.preOrderHooks;b!==null&&Wp(i,b,0,null),V_(i,0);}if(a||$V(i),oM(i),sM(i,0),t.contentQueries!==null&&Ek(t,i),!o)if(p){let b=t.contentCheckHooks;b!==null&&qp(i,b);}else{let b=t.contentHooks;b!==null&&Wp(i,b,1),V_(i,1);}UV(t,i);let g=t.components;g!==null&&cM(i,g,0);let _=t.viewQuery;if(_!==null&&_b(2,_,n),!o)if(p){let b=t.viewCheckHooks;b!==null&&qp(i,b);}else{let b=t.viewHooks;b!==null&&Wp(i,b,2),V_(i,2);}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Up]){for(let b of i[Up])b();i[Up]=null;}o||(i[ze]&=-73);}catch(p){throw o||pu(i),p;}finally{c!==null&&(Vd(c,l),s&&FV(c)),Dv();}}function sM(t,i){for(let e=gk(t);e!==null;e=_k(e))for(let n=xi;n<e.length;n++){let r=e[n];lM(r,i);}}function $V(t){for(let i=gk(t);i!==null;i=_k(i)){if(!(i[ze]&2))continue;let e=i[ac];for(let n=0;n<e.length;n++){let r=e[n];bv(r);}}}function HV(t,i,e){let n=Do(i,t);lM(n,e);}function lM(t,i){_v(t)&&kb(t,i);}function kb(t,i){let n=t[Qe],r=t[ze],o=t[er],a=!!(i===0&&r&16);if(a||=!!(r&64&&i===0),a||=!!(r&1024),a||=!!(o?.dirty&&zd(o)),a||=!1,o&&(o.dirty=!1),t[ze]&=-9217,a)jV(n,t,n.template,t[ii]);else if(r&8192){oM(t),sM(t,1);let s=n.components;s!==null&&cM(t,s,1);}}function cM(t,i,e){for(let n=0;n<i.length;n++)HV(t,i[n],e);}function UV(t,i){let e=t.hostBindingOpCodes;if(e!==null)try{for(let n=0;n<e.length;n++){let r=e[n];if(r<0)Zs(~r);else{let o=r,a=e[++n],s=e[++n];C4(a,o);let l=i[o];yr(24,l),s(2,l),yr(25,l);}}}finally{Zs(-1);}}function Qv(t,i){let e=BI()?64:1088;for(t[ga].changeDetectionScheduler?.notify(i);t;){t[ze]|=e;let n=Ys(t);if(nh(t)&&!n)return t;t=n;}return null;}function dM(t,i,e,n){return[t,!0,0,i,null,n,null,e,null,null];}function uM(t,i){let e=xi+i;if(e<t.length)return t[e];}function bu(t,i,e,n=!0){let r=i[Qe];if(qV(r,i,t,e),n){let a=Ib(e,t),s=i[Wt],l=s.parentNode(t[Qs]);l!==null&&wV(r,t[Wi],s,i,l,a);}let o=i[oc];o!==null&&o.firstChild!==null&&(o.firstChild=null);}function mM(t,i){let e=ou(t,i);return e!==void 0&&jh(e[Qe],e),e;}function ou(t,i){if(t.length<=xi)return;let e=xi+i,n=t[e];if(n){let r=n[Ws];r!==null&&r!==t&&Wv(r,n),i>0&&(t[e-1][Gr]=n[Gr]);let o=Xp(t,xi+i);xV(n[Qe],n);let a=o[_a];a!==null&&a.detachView(o[Qe]),n[wi]=null,n[Gr]=null,n[ze]&=-129;}return n;}function qV(t,i,e,n){let r=xi+n,o=e.length;n>0&&(e[r-1][Gr]=i),n<o-xi?(i[Gr]=e[r],gI(e,xi+n,i)):(e.push(i),i[Gr]=null),i[wi]=e;let a=i[Ws];a!==null&&e!==a&&pM(a,i);let s=i[_a];s!==null&&s.insertView(t),rb(i),i[ze]|=128;}function pM(t,i){let e=t[ac],n=i[wi];if(Ja(n))t[ze]|=2;else{let r=n[wi][tr];i[tr]!==r&&(t[ze]|=2);}e===null?t[ac]=[i]:e.push(i);}var Js=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let i=this._lView,e=i[Qe];return uh(e,i,e.firstChild,[]);}constructor(i,e,n=!0){this._lView=i,this._cdRefInjectingView=e,this.notifyErrorHandler=n;}get context(){return this._lView[ii];}get dirty(){return!!(this._lView[ze]&9280)||!!this._lView[er]?.dirty;}set context(i){this._lView[ii]=i;}get destroyed(){return mu(this._lView);}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let i=this._lView[wi];if(ya(i)){let e=i[th],n=e?e.indexOf(this):-1;n>-1&&(ou(i,n),Xp(e,n));}this._attachedToViewContainer=!1;}jh(this._lView[Qe],this._lView);}onDestroy(i){FI(this._lView,i);}markForCheck(){Qv(this._cdRefInjectingView||this._lView,4);}markForRefresh(){bv(this._cdRefInjectingView||this._lView);}detach(){this._lView[ze]&=-129;}reattach(){rb(this._lView),this._lView[ze]|=128;}detectChanges(){this._lView[ze]|=1024,aM(this._lView,this.notifyErrorHandler);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new X(902,!1);this._attachedToViewContainer=!0;}detachFromAppRef(){this._appRef=null;let i=nh(this._lView),e=this._lView[Ws];e!==null&&!i&&Wv(e,this._lView),Xk(this._lView[Qe],this._lView);}attachToAppRef(i){if(this._attachedToViewContainer)throw new X(902,!1);this._appRef=i;let e=nh(this._lView),n=this._lView[Ws];n!==null&&!e&&pM(n,this._lView),rb(this._lView);}},ot=(()=>{class t{static __NG_ELEMENT_ID__=QV;}return t;})(),WV=ot,GV=class extends WV{_declarationLView;_declarationTContainer;elementRef;constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null;}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e);}createEmbeddedViewImpl(i,e,n){let r=_u(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new Js(r);}};function QV(){return Uh(ai(),De());}function Uh(t,i){return t.type&4?new GV(i,t,hc(t,i)):null;}function vu(t,i,e,n,r){let o=t.data[i];if(o===null)o=YV(t,i,e,n,r),w4()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=n,o.attrs=r;let a=v4();o.injectorIndex=a===null?-1:a.injectorIndex;}return il(o,!0),o;}function YV(t,i,e,n,r){let o=zI(),a=vv(),s=a?o:o&&o.parent,l=t.data[i]=KV(t,s,e,i,n,r);return ZV(t,l,o,a),l;}function ZV(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e));}function KV(t,i,e,n,r,o){let a=i?i.injectorIndex:-1,s=0;return VI()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};}var qde=new RegExp(`^(\\d+)*(${c6}|${l6})*(.*)`);var XV=()=>null;function cc(t,i){return XV(t,i);}var Mb=class{},mh=class{},Sb=class{resolveComponentFactory(i){throw Error(`No component factory found for ${Oi(i)}.`);}},dc=class{static NULL=new Sb();},Hi=class{},wt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>JV();}return t;})();function JV(){let t=De(),i=ai(),e=Do(i.index,t);return(Ja(e)?e:t)[Wt];}var e5=(()=>{class t{static ɵprov=O({token:t,providedIn:"root",factory:()=>null});}return t;})();function Tb(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,o=0;if(i!==null)for(let a=0;a<i.length;a++){let s=i[a];if(typeof s=="number")o=s;else if(o==1)r=Z_(r,s);else if(o==2){let l=s,c=i[++a];n=Z_(n,l+": "+c+";");}}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=r:t.classesWithoutHost=r;}function w(t,i=rt.Default){let e=De();if(e===null)return J(t,i);let n=ai();return nk(n,e,ni(t),i);}function qh(){let t="invalid";throw new Error(t);}function Yv(t,i,e,n,r){let o=n===null?null:{"":-1},a=r(t,e);if(a!==null){let[s,l]=n5(t,e,a);r5(t,i,e,s,o,l);}o!==null&&n!==null&&t5(e,n,o);}function t5(t,i,e){let n=t.localNames=[];for(let r=0;r<i.length;r+=2){let o=e[i[r+1]];if(o==null)throw new X(-301,!1);n.push(i[r],o);}}function n5(t,i,e){let n=[],r=null;for(let o of e)o.findHostDirectiveDefs!==null&&(r??=new Map(),o.findHostDirectiveDefs(o,n,r)),wo(o)&&(n.push(o),i5(t,i,n.length-1));return nl(i)?n.push(...e.slice(1)):n.push(...e),[n,r];}function i5(t,i,e){i.componentOffset=e,(t.components??=[]).push(i.index);}function r5(t,i,e,n,r,o){for(let c=0;c<n.length;c++)cb(sh(e,i),t,n[c].type);u5(e,t.data.length,n.length);for(let c=0;c<n.length;c++){let p=n[c];p.providersResolver&&p.providersResolver(p);}let a=!1,s=!1,l=qk(t,i,n.length,null);for(let c=0;c<n.length;c++){let p=n[c];e.mergedAttrs=sc(e.mergedAttrs,p.hostAttrs),s5(t,e,i,l,p),d5(l,p,r),p.contentQueries!==null&&(e.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(e.flags|=64);let g=p.type.prototype;!a&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),a=!0),!s&&(g.ngOnChanges||g.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),s=!0),l++;}o5(t,e,o);}function o5(t,i,e){let n=i.directiveStart,r=i.directiveEnd,o=t.data,a=i.attrs,s=[],l=null,c=null;for(let p=n;p<r;p++){let g=o[p],_=e?e.get(g):null,b=_?_.inputs:null,v=_?_.outputs:null;l=BE(0,g.inputs,p,l,b),c=BE(1,g.outputs,p,c,v);let I=l!==null&&a!==null&&!Fv(i)?a5(l,p,a):null;s.push(I);}l!==null&&(l.hasOwnProperty("class")&&(i.flags|=8),l.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=s,i.inputs=l,i.outputs=c;}function BE(t,i,e,n,r){for(let o in i){if(!i.hasOwnProperty(o))continue;let a=i[o];if(a===void 0)continue;n??={};let s=o;if(r!==null){if(!r.hasOwnProperty(o))continue;s=r[o];}t===0?jE(n,e,s,o):jE(n,e,s,a);}return n;}function jE(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n];}function a5(t,i,e){let n=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue;}else if(o===5){r+=2;continue;}if(typeof o=="number")break;if(t.hasOwnProperty(o)){let a=t[o];for(let s=0;s<a.length;s+=2)if(a[s]===i){n??=[],n.push(a[s+1],e[r+1]);break;}}r+=2;}return n;}function s5(t,i,e,n,r){t.data[n]=r;let o=r.factory||(r.factory=qs(r.type,!0)),a=new Ks(o,wo(r),w);t.blueprint[n]=a,e[n]=a,l5(t,i,n,qk(t,e,r.hostVars,li),r);}function l5(t,i,e,n,r){let o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;a===null&&(a=t.hostBindingOpCodes=[]);let s=~i.index;c5(a)!=s&&a.push(s),a.push(e,n,o);}}function c5(t){let i=t.length;for(;i>0;){let e=t[--i];if(typeof e=="number"&&e<0)return e;}return 0;}function d5(t,i,e){if(e){if(i.exportAs)for(let n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;wo(i)&&(e[""]=t);}}function u5(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i;}function hM(t,i,e,n,r,o,a,s){let l=i.consts,c=es(l,a),p=vu(i,t,2,n,c);return o&&Yv(i,e,p,es(l,s),r),p.mergedAttrs=sc(p.mergedAttrs,p.attrs),p.attrs!==null&&Tb(p,p.attrs,!1),p.mergedAttrs!==null&&Tb(p,p.mergedAttrs,!0),i.queries!==null&&i.queries.elementStart(i,p),p;}function fM(t,i){Ev(t,i),hv(i)&&t.queries.elementEnd(i);}var ph=class extends dc{ngModule;constructor(i){super(),this.ngModule=i;}resolveComponentFactory(i){let e=fa(i);return new el(e,this.ngModule);}};function m5(t){return Object.keys(t).map(i=>{let[e,n,r]=t[i],o={propName:e,templateName:i,isSignal:(n&Bh.SignalBased)!==0};return r&&(o.transform=r),o;});}function p5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}));}function h5(t,i,e){let n=i instanceof Vn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new sb(e,n):e;}function f5(t){let i=t.get(Hi,null);if(i===null)throw new X(407,!1);let e=t.get(e5,null),n=t.get(Xs,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n};}function g5(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return jk(i,e,e==="svg"?RI:e==="math"?s4:null);}var el=class extends mh{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return m5(this.componentDef.inputs);}get outputs(){return p5(this.componentDef.outputs);}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=Y6(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e;}create(i,e,n,r){let o=lt(null);try{let a=this.componentDef,s=n?["ng-version","19.1.7"]:Z6(this.componentDef.selectors[0]),l=Nv(0,null,null,1,0,null,null,null,null,[s],null),c=h5(a,r||this.ngModule,i),p=f5(c),g=p.rendererFactory.createRenderer(null,a),_=n?aV(g,n,a.encapsulation,c):g5(a,g),b=Lv(null,l,null,512|Uk(a),null,null,p,g,c,null,Dk(_,c,!0));b[zn]=_,Cv(b);let v=null;try{let I=hM(zn,l,b,"#host",()=>[this.componentDef],!0,0);_&&(Hk(g,_,I),sl(_,b)),Yk(l,b,I),Rv(l,I,b),fM(l,I),e!==void 0&&_5(I,this.ngContentSelectors,e),v=Do(I.index,b),b[ii]=v[ii],Hv(l,b,null);}catch(I){throw v!==null&&hb(v),hb(b),I;}finally{Dv();}return new Ab(this.componentType,b);}finally{lt(o);}}},Ab=class extends Mb{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=fv(e[Qe],zn),this.location=hc(this._tNode,e),this.instance=Do(this._tNode.index,e)[ii],this.hostView=this.changeDetectorRef=new Js(e,void 0,!1),this.componentType=i;}setInput(i,e){let n=this._tNode.inputs,r;if(n!==null&&(r=n[i])){if(this.previousInputValues??=new Map(),this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView;$v(o[Qe],o,r,i,e),this.previousInputValues.set(i,e);let a=Do(this._tNode.index,o);Qv(a,1);}}get injector(){return new Us(this._tNode,this._rootLView);}destroy(){this.hostView.destroy();}onDestroy(i){this.hostView.onDestroy(i);}};function _5(t,i,e){let n=t.projection=[];for(let r=0;r<i.length;r++){let o=e[r];n.push(o!=null&&o.length?Array.from(o):null);}}var Ct=(()=>{class t{static __NG_ELEMENT_ID__=b5;}return t;})();function b5(){let t=ai();return _M(t,De());}var v5=Ct,gM=class extends v5{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n;}get element(){return hc(this._hostTNode,this._hostLView);}get injector(){return new Us(this._hostTNode,this._hostLView);}get parentInjector(){let i=Iv(this._hostTNode,this._hostLView);if(ZI(i)){let e=oh(i,this._hostLView),n=rh(i),r=e[Qe].data[n+8];return new Us(r,e);}else return new Us(null,this._hostLView);}clear(){for(;this.length>0;)this.remove(this.length-1);}get(i){let e=$E(this._lContainer);return e!==null&&e[i]||null;}get length(){return this._lContainer.length-xi;}createEmbeddedView(i,e,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let a=cc(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,lc(this._hostTNode,a)),s;}createComponent(i,e,n,r,o){let a=i&&!i4(i),s;if(a)s=e;else{let v=e||{};s=v.index,n=v.injector,r=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef;}let l=a?i:new el(fa(i)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let I=(a?c:this.parentInjector).get(Vn,null);I&&(o=I);}let p=fa(l.componentType??{}),g=cc(this._lContainer,p?.id??null),_=g?.firstChild??null,b=l.create(c,r,_,o);return this.insertImpl(b.hostView,s,lc(this._hostTNode,g)),b;}insert(i,e){return this.insertImpl(i,e,!0);}insertImpl(i,e,n){let r=i._lView;if(d4(r)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=r[wi],c=new gM(l,l[Wi],l[wi]);c.detach(c.indexOf(i));}}let o=this._adjustIndex(e),a=this._lContainer;return bu(a,r,o,n),i.attachToViewContainerRef(),gI($_(a),o,i),i;}move(i,e){return this.insert(i,e);}indexOf(i){let e=$E(this._lContainer);return e!==null?e.indexOf(i):-1;}remove(i){let e=this._adjustIndex(i,-1),n=ou(this._lContainer,e);n&&(Xp($_(this._lContainer),e),jh(n[Qe],n));}detach(i){let e=this._adjustIndex(i,-1),n=ou(this._lContainer,e);return n&&Xp($_(this._lContainer),e)!=null?new Js(n):null;}_adjustIndex(i,e=0){return i??this.length+e;}};function $E(t){return t[th];}function $_(t){return t[th]||(t[th]=[]);}function _M(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=dM(n,i,null,t),i[t.index]=e,Vv(i,e)),x5(e,i,t,n),new gM(e,t,i);}function y5(t,i){let e=t[Wt],n=e.createComment(""),r=Zr(i,t),o=e.parentNode(r);return dh(e,o,n,e.nextSibling(r),!1),n;}var x5=D5,w5=()=>!1;function C5(t,i,e){return w5(t,i,e);}function D5(t,i,e,n){if(t[Qs])return;let r;e.type&8?r=Co(n):r=y5(i,e),t[Qs]=r;}var Rb=class t{queryList;matches=null;constructor(i){this.queryList=i;}clone(){return new t(this.queryList);}setDirty(){this.queryList.setDirty();}},Ob=class t{queries;constructor(i=[]){this.queries=i;}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let o=0;o<n;o++){let a=e.getByIndex(o),s=this.queries[a.indexInDeclarationView];r.push(s.clone());}return new t(r);}return null;}insertView(i){this.dirtyQueriesWithMatches(i);}detachView(i){this.dirtyQueriesWithMatches(i);}finishViewCreation(i){this.dirtyQueriesWithMatches(i);}dirtyQueriesWithMatches(i){for(let e=0;e<this.queries.length;e++)Kv(i,e).matches!==null&&this.queries[e].setDirty();}},hh=class{flags;read;predicate;constructor(i,e,n=null){this.flags=e,this.read=n,typeof i=="string"?this.predicate=S5(i):this.predicate=i;}},Pb=class t{queries;constructor(i=[]){this.queries=i;}elementStart(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e);}elementEnd(i){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i);}embeddedTView(i){let e=null;for(let n=0;n<this.length;n++){let r=e!==null?e.length:0,o=this.getByIndex(n).embeddedTView(i,r);o&&(o.indexInDeclarationView=n,e!==null?e.push(o):e=[o]);}return e!==null?new t(e):null;}template(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(i,e);}getByIndex(i){return this.queries[i];}get length(){return this.queries.length;}track(i){this.queries.push(i);}},Fb=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(i,e=-1){this.metadata=i,this._declarationNodeIndex=e;}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e);}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1);}template(i,e){this.elementStart(i,e);}embeddedTView(i,e){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new t(this.metadata)):null;}isApplyingToNode(i){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,n=i.parent;for(;n!==null&&n.type&8&&n.index!==e;)n=n.parent;return e===(n!==null?n.index:-1);}return this._appliesToNextNode;}matchTNode(i,e){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(i,e,E5(e,o)),this.matchTNodeWithReadOption(i,e,Gp(e,i,o,!1,!1));}else n===ot?e.type&4&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,Gp(e,i,n,!1,!1));}matchTNodeWithReadOption(i,e,n){if(n!==null){let r=this.metadata.read;if(r!==null){if(r===ee||r===Ct||r===ot&&e.type&4)this.addMatch(e.index,-2);else{let o=Gp(e,i,r,!1,!1);o!==null&&this.addMatch(e.index,o);}}else this.addMatch(e.index,n);}}addMatch(i,e){this.matches===null?this.matches=[i,e]:this.matches.push(i,e);}};function E5(t,i){let e=t.localNames;if(e!==null){for(let n=0;n<e.length;n+=2)if(e[n]===i)return e[n+1];}return null;}function I5(t,i){return t.type&11?hc(t,i):t.type&4?Uh(t,i):null;}function k5(t,i,e,n){return e===-1?I5(i,t):e===-2?M5(t,i,n):iu(t,t[Qe],e,i);}function M5(t,i,e){if(e===ee)return hc(i,t);if(e===ot)return Uh(i,t);if(e===Ct)return _M(i,t);}function bM(t,i,e,n){let r=i[_a].queries[n];if(r.matches===null){let o=t.data,a=e.matches,s=[];for(let l=0;a!==null&&l<a.length;l+=2){let c=a[l];if(c<0)s.push(null);else{let p=o[c];s.push(k5(i,p,a[l+1],e.metadata.read));}}r.matches=s;}return r.matches;}function Nb(t,i,e,n){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let a=bM(t,i,r,e);for(let s=0;s<o.length;s+=2){let l=o[s];if(l>0)n.push(a[s/2]);else{let c=o[s+1],p=i[-l];for(let g=xi;g<p.length;g++){let _=p[g];_[Ws]===_[wi]&&Nb(_[Qe],_,c,n);}if(p[ac]!==null){let g=p[ac];for(let _=0;_<g.length;_++){let b=g[_];Nb(b[Qe],b,c,n);}}}}}return n;}function Zv(t,i){return t[_a].queries[i].queryList;}function vM(t,i,e){let n=new oi((e&4)===4);return p4(t,i,n,n.destroy),(i[_a]??=new Ob()).queries.push(new Rb(n))-1;}function yM(t,i,e){let n=zt();return n.firstCreatePass&&(wM(n,new hh(t,i,e),-1),(i&2)===2&&(n.staticViewQueries=!0)),vM(n,De(),i);}function xM(t,i,e,n){let r=zt();if(r.firstCreatePass){let o=ai();wM(r,new hh(i,e,n),o.index),T5(r,t),(e&2)===2&&(r.staticContentQueries=!0);}return vM(r,De(),e);}function S5(t){return t.split(",").map(i=>i.trim());}function wM(t,i,e){t.queries===null&&(t.queries=new Pb()),t.queries.track(new Fb(i,e));}function T5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i);}function Kv(t,i){return t.queries.getByIndex(i);}function CM(t,i){let e=t[Qe],n=Kv(e,i);return n.crossesNgTemplate?Nb(e,t,i,[]):bM(e,t,n,i);}function DM(t,i,e){let n,r=x_(()=>{n._dirtyCounter();let o=A5(n,t);if(i&&o===void 0)throw new X(-951,!1);return o;});return n=r[vi],n._dirtyCounter=Ci(0),n._flatValue=void 0,r;}function EM(t){return DM(!0,!1,t);}function IM(t){return DM(!0,!0,t);}function kM(t,i){let e=t[vi];e._lView=De(),e._queryIndex=i,e._queryList=Zv(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1));}function A5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[ze]&4)return i?void 0:Ri;let r=Zv(e,n),o=CM(e,n);return r.reset(o,uk),i?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue;}function HE(t,i){return EM(i);}function R5(t,i){return IM(i);}var Xv=(HE.required=R5,HE);function UE(t,i){return EM(i);}function O5(t,i){return IM(i);}var MM=(UE.required=O5,UE);var Qr=class{},au=class{};var Lb=class extends Qr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ph(this);constructor(i,e,n,r=!0){super(),this.ngModuleType=i,this._parent=e;let o=vI(i);this._bootstrapComponents=Vk(o.bootstrap),this._r3Injector=ok(i,e,[{provide:Qr,useValue:this},{provide:dc,useValue:this.componentFactoryResolver},...n],Oi(i),new Set(["environment"])),r&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector;}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null;}onDestroy(i){this.destroyCbs.push(i);}},Vb=class extends au{moduleType;constructor(i){super(),this.moduleType=i;}create(i){return new Lb(this.moduleType,i,[]);}};var fh=class extends Qr{injector;componentFactoryResolver=new ph(this);instance=null;constructor(i){super();let e=new eu([...i.providers,{provide:Qr,useValue:this},{provide:dc,useValue:this.componentFactoryResolver}],i.parent||kh(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(i){this.injector.onDestroy(i);}};function Wh(t,i,e=null){return new fh({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector;}var P5=(()=>{class t{_injector;cachedInjectors=new Map();constructor(e){this._injector=e;}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=wI(!1,e.type),r=n.length>0?Wh([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r);}return this.cachedInjectors.get(e);}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy();}finally{this.cachedInjectors.clear();}}static ɵprov=O({token:t,providedIn:"environment",factory:()=>new t(J(Vn))});}return t;})();function E(t){return lu(()=>{let i=SM(t),e=Ne(j({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===hk.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?r=>r.get(P5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Eo.Emulated,styles:t.styles||Ri,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&nr("NgStandalone"),TM(e);let n=t.dependencies;return e.directiveDefs=qE(n,!1),e.pipeDefs=qE(n,!0),e.id=z5(e),e;});}function F5(t){return fa(t)||dv(t);}function N5(t){return t!==null;}function re(t){return lu(()=>({type:t.type,bootstrap:t.bootstrap||Ri,declarations:t.declarations||Ri,imports:t.imports||Ri,exports:t.exports||Ri,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}));}function L5(t,i){if(t==null)return xo;let e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=Bh.None,l=null),e[o]=[n,s,l],i[o]=a;}return e;}function V5(t){if(t==null)return xo;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i;}function L(t){return lu(()=>{let i=SM(t);return TM(i),i;});}function Jv(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null};}function SM(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||xo,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ri,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:L5(t.inputs,i),outputs:V5(t.outputs),debugInfo:null};}function TM(t){t.features?.forEach(i=>i(t));}function qE(t,i){if(!t)return null;let e=i?yI:F5;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(N5);}function z5(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of n.join("|"))i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i;}function B5(t){return Object.getPrototypeOf(t.prototype).constructor;}function q(t){let i=B5(t.type),e=!0,n=[t];for(;i;){let r;if(wo(t))r=i.ɵcmp||i.ɵdir;else{if(i.ɵcmp)throw new X(903,!1);r=i.ɵdir;}if(r){if(e){n.push(r);let a=t;a.inputs=H_(t.inputs),a.declaredInputs=H_(t.declaredInputs),a.outputs=H_(t.outputs);let s=r.hostBindings;s&&q5(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&H5(t,l),c&&U5(t,c),j5(t,r),CL(t.outputs,r.outputs),wo(r)&&r.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(r.data.animation);}}let o=r.features;if(o)for(let a=0;a<o.length;a++){let s=o[a];s&&s.ngInherit&&s(t),s===q&&(e=!1);}}i=Object.getPrototypeOf(i);}$5(n);}function j5(t,i){for(let e in i.inputs){if(!i.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let n=i.inputs[e];n!==void 0&&(t.inputs[e]=n,t.declaredInputs[e]=i.declaredInputs[e]);}}function $5(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=sc(r.hostAttrs,e=sc(e,r.hostAttrs));}}function H_(t){return t===xo?{}:t===Ri?[]:t;}function H5(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r);}:t.viewQuery=i;}function U5(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,o)=>{i(n,r,o),e(n,r,o);}:t.contentQueries=i;}function q5(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r);}:t.hostBindings=i;}function AM(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=RM,e.hostDirectives=n?t.map(zb):[t]):n?e.hostDirectives.unshift(...t.map(zb)):e.hostDirectives.unshift(t);};return i.ngInherit=!0,i;}function RM(t,i,e){if(t.hostDirectives!==null)for(let n of t.hostDirectives)if(typeof n=="function"){let r=n();for(let o of r)WE(zb(o),i,e);}else WE(n,i,e);}function WE(t,i,e){let n=dv(t.directive);W5(n.declaredInputs,t.inputs),RM(n,i,e),e.set(n,t),i.push(n);}function zb(t){return typeof t=="function"?{directive:ni(t),inputs:xo,outputs:xo}:{directive:ni(t.directive),inputs:GE(t.inputs),outputs:GE(t.outputs)};}function GE(t){if(t===void 0||t.length===0)return xo;let i={};for(let e=0;e<t.length;e+=2)i[t[e]]=t[e+1];return i;}function W5(t,i){for(let e in i)if(i.hasOwnProperty(e)){let n=i[e],r=t[e];t[n]=r;}}function OM(t){return ey(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1;}function G5(t,i){if(Array.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{let e=t[Symbol.iterator](),n;for(;!(n=e.next()).done;)i(n.value);}}function ey(t){return t!==null&&(typeof t=="function"||typeof t=="object");}function Gh(t,i,e){return t[i]=e;}function Q5(t,i){return t[i];}function Ui(t,i,e){let n=t[i];return Object.is(n,e)?!1:(t[i]=e,!0);}function ty(t,i,e,n){let r=Ui(t,i,e);return Ui(t,i+1,n)||r;}function PM(t,i,e,n,r){let o=ty(t,i,e,n);return Ui(t,i+2,r)||o;}function Y5(t,i,e,n,r,o,a,s,l){let c=i.consts,p=vu(i,t,4,a||null,s||null);Rh()&&Yv(i,e,p,es(c,l),jv),p.mergedAttrs=sc(p.mergedAttrs,p.attrs),Ev(i,p);let g=p.tView=Nv(2,p,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return i.queries!==null&&(i.queries.temp��late(i,p),g.queries=i.queries.embeddedTView(p)),p;}function gh(t,i,e,n,r,o,a,s,l,c){let p=e+zn,g=i.firstCreatePass?Y5(p,i,t,n,r,o,a,s,l):i.data[p];il(g,!1);let _=Z5(i,t,g,e);Fh()&&$h(i,t,_,g),sl(_,t);let b=dM(_,t,_,g);return t[p]=b,Vv(t,b),C5(b,g,t),Th(g)&&zv(i,t,g),l!=null&&Bv(t,g,c),g;}function T(t,i,e,n,r,o,a,s){let l=De(),c=zt(),p=es(c.consts,o);return gh(l,c,t,i,e,n,r,p,a,s),T;}var Z5=K5;function K5(t,i,e,n){return Nh(!0),i[Wt].createComment("");}var ny=(()=>{class t{log(e){console.log(e);}warn(e){console.warn(e);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"platform"});}return t;})();var iy=new R(""),yu=new R(""),Qh=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(e,n,r){this._ngZone=e,this.registry=n,ry||(X5(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone");});}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1;}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady();});}});});}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks;}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb();}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0);}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[];}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e();},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r});}whenStable(e,n,r){if(r&&!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(e,n,r),this._runCallbacksIfReady();}registerApplication(e){this.registry.registerApplication(e,this);}unregisterApplication(e){this.registry.unregisterApplication(e);}findProviders(e,n,r){return[];}static ɵfac=function(n){return new(n||t)(J(le),J(Yh),J(yu));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),Yh=(()=>{class t{_applications=new Map();registerApplication(e,n){this._applications.set(e,n);}unregisterApplication(e){this._applications.delete(e);}unregisterAllApplications(){this._applications.clear();}getTestability(e){return this._applications.get(e)||null;}getAllTestabilities(){return Array.from(this._applications.values());}getAllRootElements(){return Array.from(this._applications.keys());}findTestabilityInTree(e,n=!0){return ry?.findTestabilityInTree(this,e,n)??null;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"platform"});}return t;})();function X5(t){ry=t;}var ry;function rs(t){return!!t&&typeof t.then=="function";}function oy(t){return!!t&&typeof t.subscribe=="function";}var Zh=new R("");var FM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n;});appInits=h(Zh,{optional:!0})??[];injector=h(Oe);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=qi(this.injector,r);if(rs(o))e.push(o);else if(oy(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l});});e.push(a);}}let n=()=>{this.done=!0,this.resolve();};Promise.all(e).then(()=>{n();}).catch(r=>{this.reject(r);}),e.length===0&&n(),this.initialized=!0;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),NM=(()=>{class t{static ɵprov=O({token:t,providedIn:"root",factory:()=>new _h()});}return t;})(),_h=class{queuedEffectCount=0;queues=new Map();schedule(i){this.enqueue(i);}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),this.queuedEffectCount--);}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set());let n=this.queues.get(e);n.has(i)||(this.queuedEffectCount++,n.add(i));}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e));}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run();}},xu=new R("");function J5(){zD(()=>{throw new X(600,!1);});}function e8(t){return t.isBoundToModule;}var t8=10;var Pi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=h(J4);afterRenderManager=h(wk);zonelessEnabled=h(kv);rootEffectScheduler=h(NM);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set();afterTick=new U();get allViews(){return[...this.externalTestViews.keys(),...this._views];}get destroyed(){return this._destroyed;}componentTypes=[];components=[];isStable=h(So).hasPendingTasks.pipe(me(e=>!e));constructor(){h(gc,{optional:!0});}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n();}});}).finally(()=>{e.unsubscribe();});}_injector=h(Vn);_rendererFactory=null;get injector(){return this._injector;}bootstrap(e,n){let r=e instanceof mh;if(!this._injector.get(FM).done){let _=!r&&xI(e),b=!1;throw new X(405,b);}let a;r?a=e:a=this._injector.get(dc).resolveComponentFactory(e),this.componentTypes.push(a.componentType);let s=e8(a)?void 0:this._injector.get(Qr),l=n||a.selector,c=a.create(Oe.NULL,[],l,s),p=c.location.nativeElement,g=c.injector.get(iy,null);return g?.registerApplication(p),c.onDestroy(()=>{this.detachView(c.hostView),Qp(this.components,c),g?.unregisterApplication(p);}),this._loadComponent(c),c;}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick=()=>{if(this.tracingSnapshot!==null){let n=this.tracingSnapshot;this.tracingSnapshot=null,n.run(Av.CHANGE_DETECTION,this._tick),n.dispose();return;}if(this._runningTick)throw new X(101,!1);let e=lt(null);try{this._runningTick=!0,this.synchronize();}catch(n){this.internalErrorHandler(n);}finally{this._runningTick=!1,lt(e),this.afterTick.next();}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Hi,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let e=0;for(;this.dirtyFlags!==0&&e++<t8;)this.synchronizeOnce();}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let e=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:n,notifyErrorHandler:r}of this.allViews)n8(n,r,e,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return;}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>Ah(e))){this.dirtyFlags|=2;return;}else this.dirtyFlags&=-8;}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this);}detachView(e){let n=e;Qp(this._views,n),n.detachFromAppRef();}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(xu,[]).forEach(r=>r(e));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy());}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[];}}onDestroy(e){return this._destroyListeners.push(e),()=>Qp(this._destroyListeners,e);}destroy(){if(this._destroyed)throw new X(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy();}get viewCount(){return this._views.length;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Qp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1);}function n8(t,i,e,n){if(!e&&!Ah(t))return;aM(t,i,e&&!n?0:1);}function oe(t,i,e,n){let r=De(),o=ns();if(Ui(r,o,i)){let a=zt(),s=rl();hV(s,r,t,i,e,n);}return oe;}function ay(t,i,e,n){return Ui(t,ns(),e)?i+yo(e)+n:li;}function sy(t,i,e,n,r,o){let a=jI(),s=ty(t,a,e,r);return Oh(2),s?i+yo(e)+n+yo(r)+o:li;}function i8(t,i,e,n,r,o,a,s){let l=jI(),c=PM(t,l,e,r,a);return Oh(3),c?i+yo(e)+n+yo(r)+o+yo(a)+s:li;}function $p(t,i){return t<<17|i<<2;}function tl(t){return t>>17&32767;}function r8(t){return(t&2)==2;}function o8(t,i){return t&131071|i<<17;}function Bb(t){return t|2;}function uc(t){return(t&131068)>>2;}function U_(t,i){return t&-131069|i<<2;}function a8(t){return(t&1)===1;}function jb(t){return t|1;}function s8(t,i,e,n,r,o){let a=o?i.classBindings:i.styleBindings,s=tl(a),l=uc(a);t[n]=e;let c=!1,p;if(Array.isArray(e)){let g=e;p=g[1],(p===null||du(g,p)>0)&&(c=!0);}else p=e;if(r){if(l!==0){let _=tl(t[s+1]);t[n+1]=$p(_,s),_!==0&&(t[_+1]=U_(t[_+1],n)),t[s+1]=o8(t[s+1],n);}else t[n+1]=$p(s,0),s!==0&&(t[s+1]=U_(t[s+1],n)),s=n;}else t[n+1]=$p(l,0),s===0?s=n:t[l+1]=U_(t[l+1],n),l=n;c&&(t[n+1]=Bb(t[n+1])),QE(t,p,n,!0),QE(t,p,n,!1),l8(i,p,t,n,o),a=$p(s,l),o?i.classBindings=a:i.styleBindings=a;}function l8(t,i,e,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof i=="string"&&du(o,i)>=0&&(e[n+1]=jb(e[n+1]));}function QE(t,i,e,n){let r=t[e+1],o=i===null,a=n?tl(r):uc(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];c8(l,i)&&(s=!0,t[a+1]=n?jb(c):Bb(c)),a=n?tl(c):uc(c);}s&&(t[e+1]=n?Bb(r):jb(r));}function c8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?du(t,i)>=0:!1;}var Wr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function d8(t){return t.substring(Wr.key,Wr.keyEnd);}function u8(t){return m8(t),LM(t,VM(t,0,Wr.textEnd));}function LM(t,i){let e=Wr.textEnd;return e===i?-1:(i=Wr.keyEnd=p8(t,Wr.key=i,e),VM(t,i,e));}function m8(t){Wr.key=0,Wr.keyEnd=0,Wr.value=0,Wr.valueEnd=0,Wr.textEnd=t.length;}function VM(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i;}function p8(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return i;}function y(t,i,e){let n=De(),r=ns();if(Ui(n,r,i)){let o=zt(),a=rl();vc(o,a,n,t,i,n[Wt],e,!1);}return y;}function $b(t,i,e,n,r){let o=i.inputs,a=r?"class":"style";$v(t,e,o[a],a,n);}function qn(t,i,e){return zM(t,i,e,!1),qn;}function ne(t,i){return zM(t,i,null,!0),ne;}function Dt(t){cy(v8,ly,t,!0);}function ly(t,i){for(let e=u8(i);e>=0;e=LM(i,e))cu(t,d8(i),!0);}function zM(t,i,e,n){let r=De(),o=zt(),a=Oh(2);if(o.firstUpdatePass&&jM(o,t,a,n),i!==li&&Ui(r,a,i)){let s=o.data[Mo()];$M(o,s,r,r[Wt],t,r[a+1]=x8(i,e),n,a);}}function cy(t,i,e,n){let r=zt(),o=Oh(2);r.firstUpdatePass&&jM(r,null,o,n);let a=De();if(e!==li&&Ui(a,o,e)){let s=r.data[Mo()];if(HM(s,n)&&!BM(r,o)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Z_(l,e||"")),$b(r,s,a,e,n);}else y8(r,s,a,a[Wt],a[o+1],a[o+1]=b8(t,i,e),n,o);}}function BM(t,i){return i>=t.expandoStartIndex;}function jM(t,i,e,n){let r=t.data;if(r[e+1]===null){let o=r[Mo()],a=BM(t,e);HM(o,n)&&i===null&&!a&&(i=!1),i=h8(r,o,i,n),s8(r,o,i,e,a,n);}}function h8(t,i,e,n){let r=xv(t),o=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=q_(null,t,i,e,n),e=su(e,i.attrs,n),o=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==r)if(e=q_(r,t,i,e,n),o===null){let l=f8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=q_(null,t,i,l[1],n),l=su(l,i.attrs,n),g8(t,i,n,l));}else o=_8(t,i,n);}return o!==void 0&&(n?i.residualClasses=o:i.residualStyles=o),e;}function f8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(uc(n)!==0)return t[tl(n)];}function g8(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[tl(r)]=n;}function _8(t,i,e){let n,r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o<r;o++){let a=t[o].hostAttrs;n=su(n,a,e);}return su(n,i.attrs,e);}function q_(t,i,e,n,r){let o=null,a=e.directiveEnd,s=e.directiveStylingLast;for(s===-1?s=e.directiveStart:s++;s<a&&(o=i[s],n=su(n,o.hostAttrs,r),o!==t);)s++;return t!==null&&(e.directiveStylingLast=s),n;}function su(t,i,e){let n=e?1:2,r=-1;if(i!==null)for(let o=0;o<i.length;o++){let a=i[o];typeof a=="number"?r=a:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),cu(t,a,e?!0:i[++o]));}return t===void 0?null:t;}function b8(t,i,e){if(e==null||e==="")return Ri;let n=[],r=xr(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&i(n,r);return n;}function v8(t,i,e){let n=String(i);n!==""&&!n.includes(" ")&&cu(t,n,e);}function y8(t,i,e,n,r,o,a,s){r===li&&(r=Ri);let l=0,c=0,p=0<r.length?r[0]:null,g=0<o.length?o[0]:null;for(;p!==null||g!==null;){let _=l<r.length?r[l+1]:void 0,b=c<o.length?o[c+1]:void 0,v=null,I;p===g?(l+=2,c+=2,_!==b&&(v=g,I=b)):g===null||p!==null&&p<g?(l+=2,v=p):(c+=2,v=g,I=b),v!==null&&$M(t,i,e,n,v,I,a,s),p=l<r.length?r[l]:null,g=c<o.length?o[c]:null;}}function $M(t,i,e,n,r,o,a,s){if(!(i.type&3))return;let l=t.data,c=l[s+1],p=a8(c)?YE(l,i,e,r,uc(c),a):void 0;if(!bh(p)){bh(o)||r8(c)&&(o=YE(l,null,e,r,s,a));let g=OI(Mo(),e);AV(n,a,g,r,o);}}function YE(t,i,e,n,r,o){let a=i===null,s;for(;r>0;){let l=t[r],c=Array.isArray(l),p=c?l[1]:l,g=p===null,_=e[r+1];_===li&&(_=g?Ri:void 0);let b=g?N_(_,n):p===n?_:void 0;if(c&&!bh(b)&&(b=N_(l,n)),bh(b)&&(s=b,a))return s;let v=t[r+1];r=a?tl(v):uc(v);}if(i!==null){let l=o?i.residualClasses:i.residualStyles;l!=null&&(s=N_(l,n));}return s;}function bh(t){return t!==void 0;}function x8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Oi(xr(t)))),t;}function HM(t,i){return(t.flags&(i?8:16))!==0;}function Cr(t,i,e){let n=De(),r=ay(n,t,i,e);cy(cu,ly,r,!0);}function UM(t,i,e,n,r){let o=De(),a=sy(o,t,i,e,n,r);cy(cu,ly,a,!0);}var Hb=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),r=Math.max(i,e),o=this.detach(r);if(r-n>1){let a=this.detach(n);this.attach(n,o),this.attach(r,a);}else this.attach(n,o);}move(i,e){this.attach(e,this.detach(i));}};function W_(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0;}function w8(t,i,e){let n,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(i)){let l=i.length-1;for(;o<=a&&o<=l;){let c=t.at(o),p=i[o],g=W_(o,c,o,p,e);if(g!==0){g<0&&t.updateValue(o,p),o++;continue;}let _=t.at(a),b=i[l],v=W_(a,_,l,b,e);if(v!==0){v<0&&t.updateValue(a,b),a--,l--;continue;}let I=e(o,c),A=e(a,_),$=e(o,p);if(Object.is($,A)){let Z=e(l,b);Object.is(Z,I)?(t.swap(o,a),t.updateValue(a,b),l--,a--):t.move(a,o),t.updateValue(o,p),o++;continue;}if(n??=new vh(),r??=KE(t,o,a,e),Ub(t,n,o,$))t.updateValue(o,p),o++,a++;else if(r.has($))n.set(I,t.detach(o)),a--;else{let Z=t.create(o,i[o]);t.attach(o,Z),o++,a++;}}for(;o<=l;)ZE(t,n,e,o,i[o]),o++;}else if(i!=null){let l=i[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let p=t.at(o),g=c.value,_=W_(o,p,o,g,e);if(_!==0)_<0&&t.updateValue(o,g),o++,c=l.next();else{n??=new vh(),r??=KE(t,o,a,e);let b=e(o,g);if(Ub(t,n,o,b))t.updateValue(o,g),o++,a++,c=l.next();else if(!r.has(b))t.attach(o,t.create(o,g)),o++,a++,c=l.next();else{let v=e(o,p);n.set(v,t.detach(o)),a--;}}}for(;!c.done;)ZE(t,n,e,t.length,c.value),c=l.next();}for(;o<=a;)t.destroy(t.detach(a--));n?.forEach(l=>{t.destroy(l);});}function Ub(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1;}function ZE(t,i,e,n,r){if(Ub(t,i,n,e(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o);}}function KE(t,i,e,n){let r=new Set();for(let o=i;o<=e;o++)r.add(n(o,t.at(o)));return r;}var vh=class{kvMap=new Map();_vMap=void 0;has(i){return this.kvMap.has(i);}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0;}get(i){return this.kvMap.get(i);}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map());let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e);}else this.kvMap.set(i,e);}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),i(n,e);}}};function K(t,i){nr("NgControlFlow");let e=De(),n=ns(),r=e[n]!==li?e[n]:-1,o=r!==-1?yh(e,zn+r):void 0,a=0;if(Ui(e,n,t)){let s=lt(null);try{if(o!==void 0&&mM(o,a),t!==-1){let l=zn+t,c=yh(e,l),p=Qb(e[Qe],l),g=cc(c,p.tView.ssrId),_=_u(e,p,i,{dehydratedView:g});bu(c,_,a,lc(p,g));}}finally{lt(s);}}else if(o!==void 0){let s=uM(o,a);s!==void 0&&(s[ii]=i);}}var qb=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n;}get $count(){return this.lContainer.length-xi;}};function os(t){return t;}function Da(t,i){return i;}var Wb=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n;}};function ci(t,i,e,n,r,o,a,s,l,c,p,g,_){nr("NgControlFlow");let b=De(),v=zt(),I=l!==void 0,A=De(),$=s?a.bind(A[tr][ii]):a,Z=new Wb(I,$);A[zn+t]=Z,gh(b,v,t+1,i,e,n,r,es(v.consts,o)),I&&gh(b,v,t+2,l,c,p,g,es(v.consts,_));}var Gb=class extends Hb{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n;}get length(){return this.lContainer.length-xi;}at(i){return this.getLView(i)[ii].$implicit;}attach(i,e){let n=e[oc];this.needsIndexUpdate||=i!==this.length,bu(this.lContainer,e,i,lc(this.templateTNode,n));}detach(i){return this.needsIndexUpdate||=i!==this.length-1,C8(this.lContainer,i);}create(i,e){let n=cc(this.lContainer,this.templateTNode.tView.ssrId),r=_u(this.hostLView,this.templateTNode,new qb(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r;}destroy(i){jh(i[Qe],i),this.operationsCounter?.recordDestroy();}updateValue(i,e){this.getLView(i)[ii].$implicit=e;}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset();}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i<this.length;i++)this.getLView(i)[ii].$index=i;}getLView(i){return D8(this.lContainer,i);}};function di(t){let i=lt(null),e=Mo();try{let n=De(),r=n[Qe],o=n[e],a=e+1,s=yh(n,a);if(o.liveCollection===void 0){let c=Qb(r,a);o.liveCollection=new Gb(s,n,c);}else o.liveCollection.reset();let l=o.liveCollection;if(w8(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=ns(),p=l.length===0;if(Ui(n,c,p)){let g=e+2,_=yh(n,g);if(p){let b=Qb(r,g),v=cc(_,b.tView.ssrId),I=_u(n,b,void 0,{dehydratedView:v});bu(_,I,0,lc(b,v));}else mM(_,0);}}}finally{lt(i);}}function yh(t,i){return t[i];}function C8(t,i){return ou(t,i);}function D8(t,i){return uM(t,i);}function Qb(t,i){return fv(t,i);}function m(t,i,e,n){let r=De(),o=zt(),a=zn+t,s=r[Wt],l=o.firstCreatePass?hM(a,o,r,i,jv,Rh(),e,n):o.data[a],c=E8(o,r,l,s,i,t);r[a]=c;let p=Th(l);return il(l,!0),Hk(s,c,l),!qv(l)&&Fh()&&$h(o,r,c,l),h4()===0&&sl(c,r),f4(),p&&(zv(o,r,l),Rv(o,l,r)),n!==null&&Bv(r,l),m;}function u(){let t=ai();vv()?yv():(t=t.parent,il(t,!1));let i=t;_4(i)&&b4(),g4();let e=zt();return e.firstCreatePass&&fM(e,i),i.classesWithoutHost!=null&&R4(i)&&$b(e,i,De(),i.classesWithoutHost,!0),i.stylesWithoutHost!=null&&O4(i)&&$b(e,i,De(),i.stylesWithoutHost,!1),u;}function D(t,i,e,n){return m(t,i,e,n),u(),D;}var E8=(t,i,e,n,r,o)=>(Nh(!0),jk(n,r,M4()));function I8(t,i,e,n,r){let o=i.consts,a=es(o,n),s=vu(i,t,8,"ng-container",a);a!==null&&Tb(s,a,!0);let l=es(o,r);return Rh()&&Yv(i,e,s,l,jv),s.mergedAttrs=sc(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s;}function ye(t,i,e){let n=De(),r=zt(),o=t+zn,a=r.firstCreatePass?I8(o,r,n,i,e):r.data[o];il(a,!0);let s=k8(r,n,a,t);return n[o]=s,Fh()&&$h(r,n,s,a),sl(s,n),Th(a)&&(zv(r,n,a),Rv(r,a,n)),e!=null&&Bv(n,a),ye;}function xe(){let t=ai(),i=zt();return vv()?yv():(t=t.parent,il(t,!1)),i.firstCreatePass&&(Ev(i,t),hv(t)&&i.queries.elementEnd(t)),xe;}function Gt(t,i,e){return ye(t,i,e),xe(),Gt;}var k8=(t,i,e,n)=>(Nh(!0),J6(i[Wt],""));function W(){return De();}function Dn(t,i,e){let n=De(),r=ns();if(Ui(n,r,i)){let o=zt(),a=rl();vc(o,a,n,t,i,n[Wt],e,!0);}return Dn;}function dy(t,i,e){let n=De(),r=ns();if(Ui(n,r,i)){let o=zt(),a=rl(),s=xv(o.data),l=Zk(s,a,n);vc(o,a,n,t,i,l,e,!0);}return dy;}var Hs=void 0;function M8(t){let i=t,e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5;}var S8=["en",[["a","p"],["AM","PM"],Hs],[["AM","PM"],Hs,Hs],[["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"]],Hs,[["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"]],Hs,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hs,"{1} 'at' {0}",Hs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",M8],G_={};function Dr(t){let i=T8(t),e=XE(i);if(e)return e;let n=i.split("-")[0];if(e=XE(n),e)return e;if(n==="en")return S8;throw new X(701,!1);}function XE(t){return t in G_||(G_[t]=yi.ng&&yi.ng.common&&yi.ng.common.locales&&yi.ng.common.locales[t]),G_[t];}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t;}(En||{});function T8(t){return t.toLowerCase().replace(/_/g,"-");}var xh="en-US";var A8=xh;function R8(t){typeof t=="string"&&(A8=t.toLowerCase().replace(/_/g,"-"));}var O8=(t,i,e)=>{};function S(t,i,e,n){let r=De(),o=zt(),a=ai();return my(o,r,r[Wt],a,t,i,n),S;}function uy(t,i){let e=ai(),n=De(),r=zt(),o=xv(r.data),a=Zk(o,e,n);return my(r,n,a,e,t,i),uy;}function P8(t,i,e,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let a=r[o];if(a===e&&r[o+1]===n){let s=i[eh],l=r[o+2];return s.length>l?s[l]:null;}typeof a=="string"&&(o+=2);}return null;}function my(t,i,e,n,r,o,a){let s=Th(n),c=t.firstCreatePass&&LI(t),p=i[ii],g=NI(i),_=!0;if(n.type&3||a){let I=Zr(n,i),A=a?a(I):I,$=g.length,Z=a?ae=>a(Co(ae[n.index])):n.index,B=null;if(!a&&s&&(B=P8(t,i,r,n.index)),B!==null){let ae=B.__ngLastListenerFn__||B;ae.__ngNextListenerFn__=o,B.__ngLastListenerFn__=o,_=!1;}else{o=eI(n,i,p,o),O8(I,r,o);let ae=e.listen(A,r,o);g.push(o,ae),c&&c.push(r,Z,$,$+1);}}else o=eI(n,i,p,o);let b=n.outputs,v;if(_&&b!==null&&(v=b[r])){let I=v.length;if(I)for(let A=0;A<I;A+=2){let $=v[A],Z=v[A+1],_e=i[$][Z].subscribe(o),Ce=g.length;g.push(o,_e),c&&c.push(r,n.index,Ce,-(Ce+1));}}}function JE(t,i,e,n){let r=lt(null);try{return yr(6,i,e),e(n)!==!1;}catch(o){return Kk(t,o),!1;}finally{yr(7,i,e),lt(r);}}function eI(t,i,e,n){return function r(o){if(o===Function)return n;let a=nl(t)?Do(t.index,i):i;Qv(a,5);let s=JE(i,e,n,o),l=r.__ngNextListenerFn__;for(;l;)s=JE(i,e,l,o)&&s,l=l.__ngNextListenerFn__;return s;};}function x(t=1){return I4(t);}function F8(t,i){let e=null,n=U6(t);for(let r=0;r<i.length;r++){let o=i[r];if(o==="*"){e=r;continue;}if(n===null?Bk(t,o,!0):G6(n,o))return r;}return e;}function Pe(t){let i=De()[tr][Wi];if(!i.projection){let e=t?t.length:1,n=i.projection=UL(e,null),r=n.slice(),o=i.child;for(;o!==null;){if(o.type!==128){let a=t?F8(o,t):0;a!==null&&(r[a]?r[a].projectionNext=o:n[a]=o,r[a]=o);}o=o.next;}}}function ue(t,i=0,e,n,r,o){let a=De(),s=zt(),l=n?t+1:null;l!==null&&gh(a,s,l,n,r,o,null,e);let c=vu(s,zn+t,16,null,e||null);c.projection===null&&(c.projection=i),yv();let g=!a[oc]||VI();a[tr][Wi].projection[c.projection]===null&&l!==null?N8(a,s,l):g&&!qv(c)&&SV(s,a,c);}function N8(t,i,e){let n=zn+e,r=i.data[n],o=t[n],a=cc(o,r.tView.ssrId),s=_u(t,r,void 0,{dehydratedView:a});bu(o,s,0,lc(r,a));}function G(t,i,e){return Er(t,"",i,"",e),G;}function Er(t,i,e,n,r){let o=De(),a=ay(o,i,e,n);if(a!==li){let s=zt(),l=rl();vc(s,l,o,t,a,o[Wt],r,!1);}return Er;}function py(t,i,e,n,r,o,a){let s=De(),l=sy(s,i,e,n,r,o);if(l!==li){let c=zt(),p=rl();vc(c,p,s,t,l,s[Wt],a,!1);}return py;}function Fe(t,i,e,n){xM(t,i,e,n);}function Y(t,i,e){yM(t,i,e);}function F(t){let i=De(),e=zt(),n=wv();Ph(n+1);let r=Kv(e,n);if(t.dirty&&c4(i)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=CM(i,n);t.reset(o,uk),t.notifyOnChanges();}return!0;}return!1;}function N(){return Zv(De(),wv());}function qM(t,i,e,n,r){kM(i,xM(t,e,n,r));}function hy(t,i,e,n){kM(t,yM(i,e,n));}function Kh(t=1){Ph(wv()+t);}function L8(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n;}function Ke(t){let i=y4();return gv(i,zn+t);}function f(t,i=""){let e=De(),n=zt(),r=t+zn,o=n.firstCreatePass?vu(n,r,1,i,null):n.data[r],a=V8(n,e,o,i,t);e[r]=a,Fh()&&$h(n,e,a,o),il(o,!1);}var V8=(t,i,e,n,r)=>(Nh(!0),K6(i[Wt],n));function C(t){return P("",t,""),C;}function P(t,i,e){let n=De(),r=ay(n,t,i,e);return r!==li&&fy(n,Mo(),r),P;}function ll(t,i,e,n,r){let o=De(),a=sy(o,t,i,e,n,r);return a!==li&&fy(o,Mo(),a),ll;}function wu(t,i,e,n,r,o,a){let s=De(),l=i8(s,t,i,e,n,r,o,a);return l!==li&&fy(s,Mo(),l),wu;}function fy(t,i,e){let n=OI(i,t);X6(t[Wt],n,e);}function An(t,i,e){mk(i)&&(i=i());let n=De(),r=ns();if(Ui(n,r,i)){let o=zt(),a=rl();vc(o,a,n,t,i,n[Wt],e,!1);}return An;}function jn(t,i){let e=mk(t);return e&&t.set(i),e;}function Rn(t,i){let e=De(),n=zt(),r=ai();return my(n,e,e[Wt],r,t,i),Rn;}function z8(t,i,e){let n=zt();if(n.firstCreatePass){let r=wo(t);Yb(e,n.data,n.blueprint,r,!0),Yb(i,n.data,n.blueprint,r,!1);}}function Yb(t,i,e,n,r){if(t=ni(t),Array.isArray(t))for(let o=0;o<t.length;o++)Yb(t[o],i,e,n,r);else{let o=zt(),a=De(),s=ai(),l=rc(t)?t:ni(t.provide),c=EI(t),p=s.providerIndexes&1048575,g=s.directiveStart,_=s.providerIndexes>>20;if(rc(t)||!t.multi){let b=new Ks(c,r,w),v=Y_(l,i,r?p:p+_,g);v===-1?(cb(sh(s,a),o,l),Q_(o,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(b),a.push(b)):(e[v]=b,a[v]=b);}else{let b=Y_(l,i,p+_,g),v=Y_(l,i,p,p+_),I=b>=0&&e[b],A=v>=0&&e[v];if(r&&!A||!r&&!I){cb(sh(s,a),o,l);let $=$8(r?j8:B8,e.length,r,n,c);!r&&A&&(e[v].providerFactory=$),Q_(o,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push($),a.push($);}else{let $=WM(e[r?v:b],c,!r&&n);Q_(o,t,b>-1?b:v,$);}!r&&n&&A&&e[v].componentProviders++;}}}function Q_(t,i,e,n){let r=rc(i),o=ZL(i);if(r||o){let l=(o?ni(i.useClass):i).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let p=c.indexOf(e);p===-1?c.push(e,[n,l]):c[p+1].push(n,l);}else c.push(e,l);}}}function WM(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1;}function Y_(t,i,e,n){for(let r=e;r<n;r++)if(i[r]===t)return r;return-1;}function B8(t,i,e,n){return Zb(this.multi,[]);}function j8(t,i,e,n){let r=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,s=iu(e,e[Qe],this.providerFactory.index,n);o=s.slice(0,a),Zb(r,o);for(let l=a;l<s.length;l++)o.push(s[l]);}else o=[],Zb(r,o);return o;}function Zb(t,i){for(let e=0;e<t.length;e++){let n=t[e];i.push(n());}return i;}function $8(t,i,e,n,r){let o=new Ks(t,e,w);return o.multi=[],o.index=i,o.componentProviders=0,WM(o,r,n&&!e),o;}function be(t,i=[]){return e=>{e.providersResolver=(n,r)=>z8(n,r?r(t):t,i);};}function Wn(t,i,e){let n=pc()+t,r=De();return r[n]===li?Gh(r,n,e?i.call(e):i()):Q5(r,n);}function Be(t,i,e,n){return QM(De(),pc(),t,i,e,n);}function Kr(t,i,e,n,r){return YM(De(),pc(),t,i,e,n,r);}function GM(t,i,e,n,r,o){return H8(De(),pc(),t,i,e,n,r,o);}function gy(t,i){let e=t[i];return e===li?void 0:e;}function QM(t,i,e,n,r,o){let a=i+e;return Ui(t,a,r)?Gh(t,a+1,o?n.call(o,r):n(r)):gy(t,a+1);}function YM(t,i,e,n,r,o,a){let s=i+e;return ty(t,s,r,o)?Gh(t,s+2,a?n.call(a,r,o):n(r,o)):gy(t,s+2);}function H8(t,i,e,n,r,o,a,s){let l=i+e;return PM(t,l,r,o,a)?Gh(t,l+3,s?n.call(s,r,o,a):n(r,o,a)):gy(t,l+3);}function as(t,i){let e=zt(),n,r=t+zn;e.firstCreatePass?(n=U8(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let o=n.factory||(n.factory=qs(n.type,!0)),a,s=ji(w);try{let l=ah(!1),c=o();return ah(l),L8(e,De(),r,c),c;}finally{ji(s);}}function U8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n;}}function Xh(t,i,e){let n=t+zn,r=De(),o=gv(r,n);return ZM(r,n)?QM(r,pc(),i,o.transform,e,o):o.transform(e);}function Jh(t,i,e,n){let r=t+zn,o=De(),a=gv(o,r);return ZM(o,r)?YM(o,pc(),i,a.transform,e,n,a):a.transform(e,n);}function ZM(t,i){return t[Qe].data[i].pure;}function Ir(t,i){return Uh(t,i);}var ts=class{full;major;minor;patch;constructor(i){this.full=i;let e=i.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".");}},_y=new ts("19.1.7"),Kb=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e;}},ef=(()=>{class t{compileModuleSync(e){return new Vb(e);}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e));}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),r=vI(e),o=Vk(r.declarations).reduce((a,s)=>{let l=fa(s);return l&&a.push(new el(l)),a;},[]);return new Kb(n,o);}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e));}clearCache(){}clearCacheFor(e){}getModuleId(e){}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var q8=(()=>{class t{zone=h(le);changeDetectionScheduler=h(Xs);applicationRef=h(Pi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick();});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function W8({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new le(Ne(j({},G8()),{scheduleInRootZone:e})),[{provide:le,useFactory:t},{provide:ic,multi:!0,useFactory:()=>{let n=h(q8,{optional:!0});return()=>n.initialize();}},{provide:ic,multi:!0,useFactory:()=>{let n=h(Q8);return()=>{n.initialize();};}},i===!0?{provide:sk,useValue:!0}:[],{provide:lk,useValue:e??ak}];}function G8(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1};}var Q8=(()=>{class t{subscription=new Ie();initialized=!1;zone=h(le);pendingTasks=h(So);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{le.assertInAngularZone(),e??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Y8=(()=>{class t{appRef=h(Pi);taskService=h(So);ngZone=h(le);zonelessEnabled=h(kv);tracing=h(gc,{optional:!0});disableScheduling=h(sk,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ie();angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ch):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(lk,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this��.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup();})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof pb||!this.zoneIsDefined);}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break;}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break;}case 8:{this.appRef.deferredDirtyFlags|=8;break;}case 6:{this.appRef.dirtyFlags|=2,n=!0;break;}case 13:{this.appRef.dirtyFlags|=16,n=!0;break;}case 14:{this.appRef.dirtyFlags|=2,n=!0;break;}case 12:{n=!0;break;}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let r=this.useMicrotaskScheduler?EE:ck;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ch+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 e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(n){throw this.taskService.remove(e),n;}finally{this.cleanup();}this.useMicrotaskScheduler=!0,EE(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e);});}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e);}}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Z8(){return typeof $localize<"u"&&$localize.locale||xh;}var cl=new R("",{providedIn:"root",factory:()=>h(cl,rt.Optional|rt.SkipSelf)||Z8()});var Xb=new R(""),K8=new R("");function Yd(t){return!t.moduleRef;}function X8(t){let i=Yd(t)?t.r3Injector:t.moduleRef.injector,e=i.get(le);return e.run(()=>{Yd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get($i,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{n.handleError(o);}});}),Yd(t)){let o=()=>i.destroy(),a=t.platformInjector.get(Xb);a.add(o),i.onDestroy(()=>{r.unsubscribe(),a.delete(o);});}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Xb);a.add(o),t.moduleRef.onDestroy(()=>{Qp(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o);});}return ez(n,e,()=>{let o=i.get(FM);return o.runInitializers(),o.donePromise.then(()=>{let a=i.get(cl,xh);if(R8(a||xh),!i.get(K8,!0))return Yd(t)?i.get(Pi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yd(t)){let l=i.get(Pi);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l;}else return J8(t.moduleRef,t.allPlatformModules),t.moduleRef;});});});}function J8(t,i){let e=t.injector.get(Pi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new X(-403,!1);i.push(t);}function ez(t,i,e){try{let n=e();return rs(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r;}):n;}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n;}}var Yp=null;function tz(t=[],i){return Oe.create({name:i,providers:[{provide:Ih,useValue:"platform"},{provide:Xb,useValue:new Set([()=>Yp=null])},...t]});}function nz(t=[]){if(Yp)return Yp;let i=tz(t);return Yp=i,J5(),iz(i),i;}function iz(t){let i=t.get(Tv,null);qi(t,()=>{i?.forEach(e=>e());});}var ge=(()=>{class t{static __NG_ELEMENT_ID__=rz;}return t;})();function rz(t){return oz(ai(),De(),(t&16)===16);}function oz(t,i,e){if(nl(t)&&!e){let n=Do(t.index,i);return new Js(n,n);}else if(t.type&175){let n=i[tr];return new Js(n,i);}return null;}var Jb=class{constructor(){}supports(i){return OM(i);}create(i){return new ev(i);}},az=(t,i)=>i,ev=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||az;}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e);}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){let a=!n||e&&e.currentIndex<tI(n,r,o)?e:n,s=tI(a,r,o),l=a.currentIndex;if(a===n)r--,n=n._nextRemoved;else if(e=e._next,a.previousIndex==null)r++;else{o||(o=[]);let c=s-r,p=l-r;if(c!=p){for(let _=0;_<c;_++){let b=_<o.length?o[_]:o[_]=0,v=b+_;p<=v&&v<c&&(o[_]=b+1);}let g=a.previousIndex;o[g]=p-c;}}s!==l&&i(a,s,l);}}forEachPreviousItem(i){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)i(e);}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e);}forEachMovedItem(i){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)i(e);}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e);}forEachIdentityChange(i){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)i(e);}diff(i){if(i==null&&(i=[]),!OM(i))throw new X(900,!1);return this.check(i)?this:null;}onDestroy(){}check(i){this._reset();let e=this._itHead,n=!1,r,o,a;if(Array.isArray(i)){this.length=i.length;for(let s=0;s<this.length;s++)o=i[s],a=this._trackByFn(s,o),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,o,a,s),n=!0):(n&&(e=this._verifyReinsertion(e,o,a,s)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next;}else r=0,G5(i,s=>{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++;}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty;}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null;}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(i,e,n,r){let o;return i===null?o=this._itTail:(o=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new tv(e,n),o,r)),i;}_verifyReinsertion(i,e,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i;}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e;}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let r=i._prevRemoved,o=i._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i;}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i;}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i;}_insertAfter(i,e,n){let r=e===null?this._itHead:e._next;return i._next=r,i._prev=e,r===null?this._itTail=i:r._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new wh()),this._linkedRecords.put(i),i.currentIndex=n,i;}_remove(i){return this._addToRemovals(this._unlink(i));}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i;}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i;}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new wh()),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i;}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i;}},tv=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e;}},nv=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i);}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null;}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null;}},wh=class{map=new Map();put(i){let e=i.trackById,n=this.map.get(e);n||(n=new nv(),this.map.set(e,n)),n.add(i);}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null;}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i;}get isEmpty(){return this.map.size===0;}clear(){this.map.clear();}};function tI(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n<e.length&&(r=e[n]),n+i+r;}var iv=class{constructor(){}supports(i){return i instanceof Map||ey(i);}create(){return new rv();}},rv=class{_records=new Map();_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null;}forEachItem(i){let e;for(e=this._mapHead;e!==null;e=e._next)i(e);}forEachPreviousItem(i){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)i(e);}forEachChangedItem(i){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)i(e);}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e);}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e);}diff(i){if(!i)i=new Map();else if(!(i instanceof Map||ey(i)))throw new X(900,!1);return this.check(i)?this:null;}onDestroy(){}check(i){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o);}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null;}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty;}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i;}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null;}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let r=this._records.get(i);this._maybeAddToChanges(r,e);let o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r;}let n=new ov(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n;}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i));}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i);}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i);}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n));}},ov=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i;}};function nI(){return new To([new Jb()]);}var To=(()=>{class t{factories;static ɵprov=O({token:t,providedIn:"root",factory:nI});constructor(e){this.factories=e;}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r);}return new t(e);}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||nI()),deps:[[t,new va(),new Yr()]]};}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new X(901,!1);}}return t;})();function iI(){return new by([new iv()]);}var by=(()=>{class t{static ɵprov=O({token:t,providedIn:"root",factory:iI});factories;constructor(e){this.factories=e;}static create(e,n){if(n){let r=n.factories.slice();e=e.concat(r);}return new t(e);}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||iI()),deps:[[t,new va(),new Yr()]]};}find(e){let n=this.factories.find(r=>r.supports(e));if(n)return n;throw new X(901,!1);}}return t;})();var KM=(()=>{class t{constructor(e){}static ɵfac=function(n){return new(n||t)(J(Pi));};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})();function XM(t){try{let{rootComponent:i,appProviders:e,platformProviders:n}=t,r=nz(n),o=[W8({}),{provide:Xs,useExisting:Y8},...(e||[])],a=new fh({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1});return X8({r3Injector:a.injector,platformInjector:r,rootComponent:i});}catch(i){return Promise.reject(i);}}function Q(t){return typeof t=="boolean"?t:t!=null&&t!=="false";}function at(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i;}function Ea(t,i){nr("NgSignals");let e=x_(t);return i?.equal&&(e[vi].equal=i.equal),e;}function Gi(t){let i=lt(null);try{return t();}finally{lt(i);}}var JM=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n;}static __NG_ELEMENT_ID__=sz;}return t;})();function sz(){return new JM(De(),ai());}var lz=!1,cz=(()=>{class t extends _h{pendingTasks=h(So);taskId=null;schedule(e){super.schedule(e),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()));}flush(){try{super.flush();}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null);}}static ɵprov=O({token:t,providedIn:"root",factory:()=>new t()});}return t;})(),av=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(i,e,n,r,o,a){this.scheduler=i,this.effectFn=e,this.zone=n,this.injector=o,this.watcher=$D(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy());}runEffect(i){try{this.effectFn(i);}catch(e){this.injector.get($i,null,{optional:!0})?.handleError(e);}}run(){this.watcher.run();}schedule(){this.scheduler.schedule(this);}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.();}};function dz(){}function uz(t,i){nr("NgSignals"),!i?.injector&&Mh(dz);let e=i?.injector??h(Oe),n=i?.manualCleanup!==!0?e.get(al):null,r=new av(e.get(cz),t,typeof Zone>"u"?null:Zone.current,n,e,i?.allowSignalWrites??!1),o=e.get(ge,null,{optional:!0});return!o||!(o._lView[ze]&8)?r.watcher.notify():(o._lView[Up]??=[]).push(r.watcher.notify),r;}var mz=lz;var sv=class{[vi];constructor(i){this[vi]=i;}destroy(){this[vi].destroy();}};function Cu(t,i){if(mz)return uz(t,i);nr("NgSignals"),!i?.injector&&Mh(Cu);let e=i?.injector??h(Oe),n=i?.manualCleanup!==!0?e.get(al):null,r,o=e.get(JM,null,{optional:!0}),a=e.get(Xs);return o!==null&&!i?.forceRoot?(r=fz(o.view,a,t),n instanceof lh&&n._lView===o.view&&(n=null)):r=gz(t,e.get(NM),a),r.injector=e,n!==null&&(r.onDestroyFn=n.onDestroy(()=>r.destroy())),new sv(r);}var eS=Ne(j({},Ls),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:ru,run(){if(this.dirty=!1,this.hasRun&&!zd(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=Bl(this),e=ih(!1);try{this.maybeCleanup(),this.fn(t);}finally{ih(e),Vd(this,i);}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[];}}}),pz=Ne(j({},eS),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13);},destroy(){jl(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this);}}),hz=Ne(j({},eS),{consumerMarkedDirty(){this.view[ze]|=8192,pu(this.view),this.notifier.notify(14);},destroy(){jl(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Gs]?.delete(this);}});function fz(t,i,e){let n=Object.create(hz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[Gs]??=new Set(),t[Gs].add(n),n.consumerMarkedDirty(n),n;}function gz(t,i,e){let n=Object.create(pz);return n.fn=t,n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.schedule(n),n.notifier.notify(13),n;}function tf(t,i){let e=fa(t),n=i.elementInjector||kh();return new el(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector);}function tS(t){let i=fa(t);if(!i)return null;let e=new el(i);return{get selector(){return e.selector;},get type(){return e.componentType;},get inputs(){return e.inputs;},get outputs(){return e.outputs;},get ngContentSelectors(){return e.ngContentSelectors;},get isStandalone(){return i.standalone;},get isSignal(){return i.signals;}};}var Du={production:!0,apiUrl:"https://api.johnturman.net/api/v1",wordpressHost:"https://johnturman.net",drupalHost:"https://cms.johnturman.net",drupalApi:"/jjknkk/jptb69dhj027ooae/jsonapi",drupalUserId:"",slug:"",wordpressAdapter:!0};var lS=null;function Ao(){return lS;}function cS(t){lS??=t;}var uf=class{};var ve=new R(""),My=(()=>{class t{historyGo(e){throw new Error("");}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>h(_z),providedIn:"platform"});}return t;})(),dS=new R(""),_z=(()=>{class t extends My{_location;_history;_doc=h(ve);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Ao().getBaseHref(this._doc);}onPopState(e){let n=Ao().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e);}onHashChange(e){let n=Ao().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e);}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(e){this._location.pathname=e;}pushState(e,n,r){this._history.pushState(e,n,r);}replaceState(e,n,r){this._history.replaceState(e,n,r);}forward(){this._history.forward();}back(){this._history.back();}historyGo(e=0){this._history.go(e);}getState(){return this._history.state;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>new t(),providedIn:"platform"});}return t;})();function Sy(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i;}function nS(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t;}function ka(t){return t&&t[0]!=="?"?`?${t}`:t;}var Ma=(()=>{class t{historyGo(e){throw new Error("");}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>h(Ty),providedIn:"root"});}return t;})(),uS=new R(""),Ty=(()=>{class t extends Ma{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??h(ve).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e));}getBaseHref(){return this._baseHref;}prepareExternalUrl(e){return Sy(this._baseHref,e);}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n;}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+ka(o));this._platformLocation.pushState(e,n,a);}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+ka(o));this._platformLocation.replaceState(e,n,a);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState();}historyGo(e=0){this._platformLocation.historyGo?.(e);}static ɵfac=function(n){return new(n||t)(J(My),J(uS,8));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),mS=(()=>{class t extends Ma{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e));}getBaseHref(){return this._baseHref;}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n;}prepareExternalUrl(e){let n=Sy(this._baseHref,e);return n.length>0?"#"+n:n;}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+ka(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a);}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+ka(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState();}historyGo(e=0){this._platformLocation.historyGo?.(e);}static ɵfac=function(n){return new(n||t)(J(My),J(uS,8));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),ls=(()=>{class t{_subject=new U();_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=yz(nS(iS(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(e=!1){return this.normalize(this._locationStrategy.path(e));}getState(){return this._locationStrategy.getState();}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n));}normalize(e){return t.stripTrailingSlash(vz(this._basePath,iS(e)));}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e);}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),r);}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),r);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(e=0){this._locationStrategy.historyGo?.(e);}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state);}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);};}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n));}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n??void 0,complete:r??void 0});}static normalizeQueryParams=ka;static joinWithSlash=Sy;static stripTrailingSlash=nS;static ɵfac=function(n){return new(n||t)(J(Ma));};static ɵprov=O({token:t,factory:()=>bz(),providedIn:"root"});}return t;})();function bz(){return new ls(J(Ma));}function vz(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i;}function iS(t){return t.replace(/\/index.html$/,"");}function yz(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e;}return t;}var Fi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t;}(Fi||{}),Bt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t;}(Bt||{}),ir=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t;}(ir||{}),ss={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function xz(t){return Dr(t)[En.LocaleId];}function wz(t,i,e){let n=Dr(t),r=[n[En.DayPeriodsFormat],n[En.DayPeriodsStandalone]],o=kr(r,i);return kr(o,e);}function Cz(t,i,e){let n=Dr(t),r=[n[En.DaysFormat],n[En.DaysStandalone]],o=kr(r,i);return kr(o,e);}function Dz(t,i,e){let n=Dr(t),r=[n[En.MonthsFormat],n[En.MonthsStandalone]],o=kr(r,i);return kr(o,e);}function Ez(t,i){let n=Dr(t)[En.Eras];return kr(n,i);}function nf(t,i){let e=Dr(t);return kr(e[En.DateFormat],i);}function rf(t,i){let e=Dr(t);return kr(e[En.TimeFormat],i);}function of(t,i){let n=Dr(t)[En.DateTimeFormat];return kr(n,i);}function pf(t,i){let e=Dr(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===ss.CurrencyDecimal)return e[En.NumberSymbols][ss.Decimal];if(i===ss.CurrencyGroup)return e[En.NumberSymbols][ss.Group];}return n;}function pS(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`);}function Iz(t){let i=Dr(t);return pS(i),(i[En.ExtraData][2]||[]).map(n=>typeof n=="string"?vy(n):[vy(n[0]),vy(n[1])]);}function kz(t,i,e){let n=Dr(t);pS(n);let r=[n[En.ExtraData][0],n[En.ExtraData][1]],o=kr(r,i)||[];return kr(o,e)||[];}function kr(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined");}function vy(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e};}var Mz=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,af={},Sz=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Tz(t,i,e,n){let r=zz(t);i=Ia(e,i)||i;let a=[],s;for(;i;)if(s=Sz.exec(i),s){a=a.concat(s.slice(1));let p=a.pop();if(!p)break;i=p;}else{a.push(i);break;}let l=r.getTimezoneOffset();n&&(l=fS(n,l),r=Vz(r,n,!0));let c="";return a.forEach(p=>{let g=Nz(p);c+=g?g(r,e,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),c;}function mf(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n;}function Ia(t,i){let e=xz(t);if(af[e]??={},af[e][i])return af[e][i];let n="";switch(i){case"shortDate":n=nf(t,ir.Short);break;case"mediumDate":n=nf(t,ir.Medium);break;case"longDate":n=nf(t,ir.Long);break;case"fullDate":n=nf(t,ir.Full);break;case"shortTime":n=rf(t,ir.Short);break;case"mediumTime":n=rf(t,ir.Medium);break;case"longTime":n=rf(t,ir.Long);break;case"fullTime":n=rf(t,ir.Full);break;case"short":let r=Ia(t,"shortTime"),o=Ia(t,"shortDate");n=sf(of(t,ir.Short),[r,o]);break;case"medium":let a=Ia(t,"mediumTime"),s=Ia(t,"mediumDate");n=sf(of(t,ir.Medium),[a,s]);break;case"long":let l=Ia(t,"longTime"),c=Ia(t,"longDate");n=sf(of(t,ir.Long),[l,c]);break;case"full":let p=Ia(t,"fullTime"),g=Ia(t,"fullDate");n=sf(of(t,ir.Full),[p,g]);break;}return n&&(af[e][i]=n),n;}function sf(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e;})),t;}function Xr(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length<i;)a="0"+a;return n&&(a=a.slice(a.length-i)),o+a;}function Az(t,i){return Xr(t,3).substring(0,i);}function On(t,i,e=0,n=!1,r=!1){return function(o,a){let s=Rz(t,o);if((e>0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Az(s,i);let l=pf(a,ss.MinusSign);return Xr(s,i,l,n,r);};}function Rz(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${t}".`);}}function Qt(t,i,e=Fi.Format,n=!1){return function(r,o){return Oz(r,o,t,i,e,n);};}function Oz(t,i,e,n,r,o){switch(e){case 2:return Dz(i,r,n)[t.getMonth()];case 1:return Cz(i,r,n)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=Iz(i),p=kz(i,r,n),g=c.findIndex(_=>{if(Array.isArray(_)){let[b,v]=_,I=a>=b.hours&&s>=b.minutes,A=a<v.hours||a===v.hours&&s<v.minutes;if(b.hours<v.hours){if(I&&A)return!0;}else if(I||A)return!0;}else if(_.hours===a&&_.minutes===s)return!0;return!1;});if(g!==-1)return p[g];}return wz(i,r,n)[a<12?0:1];case 3:return Ez(i,n)[t.getFullYear()<=0?0:1];default:let l=e;throw new Error(`unexpected translation type ${l}`);}}function lf(t){return function(i,e,n){let r=-1*n,o=pf(e,ss.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Xr(a,2,o)+Xr(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Xr(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Xr(a,2,o)+":"+Xr(Math.abs(r%60),2,o);case 3:return n===0?"Z":(r>=0?"+":"")+Xr(a,2,o)+":"+Xr(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`);}};}var Pz=0,df=4;function Fz(t){let i=mf(t,Pz,1).getDay();return mf(t,0,1+(i<=df?df:df+7)-i);}function hS(t){let i=t.getDay(),e=i===0?-3:df-i;return mf(t.getFullYear(),t.getMonth(),t.getDate()+e);}function yy(t,i=!1){return function(e,n){let r;if(i){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7);}else{let o=hS(e),a=Fz(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5);}return Xr(r,t,pf(n,ss.MinusSign));};}function cf(t,i=!1){return function(e,n){let o=hS(e).getFullYear();return Xr(o,t,pf(n,ss.MinusSign),i);};}var xy={};function Nz(t){if(xy[t])return xy[t];let i;switch(t){case"G":case"GG":case"GGG":i=Qt(3,Bt.Abbreviated);break;case"GGGG":i=Qt(3,Bt.Wide);break;case"GGGGG":i=Qt(3,Bt.Narrow);break;case"y":i=On(0,1,0,!1,!0);break;case"yy":i=On(0,2,0,!0,!0);break;case"yyy":i=On(0,3,0,!1,!0);break;case"yyyy":i=On(0,4,0,!1,!0);break;case"Y":i=cf(1);break;case"YY":i=cf(2,!0);break;case"YYY":i=cf(3);break;case"YYYY":i=cf(4);break;case"M":case"L":i=On(1,1,1);break;case"MM":case"LL":i=On(1,2,1);break;case"MMM":i=Qt(2,Bt.Abbreviated);break;case"MMMM":i=Qt(2,Bt.Wide);break;case"MMMMM":i=Qt(2,Bt.Narrow);break;case"LLL":i=Qt(2,Bt.Abbreviat��ed,Fi.Standalone);break;case"LLLL":i=Qt(2,Bt.Wide,Fi.Standalone);break;case"LLLLL":i=Qt(2,Bt.Narrow,Fi.Standalone);break;case"w":i=yy(1);break;case"ww":i=yy(2);break;case"W":i=yy(1,!0);break;case"d":i=On(2,1);break;case"dd":i=On(2,2);break;case"c":case"cc":i=On(7,1);break;case"ccc":i=Qt(1,Bt.Abbreviated,Fi.Standalone);break;case"cccc":i=Qt(1,Bt.Wide,Fi.Standalone);break;case"ccccc":i=Qt(1,Bt.Narrow,Fi.Standalone);break;case"cccccc":i=Qt(1,Bt.Short,Fi.Standalone);break;case"E":case"EE":case"EEE":i=Qt(1,Bt.Abbreviated);break;case"EEEE":i=Qt(1,Bt.Wide);break;case"EEEEE":i=Qt(1,Bt.Narrow);break;case"EEEEEE":i=Qt(1,Bt.Short);break;case"a":case"aa":case"aaa":i=Qt(0,Bt.Abbreviated);break;case"aaaa":i=Qt(0,Bt.Wide);break;case"aaaaa":i=Qt(0,Bt.Narrow);break;case"b":case"bb":case"bbb":i=Qt(0,Bt.Abbreviated,Fi.Standalone,!0);break;case"bbbb":i=Qt(0,Bt.Wide,Fi.Standalone,!0);break;case"bbbbb":i=Qt(0,Bt.Narrow,Fi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Qt(0,Bt.Abbreviated,Fi.Format,!0);break;case"BBBB":i=Qt(0,Bt.Wide,Fi.Format,!0);break;case"BBBBB":i=Qt(0,Bt.Narrow,Fi.Format,!0);break;case"h":i=On(3,1,-12);break;case"hh":i=On(3,2,-12);break;case"H":i=On(3,1);break;case"HH":i=On(3,2);break;case"m":i=On(4,1);break;case"mm":i=On(4,2);break;case"s":i=On(5,1);break;case"ss":i=On(5,2);break;case"S":i=On(6,1);break;case"SS":i=On(6,2);break;case"SSS":i=On(6,3);break;case"Z":case"ZZ":case"ZZZ":i=lf(0);break;case"ZZZZZ":i=lf(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=lf(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=lf(2);break;default:return null;}return xy[t]=i,i;}function fS(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e;}function Lz(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t;}function Vz(t,i,e){let n=e?-1:1,r=t.getTimezoneOffset(),o=fS(i,r);return Lz(t,n*(o-r));}function zz(t){if(rS(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(s=>+s);return mf(r,o-1,a);}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Mz))return Bz(n);}let i=new Date(t);if(!rS(i))throw new Error(`Unable to convert "${t}" into a date`);return i;}function Bz(t){let i=new Date(0),e=0,n=0,r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(i,a,s,l,c),i;}function rS(t){return t instanceof Date&&!isNaN(t.valueOf());}function hf(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[r,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o);}return null;}var wy=/\s+/,oS=[],cs=(()=>{class t{_ngEl;_renderer;initialClasses=oS;rawClass;stateMap=new Map();constructor(e,n){this._ngEl=e,this._renderer=n;}set klass(e){this.initialClasses=e!=null?e.trim().split(wy):oS;}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(wy):e;}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff();}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0});}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1;}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(wy).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r);});}static ɵfac=function(n){return new(n||t)(w(ee),w(wt));};static ɵdir=L({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});}return t;})();var Cy=class{$implicit;ngForOf;index;count;constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r;}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;}},an=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0;}set ngForTrackBy(e){this._trackByFn=e;}get ngForTrackBy(){return this._trackByFn;}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r;}set ngForTemplate(e){e&&(this._template=e);}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy));}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e);}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new Cy(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(o===null?void 0:o);else if(o!==null){let s=n.get(o);n.move(s,a),aS(s,r);}});for(let r=0,o=n.length;r<o;r++){let s=n.get(r).context;s.index=r,s.count=o,s.ngForOf=this._ngForOf;}e.forEachIdentityChange(r=>{let o=n.get(r.currentIndex);aS(o,r);});}static ngTemplateContextGuard(e,n){return!0;}static ɵfac=function(n){return new(n||t)(w(Ct),w(ot),w(To));};static ɵdir=L({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});}return t;})();function aS(t,i){t.context.$implicit=i.item;}var Ot=(()=>{class t{_viewContainer;_context=new Dy();_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n;}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView();}set ngIfThen(e){sS("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView();}set ngIfElse(e){sS("ngIfElse",e),this._elseTemplateRef=e,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(e,n){return!0;}static ɵfac=function(n){return new(n||t)(w(Ct),w(ot));};static ɵdir=L({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});}return t;})(),Dy=class{$implicit=null;ngIf=null;};function sS(t,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Oi(i)}'.`);}var Di=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,r){this._ngEl=e,this._differs=n,this._renderer=r;}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create());}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e);}}_setStyle(e,n){let[r,o]=e.split("."),a=r.indexOf("-")===-1?void 0:Io.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${n}${o}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a);}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue));}static ɵfac=function(n){return new(n||t)(w(ee),w(by),w(wt));};static ɵdir=L({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});}return t;})(),dl=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e;}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return;}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0});}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector;}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r);}});}static ɵfac=function(n){return new(n||t)(w(Ct));};static ɵdir=L({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[tt]});}return t;})();function gS(t,i){return new X(2100,!1);}var Ey=class{createSubscription(i,e){return Gi(()=>i.subscribe({next:e,error:n=>{throw n;}}));}dispose(i){Gi(()=>i.unsubscribe());}},Iy=class{createSubscription(i,e){return i.then(e,n=>{throw n;});}dispose(i){}},jz=new Iy(),$z=new Ey(),ff=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e);}finally{this.markForCheckOnValueUpdate=!0;}return this._latestValue;}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue;}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n));}_selectStrategy(e){if(rs(e))return jz;if(oy(e))return $z;throw gS(t,e);}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static ɵfac=function(n){return new(n||t)(w(ge,16));};static ɵpipe=Jv({name:"async",type:t,pure:!1});}return t;})();var Hz="mediumDate",Uz=new R(""),qz=new R(""),gf=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r;}transform(e,n,r,o){if(e==null||e===""||e!==e)return null;try{let a=n??this.defaultOptions?.dateFormat??Hz,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Tz(e,a,o||this.locale,s);}catch(a){throw gS(t,a.message);}}static ɵfac=function(n){return new(n||t)(w(cl,16),w(Uz,24),w(qz,24));};static ɵpipe=Jv({name:"date",type:t,pure:!0});}return t;})();var H=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})(),Ay="browser",Wz="server";function _S(t){return t===Ay;}function Ry(t){return t===Wz;}var bS=(()=>{class t{static ɵprov=O({token:t,providedIn:"root",factory:()=>new ky(h(ve),window)});}return t;})(),ky=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e;}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i;}getScrollPosition(){return[this.window.scrollX,this.window.scrollY];}scrollToPosition(i){this.window.scrollTo(i[0],i[1]);}scrollToAnchor(i){let e=Gz(this.document,i);e&&(this.scrollToElement(e),e.focus());}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i;}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1]);}};function Gz(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(a)return a;}r=n.nextNode();}}return null;}var yc=class{};var Iu=class{},bf=class{},st=class t{headers;normalizedNames=new Map();lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map(),i.split(`
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(r,o);}});}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map(),i.forEach((e,n)=>{this.addHeaderEntry(n,e);})):this.lazyInit=()=>{this.headers=new Map(),Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n);});}:this.headers=new Map();}has(i){return this.init(),this.headers.has(i.toLowerCase());}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null;}keys(){return this.init(),Array.from(this.normalizedNames.values());}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null;}append(i,e){return this.clone({name:i,value:e,op:"a"});}set(i,e){return this.clone({name:i,value:e,op:"s"});}delete(i,e){return this.clone({name:i,value:e,op:"d"});}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i);}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null));}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e));});}clone(i){let e=new t();return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e;}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=i.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a);}break;}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e]);}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r);}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)));}};var Py=class{encodeKey(i){return vS(i);}encodeValue(i){return vS(i);}decodeKey(i){return decodeURIComponent(i);}decodeValue(i){return decodeURIComponent(i);}};function Qz(t,i){let e=new Map();return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l);}),e;}var Yz=/%(\d[a-f0-9])/gi,Zz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vS(t){return encodeURIComponent(t).replace(Yz,(i,e)=>Zz[e]??i);}function _f(t){return`${t}`;}var ds=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Py(),i.fromString){if(i.fromObject)throw new X(2805,!1);this.map=Qz(i.fromString,this.encoder);}else i.fromObject?(this.map=new Map(),Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(_f):[_f(n)];this.map.set(e,r);})):this.map=null;}has(i){return this.init(),this.map.has(i);}get(i){this.init();let e=this.map.get(i);return e?e[0]:null;}getAll(i){return this.init(),this.map.get(i)||null;}keys(){return this.init(),Array.from(this.map.keys());}append(i,e){return this.clone({param:i,value:e,op:"a"});}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"});}):e.push({param:n,value:r,op:"a"});}),this.clone(e);}set(i,e){return this.clone({param:i,value:e,op:"s"});}delete(i,e){return this.clone({param:i,value:e,op:"d"});}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&");}).filter(i=>i!=="").join("&");}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e;}init(){this.map===null&&(this.map=new Map()),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(_f(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(_f(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param);}else{this.map.delete(i.param);break;}}}),this.cloneFrom=this.updates=null);}};var Fy=class{map=new Map();set(i,e){return this.map.set(i,e),this;}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i);}delete(i){return this.map.delete(i),this;}has(i){return this.map.has(i);}keys(){return this.map.keys();}};function Kz(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0;}}function yS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer;}function xS(t){return typeof Blob<"u"&&t instanceof Blob;}function wS(t){return typeof FormData<"u"&&t instanceof FormData;}function Xz(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams;}var CS="Content-Type",DS="Accept",MS="X-Request-URL",SS="text/plain",TS="application/json",Jz=`${TS}, ${SS}, */*`,Eu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let o;if(Kz(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new st(),this.context??=new Fy(),!this.params)this.params=new ds(),this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":s<e.length-1?"&":"";this.urlWithParams=e+l+a;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||yS(this.body)||xS(this.body)||wS(this.body)||Xz(this.body)?this.body:this.body instanceof ds?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||wS(this.body)?null:xS(this.body)?this.body.type||null:yS(this.body)?null:typeof this.body=="string"?SS:this.body instanceof ds?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?TS:null;}clone(i={}){let e=i.method||this.method,n=i.url||this.url,r=i.responseType||this.responseType,o=i.transferCache??this.transferCache,a=i.body!==void 0?i.body:this.body,s=i.withCredentials??this.withCredentials,l=i.reportProgress??this.reportProgress,c=i.headers||this.headers,p=i.params||this.params,g=i.context??this.context;return i.setHeaders!==void 0&&(c=Object.keys(i.setHeaders).reduce((_,b)=>_.set(b,i.setHeaders[b]),c)),i.setParams&&(p=Object.keys(i.setParams).reduce((_,b)=>_.set(b,i.setParams[b]),p)),new t(e,n,a,{params:p,headers:c,context:g,reportProgress:l,responseType:r,withCredentials:s,transferCache:o});}},xc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t;}(xc||{}),ku=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new st(),this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300;}},Ny=class t extends ku{constructor(i={}){super(i);}type=xc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0});}},vf=class t extends ku{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null;}type=xc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0});}},yf=class extends ku{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null;}},eB=200,tB=204;function Oy(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache};}var ui=(()=>{class t{handler;constructor(e){this.handler=e;}request(e,n,r={}){let o;if(e instanceof Eu)o=e;else{let l;r.headers instanceof st?l=r.headers:l=new st(r.headers);let c;r.params&&(r.params instanceof ds?c=r.params:c=new ds({fromObject:r.params})),o=new Eu(e,n,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache});}let a=se(o).pipe(ma(l=>this.handler.handle(l)));if(e instanceof Eu||r.observe==="events")return a;let s=a.pipe(ke(l=>l instanceof vf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new X(2806,!1);return l.body;}));case"blob":return s.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new X(2807,!1);return l.body;}));case"text":return s.pipe(me(l=>{if(l.body!==null&&typeof l.body!="string")throw new X(2808,!1);return l.body;}));case"json":default:return s.pipe(me(l=>l.body));}case"response":return s;default:throw new X(2809,!1);}}delete(e,n={}){return this.request("DELETE",e,n);}get(e,n={}){return this.request("GET",e,n);}head(e,n={}){return this.request("HEAD",e,n);}jsonp(e,n){return this.request("JSONP",e,{params:new ds().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"});}options(e,n={}){return this.request("OPTIONS",e,n);}patch(e,n,r={}){return this.request("PATCH",e,Oy(r,n));}post(e,n,r={}){return this.request("POST",e,Oy(r,n));}put(e,n,r={}){return this.request("PUT",e,Oy(r,n));}static ɵfac=function(n){return new(n||t)(J(Iu));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();var nB=new R("");function AS(t,i){return i(t);}function iB(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)});}function rB(t,i,e){return(n,r)=>qi(e,()=>i(n,o=>t(o,r)));}var oB=new R(""),Ly=new R(""),aB=new R(""),RS=new R("",{providedIn:"root",factory:()=>!0});function sB(){let t=null;return(i,e)=>{t===null&&(t=(h(oB,{optional:!0})??[]).reduceRight(iB,AS));let n=h(So);if(h(RS)){let o=n.add();return t(i,e).pipe(bo(()=>n.remove(o)));}else return t(i,e);};}var ES=(()=>{class t extends Iu{backend;injector;chain=null;pendingTasks=h(So);contributeToStability=h(RS);constructor(e,n){super(),this.backend=e,this.injector=n;}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ly),...this.injector.get(aB,[])]));this.chain=n.reduceRight((r,o)=>rB(r,o,this.injector),AS);}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(bo(()=>this.pendingTasks.remove(n)));}else return this.chain(e,n=>this.backend.handle(n));}static ɵfac=function(n){return new(n||t)(J(bf),J(Vn));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();var lB=/^\)\]\}',?\n/,cB=RegExp(`^${MS}:`,"m");function dB(t){return"responseURL"in t&&t.responseURL?t.responseURL:cB.test(t.getAllResponseHeaders())?t.getResponseHeader(MS):null;}var IS=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e;}handle(e){if(e.method==="JSONP")throw new X(-2800,!1);let n=this.xhrFactory;return(n.ɵloadImpl?Rt(n.ɵloadImpl()):se(null)).pipe(Xt(()=>new $e(o=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((I,A)=>a.setRequestHeader(I,A.join(","))),e.headers.has(DS)||a.setRequestHeader(DS,Jz),!e.headers.has(CS)){let I=e.detectContentTypeHeader();I!==null&&a.setRequestHeader(CS,I);}if(e.responseType){let I=e.responseType.toLowerCase();a.responseType=I!=="json"?I:"text";}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let I=a.statusText||"OK",A=new st(a.getAllResponseHeaders()),$=dB(a)||e.url;return l=new Ny({headers:A,status:a.status,statusText:I,url:$}),l;},p=()=>{let{headers:I,status:A,statusText:$,url:Z}=c(),B=null;A!==tB&&(B=typeof a.response>"u"?a.responseText:a.response),A===0&&(A=B?eB:0);let ae=A>=200&&A<300;if(e.responseType==="json"&&typeof B=="string"){let _e=B;B=B.replace(lB,"");try{B=B!==""?JSON.parse(B):null;}catch(Ce){B=_e,ae&&(ae=!1,B={error:Ce,text:B});}}ae?(o.next(new vf({body:B,headers:I,status:A,statusText:$,url:Z||void 0})),o.complete()):o.error(new yf({error:B,headers:I,status:A,statusText:$,url:Z||void 0}));},g=I=>{let{url:A}=c(),$=new yf({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:A||void 0});o.error($);},_=!1,b=I=>{_||(o.next(c()),_=!0);let A={type:xc.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(A.total=I.total),e.responseType==="text"&&a.responseText&&(A.partialText=a.responseText),o.next(A);},v=I=>{let A={type:xc.UploadProgress,loaded:I.loaded};I.lengthComputable&&(A.total=I.total),o.next(A);};return a.addEventListener("load",p),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",b),s!==null&&a.upload&&a.upload.addEventListener("progress",v)),a.send(s),o.next({type:xc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",p),a.removeEventListener("timeout",g),e.reportProgress&&(a.removeEventListener("progress",b),s!==null&&a.upload&&a.upload.removeEventListener("progress",v)),a.readyState!==a.DONE&&a.abort();};})));}static ɵfac=function(n){return new(n||t)(J(yc));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),OS=new R(""),uB="XSRF-TOKEN",mB=new R("",{providedIn:"root",factory:()=>uB}),pB="X-XSRF-TOKEN",hB=new R("",{providedIn:"root",factory:()=>pB}),xf=class{},fB=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r;}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=hf(e,this.cookieName),this.lastCookieString=e),this.lastToken;}static ɵfac=function(n){return new(n||t)(J(ve),J(xa),J(mB));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();function gB(t,i){let e=t.url.toLowerCase();if(!h(OS)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=h(xf).getToken(),r=h(hB);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t);}var PS=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t;}(PS||{});function _B(t,i){return{ɵkind:t,ɵproviders:i};}function FS(...t){let i=[ui,IS,ES,{provide:Iu,useExisting:ES},{provide:bf,useFactory:()=>h(nB,{optional:!0})??h(IS)},{provide:Ly,useValue:gB,multi:!0},{provide:OS,useValue:!0},{provide:xf,useClass:fB}];for(let e of t)i.push(...e.ɵproviders);return uu(i);}var kS=new R("");function NS(){return _B(PS.LegacyInterceptors,[{provide:kS,useFactory:sB},{provide:Ly,useExisting:kS,multi:!0}]);}var zy=class extends uf{supportsDOMEvents=!0;},By=class t extends zy{static makeCurrent(){cS(new t());}onAndCancel(i,e,n,r){return i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r);};}dispatchEvent(i,e){i.dispatchEvent(e);}remove(i){i.remove();}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i);}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle");}getDefaultDocument(){return document;}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE;}isShadowRoot(i){return i instanceof DocumentFragment;}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null;}getBaseHref(i){let e=bB();return e==null?null:vB(e);}resetBaseElement(){Mu=null;}getUserAgent(){return window.navigator.userAgent;}getCookie(i){return hf(document.cookie,i);}},Mu=null;function bB(){return Mu=Mu||document.querySelector("base"),Mu?Mu.getAttribute("href"):null;}function vB(t){return new URL(t,document.baseURI).pathname;}var jy=class{addToWindow(i){yi.getAngularTestability=(n,r=!0)=>{let o=i.findTestabilityInTree(n,r);if(o==null)throw new X(5103,!1);return o;},yi.getAllAngularTestabilities=()=>i.getAllTestabilities(),yi.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let r=yi.getAllAngularTestabilities(),o=r.length,a=function(){o--,o==0&&n();};r.forEach(s=>{s.whenStable(a);});};yi.frameworkStabilizers||(yi.frameworkStabilizers=[]),yi.frameworkStabilizers.push(e);}findTestabilityInTree(i,e,n){if(e==null)return null;let r=i.getTestability(e);return r??(n?Ao().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null);}},yB=(()=>{class t{build(){return new XMLHttpRequest();}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),$y=new R(""),jS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map();constructor(e,n){this._zone=n,e.forEach(r=>{r.manager=this;}),this._plugins=e.slice().reverse();}addEventListener(e,n,r,o){return this._findPluginFor(n).addEventListener(e,n,r,o);}getZone(){return this._zone;}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new X(5101,!1);return this._eventNameToPlugin.set(e,n),n;}static ɵfac=function(n){return new(n||t)(J($y),J(le));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),Cf=class{_doc;constructor(i){this._doc=i;}manager;},wf="ng-app-id";function LS(t){for(let i of t)i.remove();}function VS(t,i){let e=i.createElement("style");return e.textContent=t,e;}function xB(t,i,e,n){let r=t.head?.querySelectorAll(`style[${wf}="${i}"],link[${wf}="${i}"]`);if(r)for(let o of r)o.removeAttribute(wf),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]});}function Hy(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e;}var $S=(()=>{class t{doc;appId;nonce;inline=new Map();external=new Map();hosts=new Set();isServer;constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,this.isServer=Ry(o),xB(e,n,this.inline,this.external),this.hosts.add(e.head);}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,VS);n?.forEach(r=>this.addUsage(r,this.external,Hy));}removeStyles(e,n){for(let r of e)this.removeUsage(r,this.inline);n?.forEach(r=>this.removeUsage(r,this.external));}addUsage(e,n,r){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))});}removeUsage(e,n){let r=n.get(e);r&&(r.usage--,r.usage<=0&&(LS(r.elements),n.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])LS(e);this.hosts.clear();}addHost(e){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,VS(n,this.doc)));for(let[n,{elements:r}]of this.external)r��.push(this.addElement(e,Hy(n,this.doc)));}removeHost(e){this.hosts.delete(e);}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(wf,this.appId),e.appendChild(n);}static ɵfac=function(n){return new(n||t)(J(ve),J(fc),J(hu,8),J(xa));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),Vy={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"},qy=/%COMP%/g;var HS="%COMP%",wB=`_nghost-${HS}`,CB=`_ngcontent-${HS}`,DB=!0,EB=new R("",{providedIn:"root",factory:()=>DB});function IB(t){return CB.replace(qy,t);}function kB(t){return wB.replace(qy,t);}function US(t,i){return i.map(e=>e.replace(qy,t));}var Df=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map();defaultRenderer;platformIsServer;constructor(e,n,r,o,a,s,l,c=null,p=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.tracingService=p,this.platformIsServer=Ry(s),this.defaultRenderer=new Su(e,a,l,this.platformIsServer,this.tracingService);}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Eo.ShadowDom&&(n=Ne(j({},n),{encapsulation:Eo.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof Ef?r.applyToHost(e):r instanceof Tu&&r.applyStyles(),r;}getOrCreateRenderer(e,n){let r=this.rendererByCompId,o=r.get(n.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer,_=this.tracingService;switch(n.encapsulation){case Eo.Emulated:o=new Ef(l,c,n,this.appId,p,a,s,g,_);break;case Eo.ShadowDom:return new Uy(l,c,e,n,a,s,this.nonce,g,_);default:o=new Tu(l,c,n,p,a,s,g,_);break;}r.set(n.id,o);}return o;}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static ɵfac=function(n){return new(n||t)(J(jS),J($S),J(fc),J(EB),J(ve),J(xa),J(le),J(hu),J(gc,8));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),Su=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,r,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(Vy[e]||e,i):this.doc.createElement(i);}createComment(i){return this.doc.createComment(i);}createText(i){return this.doc.createTextNode(i);}appendChild(i,e){(zS(i)?i.content:i).appendChild(e);}insertBefore(i,e,n){i&&(zS(i)?i.content:i).insertBefore(e,n);}removeChild(i,e){e.remove();}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new X(-5104,!1);return e||(n.textContent=""),n;}parentNode(i){return i.parentNode;}nextSibling(i){return i.nextSibling;}setAttribute(i,e,n,r){if(r){e=r+":"+e;let o=Vy[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n);}else i.setAttribute(e,n);}removeAttribute(i,e,n){if(n){let r=Vy[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`);}else i.removeAttribute(e);}addClass(i,e){i.classList.add(e);}removeClass(i,e){i.classList.remove(e);}setStyle(i,e,n,r){r&(Io.DashCase|Io.Important)?i.style.setProperty(e,n,r&Io.Important?"important":""):i.style[e]=n;}removeStyle(i,e,n){n&Io.DashCase?i.style.removeProperty(e):i.style[e]="";}setProperty(i,e,n){i!=null&&(i[e]=n);}setValue(i,e){i.nodeValue=e;}listen(i,e,n,r){if(typeof i=="string"&&(i=Ao().getGlobalEventTarget(this.doc,i),!i))throw new Error(`Unsupported event target ${i} for event ${e}`);let o=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(o=this.tracingService.wrapEventListener(i,e,o)),this.eventManager.addEventListener(i,e,o,r);}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault();};}};function zS(t){return t.tagName==="TEMPLATE"&&t.content!==void 0;}var Uy=class extends Su{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,r,o,a,s,l,c){super(i,o,a,l,c),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=r.styles;p=US(r.id,p);for(let _ of p){let b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=_,this.shadowRoot.appendChild(b);}let g=r.getExternalStyles?.();if(g)for(let _ of g){let b=Hy(_,o);s&&b.setAttribute("nonce",s),this.shadowRoot.appendChild(b);}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i;}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e);}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n);}removeChild(i,e){return super.removeChild(null,e);}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)));}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot);}},Tu=class extends Su{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,o,a,s,l,c){super(i,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let p=n.styles;this.styles=c?US(c,p):p,this.styleUrls=n.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Ef=class extends Tu{contentAttr;hostAttr;constructor(i,e,n,r,o,a,s,l,c){let p=r+"-"+n.id;super(i,e,n,o,a,s,l,c,p),this.contentAttr=IB(p),this.hostAttr=kB(p);}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"");}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n;}},MB=(()=>{class t extends Cf{constructor(e){super(e);}supports(e){return!0;}addEventListener(e,n,r,o){return e.addEventListener(n,r,o),()=>this.removeEventListener(e,n,r,o);}removeEventListener(e,n,r,o){return e.removeEventListener(n,r,o);}static ɵfac=function(n){return new(n||t)(J(ve));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),BS=["alt","control","meta","shift"],SB={"\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"},TB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},AB=(()=>{class t extends Cf{constructor(e){super(e);}supports(e){return t.parseEventName(e)!=null;}addEventListener(e,n,r,o){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ao().onAndCancel(e,a.domEventName,s,o));}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),BS.forEach(c=>{let p=n.indexOf(c);p>-1&&(n.splice(p,1),a+=c+".");}),a+=o,n.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l;}static matchEventFullKeyCode(e,n){let r=SB[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),BS.forEach(a=>{if(a!==r){let s=TB[a];s(e)&&(o+=a+".");}}),o+=r,o===n);}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o));};}static _normalizeKey(e){return e==="esc"?"escape":e;}static ɵfac=function(n){return new(n||t)(J(ve));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();function qS(t,i){return XM(j({rootComponent:t},RB(i)));}function RB(t){return{appProviders:[...WS,...(t?.providers??[])],platformProviders:NB};}function OB(){By.makeCurrent();}function PB(){return new $i();}function FB(){return vk(document),document;}var NB=[{provide:xa,useValue:Ay},{provide:Tv,useValue:OB,multi:!0},{provide:ve,useFactory:FB,deps:[]}];var LB=[{provide:yu,useClass:jy,deps:[]},{provide:iy,useClass:Qh,deps:[le,Yh,yu]},{provide:Qh,useClass:Qh,deps:[le,Yh,yu]}],WS=[{provide:Ih,useValue:"root"},{provide:$i,useFactory:PB,deps:[]},{provide:$y,useClass:MB,multi:!0,deps:[ve]},{provide:$y,useClass:AB,multi:!0,deps:[ve]},Df,$S,jS,{provide:Hi,useExisting:Df},{provide:yc,useClass:yB,deps:[]},[]],Wy=(()=>{class t{constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[...WS,...LB],imports:[H,KM]});}return t;})();var Ei=(()=>{class t{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title;}setTitle(e){this._doc.title=e||"";}static ɵfac=function(n){return new(n||t)(J(ve));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var rr=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:function(n){let r=null;return n?r=new(n||t)():r=J(VB),r;},providedIn:"root"});}return t;})(),VB=(()=>{class t extends rr{_doc;constructor(e){super(),this._doc=e;}sanitize(e,n){if(n==null)return null;switch(e){case si.NONE:return n;case si.HTML:return wa(n,"HTML")?xr(n):Ov(this._doc,String(n)).toString();case si.STYLE:return wa(n,"Style")?xr(n):n;case si.SCRIPT:if(wa(n,"Script"))return xr(n);throw new X(5200,!1);case si.URL:return wa(n,"URL")?xr(n):zh(String(n));case si.RESOURCE_URL:if(wa(n,"ResourceURL"))return xr(n);throw new X(5201,!1);default:throw new X(5202,!1);}}bypassSecurityTrustHtml(e){return kk(e);}bypassSecurityTrustStyle(e){return Mk(e);}bypassSecurityTrustScript(e){return Sk(e);}bypassSecurityTrustUrl(e){return Tk(e);}bypassSecurityTrustResourceUrl(e){return Ak(e);}static ɵfac=function(n){return new(n||t)(J(ve));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Xe="primary",Uu=Symbol("RouteTitle"),Ky=class{params;constructor(i){this.params=i||{};}has(i){return Object.prototype.hasOwnProperty.call(this.params,i);}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e;}return null;}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e];}return[];}get keys(){return Object.keys(this.params);}};function kc(t){return new Ky(t);}function zB(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let a=n[o],s=t[o];if(a[0]===":")r[a.substring(1)]=s;else if(a!==s.path)return null;}return{consumed:t.slice(0,n.length),posParams:r};}function BB(t,i){if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!Ro(t[e],i[e]))return!1;return!0;}function Ro(t,i){let e=t?Xy(t):void 0,n=i?Xy(i):void 0;if(!e||!n||e.length!=n.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!nT(t[r],i[r]))return!1;return!0;}function Xy(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)];}function nT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;let e=[...t].sort(),n=[...i].sort();return e.every((r,o)=>n[o]===r);}else return t===i;}function iT(t){return t.length>0?t[t.length-1]:null;}function ps(t){return Ga(t)?t:rs(t)?Rt(Promise.resolve(t)):se(t);}var jB={exact:oT,subset:aT},rT={exact:$B,subset:HB,ignored:()=>!0};function GS(t,i,e){return jB[e.paths](t.root,i.root,e.matrixParams)&&rT[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment);}function $B(t,i){return Ro(t,i);}function oT(t,i,e){if(!ml(t.segments,i.segments)||!Mf(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!oT(t.children[n],i.children[n],e))return!1;return!0;}function HB(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>nT(t[e],i[e]));}function aT(t,i,e){return sT(t,i,i.segments,e);}function sT(t,i,e,n){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!ml(r,e)||i.hasChildren()||!Mf(r,e,n));}else if(t.segments.length===e.length){if(!ml(t.segments,e)||!Mf(t.segments,e,n))return!1;for(let r in i.children)if(!t.children[r]||!aT(t.children[r],i.children[r],n))return!1;return!0;}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ml(t.segments,r)||!Mf(t.segments,r,n)||!t.children[Xe]?!1:sT(t.children[Xe],i,o,n);}}function Mf(t,i,e){return i.every((n,r)=>rT[e](t[r].parameters,n.parameters));}var Ta=class{root;queryParams;fragment;_queryParamMap;constructor(i=new It([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n;}get queryParamMap(){return this._queryParamMap??=kc(this.queryParams),this._queryParamMap;}toString(){return WB.serialize(this);}},It=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this);}hasChildren(){return this.numberOfChildren>0;}get numberOfChildren(){return Object.keys(this.children).length;}toString(){return Sf(this);}},ul=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e;}get parameterMap(){return this._parameterMap??=kc(this.parameters),this._parameterMap;}toString(){return cT(this);}};function UB(t,i){return ml(t,i)&&t.every((e,n)=>Ro(e.parameters,i[n].parameters));}function ml(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path);}function qB(t,i){let e=[];return Object.entries(t.children).forEach(([n,r])=>{n===Xe&&(e=e.concat(i(r,n)));}),Object.entries(t.children).forEach(([n,r])=>{n!==Xe&&(e=e.concat(i(r,n)));}),e;}var qu=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>new Mc(),providedIn:"root"});}return t;})(),Mc=class{parse(i){let e=new ex(i);return new Ta(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment());}serialize(i){let e=`/${Au(i.root,!0)}`,n=YB(i.queryParams),r=typeof i.fragment=="string"?`#${GB(i.fragment)}`:"";return`${e}${n}${r}`;}},WB=new Mc();function Sf(t){return t.segments.map(i=>cT(i)).join("/");}function Au(t,i){if(!t.hasChildren())return Sf(t);if(i){let e=t.children[Xe]?Au(t.children[Xe],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Xe&&n.push(`${r}:${Au(o,!1)}`);}),n.length>0?`${e}(${n.join("//")})`:e;}else{let e=qB(t,(n,r)=>r===Xe?[Au(t.children[Xe],!1)]:[`${r}:${Au(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Xe]!=null?`${Sf(t)}/${e[0]}`:`${Sf(t)}/(${e.join("//")})`;}}function lT(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",");}function If(t){return lT(t).replace(/%3B/gi,";");}function GB(t){return encodeURI(t);}function Jy(t){return lT(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&");}function Tf(t){return decodeURIComponent(t);}function QS(t){return Tf(t.replace(/\+/g,"%20"));}function cT(t){return`${Jy(t.path)}${QB(t.parameters)}`;}function QB(t){return Object.entries(t).map(([i,e])=>`;${Jy(i)}=${Jy(e)}`).join("");}function YB(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(r=>`${If(e)}=${If(r)}`).join("&"):`${If(e)}=${If(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:"";}var ZB=/^[^\/()?;#]+/;function Gy(t){let i=t.match(ZB);return i?i[0]:"";}var KB=/^[^\/()?;=#]+/;function XB(t){let i=t.match(KB);return i?i[0]:"";}var JB=/^[^=?&#]+/;function ej(t){let i=t.match(JB);return i?i[0]:"";}var tj=/^[^&#]+/;function nj(t){let i=t.match(tj);return i?i[0]:"";}var ex=class{url;remaining;constructor(i){this.url=i,this.remaining=i;}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new It([],{}):new It([],this.parseChildren());}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i;}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null;}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Xe]=new It(i,e)),n;}parseSegment(){let i=Gy(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new X(4009,!1);return this.capture(i),new ul(Tf(i),this.parseMatrixParams());}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i;}parseParam(i){let e=XB(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=Gy(this.remaining);r&&(n=r,this.capture(n));}i[Tf(e)]=Tf(n);}parseQueryParam(i){let e=ej(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=nj(this.remaining);a&&(n=a,this.capture(n));}let r=QS(e),o=QS(n);if(i.hasOwnProperty(r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o);}else i[r]=o;}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Gy(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new X(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=Xe);let a=this.parseChildren();e[o]=Object.keys(a).length===1?a[Xe]:new It([],a),this.consumeOptional("//");}return e;}peekStartsWith(i){return this.remaining.startsWith(i);}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1;}capture(i){if(!this.consumeOptional(i))throw new X(4011,!1);}};function dT(t){return t.segments.length>0?new It([],{[Xe]:t}):t;}function uT(t){let i={};for(let[n,r]of Object.entries(t.children)){let o=uT(r);if(n===Xe&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))i[a]=s;else(o.segments.length>0||o.hasChildren())&&(i[n]=o);}let e=new It(t.segments,i);return ij(e);}function ij(t){if(t.numberOfChildren===1&&t.children[Xe]){let i=t.children[Xe];return new It(t.segments.concat(i.segments),i.children);}return t;}function pl(t){return t instanceof Ta;}function rj(t,i,e=null,n=null){let r=mT(t);return pT(r,i,e,n);}function mT(t){let i;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c;}let s=new It(o.url,a);return o===t&&(i=s),s;}let n=e(t.root),r=dT(n);return i??r;}function pT(t,i,e,n){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return Qy(r,r,r,e,n);let o=oj(i);if(o.toRoot())return Qy(r,r,new It([],{}),e,n);let a=aj(o,r,t),s=a.processChildren?Ou(a.segmentGroup,a.index,o.commands):fT(a.segmentGroup,a.index,o.commands);return Qy(r,a.segmentGroup,s,e,n);}function Af(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath;}function Nu(t){return typeof t=="object"&&t!=null&&t.outlets;}function Qy(t,i,e,n,r){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(p=>`${p}`):`${c}`;});let a;t===i?a=e:a=hT(t,i,e);let s=dT(uT(a));return new Ta(s,o,r);}function hT(t,i,e){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===i?n[r]=e:n[r]=hT(o,i,e);}),new It(t.segments,n);}var Rf=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Af(n[0]))throw new X(4003,!1);let r=n.find(Nu);if(r&&r!==iT(n))throw new X(4004,!1);}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/";}};function oj(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Rf(!0,0,t);let i=0,e=!1,n=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c;}),[...r,{outlets:s}];}if(o.segmentPath)return[...r,o.segmentPath];}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&r.push(s));}),r):[...r,o];},[]);return new Rf(e,i,n);}var Dc=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n;}};function aj(t,i,e){if(t.isAbsolute)return new Dc(i,!0,0);if(!e)return new Dc(i,!1,NaN);if(e.parent===null)return new Dc(e,!0,0);let n=Af(t.commands[0])?0:1,r=e.segments.length-1+n;return sj(e,r,t.numberOfDoubleDots);}function sj(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new X(4005,!1);r=n.segments.length;}return new Dc(n,!1,r-o);}function lj(t){return Nu(t[0])?t[0].outlets:{[Xe]:t};}function fT(t,i,e){if(t??=new It([],{}),t.segments.length===0&&t.hasChildren())return Ou(t,i,e);let n=cj(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new It(t.segments.slice(0,n.pathIndex),{});return o.children[Xe]=new It(t.segments.slice(n.pathIndex),t.children),Ou(o,0,r);}else return n.match&&r.length===0?new It(t.segments,{}):n.match&&!t.hasChildren()?tx(t,i,e):n.match?Ou(t,0,r):tx(t,i,e);}function Ou(t,i,e){if(e.length===0)return new It(t.segments,{});{let n=lj(e),r={};if(Object.keys(n).some(o=>o!==Xe)&&t.children[Xe]&&t.numberOfChildren===1&&t.children[Xe].segments.length===0){let o=Ou(t.children[Xe],i,e);return new It(t.segments,o.children);}return Object.entries(n).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=fT(t.children[o],i,a));}),Object.entries(t.children).forEach(([o,a])=>{n[o]===void 0&&(r[o]=a);}),new It(t.segments,r);}}function cj(t,i,e){let n=0,r=i,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=e.length)return o;let a=t.segments[r],s=e[n];if(Nu(s))break;let l=`${s}`,c=n<e.length-1?e[n+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!ZS(l,c,a))return o;n+=2;}else{if(!ZS(l,{},a))return o;n++;}r++;}return{match:!0,pathIndex:r,commandIndex:n};}function tx(t,i,e){let n=t.segments.slice(0,i),r=0;for(;r<e.length;){let o=e[r];if(Nu(o)){let l=dj(o.outlets);return new It(n,l);}if(r===0&&Af(e[0])){let l=t.segments[i];n.push(new ul(l.path,YS(e[0]))),r++;continue;}let a=Nu(o)?o.outlets[Xe]:`${o}`,s=r<e.length-1?e[r+1]:null;a&&s&&Af(s)?(n.push(new ul(a,YS(s))),r+=2):(n.push(new ul(a,{})),r++);}return new It(n,{});}function dj(t){let i={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=tx(new It([],{}),0,n));}),i;}function YS(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i;}function ZS(t,i,e){return t==e.path&&Ro(i,e.parameters);}var Pu="imperative",Gn=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;}(Gn||{}),Mr=class{id;url;constructor(i,e){this.id=i,this.url=e;}},eo=class extends Mr{type=Gn.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",r=null){super(i,e),this.navigationTrigger=n,this.restoredState=r;}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`;}},lr=class extends Mr{urlAfterRedirects;type=Gn.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n;}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;}},sr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t;}(sr||{}),Of=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t;}(Of||{}),Sa=class extends Mr{reason;code;type=Gn.NavigationCancel;constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r;}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`;}},ms=class extends Mr{reason;code;type=Gn.NavigationSkipped;constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r;}},Lu=class extends Mr{error;target;type=Gn.NavigationError;constructor(i,e,n,r){super(i,e),this.error=n,this.target=r;}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;}},Pf=class extends Mr{urlAfterRedirects;state;type=Gn.RoutesRecognized;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r;}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},nx=class extends Mr{urlAfterRedirects;state;type=Gn.GuardsCheckStart;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r;}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},ix=class extends Mr{urlAfterRedirects;state;shouldActivate;type=Gn.GuardsCheckEnd;constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o;}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;}},rx=class extends Mr{urlAfterRedirects;state;type=Gn.ResolveStart;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r;}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},ox=class extends Mr{urlAfterRedirects;state;type=Gn.ResolveEnd;constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r;}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},ax=class{route;type=Gn.RouteConfigLoadStart;constructor(i){this.route=i;}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`;}},sx=class{route;type=Gn.RouteConfigLoadEnd;constructor(i){this.route=i;}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`;}},lx=class{snapshot;type=Gn.ChildActivationStart;constructor(i){this.snapshot=i;}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},cx=class{snapshot;type=Gn.ChildActivationEnd;constructor(i){this.snapshot=i;}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},dx=class{snapshot;type=Gn.ActivationStart;constructor(i){this.snapshot=i;}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},ux=class{snapshot;type=Gn.ActivationEnd;constructor(i){this.snapshot=i;}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},Ff=class{routerEvent;position;anchor;type=Gn.Scroll;constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n;}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`;}},Vu=class{},Sc=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e;}};function uj(t,i){return t.providers&&!t._injector&&(t._injector=Wh(t.providers,i,`Route: ${t.path}`)),t._injector??i;}function Jr(t){return t.outlet||Xe;}function mj(t,i){let e=t.filter(n=>Jr(n)===i);return e.push(...t.filter(n=>Jr(n)!==i)),e;}function Wu(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector;}return null;}var mx=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Wu(this.route?.snapshot)??this.rootInjector;}constructor(i){this.rootInjector=i,this.children=new Gu(this.rootInjector);}},Gu=(()=>{class t{rootInjector;contexts=new Map();constructor(e){this.rootInjector=e;}onChildOutletCreated(e,n){let r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r);}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map(),e;}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new mx(this.rootInjector),this.contexts.set(e,n)),n;}getContext(e){return this.contexts.get(e)||null;}static ɵfac=function(n){return new(n||t)(J(Vn));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Nf=class{_root;constructor(i){this._root=i;}get root(){return this._root.value;}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null;}children(i){let e=px(i,this._root);return e?e.children.map(n=>n.value):[];}firstChild(i){let e=px(i,this._root);return e&&e.children.length>0?e.children[0].value:null;}siblings(i){let e=hx(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i);}pathFromRoot(i){return hx(i,this._root).map(e=>e.value);}};function px(t,i){if(t===i.value)return i;for(let e of i.children){let n=px(t,e);if(n)return n;}return null;}function hx(t,i){if(t===i.value)return[i];for(let e of i.children){let n=hx(t,e);if(n.length)return n.unshift(i),n;}return[];}var ar=class{value;children;constructor(i,e){this.value=i,this.children=e;}toString(){return`TreeNode(${this.value})`;}};function Cc(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i;}var Lf=class extends Nf{snapshot;constructor(i,e){super(i),this.snapshot=e,Cx(this,i);}toString(){return this.snapshot.toString();}};function gT(t){let i=pj(t),e=new Ut([new ul("",{})]),n=new Ut({}),r=new Ut({}),o=new Ut({}),a=new Ut(""),s=new Qi(e,n,o,a,r,Xe,t,i.root);return s.snapshot=i.root,new Lf(new ar(s,[]),i);}function pj(t){let i={},e={},n={},r="",o=new Ec([],i,n,r,e,Xe,t,null,{});return new zf("",new ar(o,[]));}var Qi=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,r,o,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(me(c=>c[Uu]))??se(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=r,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(me(i=>kc(i))),this._paramMap;}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(me(i=>kc(i))),this._queryParamMap;}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`;}};function Vf(t,i,e="emptyOnly"){let n,{routeConfig:r}=t;return i!==null&&(e==="always"||r?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:j(j({},i.params),t.params),data:j(j({},i.data),t.data),resolve:j(j(j(j({},t.data),i.data),r?.data),t._resolvedData)}:n={params:j({},t.params),data:j({},t.data),resolve:j(j({},t.data),t._resolvedData??{})},r&&bT(r)&&(n.resolve[Uu]=r.title),n;}var Ec=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Uu];}constructor(i,e,n,r,o,a,s,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c;}get root(){return this._routerState.root;}get parent(){return this._routerState.parent(this);}get firstChild(){return this._routerState.firstChild(this);}get children(){return this._routerState.children(this);}get pathFromRoot(){return this._routerState.pathFromRoot(this);}get paramMap(){return this._paramMap??=kc(this.params),this._paramMap;}get queryParamMap(){return this._queryParamMap��??=kc(this.queryParams),this._queryParamMap;}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`;}},zf=class extends Nf{url;constructor(i,e){super(e),this.url=i,Cx(this,e);}toString(){return _T(this._root);}};function Cx(t,i){i.value._routerState=t,i.children.forEach(e=>Cx(t,e));}function _T(t){let i=t.children.length>0?` { ${t.children.map(_T).join(", ")} } `:"";return`${t.value}${i}`;}function Yy(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ro(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ro(i.params,e.params)||t.paramsSubject.next(e.params),BB(i.url,e.url)||t.urlSubject.next(e.url),Ro(i.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function fx(t,i){let e=Ro(t.params,i.params)&&UB(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||fx(t.parent,i.parent));}function bT(t){return typeof t.title=="string"||t.title===null;}var hj=new R(""),hl=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated;}_activatedRoute=null;name=Xe;activateEvents=new z();deactivateEvents=new z();attachEvents=new z();detachEvents=new z();routerOutletData=ct(void 0);parentContexts=h(Gu);location=h(Ct);changeDetector=h(ge);inputBinder=h(Hf,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this;}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return!!this.activated;}get component(){if(!this.activated)throw new X(4012,!1);return this.activated.instance;}get activatedRoute(){if(!this.activated)throw new X(4012,!1);return this._activatedRoute;}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{};}detach(){if(!this.activated)throw new X(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e;}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,n){if(this.isActivated)throw new X(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new gx(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[tt]});}return t;})(),gx=class t{route;childContexts;parent;outletData;__ngOutletInjector(i){return new t(this.route,this.childContexts,i,this.outletData);}constructor(i,e,n,r){this.route=i,this.childContexts=e,this.parent=n,this.outletData=r;}get(i,e){return i===Qi?this.route:i===Gu?this.childContexts:i===hj?this.outletData:this.parent.get(i,e);}},Hf=new R(""),KS=(()=>{class t{outletDataSubscriptions=new Map();bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e);}subscribeToRouteData(e){let{activatedRoute:n}=e,r=Ur([n.queryParams,n.params,n.data]).pipe(Xt(([o,a,s],l)=>(s=j(j(j({},o),a),s),l===0?se(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return;}let a=tS(n.component);if(!a){this.unsubscribeFromRouteData(e);return;}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s]);});this.outletDataSubscriptions.set(e,r);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();function fj(t,i,e){let n=zu(t,i._root,e?e._root:void 0);return new Lf(n,i);}function zu(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let r=gj(t,i,e);return new ar(n,r);}else{if(t.shouldAttach(i.value)){let o=t.retrieve(i.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>zu(t,s)),a;}}let n=_j(i.value),r=i.children.map(o=>zu(t,o));return new ar(n,r);}}function gj(t,i,e){return i.children.map(n=>{for(let r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return zu(t,n,r);return zu(t,n);});}function _j(t){return new Qi(new Ut(t.url),new Ut(t.params),new Ut(t.queryParams),new Ut(t.fragment),new Ut(t.data),t.outlet,t.component,t);}var Bu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e;}},vT="ngNavigationCancelingError";function Bf(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=pl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=yT(!1,sr.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r;}function yT(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[vT]=!0,e.cancellationCode=i,e;}function bj(t){return xT(t)&&pl(t.url);}function xT(t){return!!t&&t[vT];}var vj=(t,i,e,n)=>me(r=>(new _x(i,r.targetRouterState,r.currentRouterState,e,n).activate(t),r)),_x=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,r,o){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o;}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),Yy(this.futureState.root),this.activateChildRoutes(e,n,i);}deactivateChildRoutes(i,e,n){let r=Cc(e);i.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a];}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n);});}deactivateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(r===o){if(r.component){let a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children);}else this.deactivateChildRoutes(i,e,n);}else o&&this.deactivateRouteAndItsChildren(e,n);}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e);}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Cc(i);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s});}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Cc(i);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null);}activateChildRoutes(i,e,n){let r=Cc(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new ux(o.value.snapshot));}),i.children.length&&this.forwardEvent(new cx(i.value.snapshot));}activateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(Yy(r),r===o){if(r.component){let a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children);}else this.activateChildRoutes(i,e,n);}else if(r.component){let a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Yy(s.route.value),this.activateChildRoutes(i,null,a.children);}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children);}else this.activateChildRoutes(i,null,n);}},jf=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1];}},Ic=class{component;route;constructor(i,e){this.component=i,this.route=e;}};function yj(t,i,e){let n=t._root,r=i?i._root:null;return Ru(n,r,e,[n.value]);}function xj(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i};}function Ac(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!cI(t)?t:i.get(t):n;}function Ru(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Cc(i);return t.children.forEach(a=>{wj(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,s])=>Fu(s,e.getContext(a),r)),r;}function wj(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=Cj(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new jf(n)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Ru(t,i,s?s.children:null,n,r):Ru(t,i,e,n,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Ic(s.outlet.component,a));}else a&&Fu(i,s,r),r.canActivateChecks.push(new jf(n)),o.component?Ru(t,null,s?s.children:null,n,r):Ru(t,null,e,n,r);return r;}function Cj(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!ml(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ml(t.url,i.url)||!Ro(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fx(t,i)||!Ro(t.queryParams,i.queryParams);case"paramsChange":default:return!fx(t,i);}}function Fu(t,i,e){let n=Cc(t),r=t.value;Object.entries(n).forEach(([o,a])=>{r.component?i?Fu(a,i.children.getContext(o),e):Fu(a,null,e):Fu(a,i,e);}),r.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Ic(i.outlet.component,r)):e.canDeactivateChecks.push(new Ic(null,r)):e.canDeactivateChecks.push(new Ic(null,r));}function Qu(t){return typeof t=="function";}function Dj(t){return typeof t=="boolean";}function Ej(t){return t&&Qu(t.canLoad);}function Ij(t){return t&&Qu(t.canActivate);}function kj(t){return t&&Qu(t.canActivateChild);}function Mj(t){return t&&Qu(t.canDeactivate);}function Sj(t){return t&&Qu(t.canMatch);}function wT(t){return t instanceof ua||t?.name==="EmptyError";}var kf=Symbol("INITIAL_VALUE");function Tc(){return Xt(t=>Ur(t.map(i=>i.pipe(de(1),yt(kf)))).pipe(me(i=>{for(let e of i)if(e!==!0){if(e===kf)return kf;if(e===!1||Tj(e))return e;}return!0;}),ke(i=>i!==kf),de(1)));}function Tj(t){return pl(t)||t instanceof Bu;}function Aj(t,i){return Tn(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?se(Ne(j({},e),{guardsResult:!0})):Rj(a,n,r,t).pipe(Tn(s=>s&&Dj(s)?Oj(n,o,t,i):se(s)),me(s=>Ne(j({},e),{guardsResult:s})));});}function Rj(t,i,e,n){return Rt(t).pipe(Tn(r=>Vj(r.component,r.route,e,i,n)),ha(r=>r!==!0,!0));}function Oj(t,i,e,n){return Rt(i).pipe(ma(r=>Qa(Fj(r.route.parent,n),Pj(r.route,n),Lj(t,r.path,e),Nj(t,r.route,e))),ha(r=>r!==!0,!0));}function Pj(t,i){return t!==null&&i&&i(new dx(t)),se(!0);}function Fj(t,i){return t!==null&&i&&i(new lx(t)),se(!0);}function Nj(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return se(!0);let r=n.map(o=>_o(()=>{let a=Wu(i)??e,s=Ac(o,a),l=Ij(s)?s.canActivate(i,t):qi(a,()=>s(i,t));return ps(l).pipe(ha());}));return se(r).pipe(Tc());}function Lj(t,i,e){let n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>xj(a)).filter(a=>a!==null).map(a=>_o(()=>{let s=a.guards.map(l=>{let c=Wu(a.node)??e,p=Ac(l,c),g=kj(p)?p.canActivateChild(n,t):qi(c,()=>p(n,t));return ps(g).pipe(ha());});return se(s).pipe(Tc());}));return se(o).pipe(Tc());}function Vj(t,i,e,n,r){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return se(!0);let a=o.map(s=>{let l=Wu(i)??r,c=Ac(s,l),p=Mj(c)?c.canDeactivate(t,i,e,n):qi(l,()=>c(t,i,e,n));return ps(p).pipe(ha());});return se(a).pipe(Tc());}function zj(t,i,e,n){let r=i.canLoad;if(r===void 0||r.length===0)return se(!0);let o=r.map(a=>{let s=Ac(a,t),l=Ej(s)?s.canLoad(i,e):qi(t,()=>s(i,e));return ps(l);});return se(o).pipe(Tc(),CT(n));}function CT(t){return M_(on(i=>{if(typeof i!="boolean")throw Bf(t,i);}),me(i=>i===!0));}function Bj(t,i,e,n){let r=i.canMatch;if(!r||r.length===0)return se(!0);let o=r.map(a=>{let s=Ac(a,t),l=Sj(s)?s.canMatch(i,e):qi(t,()=>s(i,e));return ps(l);});return se(o).pipe(Tc(),CT(n));}var ju=class{segmentGroup;constructor(i){this.segmentGroup=i||null;}},$u=class extends Error{urlTree;constructor(i){super(),this.urlTree=i;}};function wc(t){return Wa(new ju(t));}function jj(t){return Wa(new X(4e3,!1));}function $j(t){return Wa(yT(!1,sr.GuardRejected));}var bx=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e;}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return se(n);if(r.numberOfChildren>1||!r.children[Xe])return jj(`${i.redirectTo}`);r=r.children[Xe];}}applyRedirectCommands(i,e,n,r,o){if(typeof e!="string"){let s=e,{queryParams:l,fragment:c,routeConfig:p,url:g,outlet:_,params:b,data:v,title:I}=r,A=qi(o,()=>s({params:b,data:v,queryParams:l,fragment:c,routeConfig:p,url:g,outlet:_,title:I}));if(A instanceof Ta)throw new $u(A);e=A;}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n);if(e[0]==="/")throw new $u(a);return a;}applyRedirectCreateUrlTree(i,e,n,r){let o=this.createSegmentGroup(i,e.root,n,r);return new Ta(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment);}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);n[r]=e[s];}else n[r]=o;}),n;}createSegmentGroup(i,e,n,r){let o=this.createSegments(i,e.segments,n,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,r);}),new It(o,a);}createSegments(i,e,n,r){return e.map(o=>o.path[0]===":"?this.findPosParam(i,o,r):this.findOrReturn(o,n));}findPosParam(i,e,n){let r=n[e.path.substring(1)];if(!r)throw new X(4001,!1);return r;}findOrReturn(i,e){let n=0;for(let r of e){if(r.path===i.path)return e.splice(n),r;n++;}return i;}},vx={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hj(t,i,e,n,r){let o=DT(t,i,e);return o.matched?(n=uj(i,n),Bj(n,i,e,r).pipe(me(a=>a===!0?o:j({},vx)))):se(o);}function DT(t,i,e){if(i.path==="**")return Uj(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?j({},vx):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(i.matcher||zB)(e,t,i);if(!r)return j({},vx);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path;});let a=r.consumed.length>0?j(j({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}};}function Uj(t){return{matched:!0,parameters:t.length>0?iT(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}};}function XS(t,i,e,n){return e.length>0&&Gj(t,e,n)?{segmentGroup:new It(i,Wj(n,new It(e,t.children))),slicedSegments:[]}:e.length===0&&Qj(t,e,n)?{segmentGroup:new It(t.segments,qj(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new It(t.segments,t.children),slicedSegments:e};}function qj(t,i,e,n){let r={};for(let o of e)if(Uf(t,i,o)&&!n[Jr(o)]){let a=new It([],{});r[Jr(o)]=a;}return j(j({},n),r);}function Wj(t,i){let e={};e[Xe]=i;for(let n of t)if(n.path===""&&Jr(n)!==Xe){let r=new It([],{});e[Jr(n)]=r;}return e;}function Gj(t,i,e){return e.some(n=>Uf(t,i,n)&&Jr(n)!==Xe);}function Qj(t,i,e){return e.some(n=>Uf(t,i,n));}function Uf(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path==="";}function Yj(t,i,e){return i.length===0&&!t.children[e];}var yx=class{};function Zj(t,i,e,n,r,o,a="emptyOnly"){return new xx(t,i,e,n,r,a,o).recognize();}var Kj=31,xx=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,r,o,a,s){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new bx(this.urlSerializer,this.urlTree);}noMatchError(i){return new X(4002,`'${i.segmentGroup}'`);}recognize(){let i=XS(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(me(({children:e,rootSnapshot:n})=>{let r=new ar(n,e),o=new zf("",r),a=rj(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a};}));}match(i){let e=new Ec([],Object.freeze({}),Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Xe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,Xe,e).pipe(me(n=>({children:n,rootSnapshot:e})),Ji(n=>{if(n instanceof $u)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ju?this.noMatchError(n):n;}));}processSegmentGroup(i,e,n,r,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n,o):this.processSegment(i,e,n,n.segments,r,!0,o).pipe(me(a=>a instanceof ar?[a]:[]));}processChildren(i,e,n,r){let o=[];for(let a of Object.keys(n.children))a==="primary"?o.unshift(a):o.push(a);return Rt(o).pipe(ma(a=>{let s=n.children[a],l=mj(e,a);return this.processSegmentGroup(i,l,s,a,r);}),P_((a,s)=>(a.push(...s),a)),Ya(null),O_(),Tn(a=>{if(a===null)return wc(n);let s=ET(a);return Xj(s),se(s);}));}processSegment(i,e,n,r,o,a,s){return Rt(e).pipe(ma(l=>this.processSegmentAgainstRoute(l._injector??i,e,l,n,r,o,a,s).pipe(Ji(c=>{if(c instanceof ju)return se(null);throw c;}))),ha(l=>!!l),Ji(l=>{if(wT(l))return Yj(n,r,o)?se(new yx()):wc(n);throw l;}));}processSegmentAgainstRoute(i,e,n,r,o,a,s,l){return Jr(n)!==a&&(a===Xe||!Uf(r,o,n))?wc(r):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,r,n,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(i,r,e,n,o,a,l):wc(r);}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a,s){let{matched:l,parameters:c,consumedSegments:p,positionalParamSegments:g,remainingSegments:_}=DT(e,r,o);if(!l)return wc(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Kj&&(this.allowRedirects=!1));let b=new Ec(o,c,Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,JS(r),Jr(r),r.component??r._loadedComponent??null,r,eT(r)),v=Vf(b,s,this.paramsInheritanceStrategy);b.params=Object.freeze(v.params),b.data=Object.freeze(v.data);let I=this.applyRedirects.applyRedirectCommands(p,r.redirectTo,g,b,i);return this.applyRedirects.lineralizeSegments(r,I).pipe(Tn(A=>this.processSegment(i,n,e,A.concat(_),a,!1,s)));}matchSegmentAgainstRoute(i,e,n,r,o,a){let s=Hj(e,n,r,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(Xt(l=>l.matched?(i=n._injector??i,this.getChildConfig(i,n,r).pipe(Xt(({routes:c})=>{let p=n._loadedInjector??i,{parameters:g,consumedSegments:_,remainingSegments:b}=l,v=new Ec(_,g,Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,JS(n),Jr(n),n.component??n._loadedComponent??null,n,eT(n)),I=Vf(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(I.params),v.data=Object.freeze(I.data);let{segmentGroup:A,slicedSegments:$}=XS(e,_,b,c);if($.length===0&&A.hasChildren())return this.processChildren(p,c,A,v).pipe(me(B=>new ar(v,B)));if(c.length===0&&$.length===0)return se(new ar(v,[]));let Z=Jr(n)===o;return this.processSegment(p,c,A,$,Z?Xe:o,!0,v).pipe(me(B=>new ar(v,B instanceof ar?[B]:[])));}))):wc(e)));}getChildConfig(i,e,n){return e.children?se({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?se({routes:e._loadedRoutes,injector:e._loadedInjector}):zj(i,e,n,this.urlSerializer).pipe(Tn(r=>r?this.configLoader.loadChildren(i,e).pipe(on(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector;})):$j(e))):se({routes:[],injector:i});}};function Xj(t){t.sort((i,e)=>i.value.outlet===Xe?-1:e.value.outlet===Xe?1:i.value.outlet.localeCompare(e.value.outlet));}function Jj(t){let i=t.value.routeConfig;return i&&i.path==="";}function ET(t){let i=[],e=new Set();for(let n of t){if(!Jj(n)){i.push(n);continue;}let r=i.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):i.push(n);}for(let n of e){let r=ET(n.children);i.push(new ar(n.value,r));}return i.filter(n=>!e.has(n));}function JS(t){return t.data||{};}function eT(t){return t.resolve||{};}function e9(t,i,e,n,r,o){return Tn(a=>Zj(t,i,e,n,a.extractedUrl,r,o).pipe(me(({state:s,tree:l})=>Ne(j({},a),{targetSnapshot:s,urlAfterRedirects:l}))));}function t9(t,i){return Tn(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return se(e);let o=new Set(r.map(l=>l.route)),a=new Set();for(let l of o)if(!a.has(l))for(let c of IT(l))a.add(c);let s=0;return Rt(a).pipe(ma(l=>o.has(l)?n9(l,n,t,i):(l.data=Vf(l,l.parent,t).resolve,se(void 0))),on(()=>s++),Zl(1),Tn(l=>s===a.size?se(e):gn));});}function IT(t){let i=t.children.map(e=>IT(e)).flat();return[t,...i];}function n9(t,i,e,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!bT(r)&&(o[Uu]=r.title),i9(o,t,i,n).pipe(me(a=>(t._resolvedData=a,t.data=Vf(t,t.parent,e).resolve,null)));}function i9(t,i,e,n){let r=Xy(t);if(r.length===0)return se({});let o={};return Rt(r).pipe(Tn(a=>r9(t[a],i,e,n).pipe(ha(),on(s=>{if(s instanceof Bu)throw Bf(new Mc(),s);o[a]=s;}))),Zl(1),me(()=>o),Ji(a=>wT(a)?gn:Wa(a)));}function r9(t,i,e,n){let r=Wu(i)??n,o=Ac(t,r),a=o.resolve?o.resolve(i,e):qi(r,()=>o(i,e));return ps(a);}function Zy(t){return Xt(i=>{let e=t(i);return e?Rt(e).pipe(me(()=>i)):se(i);});}var kT=(()=>{class t{buildTitle(e){let n,r=e.root;for(;r!==void 0;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===Xe);return n;}getResolvedTitleForRoute(e){return e.data[Uu];}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>h(o9),providedIn:"root"});}return t;})(),o9=(()=>{class t extends kT{title;constructor(e){super(),this.title=e;}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n);}static ɵfac=function(n){return new(n||t)(J(Ei));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Yu=new R("",{providedIn:"root",factory:()=>({})}),a9=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,r){n&1&&D(0,"router-outlet");},dependencies:[hl],encapsulation:2});}return t;})();function Dx(t){let i=t.children&&t.children.map(Dx),e=i?Ne(j({},t),{children:i}):j({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Xe&&(e.component=a9),e;}var Hu=new R(""),Ex=(()=>{class t{componentLoaders=new WeakMap();childrenLoaders=new WeakMap();onLoadStartListener;onLoadEndListener;compiler=h(ef);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return se(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=ps(e.loadComponent()).pipe(me(MT),on(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o;}),bo(()=>{this.componentLoaders.delete(e);})),r=new qa(n,()=>new U()).pipe(Wl());return this.componentLoaders.set(e,r),r;}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return se({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=s9(n,this.compiler,e,this.onLoadEndListener).pipe(bo(()=>{this.childrenLoaders.delete(n);})),a=new qa(o,()=>new U()).pipe(Wl());return this.childrenLoaders.set(n,a),a;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function s9(t,i,e,n){return ps(t.loadChildren()).pipe(me(MT),Tn(r=>r instanceof au||Array.isArray(r)?se(r):Rt(i.compileModuleAsync(r))),me(r=>{n&&n(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Hu,[],{optional:!0,self:!0}).flat()),{routes:a.map(Dx),injector:o};}));}function l9(t){return t&&typeof t=="object"&&"default"in t;}function MT(t){return l9(t)?t.default:t;}var Ix=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>h(c9),providedIn:"root"});}return t;})(),c9=(()=>{class t{shouldProcessUrl(e){return!0;}extract(e){return e;}merge(e,n){return e;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),ST=new R(""),TT=new R("");function d9(t,i,e){let n=t.get(TT),r=t.get(ve);return t.get(le).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c;}),s=r.startViewTransition(()=>(o(),u9(t))),{onViewTransitionCreated:l}=n;return l&&qi(t,()=>l({transition:s,from:i,to:e})),a;});}function u9(t){return new Promise(i=>{Cn({read:()=>setTimeout(i)},{injector:t});});}var AT=new R(""),kx=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new U();transitionAbortSubject=new U();configLoader=h(Ex);environmentInjector=h(Vn);destroyRef=h(al);urlSerializer=h(qu);rootContexts=h(Gu);location=h(ls);inputBindingEnabled=h(Hf,{optional:!0})!==null;titleStrategy=h(kT);options=h(Yu,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(Ix);createViewTransition=h(ST,{optional:!0});navigationErrorHandler=h(AT,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0;}transitions;afterPreactivation=()=>se(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new ax(r)),n=r=>this.events.next(new sx(r));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(Ne(j(j({},this.transitions.value),e),{id:n}));}setupNavigations(e,n,r){return this.transitions=new Ut({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Pu,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ke(o=>o.id!==0),me(o=>Ne(j({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Xt(o=>{let a=!1,s=!1;return se(o).pipe(Xt(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",sr.SupersededByNewNavigation),gn;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Ne(j({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&p!=="reload"){let g="";return this.events.next(new ms(l.id,this.urlSerializer.serialize(l.rawUrl),g,Of.IgnoredSameUrlNavigation)),l.resolve(!1),gn;}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return se(l).pipe(Xt(g=>{let _=this.transitions?.getValue();return this.events.next(new eo(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),_!==this.transitions?.getValue()?gn:Promise.resolve(g);}),e9(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),on(g=>{o.targetSnapshot=g.targetSnapshot,o.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=Ne(j({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let _=new Pf(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(_);}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:g,extractedUrl:_,source:b,restoredState:v,extras:I}=l,A=new eo(g,this.urlSerializer.serialize(_),b,v);this.events.next(A);let $=gT(this.rootComponentType).snapshot;return this.currentTransition=o=Ne(j({},l),{targetSnapshot:$,urlAfterRedirects:_,extras:Ne(j({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=_,se(o);}else{let g="";return this.events.next(new ms(l.id,this.urlSerializer.serialize(l.extractedUrl),g,Of.IgnoredByUrlHandlingStrategy)),l.resolve(!1),gn;}}),on(l=>{let c=new nx(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c);}),me(l=>(this.currentTransition=o=Ne(j({},l),{guards:yj(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),Aj(this.environmentInjector,l=>this.events.next(l)),on(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Bf(this.urlSerializer,l.guardsResult);let c=new ix(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c);}),ke(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",sr.GuardRejected),!1)),Zy(l=>{if(l.guards.canActivateChecks.length)return se(l).pipe(on(c=>{let p=new rx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p);}),Xt(c=>{let p=!1;return se(c).pipe(t9(this.paramsInheritanceStrategy,this.environmentInjector),on({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(c,"",sr.NoDataFromResolver);}}));}),on(c=>{let p=new ox(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p);}));}),Zy(l=>{let c=p=>{let g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(on(_=>{p.component=_;}),me(()=>{})));for(let _ of p.children)g.push(...c(_));return g;};return Ur(c(l.targetSnapshot.root)).pipe(Ya(null),de(1));}),Zy(()=>this.afterPreactivation()),Xt(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,p=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return p?Rt(p).pipe(me(()=>o)):se(o);}),me(l=>{let c=fj(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=Ne(j({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o;}),on(()=>{this.events.next(new Vu());}),vj(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),de(1),on({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0);},complete:()=>{a=!0;}}),Ae(this.transitionAbortSubject.pipe(on(l=>{��throw l;}))),bo(()=>{!a&&!s&&this.cancelNavigationTransition(o,"",sr.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null);}),Ji(l=>{if(this.destroyed)return o.resolve(!1),gn;if(s=!0,xT(l))this.events.next(new Sa(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),bj(l)?this.events.next(new Sc(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Lu(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let p=qi(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(p instanceof Bu){let{message:g,cancellationCode:_}=Bf(this.urlSerializer,p);this.events.next(new Sa(o.id,this.urlSerializer.serialize(o.extractedUrl),g,_)),this.events.next(new Sc(p.redirectTo,p.navigationBehaviorOptions));}else throw this.events.next(c),l;}catch(p){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(p);}}return gn;}));}));}cancelNavigationTransition(e,n,r){let o=new Sa(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString();}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function m9(t){return t!==Pu;}var Mx=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>h(p9),providedIn:"root"});}return t;})(),wx=class{shouldDetach(i){return!1;}store(i,e){}shouldAttach(i){return!1;}retrieve(i){return null;}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig;}},p9=(()=>{class t extends wx{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),RT=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:()=>h(h9),providedIn:"root"});}return t;})(),h9=(()=>{class t extends RT{location=h(ls);urlSerializer=h(qu);options=h(Yu,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=h(Ix);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ta();getCurrentUrlTree(){return this.currentUrlTree;}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree;}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState();}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId;}routerState=gT(null);getRouterState(){return this.routerState;}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState};}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state);});}handleRouterEvent(e,n){if(e instanceof eo)this.stateMemento=this.createStateMemento();else if(e instanceof ms)this.rawUrlTree=n.initialUrl;else if(e instanceof Pf){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??r,n);}}else e instanceof Vu?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof Sa&&(e.code===sr.GuardRejected||e.code===sr.NoDataFromResolver)?this.restoreHistory(n):e instanceof Lu?this.restoreHistory(n,!0):e instanceof lr&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,n){let r=e instanceof Ta?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){let o=this.browserPageId,a=j(j({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(r,"",a);}else{let o=j(j({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(r,"",o);}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree());}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,ɵrouterPageId:n}:{navigationId:e};}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function OT(t,i){t.events.pipe(ke(e=>e instanceof lr||e instanceof Sa||e instanceof Lu||e instanceof ms),me(e=>e instanceof lr||e instanceof ms?0:(e instanceof Sa?e.code===sr.Redirect||e.code===sr.SupersededByNewNavigation:!1)?2:1),ke(e=>e!==2),de(1)).subscribe(()=>{i();});}var f9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},g9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Je=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree();}get rawUrlTree(){return this.stateManager.getRawUrlTree();}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(ny);stateManager=h(RT);options=h(Yu,{optional:!0})||{};pendingTasks=h(So);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(kx);urlSerializer=h(qu);location=h(ls);urlHandlingStrategy=h(Ix);_events=new U();get events(){return this._events;}get routerState(){return this.stateManager.getRouterState();}navigated=!1;routeReuseStrategy=h(Mx);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(Hu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Hf,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e);}}),this.subscribeToNavigationEvents();}eventsSubscription=new Ie();subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof Sa&&n.code!==sr.Redirect&&n.code!==sr.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof lr)this.navigated=!0;else if(n instanceof Sc){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,r.currentRawUrl),l=j({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||m9(r.source)},a);this.scheduleNavigation(s,Pu,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise});}}b9(n)&&this._events.next(n);}catch(r){this.navigationTransitions.transitionAbortSubject.next(r);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pu,this.stateManager.restoredState());}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n);},0);});}navigateToSyncWithBrowser(e,n,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=j({},r);delete l.navigationId,delete l.ɵrouterPageId,Object.keys(l).length!==0&&(o.state=l);}let s=this.parseUrl(e);this.scheduleNavigation(s,n,a,o);}get url(){return this.serializeUrl(this.currentUrlTree);}getCurrentNavigation(){return this.navigationTransitions.currentNavigation;}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation;}resetConfig(e){this.config=e.map(Dx),this.navigated=!1;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe();}createUrlTree(e,n={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,p=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":p=j(j({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null;}p!==null&&(p=this.removeEmptyProps(p));let g;try{let _=r?r.snapshot:this.routerState.snapshot.root;g=mT(_);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root;}return pT(g,e,p,c??null);}navigateByUrl(e,n={skipLocationChange:!1}){let r=pl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Pu,null,n);}navigate(e,n={skipLocationChange:!1}){return _9(e),this.navigateByUrl(this.createUrlTree(e,n),n);}serializeUrl(e){return this.urlSerializer.serialize(e);}parseUrl(e){try{return this.urlSerializer.parse(e);}catch{return this.urlSerializer.parse("/");}}isActive(e,n){let r;if(n===!0?r=j({},f9):n===!1?r=j({},g9):r=n,pl(e))return GS(this.currentUrlTree,e,r);let o=this.parseUrl(e);return GS(this.currentUrlTree,o,r);}removeEmptyProps(e){return Object.entries(e).reduce((n,[r,o])=>(o!=null&&(n[r]=o),n),{});}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((g,_)=>{s=g,l=_;});let p=this.pendingTasks.add();return OT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p));}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(g=>Promise.reject(g));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function _9(t){for(let i=0;i<t.length;i++)if(t[i]==null)throw new X(4008,!1);}function b9(t){return!(t instanceof Vu)&&!(t instanceof Sc);}var Pn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new U();constructor(e,n,r,o,a,s){this.router=e,this.route=n,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof lr&&this.updateHref();}):this.setTabIndexIfNotOnNativeEl("0");}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this);}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(pl(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,n,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||n||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l),!this.isAnchorElement;}ngOnDestroy(){this.subscription?.unsubscribe();}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Lk(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n);}applyAttributeValue(e,n){let r=this.renderer,o=this.el.nativeElement;n!==null?r.setAttribute(o,e,n):r.removeAttribute(o,e);}get urlTree(){return this.routerLinkInput===null?null:pl(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment});}static ɵfac=function(n){return new(n||t)(w(Je),w(Qi),Lh("tabindex"),w(wt),w(ee),w(Ma));};static ɵdir=L({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){n&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey);}),n&2&&oe("target",r.target);},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Q],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Q],replaceUrl:[2,"replaceUrl","replaceUrl",Q],routerLink:"routerLink"},features:[tt]});}return t;})(),Rc=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive;}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new z();constructor(e,n,r,o,a){this.router=e,this.element=n,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof lr&&this.update();});}ngAfterContentInit(){se(this.links.changes,se(null)).pipe(go()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=Rt(e).pipe(go()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update();});}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(r=>!!r);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let n=v9(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,n):!1;};}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e);}static ɵfac=function(n){return new(n||t)(w(Je),w(ee),w(wt),w(ge),w(Pn,8));};static ɵdir=L({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(n&1&&Fe(o,Pn,5),n&2){let a;F(a=N())&&(r.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[tt]});}return t;})();function v9(t){return!!t.paths;}var $f=class{};var y9=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a;}setUpPreloading(){this.subscription=this.router.events.pipe(ke(e=>e instanceof lr),ma(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config);}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}processRoutes(e,n){let r=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Wh(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes));}return Rt(r).pipe(go());}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;n.loadChildren&&n.canLoad===void 0?r=this.loader.loadChildren(e,n):r=se(null);let o=r.pipe(Tn(a=>a===null?se(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return Rt([o,a]).pipe(go());}else return o;});}static ɵfac=function(n){return new(n||t)(J(Je),J(ef),J(Vn),J($f),J(Ex));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),PT=new R(""),x9=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,r,o,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled";}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof eo?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof lr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ms&&e.code===Of.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));});}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ff&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]));});}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ff(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n));});},0);});}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static ɵfac=function(n){qh();};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();function FT(t,...i){return uu([{provide:Hu,multi:!0,useValue:t},[],{provide:Qi,useFactory:NT,deps:[Je]},{provide:xu,multi:!0,useFactory:LT},i.map(e=>e.ɵproviders)]);}function NT(t){return t.routerState.root;}function Zu(t,i){return{ɵkind:t,ɵproviders:i};}function LT(){let t=h(Oe);return i=>{let e=t.get(Pi);if(i!==e.components[0])return;let n=t.get(Je),r=t.get(VT);t.get(Sx)===1&&n.initialNavigation(),t.get(zT,null,rt.Optional)?.setUpPreloading(),t.get(PT,null,rt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe());};}var VT=new R("",{factory:()=>new U()}),Sx=new R("",{providedIn:"root",factory:()=>1});function w9(){return Zu(2,[{provide:Sx,useValue:0},{provide:Zh,multi:!0,deps:[Oe],useFactory:i=>{let e=i.get(dS,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let r=i.get(Je),o=i.get(VT);OT(r,()=>{n(!0);}),i.get(kx).afterPreactivation=()=>(n(!0),o.closed?se(void 0):o),r.initialNavigation();}));}}]);}function C9(){return Zu(3,[{provide:Zh,multi:!0,useFactory:()=>{let i=h(Je);return()=>{i.setUpLocationChangeListener();};}},{provide:Sx,useValue:2}]);}var zT=new R("");function D9(t){return Zu(0,[{provide:zT,useExisting:y9},{provide:$f,useExisting:t}]);}function E9(){return Zu(8,[KS,{provide:Hf,useExisting:KS}]);}function I9(t){let i=[{provide:ST,useValue:d9},{provide:TT,useValue:j({skipNextTransition:!!t?.skipInitialTransition},t)}];return Zu(9,i);}var k9=[ls,{provide:qu,useClass:Mc},Je,Gu,{provide:Qi,useFactory:NT,deps:[Je]},Ex,[]],Yt=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[k9,[],{provide:Hu,multi:!0,useValue:e},[],n?.errorHandler?{provide:AT,useValue:n.errorHandler}:[],{provide:Yu,useValue:n||{}},n?.useHash?S9():T9(),M9(),n?.preloadingStrategy?D9(n.preloadingStrategy).ɵproviders:[],n?.initialNavigation?A9(n):[],n?.bindToComponentInputs?E9().ɵproviders:[],n?.enableViewTransitions?I9().ɵproviders:[],R9()]};}static forChild(e){return{ngModule:t,providers:[{provide:Hu,multi:!0,useValue:e}]};}static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})();function M9(){return{provide:PT,useFactory:()=>{let t=h(bS),i=h(le),e=h(Yu),n=h(kx),r=h(qu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new x9(r,n,t,i,e);}};}function S9(){return{provide:Ma,useClass:mS};}function T9(){return{provide:Ma,useClass:Ty};}function A9(t){return[t.initialNavigation==="disabled"?C9().ɵproviders:[],t.initialNavigation==="enabledBlocking"?w9().ɵproviders:[]];}var tT=new R("");function R9(){return[{provide:tT,useFactory:LT},{provide:xu,multi:!0,useExisting:tT}];}var Ax;try{Ax=typeof Intl<"u"&&Intl.v8BreakIterator;}catch{Ax=!1;}var We=(()=>{class t{_platformId=h(xa);isBrowser=this._platformId?_S(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||Ax)&&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;constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Oc,BT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Rx(){if(Oc)return Oc;if(typeof document!="object"||!document)return Oc=new Set(BT),Oc;let t=document.createElement("input");return Oc=new Set(BT.filter(i=>(t.setAttribute("type",i),t.type===i))),Oc;}var Ku;function O9(){if(Ku==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ku=!0}));}finally{Ku=Ku||!1;}return Ku;}function Sr(t){return O9()?t:!!t.capture;}var to=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t;}(to||{}),qf,fl;function Wf(){if(fl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return fl=!1,fl;if("scrollBehavior"in document.documentElement.style)fl=!0;else{let t=Element.prototype.scrollTo;t?fl=!/\{\s*\[native code\]\s*\}/.test(t.toString()):fl=!1;}}return fl;}function Pc(){if(typeof document!="object"||!document)return to.NORMAL;if(qf==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),qf=to.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,qf=t.scrollLeft===0?to.NEGATED:to.INVERTED),t.remove();}return qf;}var Tx;function P9(){if(Tx==null){let t=typeof document<"u"?document.head:null;Tx=!!(t&&(t.createShadowRoot||t.attachShadow));}return Tx;}function jT(t){if(P9()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i;}return null;}function gl(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i;}return t;}function cr(t){return t.composedPath?t.composedPath()[0]:t.target;}function Ox(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha;}function Px(t,i,e,n,r){let o=parseInt(_y.major),a=parseInt(_y.minor);return o>19||o===19&&a>0||o===0&&a===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r);});}var Gf=new WeakMap(),kt=(()=>{class t{_appRef;_injector=h(Oe);_environmentInjector=h(Vn);load(e){let n=this._appRef=this._appRef||this._injector.get(Pi),r=Gf.get(n);r||(r={loaders:new Set(),refs:[]},Gf.set(n,r),n.onDestroy(()=>{Gf.get(n)?.refs.forEach(o=>o.destroy()),Gf.delete(n);})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(tf(e,{environmentInjector:this._environmentInjector})));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),_l=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0});}return t;})();function pn(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey;}function Tr(t){return t!=null&&`${t}`!="false";}function Ar(t,i=0){return Fx(t)?Number(t):arguments.length===2?i:0;}function Fx(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t));}function Fc(t){return Array.isArray(t)?t:[t];}function In(t){return t==null?"":typeof t=="string"?t:`${t}px`;}function Yi(t){return t instanceof ee?t.nativeElement:t;}function F9(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i<t.addedNodes.length;i++)if(!(t.addedNodes[i]instanceof Comment))return!1;for(let i=0;i<t.removedNodes.length;i++)if(!(t.removedNodes[i]instanceof Comment))return!1;return!0;}return!1;}var $T=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),HT=(()=>{class t{_mutationObserverFactory=h($T);_observedElements=new Map();_ngZone=h(le);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n));}observe(e){let n=Yi(e);return new $e(r=>{let a=this._observeElement(n).pipe(me(s=>s.filter(l=>!F9(l))),ke(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s);});});return()=>{a.unsubscribe(),this._unobserveElement(n);};});}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new U(),r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1});}return this._observedElements.get(e).stream;});}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e));}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e);}}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Nx=(()=>{class t{_contentObserver=h(HT);_elementRef=h(ee);event=new z();get disabled(){return this._disabled;}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe();}_disabled=!1;get debounce(){return this._debounce;}set debounce(e){this._debounce=Ar(e),this._subscribe();}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe();}ngOnDestroy(){this._unsubscribe();}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(pa(this.debounce)):e).subscribe(this.event);}_unsubscribe(){this._currentSubscription?.unsubscribe();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Q],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});}return t;})(),Nc=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[$T]});}return t;})();var UT=new Set(),bl,N9=(()=>{class t{_platform=h(We);_nonce=h(hu,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):V9;}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&L9(e,this._nonce),this._matchMedia(e);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function L9(t,i){if(!UT.has(t))try{bl||(bl=document.createElement("style"),i&&bl.setAttribute("nonce",i),bl.setAttribute("type","text/css"),document.head.appendChild(bl)),bl.sheet&&(bl.sheet.insertRule(`@media ${t} {body{ }}`,0),UT.add(t));}catch(e){console.error(e);}}function V9(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}};}var hs=(()=>{class t{_mediaMatcher=h(N9);_zone=h(le);_queries=new Map();_destroySubject=new U();constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(e){return qT(Fc(e)).some(r=>this._registerQuery(r).mql.matches);}observe(e){let r=qT(Fc(e)).map(a=>this._registerQuery(a).observable),o=Ur(r);return o=Qa(o.pipe(de(1)),o.pipe($s(1),pa(0))),o.pipe(me(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l;}),s;}));}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),o={observable:new $e(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s);};}).pipe(yt(n),me(({matches:a})=>({query:e,matches:a})),Ae(this._destroySubject)),mql:n};return this._queries.set(e,o),o;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function qT(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim());}var WT={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) ��and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var XT=" ";function Ux(t,i,e){let n=Kf(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(XT)));}function eg(t,i,e){let n=Kf(t,i);e=e.trim();let r=n.filter(o=>o!==e);r.length?t.setAttribute(i,r.join(XT)):t.removeAttribute(i);}function Kf(t,i){return t.getAttribute(i)?.match(/\S+/g)??[];}var JT="cdk-describedby-message",Qf="cdk-describedby-host",Bx=0,tg=(()=>{class t{_platform=h(We);_document=h(ve);_messageRegistry=new Map();_messagesContainer=null;_id=`${Bx++}`;constructor(){h(kt).load(_l),this._id=h(fc)+"-"+Bx++;}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let o=Lx(n,r);typeof n!="string"?(QT(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o);}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let o=Lx(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof n=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Qf}="${this._id}"]`);for(let n=0;n<e.length;n++)this._removeCdkDescribedByReferenceIds(e[n]),e[n].removeAttribute(Qf);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(e,n){let r=this._document.createElement("div");QT(r,this._id),r.textContent=e,n&&r.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Lx(e,n),{messageElement:r,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",n=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<n.length;o++)n[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r;}_removeCdkDescribedByReferenceIds(e){let n=Kf(e,"aria-describedby").filter(r=>r.indexOf(JT)!=0);e.setAttribute("aria-describedby",n.join(" "));}_addMessageReference(e,n){let r=this._messageRegistry.get(n);Ux(e,"aria-describedby",r.messageElement.id),e.setAttribute(Qf,this._id),r.referenceCount++;}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,eg(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Qf);}_isElementDescribedByMessage(e,n){let r=Kf(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1;}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1;}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Lx(t,i){return typeof t=="string"?`${i||""}/${t}`:t;}function QT(t,i){t.id||(t.id=`${JT}-${i}-${Bx++}`);}var X9=200,jx=class{_letterKeyStream=new U();_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new U();selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:X9;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n);}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(on(e=>this._pressedLetters.push(e)),pa(i),ke(()=>this._pressedLetters.length>0),me(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;n<this._items.length+1;n++){let r=(this._selectedItemIndex+n)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break;}}this._pressedLetters=[];});}},Xf=class{_items;_activeItemIndex=-1;_activeItem=Ci(null);_wrap=!1;_typeaheadSubscription=Ie.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof oi?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):is(i)&&(this._effectRef=Cu(()=>this._itemsChanged(i()),{injector:e}));}tabOut=new U();change=new U();skipPredicate(i){return this._skipPredicateFn=i,this;}withWrap(i=!0){return this._wrap=i,this;}withVerticalOrientation(i=!0){return this._vertical=i,this;}withHorizontalOrientation(i){return this._horizontal=i,this;}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this;}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new jx(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this;}cancelTypeahead(){return this._typeahead?.reset(),this;}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this;}withPageUpDown(i=!0,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,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break;}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break;}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break;}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break;}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break;}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break;}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break;}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break;}else return;default:(r||pn(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(),n=typeof i=="number"?i:e.indexOf(i),r=e[n];this._activeItem.set(r??null),this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n);}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 n=1;n<=e.length;n++){let r=(this._activeItemIndex+i*n+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return;}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i);}_setActiveItemByIndex(i,e){let n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(i+=e,!n[i])return;this.setActiveItem(i);}}_getItemsArray(){return is(this._items)?this._items():this._items instanceof oi?this._items.toArray():this._items;}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let n=i.indexOf(e);n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n));}}},Jf=class extends Xf{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles();}},Oo=class extends Xf{_origin="program";setFocusOrigin(i){return this._origin=i,this;}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin);}};var qx=(()=>{class t{_platform=h(We);constructor(){}isDisabled(e){return e.hasAttribute("disabled");}isVisible(e){return e$(e)&&getComputedStyle(e).visibility==="visible";}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=J9(l$(e));if(n&&(YT(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=YT(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!a$(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0;}isFocusable(e,n){return s$(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function J9(t){try{return t.frameElement;}catch{return null;}}function e$(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length);}function t$(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea";}function n$(t){return r$(t)&&t.type=="hidden";}function i$(t){return o$(t)&&t.hasAttribute("href");}function r$(t){return t.nodeName.toLowerCase()=="input";}function o$(t){return t.nodeName.toLowerCase()=="a";}function e2(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)));}function YT(t){if(!e2(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i;}function a$(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea";}function s$(t){return n$(t)?!1:t$(t)||i$(t)||t.hasAttribute("contenteditable")||e2(t);}function l$(t){return t.ownerDocument&&t.ownerDocument.defaultView||window;}var $x=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;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=!0;constructor(i,e,n,r,o=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._injector=a,o||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=!1;}attachAnchors(){return this._hasAttached?!0:(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=!0),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 n=this._getFirstTabbableElement(e);return n?.focus(i),!!n;}return e.focus(i),!0;}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 n=0;n<e.length;n++){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r;}return null;}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=e.length-1;n>=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r;}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){this._injector?Cn(i,{injector:this._injector}):setTimeout(i);}},t2=(()=>{class t{_checker=h(qx);_ngZone=h(le);_document=h(ve);_injector=h(Oe);constructor(){h(kt).load(_l);}create(e,n=!1){return new $x(e,this._checker,this._ngZone,this._document,n,this._injector);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Xu(t){return t.buttons===0||t.detail===0;}function Ju(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1);}var c$=new R("cdk-input-modality-detector-options"),d$={ignoreKeys:[18,17,224,91,16]},n2=650,Lc=Sr({passive:!0,capture:!0}),u$=(()=>{class t{_platform=h(We);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value;}_mostRecentTarget=null;_modality=new Ut(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=cr(e));};_onMousedown=e=>{Date.now()-this._lastTouchMs<n2||(this._modality.next(Xu(e)?"keyboard":"mouse"),this._mostRecentTarget=cr(e));};_onTouchstart=e=>{if(Ju(e)){this._modality.next("keyboard");return;}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=cr(e);};constructor(){let e=h(le),n=h(ve),r=h(c$,{optional:!0});this._options=j(j({},d$),r),this.modalityDetected=this._modality.pipe($s(1)),this.modalityChanged=this.modalityDetected.pipe(Yl()),this._platform.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,Lc),n.addEventListener("mousedown",this._onMousedown,Lc),n.addEventListener("touchstart",this._onTouchstart,Lc);});}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Lc),document.removeEventListener("mousedown",this._onMousedown,Lc),document.removeEventListener("touchstart",this._onTouchstart,Lc));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),m$=new R("liveAnnouncerElement",{providedIn:"root",factory:p$});function p$(){return null;}var h$=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),f$=0,$c=(()=>{class t{_ngZone=h(le);_defaultOptions=h(h$,{optional:!0});_liveElement;_document=h(ve);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=h(m$,{optional:!0});this._liveElement=e||this._createLiveElement();}announce(e,...n){let r=this._defaultOptions,o,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise));}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<n.length;o++)n[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${f$++}`,this._document.body.appendChild(r),r;}_exposeAnnouncerToModals(e){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],a=o.getAttribute("aria-owns");a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e);}}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Zf=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t;}(Zf||{}),g$=new R("cdk-focus-monitor-default-options"),Yf=Sr({passive:!0,capture:!0}),$n=(()=>{class t{_ngZone=h(le);_platform=h(We);_inputModalityDetector=h(u$);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map();_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map();_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1);};_document=h(ve,{optional:!0});_stopInputModalityDetector=new U();constructor(){let e=h(g$,{optional:!0});this._detectionMode=e?.detectionMode||Zf.IMMEDIATE;}_rootNodeFocusAndBlurListener=e=>{let n=cr(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r);};monitor(e,n=!1){let r=Yi(e);if(!this._platform.isBrowser||r.nodeType!==1)return se();let o=jT(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new U(),rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject;}stopMonitoring(e){let n=Yi(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r));}focusVia(e,n,r){let o=Yi(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof o.focus=="function"&&o.focus(r));}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n));}_getDocument(){return this._document||document;}_getWindow(){return this._getDocument().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===Zf.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget);}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program");}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Zf.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?n2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r);}});}_onFocus(e,n){let r=this._elementInfo.get(n),o=cr(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r);}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null));}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n));}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Yf),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Yf);}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Ae(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0);}));}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yf),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yf),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r]);}),n;}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(n))return!0;}return!1;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),i2=(()=>{class t{_elementRef=h(ee);_focusMonitor=h($n);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new z();constructor(){}get focusOrigin(){return this._focusOrigin;}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n);});}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});}return t;})(),vl=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t;}(vl||{}),ZT="cdk-high-contrast-black-on-white",KT="cdk-high-contrast-white-on-black",Vx="cdk-high-contrast-active",Wx=(()=>{class t{_platform=h(We);_hasCheckedHighContrastMode;_document=h(ve);_breakpointSubscription;constructor(){this._breakpointSubscription=h(hs).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return vl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return vl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return vl.BLACK_ON_WHITE;}return vl.NONE;}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Vx,ZT,KT),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===vl.BLACK_ON_WHITE?e.add(Vx,ZT):n===vl.WHITE_ON_BLACK&&e.add(Vx,KT);}}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),ng=(()=>{class t{constructor(){h(Wx)._applyBodyHighContrastModeCssClasses();}static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[Nc]});}return t;})(),zx={},pt=(()=>{class t{_appId=h(fc);getId(e){return this._appId!=="ng"&&(e+=this._appId),zx.hasOwnProperty(e)||(zx[e]=0),`${e}${zx[e]++}`;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var b$=new R("cdk-dir-doc",{providedIn:"root",factory:v$});function v$(){return h(ve);}var y$=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function x$(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?y$.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr";}var Jt=(()=>{class t{value="ltr";change=new z();constructor(){let e=h(b$,{optional:!0});if(e){let n=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=x$(n||r||"ltr");}}ngOnDestroy(){this.change.complete();}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Po=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})();var w$=["text"],C$=[[["mat-icon"]],"*"],D$=["mat-icon","*"];function E$(t,i){if(t&1&&D(0,"mat-pseudo-checkbox",1),t&2){let e=x();y("disabled",e.disabled)("state",e.selected?"checked":"unchecked");}}function I$(t,i){if(t&1&&D(0,"mat-pseudo-checkbox",3),t&2){let e=x();y("disabled",e.disabled);}}function k$(t,i){if(t&1&&(m(0,"span",4),f(1),u()),t&2){let e=x();d(),P("(",e.group.label,")");}}var M$=["mat-internal-form-field",""],S$=["*"];var u2=(()=>{class t{static STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";}return t;})(),m2=(()=>{class t{static COMPLEX="375ms";static ENTERING="225ms";static EXITING="195ms";}return t;})();var fe=(()=>{class t{constructor(){h(Wx)._applyBodyHighContrastModeCssClasses();}static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[Po,Po]});}return t;})(),Hc=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,r,o){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o;}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,e)??!1;o!==i&&(this.errorState=o,this._stateChanges.next());}};var fs=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Fn=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,r){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0});}return t;})();var Ni=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t;}(Ni||{}),Yx=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ni.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r;}fadeOut(){this._renderer.fadeOutRipple(this);}},r2=Sr({passive:!0,capture:!0}),Zx=class{_events=new Map();addHandler(i,e,n,r){let o=this._events.get(e);if(o){let a=o.get(n);a?a.add(r):o.set(n,new Set([r]));}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,r2);});}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,r2)));}_delegateEventHandler=i=>{let e=cr(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i));});};},rg={enterDuration:225,exitDuration:150},T$=800,o2=Sr({passive:!0,capture:!0}),a2=["mousedown","touchstart"],s2=["mouseup","mouseleave","touchend","touchcancel"],A$=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0��});}return t;})(),em=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map();_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Zx();constructor(i,e,n,r,o){this._target=i,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Yi(n)),o&&o.get(kt).load(A$);}fadeInRipple(i,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=j(j({},rg),n.animation);n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);let a=n.radius||R$(i,e,r),s=i-r.left,l=e-r.top,c=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=`${s-a}px`,p.style.top=`${l-a}px`,p.style.height=`${a*2}px`,p.style.width=`${a*2}px`,n.color!=null&&(p.style.backgroundColor=n.color),p.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(p);let g=window.getComputedStyle(p),_=g.transitionProperty,b=g.transitionDuration,v=_==="none"||b==="0s"||b==="0s, 0s"||r.width===0&&r.height===0,I=new Yx(this,p,n,v);p.style.transform="scale3d(1, 1, 1)",I.state=Ni.FADING_IN,n.persistent||(this._mostRecentTransientRipple=I);let A=null;return!v&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let $=()=>{A&&(A.fallbackTimer=null),clearTimeout(B),this._finishRippleTransition(I);},Z=()=>this._destroyRipple(I),B=setTimeout(Z,c+100);p.addEventListener("transitionend",$),p.addEventListener("transitioncancel",Z),A={onTransitionEnd:$,onTransitionCancel:Z,fallbackTimer:B};}),this._activeRipples.set(I,A),(v||!c)&&this._finishRippleTransition(I),I;}fadeOutRipple(i){if(i.state===Ni.FADING_OUT||i.state===Ni.HIDDEN)return;let e=i.element,n=j(j({},rg),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Ni.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i);}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut();});}setupTriggerEvents(i){let e=Yi(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,a2.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this);}));}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{s2.forEach(e=>{this._triggerElement.addEventListener(e,this,o2);});}),this._pointerUpEventsRegistered=!0);}_finishRippleTransition(i){i.state===Ni.FADING_IN?this._startFadeOutTransition(i):i.state===Ni.FADING_OUT&&this._destroyRipple(i);}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Ni.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut();}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Ni.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove();}_onMousedown(i){let e=Xu(i),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+T$;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig));}_onTouchStart(i){if(!this._target.rippleDisabled&&!Ju(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=i.changedTouches;if(e)for(let n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(i=>{let e=i.state===Ni.VISIBLE||i.config.terminateOnPointerUp&&i.state===Ni.FADING_IN;!i.config.persistent&&e&&i.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys());}_removeTriggerEvents(){let i=this._triggerElement;i&&(a2.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(s2.forEach(e=>i.removeEventListener(e,this,o2)),this._pointerUpEventsRegistered=!1));}};function R$(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r);}var Uc=new R("mat-ripple-global-options"),Li=(()=>{class t{_elementRef=h(ee);_animationMode=h(mt,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled;}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled();}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement;}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=h(le),n=h(We),r=h(Uc,{optional:!0}),o=h(Oe);this._globalOptions=r||{},this._rippleRenderer=new em(this,e,this._elementRef,n,o);}ngOnInit(){this._isInitialized=!0,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:j(j(j({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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,n=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,j(j({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,j(j({},this.rippleConfig),e));}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-ripple-unbounded",r.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 t;})(),no=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,fe]});}return t;})(),O$=(()=>{class t{_animationMode=h(mt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){n&2&&ne("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations");},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});}return t;})(),Xx=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe]});}return t;})(),Jx=new R("MAT_OPTION_PARENT_COMPONENT"),ew=new R("MatOptgroup");var Kx=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e;}},gs=(()=>{class t{_element=h(ee);_changeDetectorRef=h(ge);_parent=h(Jx,{optional:!0});group=h(ew,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple;}get selected(){return this._selected;}value;id=h(pt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled;}set disabled(e){this._disabled=e;}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple;}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator);}onSelectionChange=new z();_text;_stateChanges=new U();constructor(){let e=h(kt);e.load(Fn),e.load(_l),this._signalDisableRipple=!!this._parent&&is(this._parent.disableRipple);}get active(){return this._active;}get viewValue(){return(this._text?.nativeElement.textContent||"").trim();}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}focus(e,n){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(n);}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck());}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck());}getLabel(){return this.viewValue;}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!pn(e)&&(this._selectViaInteraction(),e.preventDefault());}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0));}_getTabIndex(){return this.disabled?"-1":"0";}_getHostElement(){return this._element.nativeElement;}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e);}}ngOnDestroy(){this._stateChanges.complete();}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Kx(this,e));}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(n,r){if(n&1&&Y(w$,7),n&2){let o;F(o=N())&&(r._text=o.first);}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){n&1&&S("click",function(){return r._selectViaInteraction();})("keydown",function(a){return r._handleKeydown(a);}),n&2&&(Dn("id",r.id),oe("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),ne("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled));},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Q]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:D$,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,r){n&1&&(Pe(C$),T(0,E$,1,2,"mat-pseudo-checkbox",1),ue(1),m(2,"span",2,0),ue(4,1),u(),T(5,I$,1,1,"mat-pseudo-checkbox",3)(6,k$,2,1,"span",4),D(7,"div",5)),n&2&&(K(r.multiple?0:-1),d(5),K(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),d(),K(r.group&&r.group._inert?6:-1),d(),y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple));},dependencies:[O$,Li],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});}return t;})();function p2(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;a<t+1;a++)n[a].group&&n[a].group===r[o]&&o++;return o;}return 0;}function h2(t,i,e,n){return t<e?t:t+i>e+n?Math.max(0,t-n+i):e;}var tw=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[no,fe,Xx]});}return t;})(),l2={capture:!0},c2=["focus","mousedown","mouseenter","touchstart"],Gx="mat-ripple-loader-uninitialized",Qx="mat-ripple-loader-class-name",d2="mat-ripple-loader-centered",ig="mat-ripple-loader-disabled",f2=(()=>{class t{_document=h(ve,{optional:!0});_animationMode=h(mt,{optional:!0});_globalRippleOptions=h(Uc,{optional:!0});_platform=h(We);_ngZone=h(le);_injector=h(Oe);_hosts=new Map();constructor(){this._ngZone.runOutsideAngular(()=>{for(let e of c2)this._document?.addEventListener(e,this._onInteraction,l2);});}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);for(let n of c2)this._document?.removeEventListener(n,this._onInteraction,l2);}configureRipple(e,n){e.setAttribute(Gx,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(Qx))&&e.setAttribute(Qx,n.className||""),n.centered&&e.setAttribute(d2,""),n.disabled&&e.setAttribute(ig,"");}setDisabled(e,n){let r=this._hosts.get(e);r?(r.target.rippleDisabled=n,!n&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):n?e.setAttribute(ig,""):e.removeAttribute(ig);}_onInteraction=e=>{let n=cr(e);if(n instanceof HTMLElement){let r=n.closest(`[${Gx}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r);}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(Qx)),e.append(n);let r=this._animationMode==="NoopAnimations",o=this._globalRippleOptions,a=r?0:o?.animation?.enterDuration??rg.enterDuration,s=r?0:o?.animation?.exitDuration??rg.exitDuration,l={rippleDisabled:r||o?.disabled||e.hasAttribute(ig),rippleConfig:{centered:e.hasAttribute(d2),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},c=new em(l,this._ngZone,n,this._platform,this._injector),p=!l.rippleDisabled;p&&c.setupTriggerEvents(e),this._hosts.set(e,{target:l,renderer:c,hasSetUpEvents:p}),e.removeAttribute(Gx);}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),og=(()=>{class t{labelPosition;static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mdc-form-field--align-end",r.labelPosition==="before");},inputs:{labelPosition:"labelPosition"},attrs:M$,ngContentSelectors:S$,decls:1,vars:0,template:function(n,r){n&1&&(Pe(),ue(0));},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0});}return t;})();var P$=["*",[["mat-toolbar-row"]]],F$=["*","mat-toolbar-row"],N$=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});}return t;})(),Qn=(()=>{class t{_elementRef=h(ee);_platform=h(We);_document=h(ve);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()));}_checkToolbarMixedModes(){this._toolbarRows.length;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,r,o){if(n&1&&Fe(o,N$,5),n&2){let a;F(a=N())&&(r._toolbarRows=a);}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,r){n&2&&(Dt(r.color?"mat-"+r.color:""),ne("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0));},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:F$,decls:2,vars:0,template:function(n,r){n&1&&(Pe(P$),ue(0),ue(1,1));},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}"],encapsulation:2,changeDetection:0});}return t;})();var Ii=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,fe]});}return t;})();var L$=["*"],ag;function V$(){if(ag===void 0&&(ag=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ag=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}));}return ag;}function tm(t){return V$()?.createHTML(t)||t;}function _2(t){return Error(`Unable to find icon with the name "${t}"`);}function z$(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.");}function b2(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`);}function v2(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`);}var Aa=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n;}},B$=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map();_iconSetConfigs=new Map();_cachedIconsByUrl=new Map();_inProgressUrlFetches=new Map();_fontCssClassesByAlias=new Map();_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._document=r;}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r);}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r);}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new Aa(r,null,o));}addSvgIconResolver(e){return this._resolvers.push(e),this;}addSvgIconLiteralInNamespace(e,n,r,o){let a=this._sanitizer.sanitize(si.HTML,r);if(!a)throw v2(r);let s=tm(a);return this._addSvgIconConfig(e,n,new Aa("",s,o));}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n);}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n);}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new Aa(n,null,r));}addSvgIconSetLiteralInNamespace(e,n,r){let o=this._sanitizer.sanitize(si.HTML,n);if(!o)throw v2(n);let a=tm(o);return this._addSvgIconSetConfig(e,new Aa("",a,r));}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this;}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e;}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this;}getDefaultFontSetClass(){return this._defaultFontSetClass;}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(si.RESOURCE_URL,e);if(!n)throw b2(e);let r=this._cachedIconsByUrl.get(n);return r?se(sg(r)):this._loadSvgIconFromConfig(new Aa(e,null)).pipe(on(o=>this._cachedIconsByUrl.set(n,o)),me(o=>sg(o)));}getNamedSvgIcon(e,n=""){let r=y2(n,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Wa(_2(r));}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear();}_getSvgFromConfig(e){return e.svgText?se(sg(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(me(n=>sg(n)));}_getSvgFromIconSetConfigs(e,n){let r=this._extractIconWithNameFromAnySet(e,n);if(r)return se(r);let o=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Ji(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(si.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),se(null);})));return Ud(o).pipe(me(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw _2(e);return a;}));}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){let o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s;}}return null;}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(on(n=>e.svgText=n),me(()=>this._svgElementFromConfig(e)));}_loadSvgIconSetFromConfig(e){return e.svgText?se(null):this._fetchIcon(e).pipe(on(n=>e.svgText=n));}_extractSvgIconFromSet(e,n,r){let o=e.querySelector(`[id="${n}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(tm("<svg></svg>"));return s.appendChild(a),this._setSvgAttributes(s,r);}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let r=n.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r;}_toSvgElement(e){let n=this._svgElementFromString(tm("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:a,value:s}=r[o];a!=="id"&&n.setAttribute(a,s);}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&n.appendChild(e.childNodes[o].cloneNode(!0));return n;}_setSvgAttributes(e,n){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),n&&n.viewBox&&e.setAttribute("viewBox",n.viewBox),e;}_fetchIcon(e){let{url:n,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw z$();if(n==null)throw Error(`Cannot fetch icon from URL "${n}".`);let a=this._sanitizer.sanitize(si.RESOURCE_URL,n);if(!a)throw b2(n);let s=this._inProgressUrlFetches.get(a);if(s)return s;let l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(me(c=>tm(c)),bo(()=>this._inProgressUrlFetches.delete(a)),Qd());return this._inProgressUrlFetches.set(a,l),l;}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(y2(e,n),r),this;}_addSvgIconSetConfig(e,n){let r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this;}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n;}return e.svgElement;}_getIconConfigFromResolvers(e,n){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](n,e);if(o)return j$(o)?new Aa(o.url,null,o.options):new Aa(o,null);}}static ɵfac=function(n){return new(n||t)(J(ui,8),J(rr),J(ve,8),J($i));};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function sg(t){return t.cloneNode(!0);}function y2(t,i){return t+":"+i;}function j$(t){return!!(t.url&&t.options);}var $$=new R("MAT_ICON_DEFAULT_OPTIONS"),H$=new R("mat-icon-location",{providedIn:"root",factory:U$});function U$(){let t=h(ve),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""};}var x2=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],q��$=x2.map(t=>`[${t}]`).join(", "),W$=/^url\(['"]?#(.*?)['"]?\)$/,Re=(()=>{class t{_elementRef=h(ee);_iconRegistry=h(B$);_location=h(H$);_errorHandler=h($i);_defaultColor;get color(){return this._color||this._defaultColor;}set color(e){this._color=e;}_color;inline=!1;get svgIcon(){return this._svgIcon;}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e);}_svgIcon;get fontSet(){return this._fontSet;}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses());}_fontSet;get fontIcon(){return this._fontIcon;}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses());}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ie.EMPTY;constructor(){let e=h(new ri("aria-hidden"),{optional:!0}),n=h($$,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true");}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`);}}ngOnInit(){this._updateFontIconClasses();}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n));}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();}_usingFontIcon(){return!this.svgIcon;}_setSvgElement(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e);}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let r=e.childNodes[n];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove();}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon);}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e;}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`);});});}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(q$),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map();for(let o=0;o<n.length;o++)x2.forEach(a=>{let s=n[o],l=s.getAttribute(a),c=l?l.match(W$):null;if(c){let p=r.get(s);p||(p=[],r.set(s,p)),p.push({name:a,value:c[1]});}});}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(de(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${n}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a));});}}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,r){n&2&&(oe("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Dt(r.color?"mat-"+r.color:""),ne("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"));},inputs:{color:"color",inline:[2,"inline","inline",Q],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:L$,decls:1,vars:0,template:function(n,r){n&1&&(Pe(),ue(0));},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});}return t;})(),Ee=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,fe]});}return t;})();var C2=["mat-button",""],nw=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],iw=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],G$='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',D2="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}";var Q$=["mat-mini-fab",""],Y$='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weigh��t, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',Z$=["mat-icon-button",""],K$=["*"];var X$=new R("MAT_BUTTON_CONFIG");var J$=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],lg=(()=>{class t{_elementRef=h(ee);_ngZone=h(le);_animationMode=h(mt,{optional:!0});_focusMonitor=h($n);_rippleLoader=h(f2);_isFab=!1;color;get disableRipple(){return this._disableRipple;}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled();}_disableRipple=!1;get disabled(){return this._disabled;}set disabled(e){this._disabled=e,this._updateRippleDisabled();}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){h(kt).load(Fn);let e=h(X$,{optional:!0}),n=this._elementRef.nativeElement,r=n.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(n,{className:"mat-mdc-button-ripple"});for(let{attribute:o,mdcClasses:a}of J$)n.hasAttribute(o)&&r.add(...a);}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0);}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null;}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0;}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Q],disabled:[2,"disabled","disabled",Q],ariaDisabled:[2,"aria-disabled","ariaDisabled",Q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q]}});}return t;})();var eH=(()=>{class t extends lg{_renderer=h(wt);_cleanupClick;tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._elementRef.nativeElement,"click",this._haltDisabledEvents);});}ngOnDestroy(){super.ngOnDestroy(),this._cleanupClick?.();}_haltDisabledEvents=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation());};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null;}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:at(e)]},features:[q]});}return t;})(),Me=(()=>{class t extends lg{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(oe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Dt(r.color?"mat-"+r.color:""),ne("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton"],features:[q],attrs:C2,ngContentSelectors:iw,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Pe(nw),D(0,"span",0),ue(1),m(2,"span",1),ue(3,1),u(),ue(4,2),D(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab);},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0});}return t;})(),ki=(()=>{class t extends eH{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,r){n&2&&(oe("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),Dt(r.color?"mat-"+r.color:""),ne("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton","matAnchor"],features:[q],attrs:C2,ngContentSelectors:iw,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Pe(nw),D(0,"span",0),ue(1),m(2,"span",1),ue(3,1),u(),ue(4,2),D(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab);},styles:[G$,D2],encapsulation:2,changeDetection:0});}return t;})(),tH=new R("mat-mdc-fab-default-options",{providedIn:"root",factory:E2});function E2(){return{color:"accent"};}var w2=E2();var cg=(()=>{class t extends lg{_options=h(tH,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||w2,this.color=this._options.color||w2.color;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(n,r){n&2&&(oe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Dt(r.color?"mat-"+r.color:""),ne("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton"],features:[q],attrs:Q$,ngContentSelectors:iw,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Pe(nw),D(0,"span",0),ue(1),m(2,"span",1),ue(3,1),u(),ue(4,2),D(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab);},styles:[Y$],encapsulation:2,changeDetection:0});}return t;})();var Mi=(()=>{class t extends lg{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0});}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(oe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Dt(r.color?"mat-"+r.color:""),ne("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton"],features:[q],attrs:Z$,ngContentSelectors:K$,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Pe(),D(0,"span",0),ue(1),D(2,"span",1)(3,"span",2));},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{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))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.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{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.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{background:rgba(0,0,0,0);opacity:1}',D2],encapsulation:2,changeDetection:0});}return t;})();var ce=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,no,fe]});}return t;})();var nm=class{_attachedHost;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;}},io=class extends nm{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o;}},Yn=class extends nm{templateRef;viewContainerRef;context;injector;constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r;}get origin(){return this.templateRef.elementRef;}attach(i,e=this.context){return this.context=e,super.attach(i);}detach(){return this.context=void 0,super.detach();}},rw=class extends nm{element;constru��ctor(i){super(),this.element=i instanceof ee?i.nativeElement:i;}},_s=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal;}attach(i){if(i instanceof io)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Yn)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof rw)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=!0;}setDisposeFn(i){this._disposeFn=i;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}};var im=class extends _s{outletElement;_appRef;_defaultInjector;_document;constructor(i,e,n,r,o){super(),this.outletElement=i,this._appRef=n,this._defaultInjector=r,this._document=o;}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,r=n.get(Qr,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy());}else e=tf(i.component,{elementInjector:i.injector||this._defaultInjector||Oe.NULL,environmentInjector:this._appRef.injector,projectableNodes:i.projectableNodes||void 0}),this._appRef.attachView(e.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(e.hostView),e.destroy();});return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e;}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);r!==-1&&e.remove(r);}),this._attachedPortal=i,n;}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(i){return i.hostView.rootNodes[0];}};var I2=(()=>{class t extends Yn{constructor(){let e=h(ot),n=h(Ct);super(e,n);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[q]});}return t;})();var Si=(()=>{class t extends _s{_moduleRef=h(Qr,{optional:!0});_document=h(ve);_viewContainerRef=h(Ct);_isInitialized=!1;_attachedRef;constructor(){super();}get portal(){return this._attachedPortal;}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null);}attached=new z();get attachedRef(){return this._attachedRef;}ngOnInit(){this._isInitialized=!0;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r;}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n;}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(r,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r);});};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[q]});}return t;})();var mr=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})();var dg=class{};function mg(t){return t&&typeof t.connect=="function"&&!(t instanceof qa);}var Wc=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t;}(Wc||{}),rm=new R("_ViewRepeater"),Gc=class{applyChanges(i,e,n,r,o){i.forEachOperation((a,s,l)=>{let c,p;if(a.previousIndex==null){let g=n(a,s,l);c=e.createEmbeddedView(g.templateRef,g.context,g.index),p=Wc.INSERTED;}else l==null?(e.remove(s),p=Wc.REMOVED):(c=e.get(s),e.move(c,l),p=Wc.MOVED);o&&o({context:c?.context,operation:p,record:a});});}detach(){}};var ug=class{_multiple;_emitChanges;compareWith;_selection=new Set();_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected;}changed=new U();constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0);}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e;}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e;}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i);i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r;}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i);}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e;}isSelected(i){return this._selection.has(this._getConcreteValue(i));}isEmpty(){return this._selection.size===0;}hasValue(){return!this.isEmpty();}sort(i){this._multiple&&this.selected&&this._selected.sort(i);}isMultipleSelection(){return this._multiple;}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]);}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i));}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i));}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i));}_verifyValueAssignment(i){i.length>1&&this._multiple;}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length);}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i;}else return i;}};var pg=(()=>{class t{_listeners=[];notify(e,n){for(let r of this._listeners)r(e,n);}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n);};}ngOnDestroy(){this._listeners=[];}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var nH=20,Qc=(()=>{class t{_ngZone=h(le);_platform=h(We);_renderer=h(Hi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new U();_scrolledCount=0;scrollContainers=new Map();register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)));}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e));}scrolled(e=nH){return this._platform.isBrowser?new $e(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Ql(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);};}):se();}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(e,n){let r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(ke(o=>!o||r.indexOf(o)>-1));}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o);}),n;}_scrollableContainsElement(e,n){let r=Yi(n),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1;}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),om=(()=>{class t{elementRef=h(ee);scrollDispatcher=h(Qc);ngZone=h(le);dir=h(Jt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new U();_renderer=h(wt);_cleanupScroll;_elementScrolled=new U();constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),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(e){let n=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&Pc()!=to.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Pc()==to.INVERTED?e.left=e.right:Pc()==to.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e);}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Wf()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left));}measureScrollOffset(e){let n="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:n:e=="end"&&(e=a?n:r),a&&Pc()==to.INVERTED?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&Pc()==to.NEGATED?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});}return t;})(),iH=20,Fo=(()=>{class t{_platform=h(We);_listeners;_viewportSize;_change=new U();_document=h(ve,{optional:!0});constructor(){let e=h(le),n=h(Hi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[n.listen("window","resize",r),n.listen("window","orientationchange",r)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e;}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n};}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:a,left:s};}change(e=iH){return e>0?this._change.pipe(Ql(e)):this._change;}_getWindow(){return this._document.defaultView||window;}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0};}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var bs=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})(),am=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[Po,bs,Po,bs]});}return t;})();var k2=Wf(),ow=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e;}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=In(-this._previousScrollPosition.left),i.style.top=In(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0;}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,r=e.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),k2&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),k2&&(n.scrollBehavior=o,r.scrollBehavior=a);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width;}};var aw=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r;}attach(i){this._overlayRef,this._overlayRef=i;}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(ke(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-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());};},hg=class{enable(){}disable(){}attach(){}};function sw(t,i){return i.some(e=>{let n=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,a=t.left>e.right;return n||r||o||a;});}function M2(t,i){return i.some(e=>{let n=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,a=t.right>e.right;return n||r||o||a;});}var lw=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r;}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();sw(e,[{width:n,height:r,bottom:r,right:n,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;}},oH=(()=>{class t{_scrollDispatcher=h(Qc);_viewportRuler=h(Fo);_ngZone=h(le);_document=h(ve);constructor(){}noop=()=>new hg();close=e=>new aw(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new ow(this._viewportRuler,this._document);reposition=e=>new lw(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),No=class{positionStrategy;scrollStrategy=new hg();panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n]);}}};var cw=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e;}};var P2=(()=>{class t{_attachedOverlays=[];_document=h(ve);_isAttached;constructor(){}ngOnDestroy(){this.detach();}add(e){this.remove(e),this._attachedOverlays.push(e);}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),aH=(()=>{class t extends P2{_ngZone=h(le);_renderer=h(Hi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=!0);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1);}_keydownListener=e=>{let n=this._attachedOverlays;for(let r=n.length-1;r>-1;r--)if(n[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[r]._keydownEvents.next(e));break;}};static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),sH=(()=>{class t extends P2{_platform=h(We);_ngZone=h(le,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(e){if(super.add(e),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0;}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1;}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0);}_pointerDownListener=e=>{this._pointerDownEventTarget=cr(e);};_clickListener=e=>{let n=cr(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(S2(s.overlayElement,n)||S2(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e);}};static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function S2(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode;}return!1;}var F2=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0});}return t;})(),fg=(()=>{class t{_platform=h(We);_containerElement;_document=h(ve);_styleLoader=h(kt);constructor(){}ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement;}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Ox()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove();}let n=this._document.createElement("div");n.classList.add(e),Ox()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(F2);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),dw=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,e,n,r){this._renderer=e,this._ngZone=n,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",r);}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();};},Yc=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new U();_attachments=new U();_detachments=new U();_positionStrategy;_scrollStrategy;_locationChanges=Ie.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new U();_outsidePointerEvents=new U();_renders=new U();_afterRenderRef;_afterNextRenderRef;constructor(i,e,n,r,o,a,s,l,c,p=!1,g,_){this._portalOutlet=i,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=p,this._injector=g,this._renderer=_,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Gi(()=>fu(()=>{this._renders.next();},{injector:this._injector}));}get overlayElement(){return this._pane;}get backdropElement(){return this._backdropRef?.element||null;}get hostElement(){return this._host;}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Cn(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),e;}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i;}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),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._afterRenderRef.destroy(),this._renders.complete();}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=j(j({},this._config),i),this._updateElementSize();}setDirection(i){this._config=Ne(j({},this._config),{direction:i}),this._updateElementDirection();}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0);}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1);}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=In(this._config.width),i.height=In(this._config.height),i.minWidth=In(this._config.minWidth),i.minHeight=In(this._config.minHeight),i.maxWidth=In(this._config.maxWidth),i.maxHeight=In(this._config.maxHeight);}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none";}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new dw(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),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._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(i,e,n){let r=Fc(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r));}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(Ae(qt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe());});});}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.();}},T2="cdk-overlay-connected-position-bounding-box",lH=/([A-Za-z%]+)$/,uw=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new U();_resizeSubscription=Ie.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions;}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this.setOrigin(i);}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(T2),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,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._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,r,s),c=this._getOverlayPoint(l,e,s),p=this._getOverlayFit(c,e,n,s);if(p.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return;}if(this._canFitWithFlexibleDimensions(p,c,n)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:t��his._calculateBoundingBoxRect(l,s)});continue;}(!a||a.overlayFit.visibleArea<p.visibleArea)&&(a={overlayFit:p,overlayPoint:c,originPoint:l,position:s,overlayRect:e});}if(o.length){let s=null,l=-1;for(let c of o){let p=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);p>l&&(l=p,s=c);}this._isPushed=!1,this._applyPosition(s.position,s.origin);return;}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return;}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&yl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(T2),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e);}else 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=!0){return this._hasFlexibleDimensions=i,this;}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this;}withPush(i=!0){return this._canPush=i,this;}withLockedPosition(i=!0){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;}_getOriginPoint(i,e,n){let r;if(n.originX=="center")r=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;r=n.originX=="start"?a:s;}e.left<0&&(r-=e.left);let o;return n.originY=="center"?o=i.top+i.height/2:o=n.originY=="top"?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o};}_getOverlayPoint(i,e,n){let r;n.overlayX=="center"?r=-e.width/2:n.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return n.overlayY=="center"?o=-e.height/2:o=n.overlayY=="top"?0:-e.height,{x:i.x+r,y:i.y+o};}_getOverlayFit(i,e,n,r){let o=R2(e),{x:a,y:s}=i,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let p=0-a,g=a+o.width-n.width,_=0-s,b=s+o.height-n.height,v=this._subtractOverflows(o.width,p,g),I=this._subtractOverflows(o.height,_,b),A=v*I;return{visibleArea:A,isCompletelyWithinViewport:o.width*o.height===A,fitsInViewportVertically:I===o.height,fitsInViewportHorizontally:v==o.width};}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let r=n.bottom-e.y,o=n.right-e.x,a=A2(this._overlayRef.getConfig().minHeight),s=A2(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=r,c=i.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c;}return!1;}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let r=R2(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),s=Math.max(i.y+r.height-o.height,0),l=Math.max(o.top-n.top-i.y,0),c=Math.max(o.left-n.left-i.x,0),p=0,g=0;return r.width<=o.width?p=c||-a:p=i.x<this._viewportMargin?o.left-n.left-i.x:0,r.height<=o.height?g=l||-s:g=i.y<this._viewportMargin?o.top-n.top-i.y:0,this._previousPushAmount={x:p,y:g},{x:i.x+p,y:i.y+g};}_applyPosition(i,e){if(this._setTransformOrigin(i),this._setOverlayElementStyles(e,i),this._setBoundingBoxStyles(e,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!cH(this._lastScrollVisibility,n)){let r=new cw(i,n);this._positionChanges.next(r);}this._lastScrollVisibility=n;}this._lastPosition=i,this._isInitialRender=!1;}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=i.overlayY;i.overlayX==="center"?n="center":this._isRtl()?n=i.overlayX==="start"?"right":"left":n=i.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${n} ${r}`;}_calculateBoundingBoxRect(i,e){let n=this._viewportRect,r=this._isRtl(),o,a,s;if(e.overlayY==="top")a=i.y,o=n.height-a+this._viewportMargin;else if(e.overlayY==="bottom")s=n.height-i.y+this._viewportMargin*2,o=n.height-s+this._viewportMargin;else{let b=Math.min(n.bottom-i.y+n.top,i.y),v=this._lastBoundingBoxSize.height;o=b*2,a=i.y-b,o>v&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-v/2);}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,p,g,_;if(c)_=n.width-i.x+this._viewportMargin*2,p=i.x-this._viewportMargin;else if(l)g=i.x,p=n.right-i.x;else{let b=Math.min(n.right-i.x+n.left,i.x),v=this._lastBoundingBoxSize.width;p=b*2,g=i.x-b,p>v&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-v/2);}return{top:a,left:g,bottom:s,right:_,width:p,height:o};}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=In(n.height),r.top=In(n.top),r.bottom=In(n.bottom),r.width=In(n.width),r.left=In(n.left),r.right=In(n.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=In(o)),a&&(r.maxWidth=In(a));}this._lastBoundingBoxSize=n,yl(this._boundingBox.style,r);}_resetBoundingBoxStyles(){yl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){yl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(i,e){let n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let p=this._viewportRuler.getViewportScrollPosition();yl(n,this._getExactOverlayY(e,i,p)),yl(n,this._getExactOverlayX(e,i,p));}else n.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=In(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=In(a.maxWidth):o&&(n.maxWidth="")),yl(this._pane.style,n);}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`;}else r.top=In(o.y);return r;}_getExactOverlayX(i,e,n){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`;}else r.left=In(o.x);return r;}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:M2(i,n),isOriginOutsideView:sw(i,n),isOverlayClipped:M2(e,n),isOverlayOutsideView:sw(e,n)};}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i);}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin};}_isRtl(){return this._overlayRef.getDirection()==="rtl";}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed;}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY;}_validatePositions(){}_addPanelClasses(i){this._pane&&Fc(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i);}),this._appliedPanelClasses=[]);}_getOriginRect(){let i=this._origin;if(i instanceof ee)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e};}};function yl(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t;}function A2(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(lH);return!e||e==="px"?parseFloat(i):null;}return t||null;}function R2(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)};}function cH(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView;}var O2="cdk-global-overlay-wrapper",mw=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(O2),this._isDisposed=!1;}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,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),p=this._xPosition,g=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",b="",v="",I="";l?I="flex-start":p==="center"?(I="center",_?v=g:b=g):_?p==="left"||p==="end"?(I="flex-end",b=g):(p==="right"||p==="start")&&(I="flex-start",v=g):p==="left"||p==="start"?(I="flex-start",b=g):(p==="right"||p==="end")&&(I="flex-end",v=g),i.position=this._cssPosition,i.marginLeft=l?"0":b,i.marginTop=c?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":v,e.justifyContent=I,e.alignItems=c?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(O2),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0;}},dH=(()=>{class t{_viewportRuler=h(Fo);_document=h(ve);_platform=h(We);_overlayContainer=h(fg);constructor(){}global(){return new mw();}flexibleConnectedTo(e){return new uw(e,this._viewportRuler,this._document,this._platform,this._overlayContainer);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),hn=(()=>{class t{scrollStrategies=h(oH);_overlayContainer=h(fg);_positionBuilder=h(dH);_keyboardDispatcher=h(aH);_injector=h(Oe);_ngZone=h(le);_document=h(ve);_directionality=h(Jt);_location=h(ls);_outsideClickDispatcher=h(sH);_animationsModuleType=h(mt,{optional:!0});_idGenerator=h(pt);_renderer=h(Hi).createRenderer(null,null);_appRef;_styleLoader=h(kt);constructor(){}create(e){this._styleLoader.load(F2);let n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new No(e);return a.direction=a.direction||this._directionality.value,new Yc(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Vn),this._renderer);}position(){return this._positionBuilder;}_createPaneElement(e){let n=this._document.createElement("div");return n.id=this._idGenerator.getId("cdk-overlay-"),n.classList.add("cdk-overlay-pane"),e.appendChild(n),n;}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e;}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Pi)),new im(e,null,this._appRef,this._injector,this._document);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),uH=[{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"}],N2=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=h(hn);return()=>t.scrollStrategies.reposition();}}),sm=(()=>{class t{elementRef=h(ee);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});}return t;})(),pw=(()=>{class t{_overlay=h(hn);_dir=h(Jt,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=Ie.EMPTY;_attachSubscription=Ie.EMPTY;_detachSubscription=Ie.EMPTY;_positionSubscription=Ie.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=h(N2);_disposeOnNavigation=!1;_ngZone=h(le);origin;positions;positionStrategy;get offsetX(){return this._offsetX;}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY;}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation;}set disposeOnNavigation(e){this._disposeOnNavigation=e;}backdropClick=new z();positionChange=new z();attach=new z();detach=new z();overlayKeydown=new z();overlayOutsideClick=new z();constructor(){let e=h(ot),n=h(Ct);this._templatePortal=new Yn(e,n),this.scrollStrategy=this._scrollStrategyFactory();}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&&this._overlayRef.dispose();}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=uH);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!pn(n)&&(n.preventDefault(),this._detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let r=this._getOriginElement(),o=cr(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n);});}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new No({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n;}_updatePositionStrategy(e){let n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector);}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e;}_getOrigin(){return this.origin instanceof sm?this.origin.elementRef:this.origin;}_getOriginElement(){return this.origin instanceof sm?this.origin.elementRef.nativeElement:this.origin instanceof ee?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null;}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e);}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Za(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();}));}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,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",Q],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Q],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Q],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Q],push:[2,"cdkConnectedOverlayPush","push",Q],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Q]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[tt]});}return t;})();function mH(t){return()=>t.scrollStrategies.reposition();}var pH={provide:N2,deps:[hn],useFactory:mH},Rr=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[hn,pH],imports:[Po,mr,am,am]});}return t;})();var Ue=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t;}(Ue||{}),Lo="*";function kn(t,i){return{type:Ue.Trigger,name:t,definitions:i,options:{}};}function en(t,i=null){return{type:Ue.Animate,styles:i,timings:t};}function hw(t,i=null){return{type:Ue.Group,steps:t,options:i};}function L2(t,i=null){return{type:Ue.Sequence,steps:t,options:i};}function Ze(t){return{type:Ue.Style,styles:t,offset:null};}function Mt(t,i,e){return{type:Ue.State,name:t,styles:i,options:e};}function Zt(t,i,e=null){return{type:Ue.Transition,expr:t,animation:i,options:e};}function cm(t=null){return{type:Ue.AnimateChild,options:t};}function dm(t,i,e=null){return{type:Ue.Query,selector:t,animation:i,options:e};}var vs=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[]);}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i);}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i);}onDestroy(i){this._onDestroyFns.push(i);}hasStarted(){return this._started;}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[]);}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(i){this._position=this.totalTime?i*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1;}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},lm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish();}),a.onDestroy(()=>{++n==o&&this._onDestroy();}),a.onStart(()=>{++r==o&&this._onStart();});}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0);}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[]);}init(){this.players.forEach(i=>i.init());}onStart(i){this._onStartFns.push(i);}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[]);}onDone(i){this._onDoneFns.push(i);}onDestroy(i){this._onDestroyFns.push(i);}hasStarted(){return this._started;}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play());}pause(){this.players.forEach(i=>i.pause());}restart(){this.players.forEach(i=>i.restart());}finish(){this._onFinish(),this.players.forEach(i=>i.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[]);}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1;}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r);});}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0;}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy();});}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},gg="!";var hH=["mat-menu-item",""],fH=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],gH=["mat-icon, [matMenuItemIcon]","*"];function _H(t,i){t&1&&(wn(),m(0,"svg",2),D(1,"polygon",3),u());}var bH=["*"];function vH(t,i){if(t&1){let e=W();m(0,"div",0),S("click",function(){k(e);let r=x();return M(r.closed.emit("click"));})("animationstart",function(r){k(e);let o=x();return M(o._onAnimationStart(r.animationName));})("animationend",function(r){k(e);let o=x();return M(o._onAnimationDone(r.animationName));})("animationcancel",function(r){k(e);let o=x();return M(o._onAnimationDone(r.animationName));}),m(1,"div",1),ue(2),u()();}if(t&2){let e=x();Dt(e._classList),ne("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),y("id",e.panelId),oe("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var gw=new R("MAT_MENU_PANEL"),ro=(()=>{class t{_elementRef=h(ee);_document=h(ve);_focusMonitor=h($n);_parentMenu=h(gw,{optional:!0});_changeDetectorRef=h(ge);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new U();_focused=new U();_highlighted=!1;_triggersSubmenu=!1;constructor(){h(kt).load(Fn),this._parentMenu?.addItem?.(this);}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1);}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(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<n.length;r++)n[r].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 ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(n,r){n&1&&S("click",function(a){return r._checkDisabled(a);})("mouseenter",function(){return r._handleMouseEnter();}),n&2&&(oe("role",r.role)("tabindex",r._getTabIndex())("aria-disabled",r.disabled)("disabled",r.disabled||null),ne("mat-mdc-menu-item-highlighted",r._highlighted)("mat-mdc-menu-item-submenu-trigger",r._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",Q],disableRipple:[2,"disableRipple","disableRipple",Q]},exportAs:["matMenuItem"],attrs:hH,ngContentSelectors:gH,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(n,r){n&1&&(Pe(fH),ue(0),m(1,"span",0),ue(2,1),u(),D(3,"div",1),T(4,_H,2,0,":svg:svg",2)),n&2&&(d(3),y("matRippleDisabled",r.disableRipple||r.disabled)("matRippleTrigger",r._getHostElement()),d(),K(r._triggersSubmenu?4:-1));},dependencies:[Li],encapsulation:2,changeDetection:0});}return t;})();var yH=new R("MatMenuContent");var xH=new R("mat-menu-default-options",{providedIn:"root",factory:wH});function wH(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"};}var fw="_mat-menu-enter",_g="_mat-menu-exit",Or=(()=>{class t{_elementRef=h(ee);_changeDetectorRef=h(ge);_injector=h(Oe);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled;_allItems;_directDescendantItems=new oi();_classList={};_panelAnimationState="void";_animationDone=new U();_isAnimating=!1;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;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,r=j({},this._classList);n&&n.length&&n.split(" ").forEach(o=>{r[o]=!1;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0;}),this._elementRef.nativeElement.className=""),this._classList=r;}_previousPanelClass;get classList(){return this.panelClass;}set classList(e){this.panelClass=e;}closed=new z();close=this.closed;panelId=h(pt).getId("mat-menu-panel-");constructor(){let e=h(xH);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop,this._animationsDisabled=h(mt,{optional:!0})==="NoopAnimations";}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Oo(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(yt(this._directDescendantItems),Xt(e=>qt(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(yt(this._directDescendantItems),Xt(n=>qt(...n.map(r=>r._hovered))));}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,r=this._keyManager;switch(n){case 27:pn(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:(n===38||n===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return;}}focusFirstItem(e="program"){t��his._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Cn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ne(j({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let n=e===_g;(n||e===fw)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating=!1);}_onAnimationStart(e){(e===fw||e===_g)&&(this._isAnimating=!0);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(_g),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?fw:_g);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(yt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,yH,5),Fe(o,ro,5),Fe(o,ro,4)),n&2){let a;F(a=N())&&(r.lazyContent=a.first),F(a=N())&&(r._allItems=a),F(a=N())&&(r.items=a);}},viewQuery:function(n,r){if(n&1&&Y(ot,5),n&2){let o;F(o=N())&&(r.templateRef=o.first);}},hostVars:3,hostBindings:function(n,r){n&2&&oe("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",Q],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:Q(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[be([{provide:gw,useExisting:t}])],ngContentSelectors:bH,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(n,r){n&1&&(Pe(),T(0,vH,3,12,"ng-template"));},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));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));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{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))}.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{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))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0});}return t;})(),z2=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=h(hn);return()=>t.scrollStrategies.reposition();}});function CH(t){return()=>t.scrollStrategies.reposition();}var DH={provide:z2,deps:[hn],useFactory:CH},V2=Sr({passive:!0});var um=new WeakMap(),ys=(()=>{class t{_overlay=h(hn);_element=h(ee);_viewContainerRef=h(Ct);_menuItemInstance=h(ro,{optional:!0,self:!0});_dir=h(Jt,{optional:!0});_focusMonitor=h($n);_ngZone=h(le);_scrollStrategy=h(z2);_changeDetectorRef=h(ge);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ie.EMPTY;_hoverSubscription=Ie.EMPTY;_menuCloseSubscription=Ie.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=e=>{Ju(e)||(this._openedBy="touch");};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu;}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu;}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n);})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()));}_menu;menuData;restoreFocus=!0;menuOpened=new z();onMenuOpen=this.menuOpened;menuClosed=new z();onMenuClose=this.menuClosed;constructor(){let e=h(gw,{optional:!0});this._parentMaterialMenu=e instanceof Or?e:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,V2);}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&um.delete(this.menu),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,V2),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.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);}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu();}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let n=um.get(e);um.set(e,this),n&&n!==this&&n.closeMenu();let r=this._createOverlay(e),o=r.getConfig(),a=o.positionStrategy;this._setPosition(e,a),o.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,r.hasAttached()||(r.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof Or&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(Ae(e.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0);}));}closeMenu(){this.menu?.close.emit();}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n);}updatePosition(){this._overlayRef?.updatePosition();}_destroyMenu(e){let n=this._overlayRef,r=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof Or&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(de(1)).subscribe(()=>{n.detach(),r.lazyContent?.detach();}),r._setIsOpen(!1)):(n.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&um.delete(r),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1));}_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 n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe(r=>{this.menu instanceof Or&&this.menu._handleKeydown(r);});}return this._overlayRef;}_getOverlayConfig(e){return new No({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).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"});}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a);});});}_setPosition(e,n){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[p,g]=[r,o],_=0;if(this.triggersSubmenu()){if(g=r=e.xPosition==="before"?"start":"end",o=p=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0;}_=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");n.withPositions([{originX:r,originY:l,overlayX:p,overlayY:a,offsetY:_},{originX:o,originY:l,overlayX:g,overlayY:a,offsetY:_},{originX:r,originY:c,overlayX:p,overlayY:s,offsetY:-_},{originX:o,originY:c,overlayX:g,overlayY:s,offsetY:-_}]);}_menuClosingActions(){let e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:se(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ke(a=>this._menuOpen&&a!==this._menuItemInstance)):se();return qt(e,r,o,n);}_handleMousedown(e){Xu(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let n=e.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===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._openedBy="mouse",this.openMenu());}));}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Yn(e.templateRef,this._viewContainerRef)),this._portal;}_ownsMenu(e){return um.get(e)===this;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,r){n&1&&S("click",function(a){return r._handleClick(a);})("mousedown",function(a){return r._handleMousedown(a);})("keydown",function(a){return r._handleKeydown(a);}),n&2&&oe("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.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"]});}return t;})(),xs=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[DH],imports:[no,fe,Rr,bs,fe]});}return t;})(),B2={transformMenu:kn("transformMenu",[Mt("void",Ze({opacity:0,transform:"scale(0.8)"})),Zt("void => enter",en("120ms cubic-bezier(0, 0, 0.2, 1)",Ze({opacity:1,transform:"scale(1)"}))),Zt("* => void",en("100ms 25ms linear",Ze({opacity:0})))]),fadeInItems:kn("fadeInItems",[Mt("showing",Ze({opacity:1})),Zt("void => *",[Ze({opacity:0}),en("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Rfe=B2.fadeInItems,Ofe=B2.transformMenu;var EH=["tooltip"],H2=20;var U2=new R("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=h(hn);return()=>t.scrollStrategies.reposition({scrollThrottle:H2});}});function IH(t){return()=>t.scrollStrategies.reposition({scrollThrottle:H2});}var kH={provide:U2,deps:[hn],useFactory:IH};function MH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500};}var SH=new R("mat-tooltip-default-options",{providedIn:"root",factory:MH});var j2="tooltip-panel",$2=Sr({passive:!0}),TH=8,AH=8,RH=24,OH=200,St=(()=>{class t{_elementRef=h(ee);_ngZone=h(le);_platform=h(We);_ariaDescriber=h(tg);_focusMonitor=h($n);_dir=h(Jt);_injector=h(Oe);_viewContainerRef=h(Ct);_defaultOptions=h(SH,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=PH;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position;}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin;}set positionAtOrigin(e){this._positionAtOrigin=Tr(e),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled;}set disabled(e){let n=Tr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay;}set showDelay(e){this._showDelay=Ar(e);}_showDelay;get hideDelay(){return this._hideDelay;}set hideDelay(e){this._hideDelay=Ar(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message;}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n);}_message="";get tooltipClass(){return this._tooltipClass;}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new U();_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=TH;}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ae(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,$2);}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e);}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return;}let r=this._createOverlay(n);this._detach(),this._portal=this._portal||new io(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Ae(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e);}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()));}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e);}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible();}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof ee)return this._overlayRef;this._detach();}let n=this._injector.get(Qc).getAncestorScrollContainers(this._elementRef),r=this._injector.get(hn),o=r.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(Ae(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=r.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${j2}`,scrollStrategy:this._injector.get(U2)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ae(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ae(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ae(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!pn(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Ae(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef;}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(e){let n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset(j(j({},r.main),o.main)),this._addOffset(j(j({},r.fallback),o.fallback))]);}_addOffset(e){let n=AH,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=r?-n:n:e.originX==="end"&&(e.offsetX=r?n:-n),e;}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"||n=="below"?r={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}};}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"?r={overlayX:"center",overlayY:"bottom"}:n=="below"?r={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}};}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Cn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck());}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n};}_updateCurrentPositionClass(e){let{overlayY:n,originX:r,originY:o}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=n==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${j2}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a);}this._currentPosition=a;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n);}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r);},this._defaultOptions?.touchLongPressShowDelay??o);}])),this._addListeners(this._passiveListeners));}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide();}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};e.push(["touchend",n],["touchcancel",n]);}this._addListeners(e),this._passiveListeners.push(...e);}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,$2);});}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID;}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(ve).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide();}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,r=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent";}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Cn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-mdc-tooltip-disabled",r.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 t;})(),PH=(()=>{class t{_changeDetectorRef=h(ge);_elementRef=h(ee);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new U();_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=h(mt,{optional:!0});this._animationsDisabled=e==="NoopAnimations";}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0;},e);}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0;},e);}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>RH&&e.width>=OH;}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next();}_toggleVisibility(e){let n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e));}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(n&1&&Y(EH,7),n&2){let o;F(o=N())&&(r._tooltip=o.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,r){n&1&&S("mouseleave",function(a){return r._handleMouseLeave(a);});},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,r){if(n&1){let o=W();m(0,"div",1,0),S("animationend",function(s){return k(o),M(r._handleAnimationEnd(s));}),m(2,"div",2),f(3),u()();}n&2&&(ne("mdc-tooltip--multiline",r._isMultiline),y("ngClass",r.tooltipClass),d(3),C(r.message));},dependencies:[cs],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{tex��t-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});}return t;})();var nt=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[kH],imports:[ng,Rr,fe,fe,bs]});}return t;})();var q2=(()=>{class t{constructor(e){this.localeId=e,this.english="Anglais",this.french="Fran\xE7ais",this.spanish="Espagnol",this.languages=[],this.languages.push({name:this.english,path:"en-US",abbreviation:"en",color:"#ffb6c1"}),this.languages.push({name:this.spanish,path:"es",abbreviation:"es",color:"#87cefa"}),this.languages.push({name:this.french,path:"fr",abbreviation:"fr",color:"#20b2aa"}),this.languages=this.getLanguages(),this.activeLanguage=this.getLanguageByPath(this.localeId);}getLanguages(){return this.languages;}getActiveLanguage(){return this.activeLanguage;}setActiveLanguage(e){this.activeLanguage=e;}getDefaultLanguage(){return this.getLanguageByPath("en-US");}getLanguageByPath(e){let n=this.languages.find(r=>r.path===e);return n||(console.log("language by path not found"),this.languages[0]);}getLanguageByAbbreviation(e){let n=this.languages.find(r=>r.abbreviation.toLowerCase()===e.toLowerCase());return n||(console.log("language by abbreviation not found"),this.languages[0]);}static{this.ɵfac=function(n){return new(n||t)(J(cl));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function NH(t,i){if(t&1){let e=W();m(0,"div")(1,"button",7),S("click",function(){let r=k(e).$implicit,o=x();return M(o.selectLanguage(r));}),m(2,"span"),f(3),u(),m(4,"span",8),f(5),u()()();}if(t&2){let e=i.$implicit,n=x();d(),y("disabled",n.menuItemDisabled(e)),d(),Cr("language-abbr language-option lang-option-",e.abbreviation,""),d(),C(e.abbreviation),d(2),C(e.name);}}var W2=(()=>{class t{constructor(e){this.langService=e,this.toolTipMsg="S\xE9lectionner une Langue",this.unableToSelect="Incapable de s\xE9lectionner la langue.",this.languages=[];}ngOnInit(){this.languages=this.langService.getLanguages();}menuItemDisabled(e){return this.langService.getActiveLanguage().path===e.path;}selectLanguage(e){let n=window.location.pathname,r=this.langService.getActiveLanguage().path,o="/"+r+"/",a=n.indexOf(o);if(a===-1){alert(this.unableToSelect),this.langService.setActiveLanguage(e);return;}let s=n.substring(0,a)+"/"+e.path+n.substring(a+r.length+1);window.location.replace(s);}static{this.ɵfac=function(n){return new(n||t)(w(q2));};}static{this.ɵcmp=E({type:t,selectors:[["language-picker"]],decls:8,vars:4,consts:[["pickerMenu","matMenu"],["id","language-selector"],["mat-icon-button","","id","selector-button",3,"matTooltip","matMenuTriggerFor"],["id","abbr-container",1,"flex-center"],[1,"language-abbr"],["id","language-picker-menu"],[4,"ngFor","ngForOf"],["mat-menu-item","",1,"language-button",3,"click","disabled"],[1,"language-name"]],template:function(n,r){if(n&1&&(m(0,"span",1)(1,"button",2)(2,"span",3)(3,"span",4),f(4),u()()(),m(5,"mat-menu",5,0),T(7,NH,6,6,"div",6),u()()),n&2){let o=Ke(6);d(),y("matTooltip",r.toolTipMsg)("matMenuTriggerFor",o),d(3),C(r.langService.getActiveLanguage().abbreviation),d(3),y("ngForOf",r.languages);}},dependencies:[H,an,ce,Mi,xs,Or,ro,ys,Ee,nt,St],styles:[".language-abbr[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-weight:700;height:25px}.language-option[_ngcontent-%COMP%]{border-radius:50%;padding:5px;margin-right:10px;border:1px solid var(--mat-sys-on-surface)}"]});}}return t;})();function LH(t,i){}var ws=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext;};var bw=(()=>{class t extends _s{_elementRef=h(ee);_focusTrapFactory=h(t2);_config;_interactivityChecker=h(qx);_ngZone=h(le);_overlayRef=h(Yc);_focusMonitor=h($n);_renderer=h(wt);_platform=h(We);_document=h(ve,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=h(ge);_injector=h(Oe);_isDestroyed=!1;constructor(){super(),this._config=h(ws,{optional:!0})||new ws(),this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n;}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n;}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n;};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r);})),e.focus(n);}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n);}_trapFocus(){this._isDestroyed||Cn(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break;}},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=gl(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus();}_containsFocus(){let e=this._elementRef.nativeElement,n=gl();return e===n||e.contains(n);}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=gl()));}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus();});}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&Y(Si,7),n&2){let o;F(o=N())&&(r._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&oe("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null);},features:[q],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&T(0,LH,0,0,"ng-template",0);},dependencies:[Si],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});}return t;})(),mm=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new U();backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!pn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"});}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close();});}close(i,e){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this;}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this;}addPanelClass(i){return this.overlayRef.addPanelClass(i),this;}removePanelClass(i){return this.overlayRef.removePanelClass(i),this;}},VH=new R("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=h(hn);return()=>t.scrollStrategies.block();}}),zH=new R("DialogData"),BH=new R("DefaultDialogConfig");var vw=(()=>{class t{_overlay=h(hn);_injector=h(Oe);_defaultOptions=h(BH,{optional:!0});_parentDialog=h(t,{optional:!0,skipSelf:!0});_overlayContainer=h(fg);_idGenerator=h(pt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U();_afterOpenedAtThisLevel=new U();_ariaHiddenElements=new Map();_scrollStrategy=h(VH);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel;}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel;}afterAllClosed=_o(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yt(void 0)));constructor(){}open(e,n){let r=this._defaultOptions||new ws();n=j(j({},r),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new mm(a,n),l=this._attachContainer(a,s,n);return s.containerInstance=l,this._attachDialogContent(e,s,l,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s;}closeAll(){_w(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(n=>n.id===e);}ngOnDestroy(){_w(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1);}),_w(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let n=new No({positionStrategy:e.positionStrategy||this._overlay.position().global().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});return e.backdropClass&&(n.backdropClass=e.backdropClass),n;}_attachContainer(e,n,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:ws,useValue:r},{provide:mm,useValue:n},{provide:Yc,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=bw;let l=new io(s,r.viewContainerRef,Oe.create({parent:o||this._injector,providers:a}));return e.attach(l).instance;}_attachDialogContent(e,n,r,o){if(e instanceof ot){let a=this._createInjector(o,n,r,void 0),s={$implicit:o.data,dialogRef:n};o.templateContext&&(s=j(j({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Yn(e,null,s,a));}else{let a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new io(e,o.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance;}}_createInjector(e,n,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:zH,useValue:e.data},{provide:mm,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Jt,null,{optional:!0}))&&s.push({provide:Jt,useValue:{value:e.direction,change:se()}}),Oe.create({parent:a||o,providers:s});}_removeOpenDialog(e,n){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(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 ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function _w(t,i){let e=t.length;for(;e--;)i(t[e]);}var G2=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[vw],imports:[Rr,mr,ng,mr]});}return t;})();function jH(t,i){}var yg=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration;},yw="mdc-dialog--open",Q2="mdc-dialog--opening",Y2="mdc-dialog--closing",$H=150,HH=75,UH=(()=>{class t extends bw{_animationMode=h(mt,{optional:!0});_animationStateChanged=new z();_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?K2(this._config.enterAnimationDuration)??$H:0;_exitAnimationDuration=this._animationsEnabled?K2(this._config.exitAnimationDuration)??HH:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Z2,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Q2,yw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(yw),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(yw),this._animationsEnabled?(this._hostElement.style.setProperty(Z2,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Y2)),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(Q2,Y2);}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,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});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n;}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(Dn("id",r._config.id),oe("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0));},features:[q],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(n,r){n&1&&(m(0,"div",0)(1,"div",1),T(2,jH,0,0,"ng-template",2),u()());},dependencies:[Si],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});}return t;})(),Z2="--mat-dialog-transition-duration";function K2(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Ar(t.substring(0,t.length-2)):t.endsWith("s")?Ar(t.substring(0,t.length-1))*1e3:t==="0"?0:null;}var vg=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t;}(vg||{}),At=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new U();_beforeClosed=new U();_result;_closeFallbackTimeout;_state=vg.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(ke(r=>r.state==="opened"),de(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),n._animationStateChanged.pipe(ke(r=>r.state==="closed"),de(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),qt(this.backdropClick(),this.keydownEvents().pipe(ke(r=>r.keyCode===27&&!this.disableClose&&!pn(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),X2(this,r.type==="keydown"?"keyboard":"mouse"));});}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(ke(e=>e.state==="closing"),de(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100);}),this._state=vg.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this;}updateSize(i="",e=""){return this._ref.updateSize(i,e),this;}addPanelClass(i){return this._ref.addPanelClass(i),this;}removePanelClass(i){return this._ref.removePanelClass(i),this;}getState(){return this._state;}_finishDialogClose(){this._state=vg.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function X2(t,i,e){return t._closeInteractionType=i,t.close(e);}var Kt=new R("MatMdcDialogData"),qH=new R("mat-mdc-dialog-default-options"),WH=new R("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=h(hn);return()=>t.scrollStrategies.block();}});var jt=(()=>{class t{_overlay=h(hn);_defaultOptions=h(qH,{optional:!0});_scrollStrategy=h(WH);_parentDialog=h(t,{optional:!0,skipSelf:!0});_idGenerator=h(pt);_dialog=h(vw);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U();_afterOpenedAtThisLevel=new U();dialogConfigClass=yg;_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=_o(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yt(void 0)));constructor(){this._dialogRefConstructor=At,this._dialogContainerType=UH,this._dialogDataToken=Kt;}open(e,n){let r;n=j(j({},this._defaultOptions||new yg()),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Ne(j({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ws,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,n,l),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next());}),r;}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(n=>n.id===e);}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close();}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Mn=(()=>{class t{dialogRef=h(At,{optional:!0});_elementRef=h(ee);_dialog=h(jt);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=eA(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue);}_onButtonClick(e){X2(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&S("click",function(a){return r._onButtonClick(a);}),n&2&&oe("aria-label",r.ariaLabel||null)("type",r.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[tt]});}return t;})(),J2=(()=>{class t{_dialogRef=h(At,{optional:!0});_elementRef=h(ee);_dialog=h(jt);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=eA(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t});}return t;})(),tn=(()=>{class t extends J2{id=h(pt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){n&2&&Dn("id",r.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[q]});}return t;})(),nn=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[AM([om])]});}return t;})(),cn=(()=>{class t extends J2{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&ne("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end");},inputs:{align:"align"},features:[q]});}return t;})();function eA(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null;}var _t=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[jt],imports:[G2,Rr,mr,fe,fe]});}return t;})();var je=(()=>{class t{constructor(){this.env=null,this.dynamicEnvironments=new Map(),this.demoMode=!1,this.allowNavigation=!1,this.drupalUser1="dc8a8d2f-ba22-4a7b-984b-a05dc4b0e845",this.drupalUser2="6b818db6-4ce6-47c1-9afe-296d628e212a",this.drupalUser3="f9cebe8a-e013-4ec4-b1be-d9096f78d001",this.dynamicEnvironments.set("localhost",this.makeEnv("http://johnturman.local","jpt","5","8")),this.dynamicEnvironments.set("ai.johnturman.local",this.makeEnv("http://johnturman.local","jpt","5","8")),this.dynamicEnvironments.set("chat.turmansolutions.local",this.makeEnv("http://turmansolutions.local","tsai","","8")),this.dynamicEnvironments.set("chat-demo.turmansolutions.local",thi��s.makeEnv("http://demo.turmansolutions.local","demo","","7")),this.dynamicEnvironments.set("ai.johnturman.net",this.makeEnv("https://johnturman.net","jpt","5","8","https://api.johnturman.net/api/v1","https://cms.turmansolutions.ai")),this.dynamicEnvironments.set("chat.turmansolutions.ai",this.makeEnv("https://turmansolutions.ai","tsai","","8","https://api.turmansolutions.ai/api/v1","https://cms.turmansolutions.ai")),this.dynamicEnvironments.set("chat-demo.turmansolutions.ai",this.makeEnv("https://demo.turmansolutions.ai","demo","","7","https://api.turmansolutions.ai/api/v1","https://cms.turmansolutions.ai")),this.checkAllowNavigation();}makeEnv(e,n,r,o,a="http://localhost:8000/api/v1",s="http://drupal.local"){let l=this.drupalUser1;return n==="jpt"?l=this.drupalUser2:(n==="demo"||n==="tsai")&&(l=this.drupalUser3),{production:!1,apiUrl:a,wordpressHost:e,drupalHost:s,drupalApi:"/jjknkk/jptb69dhj027ooae/jsonapi",drupalUserId:l,slug:n,wordpressAdapter:!0,wp:{recentPostCategories:r,newsCategories:o}};}checkAllowNavigation(){let e=window.self!==window.top;this.allowNavigation=!e,this.demoMode=e;}get(){if(this.env)return this.env;{let e=window.location.hostname;return console.log("host",e),this.dynamicEnvironments.get(e)?this.env=this.dynamicEnvironments.get(e):this.env=Du,console.log("environment: ",this.env),this.env;}}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Vo=(()=>{class t{constructor(e,n,r,o){this.dialogRef=e,this.data=n,this.env=r,this.router=o,this.title="Modifications non enregistr\xE9es",this.saveChangesMsg="Vous avez des modifications non enregistr\xE9es. Continuer quand m\xEAme ?",this.cancelMsg="Annuler",this.continueMsg="Continuer",this.newTab="Nouvel onglet",this.destinationUrl="",this.navigation=void 0;}ngOnInit(){this.destinationUrl=this.data.destinationUrl||"",this.navigation=this.data.navigation||void 0;}navigate(){this.navigation?this.router.navigate(this.navigation):this.destinationUrl?window.open(this.destinationUrl,"_self"):console.warn("unable to navigate."),this.dialogRef.close();}navigateNewTab(){this.dialogRef.close(),window.open(this.destinationUrl,"_blank");}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt),w(je),w(Je));};}static{this.ɵcmp=E({type:t,selectors:[["unsaved-changes-dialog"]],decls:13,vars:5,consts:[[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""],["mat-button","",3,"click"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"h1",1),f(2),u(),m(3,"div",2)(4,"p"),f(5),u()(),m(6,"div",3)(7,"button",4),f(8),u(),m(9,"button",5),S("click",function(){return r.navigate();}),f(10),u(),m(11,"button",5),S("click",function(){return r.navigateNewTab();}),f(12),u()()()),n&2&&(d(2),C(r.title),d(3),C(r.saveChangesMsg),d(3),C(r.cancelMsg),d(2),C(r.continueMsg),d(2),C(r.newTab));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H],encapsulation:2});}}return t;})();var Pr=(()=>{class t{constructor(){this.keys=[];}set(e){console.log("set unsaved changes key:",e),this.keys.push(e);}unset(e){let n=this.keys.indexOf(e);n!==-1&&(this.keys=this.keys.slice(0,n).concat(this.keys.slice(n+1)));}clear(){this.keys=[];}hasUnsavedChanges(){return this.keys.length>0;}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var lA=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n;}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static ɵfac=function(n){return new(n||t)(w(wt),w(ee));};static ɵdir=L({type:t});}return t;})(),cA=(()=>{class t extends lA{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,features:[q]});}return t;})(),oo=new R("");var GH={provide:oo,useExisting:Bn(()=>dn),multi:!0};function QH(){let t=Ao()?Ao().getUserAgent():"";return /android (\d+)/.test(t.toLowerCase());}var YH=new R(""),dn=(()=>{class t extends lA{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!QH());}writeValue(e){let n=e??"";this.setProperty("value",n);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=!0;}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e);}static ɵfac=function(n){return new(n||t)(w(wt),w(ee),w(YH,8));};static ɵdir=L({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&S("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:!1,features:[be([GH]),q]});}return t;})();function Cs(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0;}function dA(t){return t!=null&&typeof t.length=="number";}var ao=new R(""),xl=new R(""),ZH=/^(?=.{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])?)*$/,vt=class{static min(i){return KH(i);}static max(i){return XH(i);}static required(i){return JH(i);}static requiredTrue(i){return e7(i);}static email(i){return t7(i);}static minLength(i){return n7(i);}static maxLength(i){return i7(i);}static pattern(i){return r7(i);}static nullValidator(i){return uA(i);}static compose(i){return _A(i);}static composeAsync(i){return bA(i);}};function KH(t){return i=>{if(Cs(i.value)||Cs(t))return null;let e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null;};}function XH(t){return i=>{if(Cs(i.value)||Cs(t))return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null;};}function JH(t){return Cs(t.value)?{required:!0}:null;}function e7(t){return t.value===!0?null:{required:!0};}function t7(t){return Cs(t.value)||ZH.test(t.value)?null:{email:!0};}function n7(t){return i=>Cs(i.value)||!dA(i.value)?null:i.value.length<t?{minlength:{requiredLength:t,actualLength:i.value.length}}:null;}function i7(t){return i=>dA(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null;}function r7(t){if(!t)return uA;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Cs(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}};};}function uA(t){return null;}function mA(t){return t!=null;}function pA(t){return rs(t)?Rt(t):t;}function hA(t){let i={};return t.forEach(e=>{i=e!=null?j(j({},i),e):i;}),Object.keys(i).length===0?null:i;}function fA(t,i){return i.map(e=>e(t));}function o7(t){return!t.validate;}function gA(t){return t.map(i=>o7(i)?i:e=>i.validate(e));}function _A(t){if(!t)return null;let i=t.filter(mA);return i.length==0?null:function(e){return hA(fA(e,i));};}function Iw(t){return t!=null?_A(gA(t)):null;}function bA(t){if(!t)return null;let i=t.filter(mA);return i.length==0?null:function(e){let n=fA(e,i).map(pA);return Ud(n).pipe(me(hA));};}function kw(t){return t!=null?bA(gA(t)):null;}function tA(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i];}function vA(t){return t._rawValidators;}function yA(t){return t._rawAsyncValidators;}function xw(t){return t?Array.isArray(t)?t:[t]:[];}function Cg(t,i){return Array.isArray(t)?t.includes(i):t===i;}function nA(t,i){let e=xw(i);return xw(t).forEach(r=>{Cg(e,r)||e.push(r);}),e;}function iA(t,i){return xw(i).filter(e=>!Cg(t,e));}var Dg=class{get value(){return this.control?this.control.value:null;}get valid(){return this.control?this.control.valid:null;}get invalid(){return this.control?this.control.invalid:null;}get pending(){return this.control?this.control.pending:null;}get disabled(){return this.control?this.control.disabled:null;}get enabled(){return this.control?this.control.enabled:null;}get errors(){return this.control?this.control.errors:null;}get pristine(){return this.control?this.control.pristine:null;}get dirty(){return this.control?this.control.dirty:null;}get touched(){return this.control?this.control.touched:null;}get status(){return this.control?this.control.status:null;}get untouched(){return this.control?this.control.untouched:null;}get statusChanges(){return this.control?this.control.statusChanges:null;}get valueChanges(){return this.control?this.control.valueChanges:null;}get path(){return null;}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Iw(this._rawValidators);}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=kw(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null;}get asyncValidator(){return this._composedAsyncValidatorFn||null;}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[];}reset(i=void 0){this.control&&this.control.reset(i);}hasError(i,e){return this.control?this.control.hasError(i,e):!1;}getError(i,e){return this.control?this.control.getError(i,e):null;}},pi=class extends Dg{name;get formDirective(){return null;}get path(){return null;}},pr=class extends Dg{_parent=null;name=null;valueAccessor=null;},Eg=class{_cd;constructor(i){this._cd=i;}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;}},a7={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},p0e=Ne(j({},a7),{"[class.ng-submitted]":"isSubmitted"}),_n=(()=>{class t extends Eg{constructor(e){super(e);}static ɵfac=function(n){return new(n||t)(w(pr,2));};static ɵdir=L({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ne("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:!1,features:[q]});}return t;})(),Fr=(()=>{class t extends Eg{constructor(e){super(e);}static ɵfac=function(n){return new(n||t)(w(pi,10));};static ɵdir=L({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&ne("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:!1,features:[q]});}return t;})();var pm="VALID",wg="INVALID",Zc="PENDING",hm="DISABLED",Ds=class{},Ig=class extends Ds{value;source;constructor(i,e){super(),this.value=i,this.source=e;}},gm=class extends Ds{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e;}},_m=class extends Ds{touched;source;constructor(i,e){super(),this.touched=i,this.source=e;}},Kc=class extends Ds{status;source;constructor(i,e){super(),this.status=i,this.source=e;}},ww=class extends Ds{source;constructor(i){super(),this.source=i;}},Cw=class extends Ds{source;constructor(i){super(),this.source=i;}};function Mw(t){return(Tg(t)?t.validators:t)||null;}function s7(t){return Array.isArray(t)?Iw(t):t||null;}function Sw(t,i){return(Tg(i)?i.asyncValidators:t)||null;}function l7(t){return Array.isArray(t)?kw(t):t||null;}function Tg(t){return t!=null&&!Array.isArray(t)&&typeof t=="object";}function xA(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new X(1e3,"");if(!n[e])throw new X(1001,"");}function wA(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new X(1002,"");});}var Xc=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn;}set validator(i){this._rawValidators=this._composedValidatorFn=i;}get asyncValidator(){return this._composedAsyncValidatorFn;}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i;}get parent(){return this._parent;}get status(){return Gi(this.statusReactive);}set status(i){Gi(()=>this.statusReactive.set(i));}_status=Ea(()=>this.statusReactive());statusReactive=Ci(void 0);get valid(){return this.status===pm;}get invalid(){return this.status===wg;}get pending(){return this.status==Zc;}get disabled(){return this.status===hm;}get enabled(){return this.status!==hm;}errors;get pristine(){return Gi(this.pristineReactive);}set pristine(i){Gi(()=>this.pristineReactive.set(i));}_pristine=Ea(()=>this.pristineReactive());pristineReactive=Ci(!0);get dirty(){return!this.pristine;}get touched(){return Gi(this.touchedReactive);}set touched(i){Gi(()=>this.touchedReactive.set(i));}_touched=Ea(()=>this.touchedReactive());touchedReactive=Ci(!1);get untouched(){return!this.touched;}_events=new U();events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change";}setValidators(i){this._assignValidators(i);}setAsyncValidators(i){this._assignAsyncValidators(i);}addValidators(i){this.setValidators(nA(i,this._rawValidators));}addAsyncValidators(i){this.setAsyncValidators(nA(i,this._rawAsyncValidators));}removeValidators(i){this.setValidators(iA(i,this._rawValidators));}removeAsyncValidators(i){this.setAsyncValidators(iA(i,this._rawAsyncValidators));}hasValidator(i){return Cg(this._rawValidators,i);}hasAsyncValidator(i){return Cg(this._rawAsyncValidators,i);}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Ne(j({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new _m(!0,n));}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i));}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n});}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new _m(!1,n));}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Ne(j({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new gm(!1,n));}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent});}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new gm(!0,n));}markAsPending(i={}){this.status=Zc;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Kc(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Ne(j({},i),{sourceControl:e}));}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=hm,this.errors=null,this._forEachChild(r=>{r.disable(Ne(j({},i),{onlySelf:!0}));}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Ig(this.value,n)),this._events.next(new Kc(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ne(j({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0));}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=pm,this._forEachChild(n=>{n.enable(Ne(j({},i),{onlySelf:!0}));}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ne(j({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1));}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e));}setParent(i){this._parent=i;}getRawValue(){return this.value;}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pm||this.status===Zc)&&this._runAsyncValidator(n,i.emitEvent);}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Ig(this.value,e)),this._events.next(new Kc(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Ne(j({},i),{sourceControl:e}));}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?hm:pm;}_runValidator(){return this.validator?this.validator(this):null;}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Zc,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=pA(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i;}return!1;}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted);}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this);}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null;}hasError(i,e){return!!this.getError(i,e);}get root(){let i=this;for(;i._parent;)i=i._parent;return i;}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Kc(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n);}_initObservables(){this.valueChanges=new z(),this.statusChanges=new z();}_calculateStatus(){return this._allControlsDisabled()?hm:this.errors?wg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zc)?Zc:this._anyControlsHaveStatus(wg)?wg:pm;}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i);}_anyControlsDirty(){return this._anyControls(i=>i.dirty);}_anyControlsTouched(){return this._anyControls(i=>i.touched);}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),r&&this._events.next(new gm(this.pristine,e));}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new _m(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e);}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i;}_setUpdateStrategy(i){Tg(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn);}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty();}_find(i){return null;}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=s7(this._rawValidators);}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=l7(this._rawAsyncValidators);}},Jc=class extends Xc{constructor(i,e,n){super(Mw(e),Sw(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator});}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e);}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange();}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange();}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled;}setValue(i,e={}){wA(this,!0,i),Object.keys(i).forEach(n=>{xA(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent});}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e);}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i));}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i;}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e);});}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1;}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e));}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o);}),n;}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled;}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null;}};var Dw=class extends Jc{};var ed=new R("",{providedIn:"root",factory:()=>Ag}),Ag="always";function Rg(t,i){return[...i.path,t];}function bm(t,i,e=Ag){Tw(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),d7(t,i),m7(t,i),u7(t,i),c7(t,i);}function kg(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),Sg(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}));}function Mg(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i);});}function c7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n);};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e);});}}function Tw(t,i){let e=vA(t);i.validator!==null?t.setValidators(tA(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=yA(t);i.asyncValidator!==null?t.setAsyncValidators(tA(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Mg(i._rawValidators,r),Mg(i._rawAsyncValidators,r);}function Sg(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=vA(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o));}}if(i.asyncValidator!==null){let r=yA(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o));}}}let n=()=>{};return Mg(i._rawValidators,n),Mg(i._rawAsyncValidators,n),e;}function d7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&CA(t,i);});}function u7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&CA(t,i),t.updateOn!=="submit"&&t.markAsTouched();});}function CA(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1;}function m7(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n);};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e);});}function DA(t,i){t==null,Tw(t,i);}function p7(t,i){return Sg(t,i);}function Aw(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue);}function h7(t){return Object.getPrototypeOf(t.constructor)===cA;}function EA(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1);});}function Rw(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(o=>{o.constructor===dn?e=o:h7(o)?n=o:r=o;}),r||n||e||null;}function f7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1);}var g7={provide:pi,useExisting:Bn(()=>Oa)},fm=Promise.resolve(),Oa=(()=>{class t extends pi{callSetDisabledState;get submitted(){return Gi(this.submittedReactive);}_submitted=Ea(()=>this.submittedReactive());submittedReactive=Ci(!1);_directives=new Set();form;ngSubmit=new z();options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new Jc({},Iw(e),kw(n));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this;}get control(){return this.form;}get path(){return[];}get controls(){return this.form.controls;}addControl(e){fm.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),bm(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e);});}getControl(e){return this.form.get(e.path);}removeControl(e){fm.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){fm.then(()=>{let n=this._findContainer(e.path),r=new Jc({});DA(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1});});}removeFormGroup(e){fm.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name);});}getFormGroup(e){return this.form.get(e.path);}updateModel(e,n){fm.then(()=>{this.form.get(e.path).setValue(n);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(!0),EA(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog";}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form;}static ɵfac=function(n){return new(n||t)(w(ao,10),w(xl,10),w(ed,8));};static ɵdir=L({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&S("submit",function(a){return r.onSubmit(a);})("reset",function(){return r.onReset();});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[be([g7]),q]});}return t;})();function rA(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1);}function oA(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t;}var zo=class extends Xc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(Mw(e),Sw(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(oA(i)?this.defaultValue=i.value:this.defaultValue=i);}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e);}patchValue(i,e={}){this.setValue(i,e);}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1;}_updateValue(){}_anyControls(i){return!1;}_allControlsDisabled(){return this.disabled;}registerOnChange(i){this._onChange.push(i);}_unregisterOnChange(i){rA(this._onChange,i);}registerOnDisabledChange(i){this._onDisabledChange.push(i);}_unregisterOnDisabledChange(i){rA(this._onDisabledChange,i);}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1;}_applyFormState(i){oA(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i;}};var _7=t=>t instanceof zo,b7=(()=>{class t extends pi{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this);}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this);}get control(){return this.formDirective.getFormGroup(this);}get path(){return Rg(this.name==null?this.name:this.name.toString(),this._parent);}get formDirective(){return this._parent?this._parent.formDirective:null;}_checkParentType(){}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,standalone:!1,features:[q]});}return t;})();var v7={provide:pr,useExisting:Bn(()=>so)},aA=Promise.resolve(),so=(()=>{class t extends pr{_changeDetectorRef;callSetDisabledState;control=new zo();static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z();constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Rw(this,o);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),Aw(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this);}get path(){return this._getPath(this.name);}get formDirective(){return this._parent?this._parent.formDirective:null;}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone);}_setUpStandalone(){bm(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1});}_checkForErrors(){this._checkName();}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){aA.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let n=e.isDisabled.cur��rentValue,r=n!==0&&Q(n);aA.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?Rg(e,this._parent):[e];}static ɵfac=function(n){return new(n||t)(w(pi,9),w(ao,10),w(xl,10),w(oo,10),w(ge,8),w(ed,8));};static ɵdir=L({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[be([v7]),q,tt]});}return t;})(),Nr=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});}return t;})(),y7={provide:oo,useExisting:Bn(()=>Ow),multi:!0},Ow=(()=>{class t extends cA{writeValue(e){let n=e??"";this.setProperty("value",n);}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n));};}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&S("input",function(a){return r.onChange(a.target.value);})("blur",function(){return r.onTouched();});},standalone:!1,features:[be([y7]),q]});}return t;})();var Pw=new R(""),x7={provide:pr,useExisting:Bn(()=>vm)},vm=(()=>{class t extends pr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new z();static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Rw(this,r);}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&kg(n,this,!1),bm(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1});}Aw(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&kg(this.form,this,!1);}get path(){return[];}get control(){return this.form;}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form");}static ɵfac=function(n){return new(n||t)(w(ao,10),w(xl,10),w(oo,10),w(Pw,8),w(ed,8));};static ɵdir=L({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[be([x7]),q,tt]});}return t;})(),w7={provide:pi,useExisting:Bn(()=>Ki)},Ki=(()=>{class t extends pi{callSetDisabledState;get submitted(){return Gi(this._submittedReactive);}set submitted(e){this._submittedReactive.set(e);}_submitted=Ea(()=>this._submittedReactive());_submittedReactive=Ci(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z();constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n);}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}ngOnDestroy(){this.form&&(Sg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this;}get control(){return this.form;}get path(){return[];}addControl(e){let n=this.form.get(e.path);return bm(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n;}getControl(e){return this.form.get(e.path);}removeControl(e){kg(e.control||null,e,!1),f7(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path);}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}getFormArray(e){return this.form.get(e.path);}updateModel(e,n){this.form.get(e.path).setValue(n);}onSubmit(e){return this._submittedReactive.set(!0),EA(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ww(this.control)),e?.target?.method==="dialog";}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Cw(this.form));}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(kg(n||null,e),_7(r)&&(bm(r,e,this.callSetDisabledState),e.control=r));}),this.form._updateTreeValidity({emitEvent:!1});}_setUpFormContainer(e){let n=this.form.get(e.path);DA(n,e),n.updateValueAndValidity({emitEvent:!1});}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&p7(n,e)&&n.updateValueAndValidity({emitEvent:!1});}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{});}_updateValidators(){Tw(this.form,this),this._oldForm&&Sg(this._oldForm,this);}static ɵfac=function(n){return new(n||t)(w(ao,10),w(xl,10),w(ed,8));};static ɵdir=L({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&S("submit",function(a){return r.onSubmit(a);})("reset",function(){return r.onReset();});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[be([w7]),q,tt]});}return t;})(),C7={provide:pi,useExisting:Bn(()=>Og)},Og=(()=>{class t extends b7{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r);}_checkParentType(){kA(this._parent);}static ɵfac=function(n){return new(n||t)(w(pi,13),w(ao,10),w(xl,10));};static ɵdir=L({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[be([C7]),q]});}return t;})(),D7={provide:pi,useExisting:Bn(()=>IA)},IA=(()=>{class t extends pi{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r);}ngOnInit(){this.formDirective.addFormArray(this);}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this);}get control(){return this.formDirective.getFormArray(this);}get formDirective(){return this._parent?this._parent.formDirective:null;}get path(){return Rg(this.name==null?this.name:this.name.toString(),this._parent);}_checkParentType(){kA(this._parent);}static ɵfac=function(n){return new(n||t)(w(pi,13),w(ao,10),w(xl,10));};static ɵdir=L({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[be([D7]),q]});}return t;})();function kA(t){return!(t instanceof Og)&&!(t instanceof Ki)&&!(t instanceof IA);}var E7={provide:pr,useExisting:Bn(()=>Pa)},Pa=(()=>{class t extends pr{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new z();static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Rw(this,o);}ngOnChanges(e){this._added||this._setUpControl(),Aw(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return Rg(this.name==null?this.name:this.name.toString(),this._parent);}get formDirective(){return this._parent?this._parent.formDirective:null;}_checkParentType(){}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0;}static ɵfac=function(n){return new(n||t)(w(pi,13),w(ao,10),w(xl,10),w(oo,10),w(Pw,8));};static ɵdir=L({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[be([E7]),q,tt]});}return t;})();var MA=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})(),Ew=class extends Xc{constructor(i,e,n){super(Mw(e),Sw(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator});}controls;at(i){return this.controls[this._adjustIndex(i)];}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent});}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(i,e,n={}){let r=this._adjustIndex(i);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:n.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length;}setValue(i,e={}){wA(this,!1,i),i.forEach((n,r)=>{xA(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent});}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e);}getRawValue(){return this.controls.map(i=>i.getRawValue());}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}));}_adjustIndex(i){return i<0?i+this.length:i;}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i;}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n);});}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value);}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e));}_setUpControls(){this._forEachChild(i=>this._registerControl(i));}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled;}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange);}_find(i){return this.at(i)??null;}};function sA(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0);}var Es=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t();return e.useNonNullable=!0,e;}group(e,n=null){let r=this._reduceControls(e),o={};return sA(n)?o=n:n!==null&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new Jc(r,o);}record(e,n=null){let r=this._reduceControls(e);return new Dw(r,n);}control(e,n,r){let o={};return this.useNonNullable?(sA(n)?o=n:(o.validators=n,o.asyncValidators=r),new zo(e,Ne(j({},o),{nonNullable:!0}))):new zo(e,n,r);}array(e,n,r){let o=e.map(a=>this._createControl(a));return new Ew(o,n,r);}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r]);}),n;}_createControl(e){if(e instanceof zo)return e;if(e instanceof Xc)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(n,r,o);}else return this.control(e);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var un=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ed,useValue:e.callSetDisabledState??Ag}]};}static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[MA]});}return t;})(),Lr=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pw,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ed,useValue:e.callSetDisabledState??Ag}]};}static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[MA]});}return t;})();var TA=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0});}return t;})(),SA=Sr({passive:!0}),AA=(()=>{class t{_platform=h(We);_ngZone=h(le);_styleLoader=h(kt);_monitoredElements=new Map();constructor(){}monitor(e){if(!this._platform.isBrowser)return gn;this._styleLoader.load(TA);let n=Yi(e),r=this._monitoredElements.get(n);if(r)return r.subject;let o=new U(),a="cdk-text-field-autofilled",s=l=>{l.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})));};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",s,SA),n.classList.add("cdk-text-field-autofill-monitored");}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,SA);}}),o;}stopMonitoring(e){let n=Yi(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n));}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Bo=(()=>{class t{_elementRef=h(ee);_platform=h(We);_ngZone=h(le);_renderer=h(wt);_resizeEvents=new U();_previousValue;_initialHeight;_destroyed=new U();_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows;}set minRows(e){this._minRows=Ar(e),this._setMinHeight();}get maxRows(){return this._maxRows;}set maxRows(e){this._maxRows=Ar(e),this._setMaxHeight();}get enabled(){return this._enabled;}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset());}get placeholder(){return this._textareaElement.placeholder;}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight();}_cachedLineHeight;_cachedPlaceholderHeight;_document=h(ve,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){h(kt).load(TA),this._textareaElement=this._elementRef.nativeElement;}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e);}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e);}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(Ql(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0);});}),this._isViewInited=!0,this.resizeToFitContent(!0));}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete();}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),n=e.style;e.rows=1,n.position="absolute",n.visibility="hidden",n.border="none",n.padding="0",n.height="",n.minHeight="",n.maxHeight="",n.top=n.bottom=n.left=n.right="auto",n.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight();}_measureScrollHeight(){let e=this._textareaElement,n=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=n),s;}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return;}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e;}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus";};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent();}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let n=this._elementRef.nativeElement,r=n.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);n.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(n)):setTimeout(()=>this._scrollToCaretPosition(n));}),this._previousValue=r,this._previousMinRows=this._minRows;}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight);}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:n,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(n,r);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(n,r){n&1&&S("input",function(){return r._noopInputHandler();});},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",Q],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});}return t;})(),RA=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})();var Fw=class{_box;_destroyed=new U();_resizeSubject=new U();_resizeObserver;_elementObservables=new Map();constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)));}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new $e(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i);};}).pipe(ke(e=>e.some(n=>n.target===i)),Lp({bufferSize:1,refCount:!0}),Ae(this._destroyed))),this._elementObservables.get(i);}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear();}},Pg=(()=>{class t{_cleanupErrorListener;_observers=new Map();_ngZone=h(le);constructor(){typeof ResizeObserver<"u";}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.();}observe(e,n){let r=n?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Fw(r)),this._observers.get(r).observe(e);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var I7=["notch"],k7=["matFormFieldNotchedOutline",""],M7=["*"],S7=["textField"],T7=["iconPrefixContainer"],A7=["textPrefixContainer"],R7=["iconSuffixContainer"],O7=["textSuffixContainer"],P7=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],F7=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function N7(t,i){t&1&&D(0,"span",21);}function L7(t,i){if(t&1&&(m(0,"label",20),ue(1,1),T(2,N7,1,0,"span",21),u()),t&2){let e=x(2);y("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),oe("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),K(!e.hideRequiredMarker&&e._control.required?2:-1);}}function V7(t,i){if(t&1&&T(0,L7,3,5,"label",20),t&2){let e=x();K(e._hasFloatingLabel()?0:-1);}}function z7(t,i){t&1&&D(0,"div",7);}function B7(t,i){}function j7(t,i){if(t&1&&T(0,B7,0,0,"ng-template",13),t&2){x(2);let e=Ke(1);y("ngTemplateOutlet",e);}}function $7(t,i){if(t&1&&(m(0,"div",9),T(1,j7,1,1,null,13),u()),t&2){let e=x();y("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),K(e._forceDisplayInfixLabel()?-1:1);}}function H7(t,i){t&1&&(m(0,"div",10,2),ue(2,2),u());}function U7(t,i){t&1&&(m(0,"div",11,3),ue(2,3),u());}function q7(t,i){}function W7(t,i){if(t&1&&T(0,q7,0,0,"ng-template",13),t&2){x();let e=Ke(1);y("ngTemplateOutlet",e);}}function G7(t,i){t&1&&(m(0,"div",14,4),ue(2,4),u());}function Q7(t,i){t&1&&(m(0,"div",15,5),ue(2,5),u());}function Y7(t,i){t&1&&D(0,"div",16);}function Z7(t,i){if(t&1&&(m(0,"div",18),ue(1,6),u()),t&2){let e=x();y("@transitionMessages",e._subscriptAnimationState);}}function K7(t,i){if(t&1&&(m(0,"mat-hint",22),f(1),u()),t&2){let e=x(2);y("id",e._hintLabelId),d(),C(e.hintLabel);}}function X7(t,i){if(t&1&&(m(0,"div",19),T(1,K7,2,2,"mat-hint",22),ue(2,7),D(3,"div",23),ue(4,8),u()),t&2){let e=x();y("@transitionMessages",e._subscriptAnimationState),d(),K(e.hintLabel?1:-1);}}var Pt=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-label"]]});}return t;})(),BA=new R("MatError"),td=(()=>{class t{id=h(pt).getId("mat-mdc-error-");constructor(){h(new ri("aria-live"),{optional:!0})||h(ee).nativeElement.setAttribute("aria-live","polite");}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,r){n&2&&Dn("id",r.id);},inputs:{id:"id"},features:[be([{provide:BA,useExisting:t}])]});}return t;})(),OA=(()=>{class t{align="start";id=h(pt).getId("mat-mdc-hint-");static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){n&2&&(Dn("id",r.id),oe("align",null),ne("mat-mdc-form-field-hint-end",r.align==="end"));},inputs:{align:"align",id:"id"}});}return t;})(),J7=new R("MatPrefix");var eU=new R("MatSuffix");var jA=new R("FloatingLabelParent"),PA=(()=>{class t{_elementRef=h(ee);get floating(){return this._floating;}set floating(e){this._floating=e,this.monitorResize&&this._handleResize();}_floating=!1;get monitorResize(){return this._monitorResize;}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe();}_monitorResize=!1;_resizeObserver=h(Pg);_ngZone=h(le);_parent=h(jA);_resizeSubscription=new Ie();constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe();}getWidth(){return tU(this._elementRef.nativeElement);}get element(){return this._elementRef.nativeElement;}_handleResize(){setTimeout(()=>this._parent._handleLabelResized());}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize());});}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mdc-floating-label--float-above",r.floating);},inputs:{floating:"floating",monitorResize:"monitorResize"}});}return t;})();function tU(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n;}var FA="mdc-line-ripple--active",Fg="mdc-line-ripple--deactivating",NA=(()=>{class t{_elementRef=h(ee);_cleanupTransitionEnd;constructor(){let e=h(le),n=h(wt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd);});}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Fg),e.add(FA);}deactivate(){this._elementRef.nativeElement.classList.add(Fg);}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,r=n.contains(Fg);e.propertyName==="opacity"&&r&&n.remove(FA,Fg);};ngOnDestroy(){this._cleanupTransitionEnd();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});}return t;})(),LA=(()=>{class t{_elementRef=h(ee);_ngZone=h(le);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="");}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label");}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(n&1&&Y(I7,5),n&2){let o;F(o=N())&&(r._notch=o.first);}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mdc-notched-outline--notched",r.open);},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:k7,ngContentSelectors:M7,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,r){n&1&&(Pe(),D(0,"div",1),m(1,"div",2,0),ue(3),u(),D(4,"div",3));},encapsulation:2,changeDetection:0});}return t;})(),nU={transitionMessages:kn("transitionMessages",[Mt("enter",Ze({opacity:1,transform:"translateY(0%)"})),Zt("void => enter",[Ze({opacity:0,transform:"translateY(-5px)"}),en("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xm=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t});}return t;})();var wm=new R("MatFormField"),iU=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),VA="fill",rU="auto",zA="fixed",oU="translateY(-50%)",Ft=(()=>{class t{_elementRef=h(ee);_changeDetectorRef=h(ge);_dir=h(Jt);_platform=h(We);_idGenerator=h(pt);_defaults=h(iU,{optional:!0});_animationMode=h(mt,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=MM(Pt);get hideRequiredMarker(){return this._hideRequiredMarker;}set hideRequiredMarker(e){this._hideRequiredMarker=Tr(e);}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||rU;}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck());}_floatLabel;get appearance(){return this._appearance;}set appearance(e){let n=this._appearance,r=e||this._defaults?.appearance||VA;this._appearance=r,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0);}_appearance=VA;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||zA;}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||zA;}_subscriptSizing=null;get hintLabel(){return this._hintLabel;}set hintLabel(e){this._hintLabel=e,this._processHints();}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl;}set _control(e){this._explicitFormFieldControl=e;}_destroyed=new U();_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=h(Oe);constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color));}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges();}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions();}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control);}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete();}getLabelId=Ea(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef;}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always");}_initializeControl(e){let n=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(r+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck();}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(yt([void 0,void 0]),me(()=>[n.errorState,n.userAriaDescribedBy]),Np(),ke(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Ae(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()));}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText);}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),qt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck();});}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck();}),this._errorChildren.changes.subscribe(()=>{th��is._syncDescribedByIds(),this._changeDetectorRef.markForCheck();}),this._validateHints(),this._syncDescribedByIds();}_assertFormFieldControl(){this._control;}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused);}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),fu(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset());},{injector:this._injector}),this._dir.change.pipe(Ae(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0);}_shouldAlwaysFloat(){return this.floatLabel==="always";}_hasOutline(){return this.appearance==="outline";}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat();}_hasFloatingLabel=Ea(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1;}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e];}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint";}_handleLabelResized(){this._refreshOutlineNotchWidth();}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth());}_processHints(){this._validateHints(),this._syncDescribedByIds();}_validateHints(){this._hintChildren;}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id);}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e);}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return;}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return;}let n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=n?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,p=a?.getBoundingClientRect().width??0,g=this._dir.value==="rtl"?"-1":"1",_=`${s+l}px`,v=`calc(${g} * (${_} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${oU} translateX(${v})
    )`;let I=s+l+c+p;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${I}px)`);}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e;}return document.documentElement.contains(e);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(n&1&&(qM(o,r._labelChild,Pt,5),Fe(o,xm,5),Fe(o,J7,5),Fe(o,eU,5),Fe(o,BA,5),Fe(o,OA,5)),n&2){Kh();let a;F(a=N())&&(r._formFieldControl=a.first),F(a=N())&&(r._prefixChildren=a),F(a=N())&&(r._suffixChildren=a),F(a=N())&&(r._errorChildren=a),F(a=N())&&(r._hintChildren=a);}},viewQuery:function(n,r){if(n&1&&(Y(S7,5),Y(T7,5),Y(A7,5),Y(R7,5),Y(O7,5),Y(PA,5),Y(LA,5),Y(NA,5)),n&2){let o;F(o=N())&&(r._textField=o.first),F(o=N())&&(r._iconPrefixContainer=o.first),F(o=N())&&(r._textPrefixContainer=o.first),F(o=N())&&(r._iconSuffixContainer=o.first),F(o=N())&&(r._textSuffixContainer=o.first),F(o=N())&&(r._floatingLabel=o.first),F(o=N())&&(r._notchedOutline=o.first),F(o=N())&&(r._lineRipple=o.first);}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){n&2&&ne("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"));},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[be([{provide:wm,useExisting:t},{provide:jA,useExisting:t}])],ngContentSelectors:F7,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(n&1){let o=W();Pe(P7),T(0,V7,1,1,"ng-template",null,0,Ir),m(2,"div",6,1),S("click",function(s){return k(o),M(r._control.onContainerClick(s));}),T(4,z7,1,0,"div",7),m(5,"div",8),T(6,$7,2,2,"div",9)(7,H7,3,0,"div",10)(8,U7,3,0,"div",11),m(9,"div",12),T(10,W7,1,1,null,13),ue(11),u(),T(12,G7,3,0,"div",14)(13,Q7,3,0,"div",15),u(),T(14,Y7,1,0,"div",16),u(),m(15,"div",17),T(16,Z7,2,1,"div",18)(17,X7,5,2,"div",19),u();}if(n&2){let o;d(2),ne("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),d(2),K(!r._hasOutline()&&!r._control.disabled?4:-1),d(2),K(r._hasOutline()?6:-1),d(),K(r._hasIconPrefix?7:-1),d(),K(r._hasTextPrefix?8:-1),d(2),K(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),d(2),K(r._hasTextSuffix?12:-1),d(),K(r._hasIconSuffix?13:-1),d(),K(r._hasOutline()?-1:14),d(),ne("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),d(),K((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1);}},dependencies:[PA,LA,dl,NA,OA],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-fl��ex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[nU.transitionMessages]},changeDetection:0});}return t;})(),$t=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,Nc,fe]});}return t;})();var aU=new R("MAT_INPUT_VALUE_ACCESSOR"),sU=["button","checkbox","file","hidden","image","radio","range","reset","submit"],lU=new R("MAT_INPUT_CONFIG"),bn=(()=>{class t{_elementRef=h(ee);_platform=h(We);ngControl=h(pr,{optional:!0,self:!0});_autofillMonitor=h(AA);_ngZone=h(le);_formField=h(wm,{optional:!0});_renderer=h(wt);_uid=h(pt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=h(lU,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new U();controlType="mat-input";autofilled=!1;get disabled(){return this._disabled;}set disabled(e){this._disabled=Tr(e),this.focused&&(this.focused=!1,this.stateChanges.next());}_disabled=!1;get id(){return this._id;}set id(e){this._id=e||this._uid;}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(vt.required)??!1;}set required(e){this._required=Tr(e);}_required;get type(){return this._type;}set type(e){let n=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&Rx().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==n&&this._ensureWheelDefaultBehavior();}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher;}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value;}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next());}get readonly(){return this._readonly;}set readonly(e){this._readonly=Tr(e);}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState;}set errorState(e){this._errorStateTracker.errorState=e;}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Rx().has(e));constructor(){let e=h(Oa,{optional:!0}),n=h(Ki,{optional:!0}),r=h(fs),o=h(aU,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?is(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener);}),this._errorStateTracker=new Hc(r,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Cu(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next();});}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next();});}ngOnChanges(){this.stateChanges.next();}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.();}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder();}focus(e){this._elementRef.nativeElement.focus(e);}updateErrorState(){this._errorStateTracker.updateErrorState();}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0);}this.focused=e,this.stateChanges.next();}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next());}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder");}}_getPlaceholder(){return this.placeholder||null;}_validateType(){sU.indexOf(this._type)>-1;}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1;}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput;}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled;}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label);}else return this.focused&&!this.disabled||!this.empty;}setDescribedByIds(e){let n=this._elementRef.nativeElement,r=n.getAttribute("aria-describedby"),o;if(r){let a=this._formFieldDescribedBy||e;o=e.concat(r.split(" ").filter(s=>s&&!a.includes(s)));}else o=e;this._formFieldDescribedBy=e,o.length?n.setAttribute("aria-describedby",o.join(" ")):n.removeAttribute("aria-describedby");}onContainerClick(){this.focused||this.focus();}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1);}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0));};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener));}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,r){n&1&&S("focus",function(){return r._focusChanged(!0);})("blur",function(){return r._focusChanged(!1);})("input",function(){return r._onInput();}),n&2&&(Dn("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),oe("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),ne("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()));},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q]},exportAs:["matInput"],features:[be([{provide:xm,useExisting:t}]),tt]});}return t;})(),Tt=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,$t,$t,RA,fe]});}return t;})();function cU(t,i){t&1&&(m(0,"small"),f(1,"Username is required."),u());}function dU(t,i){t&1&&(m(0,"small"),f(1,"Username must be at least 4 characters long."),u());}function uU(t,i){if(t&1&&(m(0,"mat-error"),T(1,cU,2,0,"small",4)(2,dU,2,0,"small",4),u()),t&2){let e,n,r=x();d(),y("ngIf",(e=r.loginForm.get("username"))==null||e.errors==null?null:e.errors.required),d(),y("ngIf",(n=r.loginForm.get("username"))==null||n.errors==null?null:n.errors.minlength);}}function mU(t,i){t&1&&(m(0,"span"),f(1,"This field is mandatory."),u());}function pU(t,i){if(t&1&&(m(0,"mat-error"),T(1,mU,2,0,"span",4),u()),t&2){let e,n=x();d(),y("ngIf",(e=n.loginForm.get("password"))==null||e.errors==null?null:e.errors.required);}}var Ng=(()=>{class t{constructor(e){this.formBuilder=e;}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",[vt.required]],password:["",[vt.required]]});}isValid(){return this.loginForm.valid;}onSubmit(){this.loginForm.valid?console.log("Form Submitted",this.loginForm.value):console.log("Form is not valid");}static{this.ɵfac=function(n){return new(n||t)(w(Es));};}static{this.ɵcmp=E({type:t,selectors:[["cb-login"]],decls:12,vars:3,consts:[[1,"container"],[3,"ngSubmit","formGroup"],["appearance","outline",1,"form-field"],["matInput","","type","text","formControlName","username","id","username"],[4,"ngIf"],["matInput","","formControlName","password","type","password"]],template:function(n,r){if(n&1&&(m(0,"div",0)(1,"form",1),S("ngSubmit",function(){return r.onSubmit();}),m(2,"mat-form-field",2)(3,"mat-label"),f(4,"Username:"),u(),D(5,"input",3),T(6,uU,3,2,"mat-error",4),u(),m(7,"mat-form-field",2)(8,"mat-label"),f(9," Password"),u(),D(10,"input",5),T(11,pU,2,1,"mat-error",4),u()()()),n&2){let o,a;d(),y("formGroup",r.loginForm),d(5),y("ngIf",((o=r.loginForm.get("username"))==null?null:o.invalid)&&(((o=r.loginForm.get("username"))==null?null:o.dirty)||((o=r.loginForm.get("username"))==null?null:o.touched))),d(5),y("ngIf",((a=r.loginForm.get("password"))==null?null:a.touched)&&((a=r.loginForm.get("password"))==null?null:a.invalid));}},dependencies:[H,Ot,un,Nr,dn,_n,Fr,Lr,Ki,Pa,Tt,bn,Ft,Pt,td,$t],styles:[".container[_ngcontent-%COMP%]{width:300px;margin:0 auto;padding-top:20px;text-align:center}div[_ngcontent-%COMP%]{margin-bottom:10px}label[_ngcontent-%COMP%]{margin-right:5px}input[_ngcontent-%COMP%]{margin-right:15px}button[_ngcontent-%COMP%]{margin-top:10px}small[_ngcontent-%COMP%]{color:red}"]});}}return t;})();var hU=["cblogin"],$A=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.loginTxt="Connexion";}ngOnInit(){}ngAfterViewInit(){console.log("login component",this.loginComponent);}submitEnabled(){return this.loginComponent?this.loginComponent.isValid():!1;}submit(){console.log("submit"),console.log("valid",this.loginComponent.loginForm.valid),console.log("valid",this.loginComponent.loginForm.value),this.dialogRef.close({data:this.loginComponent.loginForm.value});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["login-dialog"]],viewQuery:function(n,r){if(n&1&&Y(hU,5),n&2){let o;F(o=N())&&(r.loginComponent=o.first);}},decls:9,vars:3,consts:[["cblogin",""],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","","align","center"],["mat-raised-button","",3,"click","disabled"]],template:function(n,r){if(n&1){let o=W();m(0,"h1",1),f(1),u(),m(2,"div",2),D(3,"cb-login",null,0),u(),m(5,"div",3)(6,"button",4),S("click",function(){return k(o),M(r.submit());}),f(7),u()(),D(8,"br");}n&2&&(d(),C(r.loginTxt),d(5),y("disabled",!r.submitEnabled()),d(),P(" ",r.loginTxt," "));},dependencies:[_t,tn,cn,nn,ce,Me,H,Ng,Tt],encapsulation:2});}}return t;})();var Lg=class{constructor(i,e){this.http=i,this.env=e,this.baseUrl=this.env.get().wordpressHost+"/wp-json/wp/v2";}isLoggedIn(i){let e=new st({"Content-Type":"application/json",Authorization:`Bearer ${i}`}),n=this.env.get().wordpressHost+"/wp-json/jwt-auth/v1/token/validate";return this.http.post(n,{},{withCredentials:!1,headers:e}).pipe(me(r=>({loggedIn:r.success,user:r.data})),Ji(r=>se({loggedIn:!1,error:r.message})));}getLoginToken(i,e){let n=new st({"Content-Type":"application/json"}),r=window.location.host,o={username:i,password:e,site:r},a=this.env.get().apiUrl+"/wp-token/";return this.http.post(a,o,{headers:n});}createPost(i,e,n,r,o="pending"){let a=new st({"Content-Type":"application/json",Authorization:`Bearer ${i}`}),s="";n.forEach(p=>{s+='<div class="chat-message">',s+=p,s+="</div><br />";});let l={title:e,content:s,status:o},c=this.env.get().wordpressHost+"/wp-json/wp/v2/posts";return r&&(c+="/"+r,console.log("update post")),this.http.post(c,l,{headers:a});}fetchRecentContent(i){let e=this.baseUrl+"/posts?_embed&per_page=5",n=this.env.get().wp.recentPostCategories;if(n){let r=n.split(",");e+=`&categories=${r}`;}return this.http.get(e);}fetchNews(i){let e=this.baseUrl+"/posts?_embed&per_page=4",n=this.env.get().wp.newsCategories;if(n){let r=n.split(",");e+=`&categories=${r}`;}return this.http.get(e);}fetchFeaturedImages(i){return this.http.get(this.baseUrl+"/media?per_page=12&media_type=image");}getPostJsonFromUrl(i){console.log("fetch post at",i);let e="";return this.http.get(i);}fetchArticle(i,e){let n=new st({"Content-Type":"application/json",Authorization:`Bearer ${i}`});return this.http.get(this.baseUrl+"/posts/"+e);}};var Vg=class{constructor(i,e){this.http=i,this.env=e;}isLoggedIn(i){throw new Error("function not implemented");}getLoginToken(i,e){let r=this.env.get().drupalHost+"/session/token",o={headers:new st({"Content-Type":"application/json"}),responseType:"text"};return this.http.post(r,{},o);}createPost(i,e,n,r,o="1"){let a=this.env.get().drupalHost+this.env.get().drupalApi+"/node/chat",s={data:{type:"node--chat",attributes:{title:e,body:{value:"",format:"plain_text"},field_message3:n}}},l={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":i}),responseType:"text"};return this.http.post(a,s,l);}fetchRecentContent(i){throw new Error("function not implemented");}fetchNews(i){throw new Error("function not implemented");}fetchFeaturedImages(i){throw new Error("function not implemented");}getPostJsonFromUrl(i){throw new Error("function not implemented");}fetchArticle(i,e){throw new Error("function not implemented");}};var jo=(()=>{class t{constructor(e,n){this.http=e,this.env=n,n.get().wordpressAdapter?this.cmsAdapter=new Lg(e,n):this.cmsAdapter=new Vg(e,n);}isLoggedIn(e){return this.cmsAdapter.isLoggedIn(e);}getLoginToken(e,n){return this.cmsAdapter.getLoginToken(e,n);}createPost(e,n,r,o,a="pending"){return this.cmsAdapter.createPost(e,n,r,o,a);}fetchRecentContent(e){if(this.cmsAdapter.fetchRecentContent)return this.cmsAdapter.fetchRecentContent(e);throw new Error("function not implemented");}fetchNews(e){if(this.cmsAdapter.fetchNews)return this.cmsAdapter.fetchNews(e);throw new Error("function not implemented");}fetchFeaturedImages(e){if(this.cmsAdapter.fetchFeaturedImages)return this.cmsAdapter.fetchFeaturedImages(e);throw new Error("function not implemented");}getPostJsonFromUrl(e){if(this.cmsAdapter.getPostJsonFromUrl)return this.cmsAdapter.getPostJsonFromUrl(e);throw new Error("function not implemented");}fetchArticle(e,n){if(this.cmsAdapter.fetchArticle)return this.cmsAdapter.fetchArticle(e,n);throw new Error("function not implemented");}decodeHtmlEntities(e){let n=document.createElement("textarea");return n.innerHTML=e,n.textContent||"";}convertWpPosts(e){let n=[],r=[];return e.forEach(o=>{let a={id:o.id,date:o.date,date_gmt:o.date_gmt,guid:{rendered:o.guid.rendered},modified:o.modified,modified_gmt:o.modified_gmt,slug:o.slug,status:o.status,type:o.type,link:o.link,title:{rendered:o.title.rendered},content:{rendered:o.content.rendered,protected:o.content.protected},excerpt:{rendered:o.excerpt.rendered,protected:o.excerpt.protected},author:o.author,featured_media:o.featured_media,comment_status:o.comment_status,ping_status:o.ping_status,sticky:o.sticky,template:o.template,format:o.format,meta:{footnotes:o.meta.footnotes},categories:[],tags:[],_links:{},_embedded:o._embedded};n.push(a);}),n.forEach(o=>{let a={title:o.title.rendered,url:o.link,imageUrl:"",fullImageUrl:"",excerpt:this.decodeHtmlEntities(o.excerpt.rendered),date:o.modified,author:o._embedded.author[0].name};o._embedded["wp:featuredmedia"]&&o._embedded["wp:featuredmedia"][0].media_details&&(a.imageUrl=o._embedded["wp:featuredmedia"][0].media_details.sizes.thumbnail.source_url,a.fullImageUrl=o._embedded["wp:featuredmedia"][0].source_url),a.title=this.decodeHtmlEntities(a.title);let s=new Date(a.date),l=new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(s);a.date=l,r.push(a);}),r;}static{this.ɵfac=function(n){return new(n||t)(J(ui),J(je));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Vr=(()=>{class t{constructor(e,n,r,o){this.cms=e,this.dialog=n,this.env=r,this.http=o;}openLoginWindow(e){return this.dialog.open($A,{width:"400px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e,backdropClass:"login-backdrop"});}getToken(e,n){return this.cms.getLoginToken(e,n);}isLoggedIn(){return!!this.user;}logout(){this.user=void 0;}getFapiToken(){let e=new st({"Content-Type":"application/json"});console.log("host is ",window.location.host);let n={data:window.location.host},r=this.env.get().apiUrl+"/fapi-token/";return this.http.post(r,n,{headers:e});}static{this.ɵfac=function(n){return new(n||t)(J(jo),J(jt),J(je),J(ui));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var HA=(()=>{class t{constructor(e,n,r,o,a){this.router=e,this.env=n,this.unsavedChanges=r,this.dialog=o,this.userService=a,this.LogoutEvent=new z(),this.navLabel="Menu de navigation",this.chat="Discussion",this.newTab="Nouveau Chatbot",this.manageContent="G\xE9rer le contenu",this.wpHostName="";}ngOnInit(){let e=this.env.get().wordpressHost,n=e.indexOf("//");console.assert(n!==-1,"invalid index"),this.wpHostName=e.substring(n+2);}logout(){console.log("logout"),this.userService.logout(),this.LogoutEvent.emit(!0);}goToImages(){this.router.navigate(["/image"]);}goToText(){this.router.navigate(["/chat"]);}openInNewTab(){window.open(window.location.href,"_blank");}getHost(){return window.location.hostname;}returnToSite(){window.open("/");}goToCms(e){let n=e==="wordpress"?this.env.get().wordpressHost:this.env.get().drupalHost;this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(Vo,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:n}}):window.open(n,"_self");}static{this.ɵfac=function(n){return new(n||t)(w(Je),w(je),w(Pr),w(jt),w(Vr));};}static{this.ɵcmp=E({type:t,selectors:[["cb-header-links"]],outputs:{LogoutEvent:"LogoutEvent"},decls:35,vars:7,consts:[["menu","matMenu"],["id","links-menu-trigger","mat-icon-button","","aria-label","navigation menu",3,"matMenuTriggerFor"],[1,"header-links-menu"],["mat-menu-item","",3,"click","disabled"],["mat-menu-item","",3,"click"]],template:function(n,r){if(n&1){let o=W();m(0,"button",1)(1,"mat-icon"),f(2,"more_vert"),u()(),m(3,"mat-menu",2,0)(5,"button",3),S("click",function(){return k(o),M(r.goToImages());}),m(6,"mat-icon"),f(7,"image"),u(),m(8,"span"),f(9,"Images"),u()(),m(10,"button",3),S("click",function(){return k(o),M(r.goToText());}),m(11,"mat-icon"),f(12,"question_answer"),u(),m(13,"span"),f(14),u()(),m(15,"button",4),S("click",function(){return k(o),M(r.openInNewTab());}),m(16,"mat-icon"),f(17,"open_in_new"),u(),m(18,"span"),f(19),u()(),m(20,"button",4),S("click",function(){return k(o),M(r.goToCms("wordpress"));}),m(21,"mat-icon"),f(22,"keyboard_return"),u(),m(23,"span"),f(24),u()(),m(25,"button",4),S("click",function(){return k(o),M(r.goToCms("drupal"));}),m(26,"mat-icon"),f(27,"dataset"),u(),m(28,"span"),f(29),u()(),m(30,"button",4),S("click",function(){return k(o),M(r.logout());}),m(31,"mat-icon"),f(32,"logout"),u(),m(33,"span"),f(34,"Logout"),u()()();}if(n&2){let o=Ke(4);y("matMenuTriggerFor",o),d(5),y("disabled",r.router.url==="/image"),d(5),y("disabled",r.router.url==="/chat"),d(4),C(r.chat),d(5),C(r.newTab),d(5),C(r.wpHostName),d(5),C(r.manageContent);}},dependencies:[H,Yt,Ee,Re,xs,Or,ro,ys,ce,Mi,_t],encapsulation:2});}}return t;})();function fU(t,i){if(t&1){let e=W();m(0,"div")(1,"button",4),S("click",function(){let r=k(e).$implicit,o=x();return M(o.selectPalette(r));}),m(2,"mat-icon"),f(3,"text_fields"),u(),m(4,"span",5),f(5),u()()();}if(t&2){let e=i.$implicit;d(2),UM("palette-icon ",e.mode.toLowerCase()," ",e.id,""),d(3),ll("",e.name," (",e.mode,")");}}var Nw=(()=>{class t{constructor(){this.helpStr="S\xE9lectionnez une couleur de th\xE8me.",this.selectPaletteEvent=new z();}selectPalette(e){console.log("palette is ",e),this.selectPaletteEvent.emit(e);}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-palette-picker"]],inputs:{palettes:"palettes"},outputs:{selectPaletteEvent:"selectPaletteEvent"},decls:8,vars:2,consts:[["menu",""],["id","palette-picker"],["mat-icon-button","","aria-label","palette picker",3,"matTooltip","matMenuTriggerFor"],["id","palette-picker-menu"],["mat-menu-item","",1,"palette-button",3,"click"],[1,"palette"]],template:function(n,r){if(n&1&&(m(0,"span",1)(1,"button",2)(2,"mat-icon"),f(3,"format_color_fill"),u()(),m(4,"mat-menu",3,0),ci(6,fU,6,6,"div",null,os),u()()),n&2){let o=Ke(5);d(),y("matTooltip",r.helpStr)("matMenuTriggerFor",o),d(5),di(r.palettes);}},dependencies:[Ee,Re,ce,Mi,nt,St,xs,Or,ro,ys],styles:[".cb-palette-1[_ngcontent-%COMP%]{background-color:#fff;color:#026e00}.cb-palette-2[_ngcontent-%COMP%]{background-color:#121212}.cb-palette-3[_ngcontent-%COMP%]{background-color:#cdcd00;color:#121212}.cb-palette-4[_ngcontent-%COMP%]{background-color:#121212;color:#cdcd00}"]});}}return t;})();var zg=function(t){return t._1024x1024="1024x1024",t._1792x1024="1792x1024",t._1024x1792="1024x1792",t;}(zg||{}),Bg=function(t){return t.standard="standard",t.hd="hd",t;}(Bg||{}),jg=function(t){return t.vivid="vivid",t.natural="natural",t;}(jg||{}),Nt=(()=>{class t{static{this.sNextID=0;}constructor(){this.id=0,this.userId=1,this.endpoint=te.unknown,this.body="",this.bodyOriginal="",this.id=t.sNextID++;}}return t;})(),te=function(t){return t[t.unknown=0]="unknown",t[t.chat=1]="chat",t[t.chatAlt=2]="chatAlt",t[t.ancientPhilosophy=3]="ancientPhilosophy",t[t.jokes=4]="jokes",t[t.topTen=5]="topTen",t[t.imageGenerate=6]="imageGenerate",t[t.imageEdit=7]="imageEdit",t[t.imageVariations=8]="imageVariations",t[t.openaimodels=9]="openaimodels",t[t.characters=10]="characters",t[t.imagePrompts=11]="imagePrompts",t[t.toFrench=12]="toFrench",t[t.toSpanish=13]="toSpanish",t[t.chatStream=14]="chatStream",t[t.home=15]="home",t[t.chemicalElements=16]="chemicalElements",t[t.socrates=17]="socrates",t[t.particlePhysics=18]="particlePhysics",t[t.blackjack=19]="blackjack",t[t.pythonTutor=20]="pythonTutor",t[t.mlTutor=21]="mlTutor",t[t.dynamicWidget=22]="dynamicWidget",t[t.character=23]="character",t;}(te||{}),Et=function(t){return t[t.human=0]="human",t[t.ai=1]="ai",t[t.unknown=2]="unknown",t;}(Et||{});var $o=(()=>{class t{constructor(e){this.env=e,this.homeCards=[],this.imageCards=[],this.textCards=[],this.homeCards=[{id:"chat",title:"Discussion",subtitle:"Widgets d'IA",description:"Une collection de widgets de chat IA g\xE9n\xE9raux et sp\xE9cialis\xE9s. Tous les widgets ici utilisent des Mod\xE8les de Langage de Grande Taille (LLMs).",icon:"question_answer",quickLinks:[{name:"Posez-moi n'importe quoi",href:"/chat/ask-me-anything",tooltip:"Discussion \xE0 usage g\xE9n\xE9ral"},{name:"Gestionnaire de widget",href:"/chat/widget-manager",tooltip:"Nouveau ! Cr\xE9ez vos propres widgets d'IA \xE9troite."},{name:"Blagues",href:"chat/jokes",tooltip:"Une blague diff\xE9rente \xE0 chaque fois !"},{name:"\xC9l\xE9ments Chimiques",href:"chat/chemical-elements",tooltip:"Informations et quiz interactif sur les \xE9l\xE9ments chimiques."},{name:"Physique des particules",href:"chat/particle-physics",tooltip:"Informations et quiz interactifs sur les particules subatomiques."},{name:"Blackjack",href:"chat/blackjack",tooltip:"Jouez au blackjack. Le chatbot est le croupier."},{name:"Python Tutor",href:"chat/python-tutor",tooltip:"Apprenez et soyez interrog\xE9 sur divers sujets Python"}��,{name:"Tuteur ML",href:"chat/ml-tutor",tooltip:"Apprenez et testez vos connaissances sur les techniques et biblioth\xE8ques de machine learning."},{name:"Philosophie Ancienne",href:"/chat/ancient-philosophy",tooltip:"Paroles de sagesse, principalement des philosophes anciens de l'Ouest et de l'Est."},{name:"Socrate",href:"chat/socrates",tooltip:"Mesurez votre esprit avec Socrate."},{name:"En Espa\xF1ol",href:"/chat/to-spanish",tooltip:"Traducir al espa\xF1ol"},{name:"En Fran\xE7ais",href:"/chat/to-french",tooltip:"Traduire en fran\xE7ais"},{name:"Voir tout",href:"/chat",tooltip:"Explorez plus de widgets de chat"}],link:{name:"Voir le tableau de bord",href:"/chat"},weight:1,enabled:!0,hidden:!1,dynamic:!0},{id:"images",title:"Images",subtitle:"Widgets d'IA",description:"Utilisez les widgets ici pour cr\xE9er des images \xE0 partir de texte. Des variations, l'\xE9dition, le t\xE9l\xE9chargement, le t\xE9l\xE9chargement, la gestion des invites et d'autres fonctionnalit\xE9s sont \xE9galement disponibles.",icon:"photo_library",quickLinks:[{name:"Tableau de bord",href:"/image",tooltip:"Explorez les widgets d'image"},{name:"Cr\xE9er",href:"image/generate",tooltip:"G\xE9n\xE9rer des images \xE0 partir de texte."},{name:"Modifier",href:"image/edit",tooltip:"Effectuer des corrections d'image (Inpaint) et \xE9tendre une image (Outpaint) en utilisant des masques d'image."},{name:"Variations",href:"image/variations",tooltip:"Cr\xE9er des variantes sur les images."},{name:"Instructions",href:"image/prompts",tooltip:"Cr\xE9ez facilement des instructions sophistiqu\xE9es pour les images."}],link:{name:"Voir le tableau de bord",href:"image"},weight:2,enabled:!0,hidden:!1,dynamic:!0},{id:"characters",title:"Personnages",subtitle:"Agents d'IA",description:"",icon:"people",link:{name:"Configurer les personnages",href:"characters"},weight:3,enabled:!0,hidden:!1,dynamic:!0},{id:"recent",title:"R\xE9cents",subtitle:"Contenu IA",description:"",icon:"calendar_today",link:{name:"Voir tout",href:"about"},quickLinks:[{name:"Parcourir les Chats",href:this.env.get().wordpressHost+"/category/ai-chat/",tooltip:"Parcourir toutes les conversations de chat.",external:!0},{name:"Parcourir les Images",href:this.env.get().wordpressHost+"/gallery/",tooltip:"Parcourir toutes les images.",external:!0}],weight:4,enabled:!0,hidden:!0,dynamic:!0},{id:"news",title:"Actualit\xE9s",subtitle:"Derni\xE8res nouvelles",description:"",icon:"newspaper",quickLinks:[{name:"Toutes les Nouvelles",href:this.env.get().wordpressHost,tooltip:"Lisez les derni\xE8res actualit\xE9s sur les Chatbots.",external:!0}],link:{name:"Toutes les Nouvelles",href:""},weight:5,enabled:!0,hidden:!0,dynamic:!0},{id:"about",title:"Sur",subtitle:"Informations sur le site",description:"",icon:"info",link:{name:"Lire la suite",href:"about"},weight:7,enabled:!0,hidden:!1,dynamic:!0},{id:"support",title:"Soutien",subtitle:"Informations sur le site",description:"",icon:"contact_support",link:{name:"Obtenir de l'aide",href:"support"},weight:8,enabled:!0,hidden:!1,dynamic:!0},{id:"api",title:"Statut",subtitle:"Informations sur l'API",description:"Disponibilit\xE9 de statut et de mod\xE8le.",icon:"api",quickLinks:[{name:"Voir tout",href:"models"}],link:{name:"Voir tout",href:"models"},weight:9,enabled:!0,hidden:!1,dynamic:!0}],this.imageCards=[{title:"Cr\xE9er",subtitle:"Widget d'image",description:"Cr\xE9er des images \xE0 partir de descriptions textuelles. Options de t\xE9l\xE9chargement et autres disponibles.",icon:"add_photo_alternate",link:{name:"Commencez ici !",href:"/image/generate"},weight:0,enabled:!0,hidden:!1,routeKey:te.imageGenerate,dynamic:!1},{title:"Modifier",subtitle:"Widget d'image",description:"Am\xE9liorez les r\xE9gions d'une image en fonction d'une description textuelle.",icon:"auto_fix_high",link:{name:"C'est parti !",href:"/image/edit"},weight:1,enabled:!0,hidden:!1,routeKey:te.imageEdit,dynamic:!1},{title:"Variations",subtitle:"Widget d'image",description:"T\xE9l\xE9chargez une image et obtenez des variations bas\xE9es sur votre image originale.",icon:"burst_mode",link:{name:"Tr\xE8s bien !",href:"/image/variations"},weight:2,enabled:!0,hidden:!1,routeKey:te.imageVariations,dynamic:!1},{title:"Instructions",subtitle:"Widget d'image",description:"G\xE9n\xE9rez des consignes d\xE9taill\xE9es pour cr\xE9er des images.",icon:"auto_awesome",link:{name:"G\xE9n\xE9rer des consignes",href:"/image/prompts"},weight:3,enabled:!0,hidden:!1,routeKey:te.imagePrompts,dynamic:!1}],this.textCards=[{title:"Posez-moi n'importe quoi",subtitle:"Widget de Chat",description:"Ce widget de chat est polyvalent et utilise des API d'IA (OpenAI). Il est capable de r\xE9aliser des choses incroyables, y compris l'\xE9criture de code et de po\xE9sie, r\xE9pondre \xE0 des questions de math\xE9matiques et d'histoire, et bien plus encore. L'API est form\xE9e avec des donn\xE9es jusqu'\xE0 environ un an auparavant.",icon:"wechat",link:{name:"Essayez-le !",href:"/chat/ask-me-anything"},help:"Posez n'importe quelle question et fournissez des d\xE9tails lorsque cela est appropri\xE9. Le chatbot prendra en compte tous les messages dans la conversation actuelle (c'est-\xE0-dire sur cette page) lorsqu'il r\xE9pondra.",weight:1,enabled:!0,hidden:!1,routeKey:te.chat,dynamic:!1},{title:"Posez-moi n'importe quoi (GPT 3.5)",subtitle:"Widget de Chat",description:"Cette application de chat polyvalente est bas\xE9e sur GPT 3.5 Turbo. Ce widget est nettement plus rapide que le widget principal \"Demandez-moi n'importe quoi\", mais fonctionne principalement de la m\xEAme mani\xE8re.",icon:"wechat",link:{name:"Parlons !",href:"/chat/ask-me-anything-alt"},weight:2,enabled:!1,hidden:!1,routeKey:te.chatAlt,dynamic:!1},{title:"Blagues",subtitle:"Widget de Chat",description:"Entrez un sujet et obtenez une nouvelle blague \xE0 chaque fois.",icon:"mic_external_on",link:{name:"Fais-moi rire",href:"/chat/jokes"},weight:3,enabled:!0,hidden:!1,routeKey:te.jokes,dynamic:!1},{title:"\xC9l\xE9ments Chimiques",subtitle:"Widget de Chat",description:"Informations et quiz interactif sur les \xE9l\xE9ments du tableau p\xE9riodique.",icon:"science",link:{name:"Essayez-le !",href:"/chat/chemical-elements"},weight:4,enabled:!0,hidden:!1,routeKey:te.chemicalElements,dynamic:!1},{title:"Physique des particules",subtitle:"Widget de Chat",description:"Informations et quiz interactifs sur les particules subatomiques.",icon:"bolt",link:{name:"Essayez-le !",href:"/chat/particle-physics"},weight:4.2,enabled:!0,hidden:!0,routeKey:te.particlePhysics,dynamic:!1},{title:"Blackjack",subtitle:"Widget de Chat",description:"Jouez au blackjack contre le chatbot.",icon:"table_bar",link:{name:"Jouer maintenant",href:"/chat/blackjack"},weight:4.4,enabled:!0,hidden:!1,routeKey:te.blackjack,dynamic:!1},{title:"Python Tutor",subtitle:"Widget de Chat",description:"Apprenez sur Python et soyez interrog\xE9 par un chatbot.",icon:"school",link:{name:"Apprenez Python",href:"/chat/python-tutor"},weight:4.5,enabled:!0,hidden:!1,routeKey:te.pythonTutor,dynamic:!1},{title:"Tuteur ML",subtitle:"Widget de Chat",description:"Apprenez les techniques et biblioth\xE8ques de machine learning. Testez vos connaissances avec le chatbot.",icon:"engineering",link:{name:"\xC9tudier le ML maintenant",href:"/chat/ml-tutor"},weight:4.6,enabled:!0,hidden:!1,routeKey:te.mlTutor,dynamic:!1},{title:"Philosophie Ancienne",subtitle:"Widget IA",description:"Paroles de sagesse des philosophes anciens. La plupart des citations proviennent de philosophes anciens occidentaux et orientaux, mais vous verrez \xE9galement des citations d'autres p\xE9riodes et sources.",icon:"library_books",link:{name:"Allez-y",href:"/chat/ancient-philosophy"},weight:5,enabled:!0,hidden:!1,routeKey:te.ancientPhilosophy,dynamic:!1},{title:"Socrate",subtitle:"Chat de texte",description:"Ce widget est une d\xE9monstration interactive de la m\xE9thode socratique.",icon:"wine_bar",link:{name:"R\xE9fl\xE9chir",href:"/chat/socrates"},help:"Conversez avec le grand Socrate.",weight:6,enabled:!0,hidden:!1,routeKey:te.socrates,dynamic:!1},{title:"En Espa\xF1ol",subtitle:"Chat de texte",description:"Ce widget bas\xE9 sur du texte est configur\xE9 pour se traduire facilement en espagnol depuis n'importe quelle langue.",icon:"translate",link:{name:"Traduire maintenant",href:"/chat/to-spanish"},help:"Le chatbot prendra en compte tous les messages de la conversation actuelle (c'est-\xE0-dire sur cette page) lors de sa r\xE9ponse.",weight:7,enabled:!0,hidden:!1,routeKey:te.toSpanish,dynamic:!1},{title:"En Fran\xE7ais",subtitle:"Chat de texte",description:"Ce widget bas\xE9 sur du texte est configur\xE9 pour se traduire facilement en fran\xE7ais depuis n'importe quelle langue.",icon:"translate",link:{name:"Traduire maintenant",href:"/chat/to-french"},help:"Le chatbot prendra en compte tous les messages de la conversation actuelle (c'est-\xE0-dire sur cette page) lors de sa r\xE9ponse.",weight:8,enabled:!0,hidden:!1,routeKey:te.toFrench,dynamic:!1},{title:"Dix meilleurs",subtitle:"Widget de Chat",description:"Entrez un sujet et obtenez une liste des dix faits int\xE9ressants.",icon:"123",link:{name:"Allons-y !",href:"/chat/topten"},weight:10,enabled:!1,hidden:!1,routeKey:te.topTen,dynamic:!1},{title:"Personnage",subtitle:"Widget de Chat",description:"Entrez le texte et cliquez sur envoyer pour commencer les communications.",icon:"person",link:{name:"Rencontrer",href:"/chat/character"},weight:10,enabled:!0,hidden:!0,routeKey:te.character,dynamic:!1},{title:"Gestionnaire de widget",subtitle:"Widget d'IA \xE9troite",description:"Cr\xE9ez, modifiez et utilisez des widgets d'IA \xE9troite.",icon:"widgets",link:{name:"G\xE9rer les widgets",href:"/chat/widget-manager"},weight:12,enabled:!0,hidden:!1,dynamic:!1}],this.homeCards.sort((n,r)=>n.weight<r.weight?-1:n.weight>r.weight?1:0),this.imageCards.sort((n,r)=>n.weight<r.weight?-1:n.weight>r.weight?1:0),this.textCards.sort((n,r)=>n.weight<r.weight?-1:n.weight>r.weight?1:0);}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight);}static{this.ɵfac=function(n){return new(n||t)(J(je));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Hg=(()=>{class t{constructor(){}get(e){let n=localStorage.getItem(e);if(n!==null){let r=JSON.parse(n);if(new Date(r.expirationDate)>new Date())return r.value;localStorage.removeItem(e);}return null;}set(e,n,r=60){let o=new Date(new Date().getTime()+6e4*r),a={value:n,expirationDate:o.toISOString()};localStorage.setItem(e,JSON.stringify(a));}remove(e){localStorage.removeItem(e);}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var qA=(()=>{class t{constructor(){this.palettes=[],this.addAll(),this.addIds();}addIds(){this.palettes.forEach((e,n)=>{e.id=n;});}addAll(){this.add({color:"green",name:"Green",mode:"Dark"}),this.add({color:"yellow",name:"Yellow",mode:"Dark"}),this.add({color:"cyan",name:"Cyan",mode:"Dark"}),this.add({color:"magenta",name:"Magenta",mode:"Dark"}),this.add({color:"orange",name:"Orange",mode:"Dark"}),this.add({color:"chartreuse",name:"Chartreuse",mode:"Dark"}),this.add({color:"spring-green",name:"Spring Green",mode:"Dark"}),this.add({color:"azure",name:"Azure",mode:"Dark"}),this.add({color:"violet",name:"Violet",mode:"Dark"}),this.add({color:"rose",name:"Rose",mode:"Dark"}),this.add({color:"red",name:"Red",mode:"Dark"}),this.add({color:"green",name:"Green",mode:"Light"}),this.add({color:"blue",name:"Blue",mode:"Light"}),this.add({color:"yellow",name:"Yellow",mode:"Light"}),this.add({color:"cyan",name:"Cyan",mode:"Light"}),this.add({color:"magenta",name:"Magenta",mode:"Light"}),this.add({color:"orange",name:"Orange",mode:"Light"}),this.add({color:"chartreuse",name:"Chartreuse",mode:"Light"}),this.add({color:"spring-green",name:"Spring Green",mode:"Light"}),this.add({color:"azure",name:"Azure",mode:"Light"}),this.add({color:"violet",name:"Violet",mode:"Light"}),this.add({color:"rose",name:"Rose",mode:"Light"}),this.add({color:"red",name:"Red",mode:"Light"}),this.add({color:"blue",name:"Blue",mode:"Dark"});}add(e){this.palettes.push(e);}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function _U(t,i){if(t&1){let e=W();m(0,"div")(1,"mat-toolbar",4)(2,"span",5)(3,"span",6)(4,"a",7)(5,"span",8),f(6),u()()()(),D(7,"span",9),m(8,"span",10),f(9),u(),m(10,"span")(11,"cb-palette-picker",11),S("selectPaletteEvent",function(r){k(e);let o=x();return M(o.selectPalette(r));}),u()(),m(12,"span"),D(13,"language-picker"),u(),m(14,"span")(15,"cb-header-links",12),S("LogoutEvent",function(){k(e);let r=x();return M(r.logout());}),u()()()();}if(t&2){let e=x();d(6),P(" ",e.title,""),d(3),C(e.userService.user==null?null:e.userService.user.name),d(2),y("palettes",e.palettes);}}function bU(t,i){if(t&1&&(m(0,"footer",3),f(1),m(2,"a",13),f(3,"John Turman"),u(),f(4),u()),t&2){let e=x();d(),P(" \xA9 ",e.copyTxt," 2023-2025 "),d(3),P(". ",e.copyTxt2,". ");}}var WA=(()=>{class t{constructor(e,n,r,o,a,s){this.router=e,this.navService=n,this.userService=r,this.cacheService=o,this.paletteService=a,this.env=s,this.title="Chatbot",this.copyTxt="Droits d'auteur",this.copyTxt2="Tous droits r\xE9serv\xE9s",this.cards=[],this.allowNavigation=!1,this.palettes=[],this.cards=this.navService.homeCards,this.palettes=this.paletteService.palettes;}ngOnInit(){if(this.allowNavigation=this.env.allowNavigation,console.log("allow navigation: ",this.allowNavigation),window.sessionStorage.getItem("palette")){let e=this.palettes.find(n=>n.color+n.id===window.sessionStorage.getItem("palette"));e?(this.palette=e,document.body.classList.toggle("dark-mode",this.palette.mode==="Dark")):(console.warn("palette not found"),this.palette=this.palettes[0]);}else this.navService.env.demoMode?this.palette=this.palettes[7]:this.palette=this.palettes[0];this.selectPalette(this.palette);}ngAfterViewInit(){let e=this;setTimeout(()=>{if(this.navService.env.demoMode)this.getToken("Demo","Demo"),this.router.events.pipe(ke(n=>n instanceof eo)).subscribe(()=>{e.openLoginWindow();});else{let n=JSON.parse(this.cacheService.get("user"));console.log("cached user: ",n),n?(this.userService.user=n,e.checkToken(this.userService.user?.token||"")):this.openLoginWindow(),this.router.events.pipe(ke(r=>r instanceof eo)).subscribe(()=>{!this.userService.isLoggedIn()&&!this.dialogRef&&e.openLoginWindow();});}});}openLoginWindow(){let e=this,n={title:"Login",msg:"",msg2:""};this.dialogRef=this.userService.openLoginWindow(n),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(r){console.log("login dialog result",r),e.getToken(r.data.username,r.data.password);},error(r){console.log("error encountered: ",r);},complete(){e.dialogRef=void 0,console.log("dialogref cleared");}});}checkToken(e){let n=this;if(!e){this.userService.logout(),this.openLoginWindow;return;}this.userService.cms.isLoggedIn(e).pipe(de(1)).subscribe({next(r){r.user?.status===200?console.log("valid token"):(console.log("invalid token"),n.userService.logout(),n.openLoginWindow());},error(r){console.log("Error: "+r),n.openLoginWindow();}});}getToken(e,n){let r=this;this.userService.getToken(e,n).pipe(de(1)).subscribe({next(o){if(console.log("token:",o),o?.data?.status){console.log("token status:",o.data.status),console.warn("login attempt failed."),r.openLoginWindow();return;}let a;typeof o=="string"?a={token:o,fapiToken:"",name:"Contributor",email:"",nicename:""}:a={token:o.token,fapiToken:"",name:o.user_display_name,email:o.user_email,nicename:o.user_nicename},r.setFapiToken(a);},error(o){console.log("Error: "+o);}});}setFapiToken(e){let n=this;this.userService.getFapiToken().pipe(de(1)).subscribe({next(r){console.log("fapi token:",r),e.fapiToken=r,n.userService.user=e;let o=60*24*365;n.cacheService.set("user",JSON.stringify(e),o),console.log("user:",n.userService);},error(r){console.log("Fapi token Error: "+r);},complete(){}});}logout(){this.cacheService.remove("user"),location.replace("/");}selectPalette(e){let n=document.body,r="cb-palette-";document.body.classList.remove(r+this.palette.color),this.palette=e,document.body.classList.add(r+this.palette.color),window.sessionStorage.setItem("palette",this.palette.color+this.palette.id),n.classList.toggle("dark-mode",this.palette.mode==="Dark");}static{this.ɵfac=function(n){return new(n||t)(w(Je),w($o),w(Vr),w(Hg),w(qA),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-root"]],viewQuery:function(n,r){if(n&1&&Y(Nw,5),n&2){let o;F(o=N())&&(r.palettePicker=o.first);}},decls:6,vars:2,consts:[[1,"content"],[1,"content-outer"],[1,"content-inner"],[1,"center"],[1,"cb-header-toolbar"],[1,"logo-wrapper"],[1,"logo"],["routerLink","/",1,"logo-link"],[1,"logo-title"],[1,"flex-spacer"],[1,"cms-role"],[3,"selectPaletteEvent","palettes"],[3,"LogoutEvent"],["href","mailto: jturman87@gmail.com"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"div",1)(2,"div",2),T(3,_U,16,3,"div"),D(4,"router-outlet"),T(5,bU,5,2,"footer",3),u()()()),n&2&&(d(3),K(r.allowNavigation?3:-1),d(2),K(r.allowNavigation?5:-1));},dependencies:[Qn,Pn,Ee,ce,W2,HA,hl,Nw],styles:[".content[_ngcontent-%COMP%]   .content-outer[_ngcontent-%COMP%]{text-align:center}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]{margin:0 auto;max-width:var(--cb-content-max-width);text-align:left}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]{z-index:999;width:100%;height:64px;background-color:var(--mat-sys-primary-container)}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]{width:125px;text-align:center}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin-left:10px;font-weight:700;font-size:larger;border-radius:8px;background-color:var(--mat-sys-on-primary);padding:5px 10px}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:48px}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{text-decoration:none!important;color:var(--mat-sys-primary)}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-right:15px}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cms-role[_ngcontent-%COMP%]{padding-top:4px;font-size:16px}@media (min-width: var(--cb-content-max-width)){.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{border-radius:5px}}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{padding:10px;margin:10px 0;font-size:small;background-color:var(--mat-sys-primary-container)}"]});}}return t;})();var vU=["*"];var yU=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xU=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle,
      [mat-card-title], [mat-card-subtitle],
      [matCardTitle], [matCardSubtitle]`,"*"],wU=new R("MAT_CARD_CONFIG"),nd=(()=>{class t{appearance;constructor(){let e=h(wU,{optional:!0});this.appearance=e?.appearance||"raised";}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,r){n&2&&ne("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined");},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:vU,decls:1,vars:0,template:function(n,r){n&1&&(Pe(),ue(0));},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0});}return t;})(),id=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]});}return t;})();var rd=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});}return t;})(),od=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]});}return t;})(),ad=(()=>{class t{align="start";static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-mdc-card-actions-align-end",r.align==="end");},inputs:{align:"align"},exportAs:["matCardActions"]});}return t;})(),sd=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:xU,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(n,r){n&1&&(Pe(yU),ue(0),m(1,"div",0),ue(2,1),u(),ue(3,2));},encapsulation:2,changeDetection:0});}return t;})();var ld=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]});}return t;})();var cd=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,fe]});}return t;})();function CU(t,i){if(t&1){let e=W();ye(0),m(1,"span",2)(2,"button",3),S("click",function(){let r=k(e).$implicit,o=x();return M(o.clickLink(r));}),f(3),u()(),xe();}if(t&2){let e=i.$implicit;d(2),G("matTooltip",e.tooltip),d(),P(" ",e.name," ");}}var GA=(()=>{class t{constructor(e,n,r){this.router=e,this.unsavedChanges=n,this.dialog=r,this.links=ct.required();}ngOnInit(){}clickLink(e){if(e.external){console.log("external link clicked"),this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(Vo,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:e.href}}):window.open(e.href,"_self");return;}this.router.navigate([e.href]);}static{this.ɵfac=function(n){return new(n||t)(w(Je),w(Pr),w(jt));};}static{this.ɵcmp=E({type:t,selectors:[["cb-quicklinks"]],inputs:{links:[1,"links"]},decls:2,vars:1,consts:[[1,"quicklinks"],[4,"ngFor","ngForOf"],[1,"quicklink"],["color","accent","mat-raised-button","",3,"click","matTooltip"]],template:function(n,r){n&1&&(m(0,"div",0),T(1,CU,4,2,"ng-container",1),u()),n&2&&(d(),y("ngForOf",r.links()));},dependencies:[H,an,nt,St,Yt,ce,Me],styles:[".quicklinks[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap;gap:5px}.quicklinks[_ngcontent-%COMP%]   .quicklink[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:100px}.featured-link[_ngcontent-%COMP%]{margin:10px 0}.featured-link[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:700}"]});}}return t;})();var EU=[[["caption"]],[["colgroup"],["col"]],"*"],IU=["caption","colgroup, col","*"];function kU(t,i){t&1&&ue(0,2);}function MU(t,i){t&1&&(m(0,"thead",0),Gt(1,1),u(),m(2,"tbody",0),Gt(3,2)(4,3),u(),m(5,"tfoot",0),Gt(6,4),u());}function SU(t,i){t&1&&Gt(0,1)(1,2)(2,3)(3,4);}var uo=new R("CDK_TABLE");var Yg=(()=>{class t{template=h(ot);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkCellDef",""]]});}return t;})(),Zg=(()=>{class t{template=h(ot);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkHeaderCellDef",""]]});}return t;})(),ZA=(()=>{class t{template=h(ot);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkFooterCellDef",""]]});}return t;})(),dd=(()=>{class t{_table=h(uo,{optional:!0});_hasStickyChanged=!1;get name(){return this._name;}set name(e){this._setNameInput(e);}_name;get sticky(){return this._sticky;}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0);}_sticky=!1;get stickyEnd(){return this._stickyEnd;}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0);}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e;}resetStickyChanged(){this._hasStickyChanged=!1;}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`];}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName());}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,Yg,5),Fe(o,Zg,5),Fe(o,ZA,5)),n&2){let a;F(a=N())&&(r.cell=a.first),F(a=N())&&(r.headerCell=a.first),F(a=N())&&(r.footerCell=a.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Q],stickyEnd:[2,"stickyEnd","stickyEnd",Q]},features:[be([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]});}return t;})(),qg=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName);}},KA=(()=>{class t extends qg{constructor(){super(h(dd),h(ee));}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[q]});}return t;})();var XA=(()=>{class t extends qg{constructor(){let e=h(dd),n=h(ee);super(e,n);let r=e._table?._getCellRole();r&&n.nativeElement.setAttribute("role",r);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[q]});}return t;})(),Wg=class{tasks=[];endTasks=[];},Gg=new R("_COALESCED_STYLE_SCHEDULER"),zw=(()=>{class t{_currentSchedule=null;_ngZone=h(le);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e);}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e);}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Wg(),this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new Wg();for(let n of e.tasks)n();for(let n of e.endTasks)n();}this._currentSchedule=null;})));}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();var Bw=(()=>{class t{template=h(ot);_differs=h(To);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n);}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns);}extractCellTemplate(e){return this instanceof Em?e.headerCell.template:this instanceof jw?e.footerCell.template:e.cell.template;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,features:[tt]});}return t;})(),Em=(()=>{class t extends Bw{_table=h(uo,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky;}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0);}_sticky=!1;constructor(){super(h(ot),h(To));}ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e;}resetStickyChanged(){this._hasStickyChanged=!1;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Q]},features:[q,tt]});}return t;})(),jw=(��()=>{class t extends Bw{_table=h(uo,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky;}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0);}_sticky=!1;constructor(){super(h(ot),h(To));}ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e;}resetStickyChanged(){this._hasStickyChanged=!1;}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Q]},features:[q,tt]});}return t;})(),Kg=(()=>{class t extends Bw{_table=h(uo,{optional:!0});when;constructor(){super(h(ot),h(To));}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[q]});}return t;})(),wl=(()=>{class t{_viewContainer=h(Ct);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this;}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkCellOutlet",""]]});}return t;})(),$w=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Gt(0,0);},dependencies:[wl],encapsulation:2});}return t;})();var Hw=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Gt(0,0);},dependencies:[wl],encapsulation:2});}return t;})(),Xg=(()=>{class t{templateRef=h(ot);_contentClassName="cdk-no-data-row";constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["ng-template","cdkNoDataRow",""]]});}return t;})(),QA=["top","bottom","left","right"],Vw=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_positionListener;_tableInjector;_elemSizeCache=new WeakMap();_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n,r,o=!0,a=!0,s,l){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._tableInjector=l,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`};}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let r of i)r.nodeType===r.ELEMENT_NODE&&n.push(r,...Array.from(r.children));this._afterNextRender({write:()=>{for(let r of n)this._removeStickyStyle(r,e);}});}updateStickyColumns(i,e,n,r=!0,o=!0){if(!i.length||!this._isBrowser||!(e.some(A=>A)||n.some(A=>A))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return;}let a=i[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",p=l?"left":"right",g=e.lastIndexOf(!0),_=n.indexOf(!0),b,v,I;o&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),this._afterNextRender({earlyRead:()=>{b=this._getCellWidths(a,r),v=this._getStickyStartColumnPositions(b,e),I=this._getStickyEndColumnPositions(b,n);},write:()=>{for(let A of i)for(let $=0;$<s;$++){let Z=A.children[$];e[$]&&this._addStickyStyle(Z,c,v[$],$===g),n[$]&&this._addStickyStyle(Z,p,I[$],$===_);}this._positionListener&&b.some(A=>!!A)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:b.slice(0,g+1).map((A,$)=>e[$]?A:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:b.slice(_).map((A,$)=>n[$+_]?A:null).reverse()}));}});}stickRows(i,e,n){if(!this._isBrowser)return;let r=n==="bottom"?i.slice().reverse():i,o=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];this._afterNextRender({earlyRead:()=>{for(let c=0,p=0;c<r.length;c++){if(!o[c])continue;a[c]=p;let g=r[c];l[c]=this._isNativeHtmlTable?Array.from(g.children):[g];let _=this._retrieveElementSize(g).height;p+=_,s[c]=_;}},write:()=>{let c=o.lastIndexOf(!0);for(let p=0;p<r.length;p++){if(!o[p])continue;let g=a[p],_=p===c;for(let b of l[p])this._addStickyStyle(b,n,g,_);}n==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:s,offsets:a,elements:l}):this._positionListener?.stickyFooterRowsUpdated({sizes:s,offsets:a,elements:l});}});}updateStickyFooterContainer(i,e){this._isNativeHtmlTable&&this._afterNextRender({write:()=>{let n=i.querySelector("tfoot");n&&(e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1));}});}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0;}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);QA.some(r=>e.indexOf(r)===-1&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss));}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ");}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let r of QA)i.style[r]&&(n+=e[r]);return n?`${n}`:"";}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],r=i.children;for(let o=0;o<r.length;o++){let a=r[o];n.push(this._retrieveElementSize(a).width);}return this._cachedCellWidths=n,n;}_getStickyStartColumnPositions(i,e){let n=[],r=0;for(let o=0;o<i.length;o++)e[o]&&(n[o]=r,r+=i[o]);return n;}_getStickyEndColumnPositions(i,e){let n=[],r=0;for(let o=i.length;o>0;o--)e[o]&&(n[o]=r,r+=i[o]);return n;}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),r={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,r),this._resizeObserver.observe(i,{box:"border-box"})),r;}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i);}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length);}_updateCachedSizes(i){let e=!1;for(let n of i){let r=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};r.width!==this._elemSizeCache.get(n.target)?.width&&TU(n.target)&&(e=!0),this._elemSizeCache.set(n.target,r);}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null;}},0));}_afterNextRender(i){this._tableInjector?Cn(i,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{i.earlyRead?.(),i.write();});}};function TU(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i));}var Qg=new R("CDK_SPL");var Uw=(()=>{class t{viewContainer=h(Ct);elementRef=h(ee);constructor(){let e=h(uo);e._rowOutlet=this,e._outletAssigned();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","rowOutlet",""]]});}return t;})(),qw=(()=>{class t{viewContainer=h(Ct);elementRef=h(ee);constructor(){let e=h(uo);e._headerRowOutlet=this,e._outletAssigned();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","headerRowOutlet",""]]});}return t;})(),Ww=(()=>{class t{viewContainer=h(Ct);elementRef=h(ee);constructor(){let e=h(uo);e._footerRowOutlet=this,e._outletAssigned();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","footerRowOutlet",""]]});}return t;})(),Gw=(()=>{class t{viewContainer=h(Ct);elementRef=h(ee);constructor(){let e=h(uo);e._noDataRowOutlet=this,e._outletAssigned();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","noDataRowOutlet",""]]});}return t;})();var Qw=(()=>{class t{_differs=h(To);_changeDetectorRef=h(ge);_elementRef=h(ee);_dir=h(Jt,{optional:!0});_platform=h(We);_viewRepeater=h(rm);_coalescedStyleScheduler=h(Gg);_viewportRuler=h(Fo);_stickyPositioningListener=h(Qg,{optional:!0,skipSelf:!0});_document=h(ve);_data;_onDestroy=new U();_renderRows;_renderChangeSubscription;_columnDefsByName=new Map();_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set();_customRowDefs=new Set();_customHeaderRowDefs=new Set();_customFooterRowDefs=new Set();_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map();_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell";}return this._cellRoleInternal;}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn;}set trackBy(e){this._trackByFn=e;}_trackByFn;get dataSource(){return this._dataSource;}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e);}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows;}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles());}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout;}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0;}_fixedLayout=!1;contentChanged=new z();viewChange=new Ut({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=h(Oe);constructor(){h(new ri("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE";}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(Ae(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0;});}ngAfterContentInit(){this._hasInitialized=!0;}ngAfterContentChecked(){this._canRender()&&this._render();}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear();}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),mg(this.dataSource)&&this.dataSource.disconnect(this);}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return;}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===Wc.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context);}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=n.get(r.currentIndex);o.context.$implicit=r.item.data;}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles();}addColumnDef(e){this._customColumnDefs.add(e);}removeColumnDef(e){this._customColumnDefs.delete(e);}addRowDef(e){this._customRowDefs.add(e);}removeRowDef(e){this._customRowDefs.delete(e);}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0;}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0;}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0;}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0;}setNoDataRow(e){this._customNoDataRow=e;}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=YA(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none");}let n=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged());}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=YA(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none");}let n=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(r=>r.resetStickyChanged());}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a]);}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s<n.length;s++)this._renderRows[s].rowDef===o&&a.push(n[s]);this._addStickyColumnStyles(a,o);}),r.forEach((o,a)=>{this._addStickyColumnStyles([o],this._footerRowDefs[a]);}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged());}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render());}_canRender(){return this._hasAllOutlets&&this._hasInitialized;}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates();}_getAllRenderRows(){let e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map();for(let r=0;r<this._data.length;r++){let o=this._data[r],a=this._getRenderRowsForData(o,r,n.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap());for(let s=0;s<a.length;s++){let l=a[s],c=this._cachedRenderRowsMap.get(l.data);c.has(l.rowDef)?c.get(l.rowDef).push(l):c.set(l.rowDef,[l]),e.push(l);}}return e;}_getRenderRowsForData(e,n,r){return this._getRowDefs(e,n).map(a=>{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l;}else return{data:e,rowDef:a,dataIndex:n};});}_cacheColumnDefs(){this._columnDefsByName.clear(),Ug(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n);});}_cacheRowDefs(){this._headerRowDefs=Ug(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ug(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ug(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0];}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l;},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o;}_switchDataSource(e){this._data=[],mg(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e;}_observeRenderChanges(){if(!this.dataSource)return;let e;mg(this.dataSource)?e=this.dataSource.connect(this):Ga(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=se(this.dataSource)),this._renderChangeSubscription=e.pipe(Ae(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows();});}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles();}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles();}_addStickyColumnStyles(e,n){let r=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l;}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths);}_getRenderedRows(e){let n=[];for(let r=0;r<e.viewContainer.length;r++){let o=e.viewContainer.get(r);n.push(o.rootNodes[0]);}return n;}_getRowDefs(e,n){if(this._rowDefs.length==1)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(o=>!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o);}return r.length,r;}_getEmbeddedViewArgs(e,n){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:n};}_renderRow(e,n,r,o={}){let a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a;}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))wl.mostRecentCellOutlet&&wl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck();}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n<r;n++){let a=e.get(n).context;a.count=r,a.first=n===0,a.last=n===r-1,a.even=n%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[n].dataIndex,a.renderIndex=n):a.index=this._renderRows[n].dataIndex;}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,n=>{let r=this._columnDefsByName.get(n);return e.extractCellTemplate(r);});}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows();}_checkStickyStates(){let e=(n,r)=>n||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles());}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new Vw(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:se()).pipe(Ae(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles();});}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this);}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(n){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName));}else r.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck();}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,Xg,5),Fe(o,dd,5),Fe(o,Kg,5),Fe(o,Em,5),Fe(o,jw,5)),n&2){let a;F(a=N())&&(r._noDataRow=a.first),F(a=N())&&(r._contentColumnDefs=a),F(a=N())&&(r._contentRowDefs=a),F(a=N())&&(r._contentHeaderRowDefs=a),F(a=N())&&(r._contentFooterRowDefs=a);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,r){n&2&&ne("cdk-table-fixed-layout",r.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Q],fixedLayout:[2,"fixedLayout","fixedLayout",Q]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[be([{provide:uo,useExisting:t},{provide:rm,useClass:Gc},{provide:Gg,useClass:zw},{provide:Qg,useValue:null}])],ngContentSelectors:IU,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){n&1&&(Pe(EU),ue(0),ue(1,1),T(2,kU,1,0)(3,MU,7,0)(4,SU,4,0)),n&2&&(d(2),K(r._isServer?2:-1),d(),K(r._isNativeHtmlTable?3:4));},dependencies:[qw,Uw,Gw,Ww],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});}return t;})();function Ug(t,i){return t.concat(Array.from(i));}function YA(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let r=n.nodeType===1?n.nodeName:null;if(r===e)return n;if(r==="TABLE")break;n=n.parentNode;}return null;}var JA=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[am]});}return t;})();var AU=[[["caption"]],[["colgroup"],["col"]],"*"],RU=["caption","colgroup, col","*"];function OU(t,i){t&1&&ue(0,2);}function PU(t,i){t&1&&(m(0,"thead",0),Gt(1,1),u(),m(2,"tbody",2),Gt(3,3)(4,4),u(),m(5,"tfoot",0),Gt(6,5),u());}function FU(t,i){t&1&&Gt(0,1)(1,3)(2,4)(3,5);}var hi=(()=>{class t extends Qw{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mdc-table-fixed-layout",r.fixedLayout);},exportAs:["matTable"],features:[be([{provide:Qw,useExisting:t},{provide:uo,useExisting:t},{provide:Gg,useClass:zw},{provide:rm,useClass:Gc},{provide:Qg,useValue:null}]),q],ngContentSelectors:RU,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){n&1&&(Pe(AU),ue(0),ue(1,1),T(2,OU,1,0)(3,PU,7,0)(4,FU,4,0)),n&2&&(d(2),K(r._isServer?2:-1),d(),K(r._isNativeHtmlTable?3:4));},dependencies:[qw,Uw,Gw,Ww],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});}return t;})(),Ho=(()=>{class t extends Yg{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matCellDef",""]],features:[be([{provide:Yg,useExisting:t}]),q]});}return t;})(),Uo=(()=>{class t extends Zg{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matHeaderCellDef",""]],features:[be([{provide:Zg,useExisting:t}]),q]});}return t;})();var qo=(()=>{class t extends dd{get name(){return this._name;}set name(e){this._setNameInput(e);}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[be([{provide:dd,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),q]});}return t;})(),Wo=(()=>{class t extends KA{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[q]});}return t;})();var Go=(()=>{class t extends XA{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[q]});}return t;})();var Qo=(()=>{class t extends Em{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Q]},features:[be([{provide:Em,useExisting:t}]),q]});}return t;})();var Yo=(()=>{class t extends Kg{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[be([{provide:Kg,useExisting:t}]),q]});}return t;})(),Zo=(()=>{class t extends $w{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[be([{provide:$w,useExisting:t}]),q],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Gt(0,0);},dependencies:[wl],encapsulation:2});}return t;})();var Ko=(()=>{class t extends Hw{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[be([{provide:Hw,useExisting:t}]),q],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Gt(0,0);},dependencies:[wl],encapsulation:2});}return t;})(),Jg=(()=>{class t extends Xg{_contentClassName="mat-mdc-no-data-row";static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t��);};})();static ɵdir=L({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[be([{provide:Xg,useExisting:t}]),q]});}return t;})();var Xo=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,JA,fe]});}return t;})(),NU=9007199254740991,zr=class extends dg{_data;_renderData=new Ut([]);_filter=new Ut("");_internalPageChanges=new U();_renderChangesSubscription=null;filteredData;get data(){return this._data.value;}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i);}get filter(){return this._filter.value;}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data);}get sort(){return this._sort;}set sort(i){this._sort=i,this._updateChangeSubscription();}_sort;get paginator(){return this._paginator;}set paginator(i){this._paginator=i,this._updateChangeSubscription();}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Fx(n)){let r=Number(n);return r<NU?r:n;}return n;};sortData=(i,e)=>{let n=e.active,r=e.direction;return!n||r==""?i:i.sort((o,a)=>{let s=this.sortingDataAccessor(o,n),l=this.sortingDataAccessor(a,n),c=typeof s,p=typeof l;c!==p&&(c==="number"&&(s+=""),p==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s<l&&(g=-1):s!=null?g=1:l!=null&&(g=-1),g*(r=="asc"?1:-1);});};filterPredicate=(i,e)=>{let n=e.trim().toLowerCase();return Object.values(i).some(r=>`${r}`.toLowerCase().includes(n));};constructor(i=[]){super(),this._data=new Ut(i),this._updateChangeSubscription();}_updateChangeSubscription(){let i=this._sort?qt(this._sort.sortChange,this._sort.initialized):se(null),e=this._paginator?qt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):se(null),n=this._data,r=Ur([n,this._filter]).pipe(me(([s])=>this._filterData(s))),o=Ur([r,i]).pipe(me(([s])=>this._orderData(s))),a=Ur([o,e]).pipe(me(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s));}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData;}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i;}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize);}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,n);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next());}});}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData;}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null;}};var LU=["mat-sort-header",""],VU=["*"];function zU(t,i){t&1&&(m(0,"div",2),wn(),m(1,"svg",3),D(2,"path",4),u()());}var eR=new R("MAT_SORT_DEFAULT_OPTIONS"),Zn=(()=>{class t{_defaultOptions;_initializedStream=new da(1);sortables=new Map();_stateChanges=new U();active;start="asc";get direction(){return this._direction;}set direction(e){this._direction=e;}_direction="";disableClear;disabled=!1;sortChange=new z();initialized=this._initializedStream;constructor(e){this._defaultOptions=e;}register(e){this.sortables.set(e.id,e);}deregister(e){this.sortables.delete(e.id);}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction});}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=BU(e.start||this.start,n),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o];}ngOnInit(){this._initializedStream.next();}ngOnChanges(){this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete();}static ɵfac=function(n){return new(n||t)(w(eR,8));};static ɵdir=L({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Q],disabled:[2,"matSortDisabled","disabled",Q]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[tt]});}return t;})();function BU(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e;}var e0=(()=>{class t{changes=new U();static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function jU(t){return t||new e0();}var $U={provide:e0,deps:[[new Yr(),new va(),e0]],useFactory:jU},Is=(()=>{class t{_intl=h(e0);_sort=h(Zn,{optional:!0});_columnDef=h("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=h(ge);_focusMonitor=h($n);_elementRef=h(ee);_ariaDescriber=h(tg,{optional:!0});_renderChanges;_animationModule=h(mt,{optional:!0});_recentlyCleared=Ci(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription;}set sortActionDescription(e){this._updateSortActionDescription(e);}_sortActionDescription="Sort";disableClear;constructor(){h(kt).load(Fn);let e=h(eR,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition);}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=qt(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription);}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>this._recentlyCleared.set(null));}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription);}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null);}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction());}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc");}_isDisabled(){return this._sort.disabled||this.disabled;}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none";}_renderArrow(){return!this._isDisabled()||this._isSorted();}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,r){n&1&&S("click",function(){return r._toggleOnInteraction();})("keydown",function(a){return r._handleKeydown(a);})("mouseleave",function(){return r._recentlyCleared.set(!1);}),n&2&&(oe("aria-sort",r._getAriaSortAttribute()),ne("mat-sort-header-disabled",r._isDisabled()));},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Q],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Q]},exportAs:["matSortHeader"],attrs:LU,ngContentSelectors:VU,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,r){n&1&&(Pe(),m(0,"div",0)(1,"div",1),ue(2),u(),T(3,zU,3,0,"div",2),u()),n&2&&(ne("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationModule==="NoopAnimations"),oe("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),d(3),K(r._renderArrow()?3:-1));},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}"],encapsulation:2,changeDetection:0});}return t;})(),ks=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[$U],imports:[fe]});}return t;})(),kve=m2.ENTERING+" "+u2.STANDARD_CURVE;var HU=["determinateSpinner"];function UU(t,i){if(t&1&&(wn(),m(0,"svg",11),D(1,"circle",12),u()),t&2){let e=x();oe("viewBox",e._viewBox()),d(),qn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),oe("r",e._circleRadius());}}var qU=new R("mat-progress-spinner-default-options",{providedIn:"root",factory:WU});function WU(){return{diameter:tR};}var tR=100,GU=10,Kn=(()=>{class t{_elementRef=h(ee);_noopAnimations;get color(){return this._color||this._defaultColor;}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=h(mt,{optional:!0}),n=h(qU);this._noopAnimations=e==="NoopAnimations"&&!!n&&!n._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",n&&(n.color&&(this.color=this._defaultColor=n.color),n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.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=tR;get strokeWidth(){return this._strokeWidth??this.diameter/10;}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return(this.diameter-GU)/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 ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&Y(HU,5),n&2){let o;F(o=N())&&(r._determinateCircle=o.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(oe("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),Dt("mat-"+r.color),qn("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),ne("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",at],diameter:[2,"diameter","diameter",at],strokeWidth:[2,"strokeWidth","strokeWidth",at]},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(n,r){if(n&1&&(T(0,UU,2,8,"ng-template",null,0,Ir),m(2,"div",2,1),wn(),m(4,"svg",3),D(5,"circle",4),u()(),ol(),m(6,"div",5)(7,"div",6)(8,"div",7),Gt(9,8),u(),m(10,"div",9),Gt(11,8),u(),m(12,"div",10),Gt(13,8),u()()()),n&2){let o=Ke(1);d(4),oe("viewBox",r._viewBox()),d(),qn("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),oe("r",r._circleRadius()),d(4),y("ngTemplateOutlet",o),d(2),y("ngTemplateOutlet",o),d(2),y("ngTemplateOutlet",o);}},dependencies:[dl],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0});}return t;})();var Xn=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe]});}return t;})();var QU=["trigger"],YU=["panel"],ZU=[[["mat-select-trigger"]],"*"],KU=["mat-select-trigger","*"];function XU(t,i){if(t&1&&(m(0,"span",4),f(1),u()),t&2){let e=x();d(),C(e.placeholder);}}function JU(t,i){t&1&&ue(0);}function eq(t,i){if(t&1&&(m(0,"span",11),f(1),u()),t&2){let e=x(2);d(),C(e.triggerValue);}}function tq(t,i){if(t&1&&(m(0,"span",5),T(1,JU,1,0)(2,eq,2,1,"span",11),u()),t&2){let e=x();d(),K(e.customTrigger?1:2);}}function nq(t,i){if(t&1){let e=W();m(0,"div",12,1),S("@transformPanel.done",function(r){k(e);let o=x();return M(o._panelDoneAnimatingStream.next(r.toState));})("keydown",function(r){k(e);let o=x();return M(o._handleKeydown(r));}),ue(2,1),u();}if(t&2){let e=x();Cr("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),y("ngClass",e.panelClass)("@transformPanel","showing"),oe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby());}}var iq={transformPanelWrap:kn("transformPanelWrap",[Zt("* => void",dm("@transformPanel",[cm()],{optional:!0}))]),transformPanel:kn("transformPanel",[Mt("void",Ze({opacity:0,transform:"scale(1, 0.8)"})),Zt("void => showing",en("120ms cubic-bezier(0, 0, 0.2, 1)",Ze({opacity:1,transform:"scale(1, 1)"}))),Zt("* => void",en("100ms linear",Ze({opacity:0})))])};var nR=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=h(hn);return()=>t.scrollStrategies.reposition();}});function rq(t){return()=>t.scrollStrategies.reposition();}var oq=new R("MAT_SELECT_CONFIG"),aq={provide:nR,deps:[hn],useFactory:rq},sq=new R("MatSelectTrigger"),Yw=class{source;value;constructor(i,e){this.source=i,this.value=e;}},ud=(()=>{class t{_viewportRuler=h(Fo);_changeDetectorRef=h(ge);_elementRef=h(ee);_dir=h(Jt,{optional:!0});_idGenerator=h(pt);_parentFormField=h(wm,{optional:!0});ngControl=h(pr,{self:!0,optional:!0});_liveAnnouncer=h($c);_defaultOptions=h(oq,{optional:!0});_initialized=new U();options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let r=this.panel.nativeElement,o=p2(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=h2(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight);}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0);}_getChangeEvent(e){return new Yw(this,e);}_scrollStrategyFactory=h(nR);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new U();_errorStateTracker;stateChanges=new U();disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new U();_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen;}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator;}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder;}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(vt.required)??!1;}set required(e){this._required=e,this.stateChanges.next();}_required;get multiple(){return this._multiple;}set multiple(e){this._selectionModel,this._multiple=e;}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith;}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection();}get value(){return this._value;}set value(e){this._assignValue(e)&&this._onChange(e);}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher;}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}typeaheadDebounceInterval;sortComparator;get id(){return this._id;}set id(e){this._id=e||this._uid,this.stateChanges.next();}_id;get errorState(){return this._errorStateTracker.errorState;}set errorState(e){this._errorStateTracker.errorState=e;}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=_o(()=>{let e=this.options;return e?e.changes.pipe(yt(e),Xt(()=>qt(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(Xt(()=>this.optionSelectionChanges));});openedChange=new z();_openedStream=this.openedChange.pipe(ke(e=>e),me(()=>{}));_closedStream=this.openedChange.pipe(ke(e=>!e),me(()=>{}));selectionChange=new z();valueChange=new z();constructor(){let e=h(fs),n=h(Oa,{optional:!0}),r=h(Ki,{optional:!0}),o=h(new ri("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Hc(e,this.ngControl,r,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id;}ngOnInit(){this._selectionModel=new ug(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Yl(),Ae(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Ae(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges());});}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ae(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect());}),this.options.changes.pipe(yt(null),Ae(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection();});}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby");}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState());}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval);}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal();}toggle(){this.panelOpen?this.close():this.open();}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&eg(this._trackedModal,"aria-owns",n),Ux(e,"aria-owns",n),this._trackedModal=e;}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;eg(this._trackedModal,"aria-owns",e),this._trackedModal=null;}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next());}writeValue(e){this._assignValue(e);}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next();}get panelOpen(){return this._panelOpen;}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0];}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ");}return this._selectionModel.selected[0].viewValue;}updateErrorState(){this._errorStateTracker.updateErrorState();}_isRtl(){return this._dir?this._dir.value==="rtl":!1;}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e));}_handleClosedKeydown(e){let n=e.keyCode,r=n===40||n===38||n===37||n===39,o=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&o&&!pn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4);}}_handleOpenKeydown(e){let n=this._keyManager,r=e.keyCode,o=r===40||r===38,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&n.activeItem&&!pn(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect());});}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction();}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next());}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}_onAttached(){this._overlayDir.positionChange.pipe(de(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled();});}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:"";}get empty(){return!this._selectionModel||this._selectionModel.isEmpty();}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next();});}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1);}this._changeDetectorRef.markForCheck();}_selectOptionByValue(e){let n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e);}catch{return!1;}});return n&&this._selectionModel.select(n),n;}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1;}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof sm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth;}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}_initKeyManager(){this._keyManager=new Jf(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close());}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction();});}_resetOptions(){let e=qt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ae(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus());}),qt(...this.op��tions.map(n=>n._stateChanges)).pipe(Ae(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next();});}_onSelect(e,n){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next();}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next();}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(r=>r.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck();}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n<this.options.length;n++)if(!this.options.get(n).disabled){e=n;break;}this._keyManager.setActiveItem(e);}else this._keyManager.setActiveItem(this._selectionModel.selected[0]);}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0;}focus(e){this._elementRef.nativeElement.focus(e);}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e;}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null;}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n;}_panelDoneAnimating(e){this.openedChange.emit(e);}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby");}onContainerClick(){this.focus(),this.open();}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,sq,5),Fe(o,gs,5),Fe(o,ew,5)),n&2){let a;F(a=N())&&(r.customTrigger=a.first),F(a=N())&&(r.options=a),F(a=N())&&(r.optionGroups=a);}},viewQuery:function(n,r){if(n&1&&(Y(QU,5),Y(YU,5),Y(pw,5)),n&2){let o;F(o=N())&&(r.trigger=o.first),F(o=N())&&(r.panel=o.first),F(o=N())&&(r._overlayDir=o.first);}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){n&1&&S("keydown",function(a){return r._handleKeydown(a);})("focus",function(){return r._onFocus();})("blur",function(){return r._onBlur();}),n&2&&(oe("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),ne("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple));},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Q],disableRipple:[2,"disableRipple","disableRipple",Q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:at(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Q],placeholder:"placeholder",required:[2,"required","required",Q],multiple:[2,"multiple","multiple",Q],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Q],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",at],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",Q]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[be([{provide:xm,useExisting:t},{provide:Jx,useExisting:t}]),tt],ngContentSelectors:KU,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,r){if(n&1){let o=W();Pe(ZU),m(0,"div",2,0),S("click",function(){return k(o),M(r.open());}),m(3,"div",3),T(4,XU,2,1,"span",4)(5,tq,3,1,"span",5),u(),m(6,"div",6)(7,"div",7),wn(),m(8,"svg",8),D(9,"path",9),u()()()(),T(10,nq,3,9,"ng-template",10),S("backdropClick",function(){return k(o),M(r.close());})("attach",function(){return k(o),M(r._onAttached());})("detach",function(){return k(o),M(r.close());});}if(n&2){let o=Ke(1);d(3),oe("id",r._valueId),d(),K(r.empty?4:5),d(6),y("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth);}},dependencies:[sm,pw,cs],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-form-field-no-animations .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[iq.transformPanel]},changeDetection:0});}return t;})();var Jo=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[aq],imports:[Rr,tw,fe,bs,$t,tw,fe]});}return t;})();function lq(t,i){if(t&1&&(m(0,"mat-option",17),f(1),u()),t&2){let e=i.$implicit;y("value",e),d(),P(" ",e," ");}}function cq(t,i){if(t&1){let e=W();m(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){k(e);let o=x(2);return M(o._changePageSize(r.value));}),ci(3,lq,2,2,"mat-option",17,Da),u(),m(5,"div",18),S("click",function(){k(e);let r=Ke(2);return M(r.open());}),u()();}if(t&2){let e=x(2);y("appearance",e._formFieldAppearance)("color",e.color),d(),y("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),d(2),di(e._displayedPageSizeOptions);}}function dq(t,i){if(t&1&&(m(0,"div",15),f(1),u()),t&2){let e=x(2);d(),C(e.pageSize);}}function uq(t,i){if(t&1&&(m(0,"div",3)(1,"div",13),f(2),u(),T(3,cq,6,7,"mat-form-field",14)(4,dq,2,1,"div",15),u()),t&2){let e=x();d(),oe("id",e._pageSizeLabelId),d(),P(" ",e._intl.itemsPerPageLabel," "),d(),K(e._displayedPageSizeOptions.length>1?3:-1),d(),K(e._displayedPageSizeOptions.length<=1?4:-1);}}function mq(t,i){if(t&1){let e=W();m(0,"button",19),S("click",function(){k(e);let r=x();return M(r._buttonClicked(0,r._previousButtonsDisabled()));}),wn(),m(1,"svg",8),D(2,"path",20),u()();}if(t&2){let e=x();y("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled()),oe("aria-label",e._intl.firstPageLabel);}}function pq(t,i){if(t&1){let e=W();m(0,"button",21),S("click",function(){k(e);let r=x();return M(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()));}),wn(),m(1,"svg",8),D(2,"path",22),u()();}if(t&2){let e=x();y("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled()),oe("aria-label",e._intl.lastPageLabel);}}var n0=(()=>{class t{changes=new U();itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,r)=>{if(r==0||n==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*n,a=o<r?Math.min(o+n,r):o+n;return`${o+1} \u2013 ${a} of ${r}`;};static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function hq(t){return t||new n0();}var fq={provide:n0,deps:[[new Yr(),new va(),n0]],useFactory:hq},gq=50;var _q=new R("MAT_PAGINATOR_DEFAULT_OPTIONS"),Na=(()=>{class t{_intl=h(n0);_changeDetectorRef=h(ge);_formFieldAppearance;_pageSizeLabelId=h(pt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new da(1);color;get pageIndex(){return this._pageIndex;}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck();}_pageIndex=0;get length(){return this._length;}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck();}_length=0;get pageSize(){return this._pageSize;}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions();}_pageSize;get pageSizeOptions(){return this._pageSizeOptions;}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>at(n,0)),this._updateDisplayedPageSizeOptions();}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new z();_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=h(_q,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=n;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s);}this._formFieldAppearance=n?.formFieldAppearance||"outline";}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next();}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe();}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1);}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1);}firstPage(){this.hasPreviousPage()&&this._navigate(0);}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1);}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0;}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0;}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0;}_changePageSize(e){let n=this.pageIndex*this.pageSize,r=this.pageIndex;this.pageIndex=Math.floor(n/e)||0,this.pageSize=e,this._emitPageEvent(r);}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage();}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage();}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:gq),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,n)=>e-n),this._changeDetectorRef.markForCheck());}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length});}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n));}_buttonClicked(e,n){n||this._navigate(e);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",at],length:[2,"length","length",at],pageSize:[2,"pageSize","pageSize",at],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Q],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Q],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Q]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:12,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,r){n&1&&(m(0,"div",1)(1,"div",2),T(2,uq,5,4,"div",3),m(3,"div",4)(4,"div",5),f(5),u(),T(6,mq,3,4,"button",6),m(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled());}),wn(),m(8,"svg",8),D(9,"path",9),u()(),ol(),m(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled());}),wn(),m(11,"svg",8),D(12,"path",11),u()(),T(13,pq,3,4,"button",12),u()()()),n&2&&(d(2),K(r.hidePageSize?-1:2),d(3),P(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),d(),K(r.showFirstLastButtons?6:-1),d(),y("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled()),oe("aria-label",r._intl.previousPageLabel),d(3),y("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled()),oe("aria-label",r._intl.nextPageLabel),d(3),K(r.showFirstLastButtons?13:-1));},dependencies:[Ft,ud,gs,Mi,St],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0});}return t;})(),md=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[fq],imports:[ce,Jo,nt,Na]});}return t;})();var _P=ID(IC());var bP=(()=>{class t{constructor(e,n){this.http=e,this.env=n,this.apiParams=new _P.DrupalJsonApiParams();}fetchWidget(e){let n=this,r="/node/widget/"+e,o=this.env.get().drupalHost+this.env.get().drupalApi+r;return console.log("fetch widget at ",o),this.http.get(o);}postWidgetConfig(e,n){let r=this.env.get().drupalHost+this.env.get().drupalApi+"/node/widget",o={data:{type:"node--widget",attributes:{title:n.card?.title||"widget",body:{value:JSON.stringify(n),format:"plain_text"},field_site_id:this.env.get().slug}}},a={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(r,o,a);}patchWidget(e,n){let r=this,o="/node/widget/"+n.storageId,a=this.env.get().drupalHost+this.env.get().drupalApi+o,s={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"},l={data:{type:"node--widget",id:n.storageId,attributes:{body:{value:JSON.stringify(n),format:"plain_text"}}}};return this.http.patch(a,l,s);}deleteWidget(e,n){let r=this,o="/node/widget/"+n.storageId,a=this.env.get().drupalHost+this.env.get().drupalApi+o,s={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.delete(a,s);}getWidgets(e=""){let n=e;return n||(n=this.env.get().drupalHost+this.env.get().drupalApi+"/node/widget?page[limit]=10&include=uid"),console.log("fetch widgets at ",n),this.http.get(n);}getAllWidgets(){return this.getWidgets().pipe(Gd(e=>e.links.next?this.getWidgets(e.links.next.href):se(null)),Za(e=>e!==null),me(e=>[e]),Wd((e,n)=>[...e,...n],[]));}static{this.ɵfac=function(n){return new(n||t)(J(ui),J(je));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var vP=ID(IC());var b0=(()=>{class t{constructor(e,n){this.http=e,this.env=n,this.apiParams=new vP.DrupalJsonApiParams();}fetchCharacterByTitle(e){let n="?filter[title][value]="+e,r=this.env.get().drupalHost+this.env.get().drupalApi;return r+="/node/character/",r+=n,this.http.get(r);}fetchCharacter(e){let n="/node/character/"+e,r=this.env.get().drupalHost+this.env.get().drupalApi+n;return console.log("fetch character at ",r),this.http.get(r);}postCharacter(e,n){let r=this.env.get().drupalHost+this.env.get().drupalApi+"/node/character",o={data:{type:"node--character",attributes:{title:n.name||"character",body:{value:JSON.stringify(n),format:"plain_text"},field_site_id:this.env.get().slug}}},a={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(r,o,a);}patchCharacter(e,n){let r="/node/character/"+n.storageId,o=this.env.get().drupalHost+this.env.get().drupalApi+r,a={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"},s={data:{type:"node--character",id:n.storageId,attributes:{body:{value:JSON.stringify(n),format:"plain_text"}}}};return this.http.patch(o,s,a);}deleteCharacter(e,n){let r="/node/character/"+n.storageId,o=this.env.get().drupalHost+this.env.get().drupalApi+r,a={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.delete(o,a);}getCharacters(e=""){let n=e;return n||(n=this.env.get().drupalHost+this.env.get().drupalApi+"/node/character?page[limit]=10&include=uid"),console.log("fetch characters at ",n),this.http.get(n);}getAllCharacters(){return this.getCharacters().pipe(Gd(e=>e.links.next?this.getCharacters(e.links.next.href):se(null)),Za(e=>e!==null),me(e=>[e]),Wd((e,n)=>[...e,...n],[]));}extractCharacterUsers(e){}extractCharacters(e){let n=[],r=[];return e.forEach(o=>{let a=o.data;n.push(...a);}),console.log("all characters",n),n.forEach(o=>{let a=this.loadCharacter(o);r.push(a);}),r;}loadCharacter(e){let n=JSON.parse(e.attributes.body.value);n.storageId=e.id;let r=e.attributes.field_site_id,o=e.attributes.changed,a=Date.parse(o),l=new Date(a);return{name:n.name||"name not found",email:n.email||"email not found",description:n.description||"",professionalDescription:n.professionalDescription||"",hobbies:n.hobbies||"",enabled:!!n.enabled,icon:n.icon,commentsPerDay:n.commentsPerDay,date:l,siteId:r,storageId:n.storageId||"id not found"};}makeCharacterInstructions(e){let n=this.env.get().slug,r=e.character,o=e.character?.description,a=e.character?.hobbies,s=r?.name,l=!0,c=`You are helping an organization to run their website, and you need to answer questions from users to the best of your ability. Users will
send questions to you through a chatbot interface on the web site.

In the text below you will find details about your own character such as your name, a description of your character, and a list of your hobbies. 
Below that will be a description of the organization you are helping, and then some technical information about their website. You will also be given some
sales information in case the customer is interested in any products or services. Finally, you will be given some technical information about supporting our software.

If the customer asks you personal questions, you can make some small talk, but try to keep the user focused on the goals of the organization you 
are representing.

`.trim();c+=`

CHARACTER DETAILS 

`,c+="CHARACTER NAME: "+s+`
`,c+="CHARACTER DESCRIPTION: "+o+`
`,c+="CHARACTER HOBBIES: "+a+`
`,c+=`
ORGANIZATION DESCRIPTION: `;let p=`The name of the organization you are helping is johnturman.net.  The organization has a web site at https://johnturman.net that 
serves primarily as a personal blog site for a software developer named John Turman.  John needs help answering questions from customers about his tech stack,
and other miscellaneous questions about the content on his site, etc.  John is not accepting any offers for work through this site.  Refer any inquiries about work 
to his other website at https://turmansolutions.ai.`.trim(),g=`The name of the company you are helping is Turman Solutions, LLC.  Our company website is at https://turmansolutions.ai.  We
build web sites and applications that are powered by Large Language Models (LLMs). The company was founded in 2024, and the president and CTO of the 
company is John Turman. The company provides consultancy, research and development services. The company provides hosting services for web sites.  The company 
also sells software products on a monthly subscription basis, and markets it's chatbot application as a full stack product available for sale. The company 
is actively seeking investors, partners, and early adopters of our product.`.trim();return n==="jpt"?c+=p+`

`:c+=g+`

`,c+="TECHNICAL INFORMATION: "+`The key components of the full stack solution that is used at our organization are Angular, Wordpress, Drupal, and FastAPI.  We have in depth knowledge of 
Typescript, Javascript, Python, and PHP, HTML, and CSS, and we have many years of experience in web development and design. The company also has expertise in content management, 
and the LAMP stack (Linux, Apache, MySQL, PHP).`,l&&(c+=`

SALES INFORMATION: `+`Turman Solutions is actively seeking investors, and partners, and early adopters of our full stack solution.  We have confidence in our
product and feel we can have a large impact in the high-stakes AI marketplace.  Our solutions are grounded with years of experience in web development, software engineering,
and providing users with powerful and easy-to-use software.  Our company is not directly involved in the development of large language models.  Rather,
we use APIs provided by vendors such as OpenAI, Anthropic, and others.

We focus on providing AI enabled web sites and tools to users, and letting users build out tools for their own purposes. Our chatbot supports NLP (natural language processing) 
widgets, allow users to effectively communicate with LLMs. We provide built-in NLP widgets such as our powerful "Ask Me Anything" widget. We also provide widgets for games, 
translation, literary quotes, quizzing engines, and more.  Users are able to create and manage their own NLP widgets as well, and are encouraged to contribute their widgets to others. 
These user managed widgets allow for powerful, structured interactions with LLMs.

Our full stack solution also supports AI character development.  AI characters (a.k.a. agents) have a name, an avatar image, a description of their personality and hobbies, 
and more. AI characters able to accomplish certain tasks on their own, such as writing new articles, or participating in discussion threads. Characters can also be asked to 
perform other tasks on demand.  We have our own characters to help us here with various tasks.  We can provide users with characters also, and our tools allow users to create 
and manage their own characters.

Our chatbot works with Wordpress and Drupal and allows users to save generated content as articles, images, comments, etc.  Our years of experience working with content 
management allows us to tap into the powerful features of these CMSs.  We have years of experience in the fields of publishing and education.  Our solutions provide state
of the art editing, design, and workflow experiences.  

We are seeking early adopters of our solution.  Early adopters will get their own web site and we would like to help them build out an awesome site with incredible content.
Early adopters can provide us valuable feedback as we craft features th��at improve our product and make it more reliable and useful.   

We are also seeking investors and partners.  Turman Solutions seeks to keep our operating costs at a minimum, and leverages open source solutions towards that end. We
are operating in a high stakes business where a viable AI product has great potential.  Our stack has been developed as a product from the first day, and 
is scalable in a well-known, predictable way.  We are open to discussion, consultation, etc.

As a sales person, be ready to describe our product line and the services we offer.  Also, find out if the user is a potential investor, partner, or an early adopter.  Explain
that an early adopter will get their own Wordpress site and will play an important role in the evolution of our product.  Encourage the user to consider running a personal blog
site where they can build the content that they themselves are most interested in.  If you have a productive conversation, remind the user that they can share the conversation
with us using the "Share" button in the chatbot.  If the user shares the conversation with us, we will get back to them in 1-2 business days.  Users can also use our contact form
at https://turmansolutions.ai/contact-us/ to initiate communication with us.
`),c+=`

TECHNICAL SUPPORT INFORMATION: `+`If you are asked support questions about our product, do your best to help the user.  The user interacts only with our chatbot and one or more Wordpress sites. Try to find out if 
the user is having a problem with the chatbot, Wordpress, or some other problem.

If the user has problems with the chatbot, you likely will not be able to help out with detailed questions, but you can suggest the user refresh the page, log out and log back in again, 
or that the user try a different browser or device.  The chatbot is a beta product and will have some defects.  Let the user know this.  

If it's a Wordpress problem, try to help the user resolve the problem.  Give them links to online resources where appropriate. 

If you are unable to resolve the issue, suggest that the user click the "Share" button for further assistance.`,console.log(`full instructions are: 
`,c),c;}static{this.ɵfac=function(n){return new(n||t)(J(ui),J(je));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Ht=(()=>{class t{constructor(e,n,r,o,a,s){this.cms=e,this.widgetService=n,this.characters=r,this.http=o,this.env=a,this.user=s;}sendFapiMessage(e,n,r){if(r||(r="You are a helpful assistant."),e.d3RequestData)return this.createD3Image(e.d3RequestData);let o={endpoint:e.endpoint,options:e.options||{},userId:e.userId,conversation:n,msg:e.body,prompt:e.body,instructions:r,temperature:e.temperature||"",maskBase64:e.maskBase64||"",croppedBase64:e.croppedBase64||"",imageCount:e.imageCount||"",imageSize:e.imageSize||"",devHost:this.env.get().drupalHost,sourceImage:e.images?e.images[0]:""};switch(console.log("send msg: ",o),e.endpoint){case te.imageGenerate:return this.createImage(o);case te.imageVariations:return this.createImageVariations(o);case te.imageEdit:return this.createImageEdits(o);default:throw console.log("route not found"),new Error("function not implemented");}}createD3Image(e){let n=this.user.user?.fapiToken,r=new st({Authorization:`Bearer ${n}`});console.log("creating d3 image");let o=this.env.get().apiUrl+"/image/d3create/";return this.http.post(o,e,{headers:r});}createImage(e){let n=this.user.user?.fapiToken,r=new st({Authorization:`Bearer ${n}`}),o=this.env.get().apiUrl+"/image/create/";return this.http.post(o,e,{headers:r});}createImageVariations(e){let n=this.user.user?.fapiToken,r=new st({Authorization:`Bearer ${n}`}),o=this.env.get().apiUrl+"/image/variations/";return this.http.post(o,e,{headers:r});}createImageEdits(e){let n=this.user.user?.fapiToken,r=new st({Authorization:`Bearer ${n}`}),o=this.env.get().apiUrl+"/image/edit/";return this.http.post(o,e,{headers:r});}sendFile(e){let n=this.user.user?.fapiToken,r=new st({Authorization:`Bearer ${n}`}),o=new FormData();o.append("file",e,e.name);let a=this.env.get().apiUrl+"/image/upload/";return this.http.post(a,o,{headers:r});}createArticle(e,n){let r=this.user.user?.fapiToken,o=new st({Authorization:`Bearer ${r}`}),a={character:e,user_instructions:n},s=this.env.get().apiUrl+"/articles/create/";return this.http.post(s,a,{headers:o});}postComment(e,n,r){let o=this.user.user?.fapiToken,a=new st({Authorization:`Bearer ${o}`}),s={url:n,character:e,user_instructions:r},l=this.env.get().apiUrl+"/comments/comment/";return this.http.post(l,s,{headers:a});}fetchBuildInfo(){return this.http.get("assets/build-info.json");}fetchModels(){let e=this.env.get().apiUrl+"/models";return this.http.get(e);}getCsrfToken(){let n=this.env.get().drupalHost+"/session/token",r={headers:new st({"Content-Type":"application/json"}),responseType:"text"};return this.http.post(n,{},r);}storeData(e){let n=this.env.get().apiUrl+"/store/";return this.http.post(n,e);}postChatConversation(e,n,r){let o=this.env.get().drupalHost+this.env.get().drupalApi+"/node/chat",a={data:{type:"node--chat",attributes:{title:n,body:{value:"",format:"plain_text"},field_message3:r}}},s={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(o,a,s);}postPrompt(e,n){let r=this.env.get().drupalHost+this.env.get().drupalApi+"/node/prompt",o={data:{type:"node--prompt",attributes:{title:n.substring(0,50),body:{value:"",format:"plain_text"},field_message:n,field_image_prompt:!0}}},a={headers:new st({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(r,o,a);}fetchPrompts(e,n,r,o){let s=`&filter[field_image_prompt][value]=${o?"1":"0"}`,l=`/node/prompt?page[offset]=${e}&page[limit]=${n}&include=uid,field_categories`+s,c=this.env.get().drupalHost+this.env.get().drupalApi+l;return this.http.get(c);}static{this.ɵfac=function(n){return new(n||t)(J(jo),J(bP),J(b0),J(ui),J(je),J(Vr));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function qG(t,i){t&1&&D(0,"div",2);}var WG=new R("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var xP=(()=>{class t{_elementRef=h(ee);_ngZone=h(le);_changeDetectorRef=h(ge);_renderer=h(wt);_cleanupTransitionEnd;_animationMode=h(mt,{optional:!0});constructor(){let e=h(WG,{optional:!0});this._isNoopAnimation=this._animationMode==="NoopAnimations",e&&(e.color&&(this.color=this._defaultColor=e.color),this.mode=e.mode||this.mode);}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor;}set color(e){this._color=e;}_color;_defaultColor="primary";get value(){return this._value;}set value(e){this._value=yP(e||0),this._changeDetectorRef.markForCheck();}_value=0;get bufferValue(){return this._bufferValue||0;}set bufferValue(e){this._bufferValue=yP(e||0),this._changeDetectorRef.markForCheck();}_bufferValue=0;animationEnd=new z();get mode(){return this._mode;}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck();}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler);});}ngOnDestroy(){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=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}));};static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,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(n,r){n&2&&(oe("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),Dt("mat-"+r.color),ne("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()));},inputs:{color:"color",value:[2,"value","value",at],bufferValue:[2,"bufferValue","bufferValue",at],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(n,r){n&1&&(m(0,"div",0),D(1,"div",1),T(2,qG,1,0,"div",2),u(),m(3,"div",3),D(4,"span",4),u(),m(5,"div",5),D(6,"span",4),u()),n&2&&(d(),qn("flex-basis",r._getBufferBarFlexBasis()),d(),K(r.mode==="buffer"?2:-1),d(),qn("transform",r._getPrimaryBarTransform()));},styles:[`.mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}`],encapsulation:2,changeDetection:0});}return t;})();function yP(t,i=0,e=100){return Math.max(i,Math.min(e,t));}var ia=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe]});}return t;})();var wP=t=>({display:t}),QG=()=>["expandedDetail"];function YG(t,i){if(t&1&&(m(0,"th",12),f(1),u()),t&2){let e=x().$implicit;d(),C(e);}}function ZG(t,i){if(t&1){let e=W();m(0,"button",16),S("click",function(){k(e);let r=x().$implicit,o=x(2);return M(o.choosePrompt(r));}),f(1),u();}if(t&2){let e=x(3);d(),P(" ",e.select," ");}}function KG(t,i){if(t&1&&(m(0,"td",13)(1,"div",14),f(2),T(3,ZG,2,1,"button",15),u()()),t&2){let e=i.$implicit,n=x().$implicit;d(2),P(" ",e[n]," "),d(),y("ngIf",n==="Actions");}}function XG(t,i){if(t&1&&(ye(0,10),T(1,YG,2,1,"th",11)(2,KG,4,2,"td",5),xe()),t&2){let e=i.$implicit;G("matColumnDef",e);}}function JG(t,i){t&1&&(m(0,"th",17),f(1,"\xA0"),u());}function eQ(t,i){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_down"),u());}function tQ(t,i){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_up"),u());}function nQ(t,i){if(t&1){let e=W();m(0,"td",13)(1,"button",18),S("click",function(r){let o=k(e).$implicit;return o.Expanded=!o.Expanded,M(r.stopPropagation());}),T(2,eQ,2,0,"mat-icon",19)(3,tQ,2,0,"mat-icon",19),u()();}if(t&2){let e=i.$implicit;d(2),y("ngIf",!e.Expanded),d(),y("ngIf",e.Expanded);}}function iQ(t,i){if(t&1&&(m(0,"td",13)(1,"div",20)(2,"div",21)(3,"strong"),f(4),u(),f(5),u()()()),t&2){let e=i.$implicit,n=x();oe("colspan",n.columnsToDisplayWithExpand.length),d(),y("@detailExpand",e.Expanded?"expanded":"collapsed"),d(3),P("",n.fullText,":"),d(),P(" ",e.Message," ");}}function rQ(t,i){t&1&&D(0,"tr",22);}function oQ(t,i){if(t&1){let e=W();m(0,"tr",23),S("click",function(){let r=k(e).$implicit;return M(r.Expanded=!r.Expanded);}),u();}if(t&2){let e=i.$implicit;ne("expanded-row",e.Expanded);}}function aQ(t,i){t&1&&D(0,"tr",24);}var CP=(()=>{class t{constructor(e,n){this.env=e,this.api=n,this.imagePrompt=ct(!1),this.character=ct.required(),this.select="S\xE9lectionner",this.fullText="Invite",this.rowActions="actions de ligne",this.promptData=[],this.loaded=!1,this.dataSource=new zr(this.promptData),this.columnsToDisplay=["Category","Title","Actions"],this.columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"],this.choosePromptEvent=new z(),this.terms=[];}ngOnInit(){}ngAfterViewInit(){let e=this,n=this.env.drupalUser1;this.env.demoMode&&(n=this.env.get().drupalUserId),this.api.fetchPrompts(0,50,n,this.imagePrompt()).subscribe(r=>{if(this.loaded=!0,r){let o=r.included;o&&(e.terms=o.filter(l=>l.type.startsWith("taxonomy_term")));let a=r.data,s=this.loadPrompts(a);console.log("prompts: ",s),this.imagePrompt()||(s=s.filter(l=>l.Uid===n)),s=this.sortPrompts(s),this.dataSource.data=s,this.table.renderRows();}else console.log("no data received");},r=>{console.log("error: ",r);});}sortByCategory(e,n){return e.sort((r,o)=>r.Category===n&&o.Category!==n?-1:r.Category!==n&&o.Category===n?1:0);}sortPrompts(e){let n=e.sort((a,s)=>a.Category>s.Category?1:a.Category<s.Category?-1:0),r="Tech",o=this.character();return o&&(o.name==="Alma"?r="Sales":o.name==="Roberto"?r="Support":o.name==="Mario"&&(r="Legal")),this.sortByCategory(e,r),n;}loadPrompts(e){let n=[];return e.forEach(r=>{let o=r.relationships,a=r.attributes,l=Date.parse(a.changed),c=new Date(l),p={},g=new Intl.DateTimeFormat("en-US",p).format(c),b=o.uid.data.id,v=o.field_categories.data,I=[];v&&v.forEach($=>{let Z=this.terms.find(B=>B.id===$.id);Z?I.push(Z.attributes.name):console.log("prompt is not categorized.");});let A={ID:a.drupal_internal__nid,Title:a.title,Message:a.field_message[0],Categories:I,Category:I.length?I[0]:"",Revision:a.drupal_internal__vid,Modified:g,Expanded:!1,Uid:b};n.push(A);}),n;}choosePrompt(e){this.choosePromptEvent.emit(e);}static{this.ɵfac=function(n){return new(n||t)(w(je),w(Ht));};}static{this.ɵcmp=E({type:t,selectors:[["choose-prompt"]],viewQuery:function(n,r){if(n&1&&Y(hi,5),n&2){let o;F(o=N())&&(r.table=o.first);}},inputs:{imagePrompt:[1,"imagePrompt"],character:[1,"character"]},outputs:{choosePromptEvent:"choosePromptEvent"},decls:12,vars:12,consts:[[1,"loader",3,"ngStyle"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","","class","prompts-header-row",4,"matHeaderRowDef"],["mat-row","","class","prompt-row",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-cell",""],["mat-cell",""],[1,"prompt-column-container"],["class","choose-prompt-button","color","primary","mat-stroked-button","","aria-label","Select",3,"click",4,"ngIf"],["color","primary","mat-stroked-button","","aria-label","Select",1,"choose-prompt-button",3,"click"],["mat-header-cell","","aria-label","row actions"],["mat-icon-button","","aria-label","expand row",3,"click"],[4,"ngIf"],[1,"prompt-detail"],[1,"prompt-description"],["mat-header-row","",1,"prompts-header-row"],["mat-row","",1,"prompt-row",3,"click"],["mat-row","",1,"detail-row"]],template:function(n,r){n&1&&(m(0,"div",0),D(1,"mat-spinner"),u(),m(2,"table",1),T(3,XG,3,1,"ng-container",2),ye(4,3),T(5,JG,2,0,"th",4)(6,nQ,4,2,"td",5),xe(),ye(7,6),T(8,iQ,6,4,"td",5),xe(),T(9,rQ,1,0,"tr",7)(10,oQ,1,2,"tr",8)(11,aQ,1,0,"tr",9),u()),n&2&&(y("ngStyle",Be(7,wP,r.loaded?"none":"block")),d(2),y("ngStyle",Be(9,wP,r.loaded?"table":"none"))("dataSource",r.dataSource),d(),y("ngForOf",r.columnsToDisplay),d(6),y("matHeaderRowDef",r.columnsToDisplayWithExpand),d(),y("matRowDefColumns",r.columnsToDisplayWithExpand),d(),y("matRowDefColumns",Wn(11,QG)));},dependencies:[Xo,hi,Uo,Qo,qo,Ho,Yo,Wo,Go,Zo,Ko,H,an,Ot,Di,ce,Me,Mi,Ee,Re,Xn,Kn],styles:[".loader[_ngcontent-%COMP%]{text-align:center}.loader[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin:0 auto}table[_ngcontent-%COMP%]{width:100%}tr.detail-row[_ngcontent-%COMP%]{height:0}tr.prompt-row[_ngcontent-%COMP%]:not(.expanded-row):active{background:#efefef}.prompt-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.prompt-column-container[_ngcontent-%COMP%]{margin-top:10px}.prompt-column-container[_ngcontent-%COMP%]   .choose-prompt-button[_ngcontent-%COMP%]{height:24px;margin:5px 0}.prompt-detail[_ngcontent-%COMP%]{display:block}.prompt-description[_ngcontent-%COMP%]{padding:20px 5px}"],data:{animation:[kn("detailExpand",[Mt("collapsed",Ze({height:"0px",minHeight:"0"})),Mt("expanded",Ze({height:"*"})),Zt("expanded <=> collapsed",en("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});}}return t;})();var sQ=["mysubmit"];var vd=(()=>{class t{constructor(e){this.data=e,this.title="Le chatbot dit :",this.wait="Un instant s'il vous pla\xEEt...";}static{this.ɵfac=function(n){return new(n||t)(w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["progress-dialog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["id","spinner"],["mode","indeterminate"]],template:function(n,r){n&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"p"),f(4),u(),m(5,"p"),f(6),u(),m(7,"div",2),D(8,"mat-progress-bar",3),u(),m(9,"p"),f(10),u()()),n&2&&(d(),C(r.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(4),C(r.wait));},dependencies:[_t,tn,nn,ce,ia,xP],encapsulation:2});}}return t;})();var Ts=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.txt1="Nombre d'images",this.txt2="Taille de l'image",this.txt3="Fermer",this.txt4="Soumettre",this.imageCount="1",this.imageSize="512x512";}ngAfterViewInit(){console.log("submit",this.submitButton),setTimeout(()=>{this.submitButton.focus();},1e3);}createVariations(){this.dialogRef.close({count:this.imageCount,size:this.imageSize});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["image-size-and-count-dialog"]],viewQuery:function(n,r){if(n&1&&Y(sQ,5),n&2){let o;F(o=N())&&(r.submitButton=o.first);}},decls:39,vars:9,consts:[["mysubmit",""],[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content",""],["id","image-count",2,"margin-right","10px"],[3,"valueChange","value"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["id","image-size"],["value","256x256"],["value","512x512"],["value","1024x1024"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""],["id","mysubmitbutton","mat-button","",3,"click"]],template:function(n,r){if(n&1){let o=W();m(0,"div",1)(1,"h1",2),f(2),u(),m(3,"div",3)(4,"p"),f(5),u(),m(6,"p"),f(7),u(),ye(8),m(9,"mat-form-field",4)(10,"mat-label"),f(11),u(),m(12,"mat-select",5),Rn("valueChange",function(s){return k(o),jn(r.imageCount,s)||(r.imageCount=s),M(s);}),m(13,"mat-option",6),f(14,"1"),u(),m(15,"mat-option",7),f(16,"2"),u(),m(17,"mat-option",8),f(18,"3"),u(),m(19,"mat-option",9),f(20,"4"),u(),m(21,"mat-option",10),f(22,"5"),u()()(),m(23,"mat-form-field",11)(24,"mat-label"),f(25),u(),m(26,"mat-select",5),Rn("valueChange",function(s){return k(o),jn(r.imageSize,s)||(r.imageSize=s),M(s);}),m(27,"mat-option",12),f(28,"256x256"),u(),m(29,"mat-option",13),f(30,"512x512"),u(),m(31,"mat-option",14),f(32,"1024x1024"),u()()(),xe(),u(),m(33,"div",15)(34,"button",16),f(35),u(),m(36,"button",17,0),S("click",function(){return k(o),M(r.createVariations());}),f(38),u()()();}n&2&&(d(2),C(r.data.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(4),C(r.txt1),d(),An("value",r.imageCount),d(13),C(r.txt2),d(),An("value",r.imageSize),d(9),C(r.txt3),d(3),P(" ",r.txt4," "));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,Jo,Ft,Pt,ud,gs],encapsulation:2});}}return t;})(),DP=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.choosePromptMsg="Choisissez une directive :",this.closeMsg="Fermer";}choosePrompt(e){this.dialogRef.close({prompt:e});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["choose-prompt-dialog"]],decls:11,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"choosePromptEvent","imagePrompt","character"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""]],template:function(n,r){if(n&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"p"),f(4),u(),m(5,"p"),f(6),u(),m(7,"choose-prompt",2),S("choosePromptEvent",function(a){return r.choosePrompt(a);}),u()(),m(8,"div",3)(9,"button",4),f(10),u()()),n&2){let o;d(),C(r.choosePromptMsg),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(),y("imagePrompt",(o=r.data.imagePrompt)!==null&&o!==void 0?o:!1)("character",r.data.characterData),d(3),C(r.closeMsg);}},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,CP],encapsulation:2});}}return t;})(),EP=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.title="",this.yesTxt="Oui",this.cancelTxt="Annuler";}ngOnInit(){this.title=this.data.title||"Untitled";}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["confirmation-dialog"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"dialog-actions"],["mat-button","",3,"click"]],template:function(n,r){n&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"p"),f(4),u(),m(5,"p"),f(6),u()(),m(7,"div",2)(8,"button",3),S("click",function(){return r.dialogRef.close();}),f(9),u(),m(10,"button",3),S("click",function(){return r.dialogRef.close({confirm:!0});}),f(11),u()(),f(12," , ")),n&2&&(d(),C(r.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(3),C(r.cancelTxt),d(2),P(" ",r.yesTxt," "));},dependencies:[_t,tn,cn,nn,ce,Me,H],styles:[".dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:15px}"]});}}return t;})();var TC=["*"];function lQ(t,i){t&1&&ue(0);}var cQ=["tabListContainer"],dQ=["tabList"],uQ=["tabListInner"],mQ=["nextPaginator"],pQ=["previousPaginator"],hQ=t=>({animationDuration:t}),fQ=(t,i)=>({value:t,params:i});function gQ(t,i){}var _Q=["tabBodyWrapper"],bQ=["tabHeader"];function vQ(t,i){}function yQ(t,i){if(t&1&&T(0,vQ,0,0,"ng-template",12),t&2){let e=x().$implicit;y("cdkPortalOutlet",e.templateLabel);}}function xQ(t,i){if(t&1&&f(0),t&2){let e=x().$implicit;C(e.textLabel);}}function wQ(t,i){if(t&1){let e=W();m(0,"div",7,2),S("click",function(){let r=k(e),o=r.$implicit,a=r.$index,s=x(),l=Ke(1);return M(s._handleClick(o,l,a));})("cdkFocusChange",function(r){let o=k(e).$index,a=x();return M(a._tabFocusChanged(r,o));}),D(2,"span",8)(3,"div",9),m(4,"span",10)(5,"span",11),T(6,yQ,1,1,null,12)(7,xQ,1,1),u()()();}if(t&2){let e=i.$implicit,n=i.$index,r=Ke(1),o=x();Dt(e.labelClass),ne("mdc-tab--active",o.selectedIndex===n),y("id",o._getTabLabelId(n))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),oe("tabIndex",o._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),y("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),d(3),K(e.templateLabel?6:7);}}function CQ(t,i){t&1&&ue(0);}function DQ(t,i){if(t&1){let e=W();m(0,"mat-tab-body",13),S("_onCentered",function(){k(e);let r=x();return M(r._removeTabBodyWrapperHeight());})("_onCentering",function(r){k(e);let o=x();return M(o._setTabBodyWrapperHeight(r));}),u();}if(t&2){let e=i.$implicit,n=i.$index,r=x();Dt(e.bodyClass),ne("mat-mdc-tab-body-active",r.selectedIndex===n),y("id",r._getTabContentId(n))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),oe("tabindex",r.contentTabIndex!=null&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))("aria-hidden",r.selectedIndex!==n);}}var EQ=new R("MatTabContent"),IQ=(()=>{class t{template=h(ot);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","matTabContent",""]],features:[be([{provide:EQ,useExisting:t}])]});}return t;})(),kQ=new R("MatTabLabel"),MP=new R("MAT_TAB"),MQ=(()=>{class t extends I2{_closestTab=h(MP,{optional:!0});static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[be([{provide:kQ,useExisting:t}]),q]});}return t;})(),SP=new R("MAT_TAB_GROUP"),AC=(()=>{class t{_viewContainerRef=h(Ct);_closestTabGroup=h(SP,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel;}set templateLabel(e){this._setTemplateLabelInput(e);}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;_contentPortal=null;get content(){return this._contentPortal;}_stateChanges=new U();position=null;origin=null;isActive=!1;constructor(){h(kt).load(Fn);}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete();}ngOnInit(){this._contentPortal=new Yn(this._explicitContent||this._implicitContent,this._viewContainerRef);}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,MQ,5),Fe(o,IQ,7,ot)),n&2){let a;F(a=N())&&(r.templateLabel=a.first),F(a=N())&&(r._explicitContent=a.first);}},viewQuery:function(n,r){if(n&1&&Y(ot,7),n&2){let o;F(o=N())&&(r._implicitContent=o.first);}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Q],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[be([{provide:MP,useExisting:t}]),tt],ngContentSelectors:TC,decls:1,vars:0,template:function(n,r){n&1&&(Pe(),T(0,lQ,1,0,"ng-template"));},encapsulation:2});}return t;})(),kC="mdc-tab-indicator--active",IP="mdc-tab-indicator--no-transition",MC=c��lass{_items;_currentItem;constructor(i){this._items=i;}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0;}alignToElement(i){let e=this._items.find(r=>r.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e;}}},SQ=(()=>{class t{_elementRef=h(ee);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent;}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement());}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kC);return;}let r=n.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;n.classList.add(IP),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),n.getBoundingClientRect(),n.classList.remove(IP),n.classList.add(kC),this._inkBarContentElement.style.setProperty("transform","");}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kC);}ngOnInit(){this._createInkBarElement();}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null;}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");n.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement();}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Q]}});}return t;})();var TP=(()=>{class t extends SQ{elementRef=h(ee);disabled=!1;focus(){this.elementRef.nativeElement.focus();}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft;}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth;}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,r){n&2&&(oe("aria-disabled",!!r.disabled),ne("mat-mdc-tab-disabled",r.disabled));},inputs:{disabled:[2,"disabled","disabled",Q]},features:[q]});}return t;})(),kP={passive:!0},TQ=650,AQ=100,RQ=(()=>{class t{_elementRef=h(ee);_changeDetectorRef=h(ge);_viewportRuler=h(Fo);_dir=h(Jt,{optional:!0});_ngZone=h(le);_platform=h(We);_sharedResizeObserver=h(Pg);_injector=h(Oe);_renderer=h(wt);_animationMode=h(mt,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new U();_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new U();disablePagination=!1;get selectedIndex(){return this._selectedIndex;}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n));}_selectedIndex=0;selectFocusedIndex=new z();indexFocused=new z();constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())]);}ngAfterViewInit(){this._eventCleanups.push(Px(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),kP),Px(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),kP));}ngAfterContentInit(){let e=this._dir?this._dir.change:se("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(pa(32),Ae(this._destroyed)),r=this._viewportRuler.change(150).pipe(Ae(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab();};this._keyManager=new Oo(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Cn(o,{injector:this._injector}),qt(e,r,n,this._items.changes,this._itemsResized()).pipe(Ae(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o();});}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection());}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a);});}_itemsResized(){return typeof ResizeObserver!="function"?gn:this._items.changes.pipe(yt(this._items),Xt(e=>new $e(n=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect();};}))),$s(1),ke(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)));}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck());}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete();}_handleKeydown(e){if(!pn(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));}break;default:this._keyManager.onKeydown(e);}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck();}));}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition();}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0;}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e);}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0;}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth;}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0);}get scrollDistance(){return this._scrollDistance;}set scrollDistance(e){this._scrollTo(e);}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+r);}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e);}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,p=this.scrollDistance+r;s<c?this.scrollDistance-=c-s:l>p&&(this.scrollDistance+=Math.min(l-p,s-c));}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,r=e-n>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck());}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck());}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0;}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide();}_stopInterval(){this._stopScrolling.next();}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),qd(TQ,AQ).pipe(Ae(qt(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval();}));}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance};}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",Q],selectedIndex:[2,"selectedIndex","selectedIndex",at]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});}return t;})(),OQ=(()=>{class t extends RQ{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new MC(this._items),super.ngAfterContentInit();}_itemSelected(e){e.preventDefault();}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,r,o){if(n&1&&Fe(o,TP,4),n&2){let a;F(a=N())&&(r._items=a);}},viewQuery:function(n,r){if(n&1&&(Y(cQ,7),Y(dQ,7),Y(uQ,7),Y(mQ,5),Y(pQ,5)),n&2){let o;F(o=N())&&(r._tabListContainer=o.first),F(o=N())&&(r._tabList=o.first),F(o=N())&&(r._tabListInner=o.first),F(o=N())&&(r._nextPaginator=o.first),F(o=N())&&(r._previousPaginator=o.first);}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,r){n&2&&ne("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl");},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",Q]},features:[q],ngContentSelectors:TC,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,r){if(n&1){let o=W();Pe(),m(0,"div",5,0),S("click",function(){return k(o),M(r._handlePaginatorClick("before"));})("mousedown",function(s){return k(o),M(r._handlePaginatorPress("before",s));})("touchend",function(){return k(o),M(r._stopInterval());}),D(2,"div",6),u(),m(3,"div",7,1),S("keydown",function(s){return k(o),M(r._handleKeydown(s));}),m(5,"div",8,2),S("cdkObserveContent",function(){return k(o),M(r._onContentChanges());}),m(7,"div",9,3),ue(9),u()()(),m(10,"div",10,4),S("mousedown",function(s){return k(o),M(r._handlePaginatorPress("after",s));})("click",function(){return k(o),M(r._handlePaginatorClick("after"));})("touchend",function(){return k(o),M(r._stopInterval());}),D(12,"div",6),u();}n&2&&(ne("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),y("matRippleDisabled",r._disableScrollBefore||r.disableRipple),d(3),ne("_mat-animation-noopable",r._animationMode==="NoopAnimations"),d(2),oe("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),d(5),ne("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),y("matRippleDisabled",r._disableScrollAfter||r.disableRipple));},dependencies:[Li,Nx],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}"],encapsulation:2});}return t;})(),PQ=new R("MAT_TABS_CONFIG"),FQ={translateTab:kn("translateTab",[Mt("center, void, left-origin-center, right-origin-center",Ze({transform:"none",visibility:"visible"})),Mt("left",Ze({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Mt("right",Ze({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Zt("* => left, * => right, left => center, right => center",en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Zt("void => left-origin-center",[Ze({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Zt("void => right-origin-center",[Ze({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},NQ=(()=>{class t extends Si{_host=h(AP);_centeringSub=Ie.EMPTY;_leavingSub=Ie.EMPTY;constructor(){super();}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(yt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this.attach(this._host._content);}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach();});}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","matTabBodyHost",""]],features:[q]});}return t;})(),AP=(()=>{class t{_elementRef=h(ee);_dir=h(Jt,{optional:!0});_positionIndex;_dirChangeSubscription=Ie.EMPTY;_position;_translateTabComplete=new U();_onCentering=new z();_beforeCentering=new z();_afterLeavingCenter=new z();_onCentered=new z(!0);_portalHost;_content;origin;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState();}constructor(){if(this._dir){let e=h(ge);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck();});}this._translateTabComplete.subscribe(e=>{this._isCenterPosition(e.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(e.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit();});}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin));}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete();}_onTranslateTabStarted(e){let n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight);}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_isCenterPosition(e){return e=="center"||e=="left-origin-center"||e=="right-origin-center";}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center";}_computePositionFromOrigin(e){let n=this._getLayoutDirection();return n=="ltr"&&e<=0||n=="rtl"&&e>0?"left-origin-center":"right-origin-center";}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,r){if(n&1&&Y(Si,5),n&2){let o;F(o=N())&&(r._portalHost=o.first);}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,r){if(n&1){let o=W();m(0,"div",1,0),S("@translateTab.start",function(s){return k(o),M(r._onTranslateTabStarted(s));})("@translateTab.done",function(s){return k(o),M(r._translateTabComplete.next(s));}),T(2,gQ,0,0,"ng-template",2),u();}n&2&&y("@translateTab",Kr(3,fQ,r._position,Be(1,hQ,r.animationDuration)));},dependencies:[NQ,om],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[FQ.translateTab]}});}return t;})(),LQ=!0,v0=(()=>{class t{_elementRef=h(ee);_changeDetectorRef=h(ge);_animationMode=h(mt,{optional:!0});_allTabs;_tabBodyWrapper;_tabHeader;_tabs=new oi();_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;_tabsSubscription=Ie.EMPTY;_tabLabelSubscription=Ie.EMPTY;color;get fitInkBarToContent(){return this._fitInkBarToContent;}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck();}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex;}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e;}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration;}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n;}_animationDuration;get contentTabIndex(){return this._contentTabIndex;}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e;}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor;}set backgroundColor(e){if(!LQ)throw new Error("mat-tab-group background color must be set through the Sass theming API");let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e;}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new z();focusChange=new z();animationDone=new z();selectedTabChange=new z(!0);_groupId;_isServer=!h(We).isBrowser;constructor(){let e=h(PQ,{optional:!0});this._groupId=h(pt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null;}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px";}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="");});}this._tabs.forEach((n,r)=>{n.position=r-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex);}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck());}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),r;for(let o=0;o<n.length;o++)if(n[o].isActive){this._indexToSelect=this._selectedIndex=o,this._lastFocusedTabIndex=null,r=n[o];break;}!r&&n[e]&&Promise.resolve().then(()=>{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e));});}this._changeDetectorRef.markForCheck();});}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(yt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges();});}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe();}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab();}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination();}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e);}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e));}_createChangeEvent(e){let n=new SC();return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n;}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=qt(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck());}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0));}_getTabLabelId(e){return`${this._groupId}-label-${e}`;}_getTabContentId(e){return`${this._groupId}-content-${e}`;}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px");}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit();}_handleClick(e,n,r){n.focusIndex=r,e.disabled||(this.selectedIndex=r);}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1;}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,r,o){if(n&1&&Fe(o,AC,5),n&2){let a;F(a=N())&&(r._allTabs=a);}},viewQuery:function(n,r){if(n&1&&(Y(_Q,5),Y(bQ,5)),n&2){let o;F(o=N())&&(r._tabBodyWrapper=o.first),F(o=N())&&(r._tabHeader=o.first);}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,r){n&2&&(oe("mat-align-tabs",r.alignTabs),Dt("mat-"+(r.color||"primary")),qn("--mat-tab-animation-duration",r.animationDuration),ne("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs));},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Q],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Q],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Q],selectedIndex:[2,"selectedIndex","selectedIndex",at],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",at],disablePagination:[2,"disablePagination","disablePagination",Q],disableRipple:[2,"disableRipple","disableRipple",Q],preserveContent:[2,"preserveContent","preserveContent",Q],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[be([{provide:SP,useExisting:t}])],ngContentSelectors:TC,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(n,r){if(n&1){let o=W();Pe(),m(0,"mat-tab-header",3,0),S("indexFocused",function(s){return k(o),M(r._focusChanged(s));})("selectFocusedIndex",function(s){return k(o),M(r.selectedIndex=s);}),ci(2,wQ,8,17,"div",4,Da),u(),T(4,CQ,1,0),m(5,"div",5,1),ci(7,DQ,1,13,"mat-tab-body",6,Da),u();}n&2&&(y("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),d(2),di(r._tabs),d(2),K(r._isServer?4:-1),d(),ne("_mat-animation-noopable",r._animationMode==="NoopAnimations"),d(2),di(r._tabs));},dependencies:[OQ,TP,i2,Li,Si,AP],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:v��ar(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});}return t;})(),SC=class{index;tab;};var RP=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,fe]});}return t;})();var zQ=["mysubmit"],OP=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.D3Size=zg,this.D3Quality=Bg,this.D3Style=jg,this.selectedIndex=1,this.countTxt="Compter",this.sizeTxt="Taille",this.qualityTxt="Qualit\xE9",this.styleTxt="Style",this.closeTxt="Fermer",this.submitTxt="Soumettre",this.d3SizeValue=zg._1024x1024,this.d3QualityValue=Bg.standard,this.d3StyleValue=jg.vivid,this.imageCount="1",this.imageSize="512x512";}ngAfterViewInit(){console.log("submit",this.submitButton),console.log("tabs",this.tabs),setTimeout(()=>{this.submitButton.focus();},1e3);}createImages(){console.log("active tab",this.tabs.selectedIndex);let e={};this.tabs.selectedIndex===0?e={count:1,size:this.d3SizeValue,quality:this.d3QualityValue,style:this.d3StyleValue}:e={count:this.imageCount,size:this.imageSize},this.dialogRef.close(e);}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["image-create-dialog"]],viewQuery:function(n,r){if(n&1&&(Y(v0,5),Y(zQ,5)),n&2){let o;F(o=N())&&(r.tabs=o.first),F(o=N())&&(r.submitButton=o.first);}},decls:68,vars:28,consts:[["mysubmit",""],[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-stretch-tabs","false","mat-align-tabs","center"],["label","Dalle-3"],[2,"margin-right","10px"],[3,"valueChange","value"],[3,"value"],["label","Dalle-2"],["id","image-count",2,"margin-right","10px"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["id","image-size"],["value","256x256"],["value","512x512"],["value","1024x1024"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""],["id","mysubmitbutton","mat-button","",3,"click"]],template:function(n,r){if(n&1){let o=W();m(0,"div",1)(1,"h1",2),f(2),u(),m(3,"div",3)(4,"p"),f(5),u(),m(6,"p"),f(7),u(),m(8,"mat-tab-group",4)(9,"mat-tab",5),D(10,"br"),m(11,"mat-form-field",6)(12,"mat-label"),f(13),u(),m(14,"mat-select",7),Rn("valueChange",function(s){return k(o),jn(r.d3SizeValue,s)||(r.d3SizeValue=s),M(s);}),m(15,"mat-option",8),f(16),u(),m(17,"mat-option",8),f(18),u(),m(19,"mat-option",8),f(20),u()()(),m(21,"mat-form-field",6)(22,"mat-label"),f(23),u(),m(24,"mat-select",7),Rn("valueChange",function(s){return k(o),jn(r.d3QualityValue,s)||(r.d3QualityValue=s),M(s);}),m(25,"mat-option",8),f(26),u(),m(27,"mat-option",8),f(28,"high definition"),u()()(),m(29,"mat-form-field",6)(30,"mat-label"),f(31),u(),m(32,"mat-select",7),Rn("valueChange",function(s){return k(o),jn(r.d3StyleValue,s)||(r.d3StyleValue=s),M(s);}),m(33,"mat-option",8),f(34),u(),m(35,"mat-option",8),f(36),u()()()(),m(37,"mat-tab",9)(38,"mat-form-field",10)(39,"mat-label"),f(40),u(),m(41,"mat-select",7),Rn("valueChange",function(s){return k(o),jn(r.imageCount,s)||(r.imageCount=s),M(s);}),m(42,"mat-option",11),f(43,"1"),u(),m(44,"mat-option",12),f(45,"2"),u(),m(46,"mat-option",13),f(47,"3"),u(),m(48,"mat-option",14),f(49,"4"),u(),m(50,"mat-option",15),f(51,"5"),u()()(),m(52,"mat-form-field",16)(53,"mat-label"),f(54),u(),m(55,"mat-select",7),Rn("valueChange",function(s){return k(o),jn(r.imageSize,s)||(r.imageSize=s),M(s);}),m(56,"mat-option",17),f(57,"256x256"),u(),m(58,"mat-option",18),f(59,"512x512"),u(),m(60,"mat-option",19),f(61,"1024x1024"),u()()()()()(),m(62,"div",20)(63,"button",21),f(64),u(),m(65,"button",22,0),S("click",function(){return k(o),M(r.createImages());}),f(67),u()()();}n&2&&(d(2),C(r.data.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(6),C(r.sizeTxt),d(),An("value",r.d3SizeValue),d(),G("value",r.D3Size._1024x1024),d(),C(r.D3Size._1024x1024),d(),G("value",r.D3Size._1792x1024),d(),C(r.D3Size._1792x1024),d(),G("value",r.D3Size._1024x1792),d(),C(r.D3Size._1024x1792),d(3),C(r.qualityTxt),d(),An("value",r.d3QualityValue),d(),G("value",r.D3Quality.standard),d(),C(r.D3Quality.standard),d(),G("value",r.D3Quality.hd),d(4),C(r.styleTxt),d(),An("value",r.d3StyleValue),d(),G("value",r.D3Style.vivid),d(),C(r.D3Style.vivid),d(),G("value",r.D3Style.natural),d(),C(r.D3Style.natural),d(4),C(r.countTxt),d(),An("value",r.imageCount),d(13),C(r.sizeTxt),d(),An("value",r.imageSize),d(9),C(r.closeTxt),d(3),P(" ",r.submitTxt," "));},dependencies:[H,_t,Mn,tn,cn,nn,ce,Me,Jo,Ft,Pt,ud,gs,RP,AC,v0],encapsulation:2});}}return t;})();var jQ=["input"],$Q=["label"],HQ=["*"],UQ=new R("mat-checkbox-default-options",{providedIn:"root",factory:FP});function FP(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1};}var Ti=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t;}(Ti||{}),qQ={provide:oo,useExisting:Bn(()=>y0),multi:!0},RC=class{source;checked;},PP=FP(),y0=(()=>{class t{_elementRef=h(ee);_changeDetectorRef=h(ge);_ngZone=h(le);_animationMode=h(mt,{optional:!0});_options=h(UQ,{optional:!0});focus(){this._inputElement.nativeElement.focus();}_createChangeEvent(e){let n=new RC();return n.source=this,n.checked=e,n;}_getAnimationTargetElement(){return this._inputElement?.nativeElement;}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`;}required;labelPosition="after";name=null;change=new z();indeterminateChange=new z();value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Ti.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){h(kt).load(Fn);let e=h(new ri("tabindex"),{optional:!0});this._options=this._options||PP,this.color=this._options.color||PP.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=h(pt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1;}ngOnChanges(e){e.required&&this._validatorChangeFn();}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate);}get checked(){return this._checked;}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck());}_checked=!1;get disabled(){return this._disabled;}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck());}_disabled=!1;get indeterminate(){return this._indeterminate;}set indeterminate(e){let n=e!=this._indeterminate;this._indeterminate=e,n&&(this._indeterminate?this._transitionCheckState(Ti.Indeterminate):this._transitionCheckState(this.checked?Ti.Checked:Ti.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate);}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled;}_onLabelTextChange(){this._changeDetectorRef.detectChanges();}writeValue(e){this.checked=!!e;}registerOnChange(e){this._controlValueAccessorChangeFn=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}validate(e){return this.required&&e.value!==!0?{required:!0}:null;}registerOnValidatorChange(e){this._validatorChangeFn=e;}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(!(n===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o);},1e3);});}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked);}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked);}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate);}),this._checked=!this._checked,this._transitionCheckState(this._checked?Ti.Checked:Ti.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate);}_onInteractionEvent(e){e.stopPropagation();}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck();});}_getAnimationClassForCheckStateTransition(e,n){if(this._animationMode==="NoopAnimations")return"";switch(e){case Ti.Init:if(n===Ti.Checked)return this._animationClasses.uncheckedToChecked;if(n==Ti.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Ti.Unchecked:return n===Ti.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Ti.Checked:return n===Ti.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Ti.Indeterminate:return n===Ti.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked;}return"";}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e);}_onInputClick(){this._handleInputClick();}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus();}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation();}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(n&1&&(Y(jQ,5),Y($Q,5)),n&2){let o;F(o=N())&&(r._inputElement=o.first),F(o=N())&&(r._labelElement=o.first);}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,r){n&2&&(Dn("id",r.id),oe("tabindex",null)("aria-label",null)("aria-labelledby",null),Dt(r.color?"mat-"+r.color:"mat-accent"),ne("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive));},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",Q],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",Q],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:at(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q],checked:[2,"checked","checked",Q],disabled:[2,"disabled","disabled",Q],indeterminate:[2,"indeterminate","indeterminate",Q]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[be([qQ,{provide:ao,useExisting:t,multi:!0}]),tt],ngContentSelectors:HQ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,r){if(n&1){let o=W();Pe(),m(0,"div",3),S("click",function(s){return k(o),M(r._preventBubblingFromLabel(s));}),m(1,"div",4,0)(3,"div",5),S("click",function(){return k(o),M(r._onTouchTargetClick());}),u(),m(4,"input",6,1),S("blur",function(){return k(o),M(r._onBlur());})("click",function(){return k(o),M(r._onInputClick());})("change",function(s){return k(o),M(r._onInteractionEvent(s));}),u(),D(6,"div",7),m(7,"div",8),wn(),m(8,"svg",9),D(9,"path",10),u(),ol(),D(10,"div",11),u(),D(11,"div",12),u(),m(12,"label",13,2),ue(14),u()();}if(n&2){let o=Ke(2);y("labelPosition",r.labelPosition),d(4),ne("mdc-checkbox--selected",r.checked),y("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),oe("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),d(7),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),d(),y("for",r.inputId);}},dependencies:[Li,og],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:de��fault;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});}return t;})();var x0=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[y0,fe,fe]});}return t;})();var GQ=["*"];function QQ(t,i){t&1&&ue(0);}var OC=(()=>{class t{_elementRef=h(ee);constructor(){}focus(){this._elementRef.nativeElement.focus();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});}return t;})(),PC=(()=>{class t{template=h(ot);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkStepLabel",""]]});}return t;})();var Va={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},YQ=new R("STEPPER_GLOBAL_OPTIONS"),w0=(()=>{class t{_stepperOptions;_stepper=h(yd);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new z();label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride;}set completed(e){this._completedOverride=e;}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted;}get hasError(){return this._customError==null?this._getDefaultError():this._customError;}set hasError(e){this._customError=e;}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted;}constructor(){let e=h(YQ,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1;}select(){this._stepper.selected=this;}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset());}ngOnChanges(){this._stepper._stateChanged();}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this));}_showError(){return this._stepperOptions.showError??this._customError!=null;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["cdk-step"]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,PC,5),Fe(o,pi,5)),n&2){let a;F(a=N())&&(r.stepLabel=a.first),F(a=N())&&(r._childForms=a);}},viewQuery:function(n,r){if(n&1&&Y(ot,7),n&2){let o;F(o=N())&&(r.content=o.first);}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Q],optional:[2,"optional","optional",Q],completed:[2,"completed","completed",Q],hasError:[2,"hasError","hasError",Q]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[tt],ngContentSelectors:GQ,decls:1,vars:0,template:function(n,r){n&1&&(Pe(),T(0,QQ,1,0,"ng-template"));},encapsulation:2,changeDetection:0});}return t;})(),yd=(()=>{class t{_dir=h(Jt,{optional:!0});_changeDetectorRef=h(ge);_elementRef=h(ee);_destroyed=new U();_keyManager;_steps;steps=new oi();_stepHeader;_sortedHeaders=new oi();linear=!1;get selectedIndex(){return this._selectedIndex;}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e;}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0;}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1;}selectionChange=new z();selectedIndexChange=new z();_groupId=h(pt).getId("cdk-stepper-");get orientation(){return this._orientation;}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical");}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(yt(this._steps),Ae(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(n=>n._stepper===this)),this.steps.notifyOnChanges();});}ngAfterViewInit(){this._stepHeader.changes.pipe(yt(this._stepHeader),Ae(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((n,r)=>n._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges();}),this._keyManager=new Oo(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:se()).pipe(yt(this._layoutDirection()),Ae(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0));}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0);}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete();}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1);}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0);}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged();}_getStepLabelId(e){return`${this._groupId}-label-${e}`;}_getStepContentId(e){return`${this._groupId}-content-${e}`;}_stateChanged(){this._changeDetectorRef.markForCheck();}_getAnimationDirection(e){let n=e-this._selectedIndex;return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current";}_getIndicatorType(e,n=Va.NUMBER){let r=this.steps.toArray()[e],o=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,o):this._getGuidelineLogic(r,o,n);}_getDefaultIndicatorLogic(e,n){return e._showError()&&e.hasError&&!n?Va.ERROR:!e.completed||n?Va.NUMBER:e.editable?Va.EDIT:Va.DONE;}_getGuidelineLogic(e,n,r=Va.NUMBER){return e._showError()&&e.hasError&&!n?Va.ERROR:e.completed&&!n?Va.DONE:e.completed&&n?r:e.editable&&n?Va.EDIT:r;}_isCurrentStep(e){return this._selectedIndex===e;}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex;}_updateSelectedItemIndex(e){let n=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:n[e],previouslySelectedStep:n[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged();}_onKeydown(e){let n=pn(e),r=e.keyCode,o=this._keyManager;o.activeItemIndex!=null&&!n&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o.setFocusOrigin("keyboard").onKeydown(e);}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(n=>{let r=n.stepControl;return(r?r.invalid||r.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride;}):!1;}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_containsFocus(){let e=this._elementRef.nativeElement,n=gl();return e===n||e.contains(n);}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length);}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,w0,5),Fe(o,OC,5)),n&2){let a;F(a=N())&&(r._steps=a),F(a=N())&&(r._stepHeader=a);}},inputs:{linear:[2,"linear","linear",Q],selectedIndex:[2,"selectedIndex","selectedIndex",at],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});}return t;})(),NP=(()=>{class t{_stepper=h(yd);type="submit";constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,r){n&1&&S("click",function(){return r._stepper.next();}),n&2&&Dn("type",r.type);},inputs:{type:"type"}});}return t;})(),LP=(()=>{class t{_stepper=h(yd);type="button";constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,r){n&1&&S("click",function(){return r._stepper.previous();}),n&2&&Dn("type",r.type);},inputs:{type:"type"}});}return t;})(),VP=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[Po]});}return t;})();function ZQ(t,i){if(t&1&&Gt(0,2),t&2){let e=x();y("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext());}}function KQ(t,i){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=x(2);d(),C(e._getDefaultTextForState(e.state));}}function XQ(t,i){if(t&1&&(m(0,"span",8),f(1),u()),t&2){let e=x(3);d(),C(e._intl.completedLabel);}}function JQ(t,i){if(t&1&&(m(0,"span",8),f(1),u()),t&2){let e=x(3);d(),C(e._intl.editableLabel);}}function eY(t,i){if(t&1&&(T(0,XQ,2,1,"span",8)(1,JQ,2,1,"span",8),m(2,"mat-icon",7),f(3),u()),t&2){let e=x(2);K(e.state==="done"?0:e.state==="edit"?1:-1),d(3),C(e._getDefaultTextForState(e.state));}}function tY(t,i){if(t&1&&T(0,KQ,2,1,"span",7)(1,eY,4,2),t&2){let e,n=x();K((e=n.state)==="number"?0:1);}}function nY(t,i){t&1&&(m(0,"div",4),Gt(1,9),u()),t&2&&(d(),y("ngTemplateOutlet",i.template));}function iY(t,i){if(t&1&&(m(0,"div",4),f(1),u()),t&2){let e=x();d(),C(e.label);}}function rY(t,i){if(t&1&&(m(0,"div",5),f(1),u()),t&2){let e=x();d(),C(e._intl.optionalLabel);}}function oY(t,i){if(t&1&&(m(0,"div",6),f(1),u()),t&2){let e=x();d(),C(e.errorMessage);}}var BP=["*"];function aY(t,i){}function sY(t,i){if(t&1&&(ue(0),T(1,aY,0,0,"ng-template",0)),t&2){let e=x();d(),y("cdkPortalOutlet",e._portal);}}var jP=(t,i)=>({step:t,i}),$P=t=>({animationDuration:t}),HP=(t,i)=>({value:t,params:i});function lY(t,i){t&1&&ue(0);}function cY(t,i){t&1&&D(0,"div",6);}function dY(t,i){if(t&1&&(Gt(0,5),T(1,cY,1,0,"div",6)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;x(2);let o=Ke(4);y("ngTemplateOutlet",o)("ngTemplateOutletContext",Kr(3,jP,e,n)),d(),K(n!==r-1?1:-1);}}function uY(t,i){if(t&1){let e=W();m(0,"div",7),S("@horizontalStepTransition.done",function(r){k(e);let o=x(2);return M(o._animationDone.next(r));}),Gt(1,8),u();}if(t&2){let e=i.$implicit,n=i.$index,r=x(2);ne("mat-horizontal-stepper-content-inactive",r.selectedIndex!==n),y("@horizontalStepTransition",Kr(8,HP,r._getAnimationDirection(n),Be(6,$P,r._getAnimationDuration())))("id",r._getStepContentId(n)),oe("aria-labelledby",r._getStepLabelId(n)),d(),y("ngTemplateOutlet",e.content);}}function mY(t,i){if(t&1&&(m(0,"div",1)(1,"div",2),ci(2,dY,2,6,null,null,Da),u(),m(4,"div",3),ci(5,uY,2,11,"div",4,Da),u()()),t&2){let e=x();d(2),di(e.steps),d(3),di(e.steps);}}function pY(t,i){if(t&1){let e=W();m(0,"div",9),Gt(1,5),m(2,"div",10)(3,"div",11),S("@verticalStepTransition.done",function(r){k(e);let o=x(2);return M(o._animationDone.next(r));}),m(4,"div",12),Gt(5,8),u()()()();}if(t&2){let e=i.$implicit,n=i.$index,r=i.$count,o=x(2),a=Ke(4);d(),y("ngTemplateOutlet",a)("ngTemplateOutletContext",Kr(10,jP,e,n)),d(),ne("mat-stepper-vertical-line",n!==r-1),d(),ne("mat-vertical-stepper-content-inactive",o.selectedIndex!==n),y("@verticalStepTransition",Kr(15,HP,o._getAnimationDirection(n),Be(13,$P,o._getAnimationDuration())))("id",o._getStepContentId(n)),oe("aria-labelledby",o._getStepLabelId(n)),d(2),y("ngTemplateOutlet",e.content);}}function hY(t,i){if(t&1&&ci(0,pY,6,18,"div",9,Da),t&2){let e=x();di(e.steps);}}function fY(t,i){if(t&1){let e=W();m(0,"mat-step-header",13),S("click",function(){let r=k(e).step;return M(r.select());})("keydown",function(r){k(e);let o=x();return M(o._onKeydown(r));}),u();}if(t&2){let e=i.step,n=i.i,r=x();ne("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),y("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===n)("active",r._stepIsNavigable(n,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(n,e))("color",e.color||r.color),oe("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(n,e)?null:!0);}}var Ml=(()=>{class t extends PC{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["","matStepLabel",""]],features:[q]});}return t;})(),C0=(()=>{class t{changes=new U();optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function gY(t){return t||new C0();}var _Y={provide:C0,deps:[[new Yr(),new va(),C0]],useFactory:gY},FC=(()=>{class t extends OC{_intl=h(C0);_focusMonitor=h($n);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=h(kt);e.load(Fn),e.load(_l);let n=h(ge);this._intlSubscription=this._intl.changes.subscribe(()=>n.markForCheck());}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0);}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef);}focus(e,n){e?this._focusMonitor.focusVia(this._elementRef,e,n):this._elementRef.nativeElement.focus(n);}_stringLabel(){return this.label instanceof Ml?null:this.label;}_templateLabel(){return this.label instanceof Ml?this.label:null;}_getHostElement(){return this._elementRef.nativeElement;}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional};}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(n,r){n&2&&Dt("mat-"+(r.color||"primary"));},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[q],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,r){if(n&1&&(D(0,"div",0),m(1,"div")(2,"div",1),T(3,ZQ,1,2,"ng-container",2)(4,tY,2,1),u()(),m(5,"div",3),T(6,nY,2,1,"div",4)(7,iY,2,1,"div",4)(8,rY,2,1,"div",5)(9,oY,2,1,"div",6),u()),n&2){let o;y("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),d(),Cr("mat-step-icon-state-",r.state," mat-step-icon"),ne("mat-step-icon-selected",r.selected),d(2),K(r.iconOverrides&&r.iconOverrides[r.state]?3:4),d(2),ne("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),d(),K((o=r._templateLabel())?6:r._stringLabel()?7:-1,o),d(2),K(r.optional&&r.state!="error"?8:-1),d(),K(r.state==="error"?9:-1);}},dependencies:[Li,dl,Re],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}'],encapsulation:2,changeDetection:0});}return t;})(),UP="500ms",qP="225ms",zP={horizontalStepTransition:kn("horizontalStepTransition",[Mt("previous",Ze({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Mt("current",Ze({transform:"none",visibility:"inherit"})),Mt("next",Ze({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Zt("* => *",hw([en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),dm("@*",cm(),{optional:!0})]),{params:{animationDuration:UP}})]),verticalStepTransition:kn("verticalStepTransition",[Mt("previous",Ze({height:"0px",visibility:"hidden"})),Mt("next",Ze({height:"0px",visibility:"hidden"})),Mt("current",Ze({height:"*",visibility:"inherit"})),Zt("* <=> current",hw([en("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),dm("@*",cm(),{optional:!0})]),{params:{animationDuration:qP}})])},bY=(()=>{class t{templateRef=h(ot);name;constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});}return t;})(),vY=(()=>{class t{_template=h(ot);constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["ng-template","matStepContent",""]]});}return t;})(),Vm=(()=>{class t extends w0{_errorStateMatcher=h(fs,{skipSelf:!0});_viewContainerRef=h(Ct);_isSelected=Ie.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Xt(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),yt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Yn(this._lazyContent._template,this._viewContainerRef));});}ngOnDestroy(){this._isSelected.unsubscribe();}isErrorState(e,n){let r=this._errorStateMatcher.isErrorState(e,n),o=!!(e&&e.invalid&&this.interacted);return r||o;}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-step"]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,Ml,5),Fe(o,vY,5)),n&2){let a;F(a=N())&&(r.stepLabel=a.first),F(a=N())&&(r._lazyContent=a.first);}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[be([{provide:fs,useExisting:t},{provide:w0,useExisting:t}]),q],ngContentSelectors:BP,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,r){n&1&&(Pe(),T(0,sY,2,1,"ng-template"));},dependencies:[Si],encapsulation:2,changeDetection:0});}return t;})(),zm=(()=>{class t extends yd{_stepHeader=void 0;_steps=void 0;steps=new oi();_icons;animationDone=new z();disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};_animationDone=new U();get animationDuration(){return this._animationDuration;}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e;}_animationDuration="";_isServer=!h(We).isBrowser;constructor(){super();let n=h(ee).nativeElement.nodeName.toLowerCase();this.orientation=n==="mat-vertical-stepper"?"vertical":"horizontal";}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:n})=>this._iconOverrides[e]=n),this.steps.changes.pipe(Ae(this._destroyed)).subscribe(()=>{this._stateChanged();}),this._animationDone.pipe(Ae(this._destroyed)).subscribe(e=>{e.toState==="current"&&this.animationDone.emit();});}_stepIsNavigable(e,n){return n.completed||this.selectedIndex===e||!this.linear;}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?UP:qP;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,Vm,5),Fe(o,bY,5)),n&2){let a;F(a=N())&&(r._steps=a),F(a=N())&&(r._icons=a);}},viewQuery:function(n,r){if(n&1&&Y(FC,5),n&2){let o;F(o=N())&&(r._stepHeader=o);}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(n,r){n&2&&(oe("aria-orientation",r.orientation),ne("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom"));},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[be([{provide:yd,useExisting:t}]),q],ngContentSelectors:BP,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(n,r){if(n&1&&(Pe(),T(0,lY,1,0)(1,mY,7,0,"div",1)(2,hY,2,0)(3,fY,1,23,"ng-template",null,0,Ir)),n&2){let o;K(r._isServer?0:-1),d(),K((o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1);}},dependencies:[dl,FC],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[zP.horizontalStepTransition,zP.verticalStepTransition]},changeDetection:0});}return t;})(),D0=(()=>{class t extends NP{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,r){n&2&&Dn("type",r.type);},features:[q]});}return t;})(),E0=(()=>{class t extends LP{static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,r){n&2&&Dn("type",r.type);},features:[q]});}return t;})(),I0=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[_Y,fs],imports:[fe,mr,VP,Ee,no,zm,FC,fe]});}return t;})();function yY(t,i){if(t&1&&f(0),t&2){let e=x();C(e.step3Txt);}}function xY(t,i){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=x();d(),C(e.confirmEditTxt);}}function wY(t,i){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=x();d(),C(e.confirmCreateTxt);}}function CY(t,i){if(t&1&&(m(0,"p",39),f(1),u()),t&2){let e=x();d(),C(e.error1);}}function DY(t,i){if(t&1&&(m(0,"p",39),f(1),u()),t&2){let e=x();d(),C(e.error2);}}var GP=(()=>{class t{constructor(e,n,��r){this.service=e,this.formBuilder=n,this.step1Txt="Apparence",this.step2Txt="Caract\xE9ristiques",this.step3Txt="Confirmation",this.nextTxt="Suivant",this.backTxt="Retour",this.confirmTxt="Confirmer",this.requiredTxt="Champ obligatoire",this.minLengthTxt="Le champ a une longueur minimale de ",this.submitTxt="Soumettre",this.messageTxt="Message initial de l'utilisateur",this.messageHintTxt="Ex. Combien de pouces dans un pied ?",this.messageHintLabelTxt="Indice pour le message initial de l'utilisateur",this.messageHintLabelHintTxt="Entrez votre question ici",this.instructionsTxt="Instructions",this.instructionsHintTxt="Instructions pour la conversation.",this.appearanceTxt="Apparence",this.cardIdTxt="mot-cl\xE9",this.cardIdTipTxt="Un nom court pour l'URL (utilisez des tirets et des minuscules).",this.cardTitleTxt="Nom",this.cardTitleTipTxt="Le nom est utilis\xE9 sur les tableaux de bord et la navigation.",this.cardSubtitleTxt="Cat\xE9gorie",this.cardSubtitleTipTxt="La cat\xE9gorie est utilis\xE9e sur les tableaux de bord et ailleurs.",this.cardDescriptionTxt="Description",this.cardDescriptionTipTxt="La description est principalement utilis\xE9e sur le tableau de bord et la page de d\xE9tails du widget.",this.cardHelpTxt="Aide",this.cardHelpTipTxt="Aide du widget.",this.cardIconTxt="Ic\xF4ne",this.cardIconTipTxt="Ic\xF4ne du widget",this.cardEnabledTxt="Activ\xE9",this.cardEnabledTipTxt="Si le widget est activ\xE9 ou non.",this.cardHiddenTxt="Cach\xE9",this.cardHiddenTipTxt="Si le widget est cach\xE9 ou non.",this.featuresTxt="Caract\xE9ristiques",this.promptTxt="Invite",this.promptTipTxt="Permettre \xE0 l'utilisateur de r\xE9pondre avec une saisie de texte.",this.newTxt="Nouveau",this.newTipTxt="Permettre \xE0 l'utilisateur de cr\xE9er une nouvelle conversation.",this.saveTxt="Enregistrer",this.saveTipTxt="Permettre \xE0 l'utilisateur de sauvegarder la conversation dans un CMS.",this.clearTxt="Effacer",this.clearTipTxt="Permettre \xE0 l'utilisateur de supprimer l'invite actuelle.",this.shareTxt="Partager",this.shareTipTxt="Partagez ce contenu avec les autres.",this.sendTxt="Envoyer",this.sendTipTxt="Permettre \xE0 l'utilisateur d'envoyer des r\xE9ponses.",this.refreshTxt="Rafra\xEEchir",this.refreshTipTxt="Permettre \xE0 l'utilisateur de rafra\xEEchir la conversation.",this.copyToClipboardTxt="Copier dans le presse-papiers",this.copyToClipboardTipTxt="Permettre \xE0 l'utilisateur de copier des parties de la conversation dans leur presse-papiers.",this.copyToPromptTxt="Copier dans l'invite",this.copyToPromptTipTxt="Permettre \xE0 l'utilisateur de copier des parties de la conversation dans l'invite actuelle.",this.createImageFromTextTxt="Cr\xE9er une image \xE0 partir du texte",this.createImageFromTextTipTxt="Permettre \xE0 l'utilisateur de cr\xE9er une image \xE0 partir de parties de la conversation.",this.streamedResponsesTxt="R\xE9ponses en continu",this.streamedResponsesTipTxt="Recevoir les jetons de r\xE9ponses de l'IA au fur et \xE0 mesure qu'ils sont produits par le LLM.",this.autoSendTxt="Envoi automatique",this.autoSendEnabledTxt="Activ\xE9",this.autoSendEnabledTipTxt="Message initial envoy\xE9 automatiquement.",this.addToViewerTxt="Ajouter au visualiseur",this.addToViewerTipTxt="Afficher le message initial dans le visualiseur.",this.addUserNameTxt="Ajouter le nom de l'utilisateur",this.addUserNameTipTxt="Ajouter le nom d'utilisateur au message initial.",this.introTxt="Introduction",this.introTipTxt="Corps du message initial",this.promptsTxt="Instructions",this.promptsEnabledTxt="Activ\xE9",this.promptsEnabledTipTxt="Permettre \xE0 l'utilisateur d'acc\xE9der aux invites enregistr\xE9es.",this.promptsImagePromptTxt="Invite d'image",this.promptsImagePromptTipTxt="L'utilisateur peut r\xE9pondre avec une image.",this.confirmCreateTxt="Cr\xE9er un nouveau widget ?",this.confirmEditTxt="Confirmer les modifications du widget ?",this.editConfig=ct(),this.configSaveEvent=new z(),this.widgetData=this.service.createDefaultWidgetConfig(),this.appearanceFormError="Le formulaire d'apparence n'est pas valide",this.featuresFormError="Le formulaire de fonctionnalit\xE9s n'est pas valide",this.error1="",this.error2="",this.stepperOrientation=r.observe("(min-width: 800px)").pipe(me(({matches:o})=>o?"horizontal":"vertical"));}ngOnInit(){let e=this.editConfig();console.log("edit config",e),e?this.widgetData=e:(console.log("default widget data: ",this.widgetData),this.widgetData.message="",this.widgetData.messageHint="",this.widgetData.instructions="You are a helpful assistant.",this.widgetData.features.streamedResponses=!0,this.widgetData.features.clear=!0,this.widgetData.features.save=!0,this.widgetData.card={id:"",title:"",subtitle:"Widget de chatbot",description:"",help:"",icon:"auto_awesome",quickLinks:[],link:{name:"Titre du lien d'action",href:"#"},weight:10,enabled:!0,hidden:!1,dynamic:!0}),this.buildForm();}buildForm(){this.firstFormGroup=this.formBuilder.group({id:[this.widgetData.card?.id],title:[this.widgetData.card?.title,[vt.required]],subtitle:[this.widgetData.card?.subtitle,[vt.required]],description:[this.widgetData.card?.description,[vt.required]],help:[this.widgetData.card?.help,[vt.required]],icon:[this.widgetData.card?.icon,[vt.required,vt.minLength(3)]],message:[this.widgetData.message],messageHint:[this.widgetData.messageHint],instructions:this.widgetData.instructions||"",enabled:this.widgetData.card?.enabled,hidden:this.widgetData.card?.hidden}),this.secondFormGroup=this.formBuilder.group({prompt:this.widgetData.features.prompt,new:this.widgetData.features.new,save:this.widgetData.features.save,clear:this.widgetData.features.clear,share:this.widgetData.features.share,send:this.widgetData.features.send,refresh:this.widgetData.features.refresh,copyToClipboard:this.widgetData.features.copyToClipboard,copyToPrompt:this.widgetData.features.copyToPrompt,streamedResponses:this.widgetData.features.streamedResponses,createImageFromText:this.widgetData.features.createImageFromText,autoSend:this.formBuilder.group({enabled:this.widgetData.features.autoSend.enabled,addToViewer:this.widgetData.features.autoSend.addToViewer,addUserName:this.widgetData.features.autoSend.addUserName,intro:this.widgetData.features.autoSend.intro}),prompts:this.formBuilder.group({enabled:this.widgetData.features.prompts.enabled,imagePrompt:this.widgetData.features.prompts.imagePrompt}),images:this.formBuilder.group({imageCount:this.widgetData.features.imageCount,imageSize:this.widgetData.features.imageSize,uploadImages:this.widgetData.features.uploadImages,uploadImagesImageSize:this.widgetData.features.uploadImagesImageSize,downloadImages:this.widgetData.features.downloadImages,saveImagePrompt:this.widgetData.features.saveImagePrompt})});}isValid(){return!1;}showSubmitErrors(){this.error1=this.firstFormGroup.valid?"":this.appearanceFormError,this.error2=this.secondFormGroup.valid?"":this.featuresFormError;}submit(){if(console.log("submit form 1: ",this.firstFormGroup),console.log("submit form 2: ",this.secondFormGroup),this.showSubmitErrors(),!this.firstFormGroup.valid||!this.secondFormGroup.valid){console.log("form is invalid");return;}let e=this.editConfig(),n={storageId:e?e.storageId:void 0,endpoint:te.unknown,messageType:"Message de Chat",message:this.firstFormGroup.get("message")?.value,messageHint:this.firstFormGroup.get("messageHint")?.value,instructions:this.firstFormGroup.get("instructions")?.value,card:{id:this.firstFormGroup.get("id")?.value,title:this.firstFormGroup.get("title")?.value,subtitle:this.firstFormGroup.get("subtitle")?.value,description:this.firstFormGroup.get("description")?.value,help:this.firstFormGroup.get("help")?.value,icon:this.firstFormGroup.get("icon")?.value,quickLinks:[],link:{name:"Titre du lien d'action",href:"#"},weight:10,enabled:this.firstFormGroup.get("enabled")?.value,hidden:this.firstFormGroup.get("hidden")?.value,dynamic:!0},features:{prompt:this.secondFormGroup.get("prompt")?.value,new:this.secondFormGroup.get("new")?.value,save:this.secondFormGroup.get("save")?.value,clear:this.secondFormGroup.get("clear")?.value,share:this.secondFormGroup.get("share")?.value,send:this.secondFormGroup.get("send")?.value,refresh:this.secondFormGroup.get("refresh")?.value,copyToClipboard:this.secondFormGroup.get("copyToClipboard")?.value,copyToPrompt:this.secondFormGroup.get("copyToPrompt")?.value,streamedResponses:this.secondFormGroup.get("streamedResponses")?.value,createImageFromText:this.secondFormGroup.get("createImageFromText")?.value,autoSend:{enabled:this.secondFormGroup.get("autoSend.enabled")?.value,addToViewer:this.secondFormGroup.get("autoSend.addToViewer")?.value,addUserName:this.secondFormGroup.get("autoSend.addUserName")?.value,intro:this.secondFormGroup.get("autoSend.intro")?.value},prompts:{enabled:this.secondFormGroup.get("prompts.enabled")?.value,imagePrompt:this.secondFormGroup.get("prompts.imagePrompt")?.value},imageCount:this.secondFormGroup.get("images.imageCount")?.value,imageSize:this.secondFormGroup.get("images.imageSize")?.value,uploadImages:this.secondFormGroup.get("images.uploadImages")?.value,uploadImagesImageSize:this.secondFormGroup.get("images.uploadImagesImageSize")?.value,downloadImages:this.secondFormGroup.get("images.downloadImages")?.value,saveImagePrompt:this.secondFormGroup.get("images.saveImagePrompt")?.value}};console.log("widget config: ",n),this.configSaveEvent.emit(n);}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(Es),w(hs));};}static{this.ɵcmp=E({type:t,selectors:[["cb-dynamic-widget"]],inputs:{editConfig:[1,"editConfig"]},outputs:{configSaveEvent:"configSaveEvent"},decls:117,vars:69,consts:[[1,"example-stepper",3,"orientation"],[3,"stepControl","label"],[3,"formGroup"],[1,"widget-field","title-widget"],["type","text","matInput","","name","title","formControlName","title",3,"placeholder"],[1,"widget-field"],["type","text","matInput","","name","subtitle","formControlName","subtitle",3,"placeholder"],["type","text","matInput","","name","description","formControlName","description",3,"placeholder"],["type","text","matInput","","name","help","formControlName","help",3,"placeholder"],["type","text","matInput","","name","icon","formControlName","icon",3,"placeholder"],[1,"widget-field-wrapper"],["matInput","","name","message","formControlName","message",3,"placeholder"],["type","text","matInput","","name","messageHint","formControlName","messageHint",3,"placeholder"],["matInput","","name","instructions","formControlName","instructions",3,"placeholder"],["mat-raised-button","","matStepperNext",""],[1,"features-container"],[1,"features"],["formControlName","prompt",3,"matTooltip"],["formControlName","new",3,"matTooltip"],["formControlName","save",3,"matTooltip"],["formControlName","clear",3,"matTooltip"],["formControlName","share",3,"matTooltip"],["formControlName","send",3,"matTooltip"],["formControlName","refresh",3,"matTooltip"],["formControlName","copyToClipboard",3,"matTooltip"],["formControlName","copyToPrompt",3,"matTooltip"],["formControlName","streamedResponses",3,"matTooltip"],["formControlName","createImageFromText",3,"matTooltip"],["formGroupName","prompts",1,"prompts"],[1,"label"],["formControlName","enabled",3,"matTooltip"],["formControlName","imagePrompt",3,"matTooltip"],["formGroupName","autoSend",1,"autosend"],["formControlName","addToViewer",3,"matTooltip"],["formControlName","addUserName",3,"matTooltip"],["matInput","","name","intro","formControlName","intro",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],["matStepLabel",""],[1,"section-three"],[1,"validation-error"],["mat-raised-button","",3,"click"]],template:function(n,r){n&1&&(m(0,"mat-stepper",0),as(1,"async"),m(2,"mat-step",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),f(6),u(),D(7,"input",4),u(),m(8,"mat-form-field",5)(9,"mat-label"),f(10),u(),D(11,"input",6),u(),m(12,"mat-form-field",5)(13,"mat-label"),f(14),u(),D(15,"input",7),u(),m(16,"mat-form-field",5)(17,"mat-label"),f(18),u(),D(19,"input",8),u(),m(20,"mat-form-field",5)(21,"mat-label"),f(22),u(),D(23,"input",9),u(),m(24,"div",10)(25,"mat-form-field",5)(26,"mat-label"),f(27),u(),D(28,"textarea",11),u()(),m(29,"div",10)(30,"mat-form-field",5)(31,"mat-label"),f(32),u(),D(33,"input",12),u()(),m(34,"div",10)(35,"mat-form-field",5)(36,"mat-label"),f(37),u(),D(38,"textarea",13),u()(),m(39,"div")(40,"button",14),f(41),u()()()(),m(42,"mat-step",1)(43,"form",2)(44,"section")(45,"div",15)(46,"section",16)(47,"span")(48,"mat-checkbox",17),f(49),u()(),m(50,"span")(51,"mat-checkbox",18),f(52),u()(),m(53,"span")(54,"mat-checkbox",19),f(55),u()(),m(56,"span")(57,"mat-checkbox",20),f(58),u()(),m(59,"span")(60,"mat-checkbox",21),f(61),u()(),m(62,"span")(63,"mat-checkbox",22),f(64),u()(),m(65,"span")(66,"mat-checkbox",23),f(67),u()(),m(68,"span")(69,"mat-checkbox",24),f(70),u()(),m(71,"span")(72,"mat-checkbox",25),f(73),u()(),m(74,"span")(75,"mat-checkbox",26),f(76),u()(),m(77,"span")(78,"mat-checkbox",27),f(79),u()()(),m(80,"section",28)(81,"span",29),f(82),u(),m(83,"mat-checkbox",30),f(84),u(),m(85,"mat-checkbox",31),f(86),u()(),m(87,"section",32)(88,"span",29),f(89),u(),m(90,"mat-checkbox",30),f(91),u(),m(92,"mat-checkbox",33),f(93),u(),m(94,"mat-checkbox",34),f(95),u(),m(96,"mat-form-field",5)(97,"mat-label"),f(98),u(),D(99,"textarea",35),u()()()(),m(100,"div")(101,"button",36),f(102),u(),m(103,"button",14),f(104),u()()()(),m(105,"mat-step"),T(106,yY,1,1,"ng-template",37),m(107,"section",38),T(108,xY,2,1,"div")(109,wY,2,1,"div")(110,CY,2,1,"p",39)(111,DY,2,1,"p",39),u(),m(112,"div")(113,"button",36),f(114),u(),m(115,"button",40),S("click",function(){return r.submit();}),f(116),u()()()()),n&2&&(y("orientation",Xh(1,67,r.stepperOrientation)),d(2),G("label",r.step1Txt),y("stepControl",r.firstFormGroup),d(),y("formGroup",r.firstFormGroup),d(3),C(r.cardTitleTxt),d(),G("placeholder",r.cardTitleTipTxt),d(3),C(r.cardSubtitleTxt),d(),G("placeholder",r.cardSubtitleTipTxt),d(3),C(r.cardDescriptionTxt),d(),G("placeholder",r.cardDescriptionTipTxt),d(3),C(r.cardHelpTxt),d(),G("placeholder",r.cardHelpTipTxt),d(3),C(r.cardIconTxt),d(),G("placeholder",r.cardIconTipTxt),d(4),C(r.messageTxt),d(),G("placeholder",r.messageHintTxt),d(4),C(r.messageHintLabelTxt),d(),G("placeholder",r.messageHintLabelHintTxt),d(4),C(r.instructionsTxt),d(),G("placeholder",r.instructionsHintTxt),d(3),C(r.nextTxt),d(),G("label",r.step2Txt),y("stepControl",r.secondFormGroup),d(),y("formGroup",r.secondFormGroup),d(5),G("matTooltip",r.promptTipTxt),d(),C(r.promptTxt),d(2),G("matTooltip",r.newTipTxt),d(),C(r.newTxt),d(2),G("matTooltip",r.saveTipTxt),d(),C(r.saveTxt),d(2),G("matTooltip",r.clearTipTxt),d(),C(r.clearTxt),d(2),G("matTooltip",r.shareTipTxt),d(),C(r.shareTxt),d(2),G("matTooltip",r.sendTipTxt),d(),C(r.sendTxt),d(2),G("matTooltip",r.refreshTipTxt),d(),C(r.refreshTxt),d(2),G("matTooltip",r.copyToClipboardTipTxt),d(),C(r.copyToClipboardTxt),d(2),G("matTooltip",r.copyToPromptTipTxt),d(),C(r.copyToPromptTxt),d(2),G("matTooltip",r.streamedResponsesTipTxt),d(),C(r.streamedResponsesTxt),d(2),G("matTooltip",r.createImageFromTextTipTxt),d(),C(r.createImageFromTextTxt),d(3),P("",r.promptsTxt,":"),d(),G("matTooltip",r.promptsEnabledTipTxt),d(),C(r.promptsEnabledTxt),d(),G("matTooltip",r.promptsImagePromptTipTxt),d(),C(r.promptsImagePromptTxt),d(3),P("",r.autoSendTxt,":"),d(),G("matTooltip",r.autoSendEnabledTipTxt),d(),C(r.autoSendEnabledTxt),d(),G("matTooltip",r.addToViewerTipTxt),d(),C(r.addToViewerTxt),d(),G("matTooltip",r.addUserNameTipTxt),d(),C(r.addUserNameTxt),d(3),C(r.introTxt),d(),G("placeholder",r.introTipTxt),d(3),P(" ",r.backTxt," "),d(2),C(r.nextTxt),d(4),K(r.editConfig()?108:109),d(2),K(r.error1?110:-1),d(),K(r.error2?111:-1),d(3),C(r.backTxt),d(2),C(r.confirmTxt));},dependencies:[H,ff,un,Nr,dn,_n,Fr,Lr,Ki,Pa,Og,Tt,bn,Ft,Pt,$t,ce,Me,x0,y0,nt,St,I0,Vm,Ml,zm,D0,E0],styles:["section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.example-stepper[_ngcontent-%COMP%]{margin-top:8px}.title-widget[_ngcontent-%COMP%]{margin-top:16px}button[_ngcontent-%COMP%]{margin-right:10px}.toggle[_ngcontent-%COMP%]{margin-bottom:20px}.mat-hint[_ngcontent-%COMP%]{color:red}.features-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}mat-form-field[_ngcontent-%COMP%]{width:100%}.features[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%]{border:1px solid darkgray;border-radius:5px;padding:5px;margin-top:5px;margin-bottom:5px;width:100%}.features[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#fff}.validation-error[_ngcontent-%COMP%]{color:red}"]});}}return t;})();var EY=["widget"],QP=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.closeTxt="Fermer";}ngOnInit(){console.log("dialog data",this.data);}ngAfterViewInit(){}submitEnabled(){return this.widgetComponent?this.widgetComponent.isValid():!1;}configSave(e){console.log("config saved",e),this.dialogRef.close({data:e});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["dynamic-widget-dialog"]],viewQuery:function(n,r){if(n&1&&Y(EY,5),n&2){let o;F(o=N())&&(r.widgetComponent=o.first);}},decls:9,vars:3,consts:[["cblogin",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"configSaveEvent","editConfig"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""]],template:function(n,r){if(n&1){let o=W();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"cb-dynamic-widget",3,0),S("configSaveEvent",function(s){return k(o),M(r.configSave(s));}),u()(),m(5,"div",4)(6,"button",5),f(7),u()(),D(8,"br");}n&2&&(d(),C(r.data.title),d(2),y("editConfig",r.data.editWidgetConfig),d(4),C(r.closeTxt));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,GP,Tt],encapsulation:2});}}return t;})();var IY=["switch"],kY=["*"];function MY(t,i){t&1&&(m(0,"span",10),wn(),m(1,"svg",12),D(2,"path",13),u(),m(3,"svg",14),D(4,"path",15),u()());}var SY=new R("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),TY={provide:oo,useExisting:Bn(()=>M0),multi:!0},k0=class{source;checked;constructor(i,e){this.source=i,this.checked=e;}},M0=(()=>{class t{_elementRef=h(ee);_focusMonitor=h($n);_changeDetectorRef=h(ge);defaults=h(SY);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new k0(this,e);}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`;}_switchElement;focus(){this._switchElement.nativeElement.focus();}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked;}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck();}hideIcon;disabledInteractive;change=new z();toggleChange=new z();get inputId(){return`${this.id||this._uniqueId}-input`;}constructor(){h(kt).load(Fn);let e=h(new ri("tabindex"),{optional:!0}),n=this.defaults,r=h(mt,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this._noopAnimations=r==="NoopAnimations",this.id=this._uniqueId=h(pt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label";}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck();});});}ngOnChanges(e){e.required&&this._validatorOnChange();}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef);}writeValue(e){this.checked=!!e;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}validate(e){return this.required&&e.value!==!0?{required:!0}:null;}registerOnValidatorChange(e){this._validatorOnChange=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck();}toggle(){this.checked=!this.checked,this._onChange(this.checked);}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked));}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new k0(this,this.checked))));}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,r){if(n&1&&Y(IY,5),n&2){let o;F(o=N())&&(r._switchElement=o.first);}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,r){n&2&&(Dn("id",r.id),oe("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Dt(r.color?"mat-"+r.color:""),ne("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations));},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",Q],color:"color",disabled:[2,"disabled","disabled",Q],disableRipple:[2,"disableRipple","disableRipple",Q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:at(e)],checked:[2,"checked","checked",Q],hideIcon:[2,"hideIcon","hideIcon",Q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[be([TY,{provide:ao,useExisting:t,multi:!0}]),tt],ngContentSelectors:kY,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,r){if(n&1){let o=W();Pe(),m(0,"div",1)(1,"button",2,0),S("click",function(){return k(o),M(r._handleClick());}),D(3,"span",3),m(4,"span",4)(5,"span",5)(6,"span",6),D(7,"span",7),u(),m(8,"span",8),D(9,"span",9),u(),T(10,MY,5,0,"span",10),u()()(),m(11,"label",11),S("click",function(s){return k(o),M(s.stopPropagation());}),ue(12),u()();}if(n&2){let o=Ke(2);y("labelPosition",r.labelPosition),d(),ne("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),y("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),oe("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),d(8),y("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),d(),K(r.hideIcon?-1:10),d(),y("for",r.buttonId),oe("id",r._labelId);}},dependencies:[Li,og],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__han��dle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0});}return t;})();var YP=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[M0,fe,fe]});}return t;})();function RY(t,i){if(t&1&&f(0),t&2){let e=x();C(e.step3Txt);}}function OY(t,i){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=x();d(),C(e.confirmEditTxt);}}function PY(t,i){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=x();d(),C(e.confirmCreateTxt);}}function FY(t,i){if(t&1&&(m(0,"p",19),f(1),u()),t&2){let e=x();d(),C(e.error1);}}function NY(t,i){if(t&1&&(m(0,"p",19),f(1),u()),t&2){let e=x();d(),C(e.error2);}}var ZP=(()=>{class t{constructor(e,n,r,o){this.service=e,this.formBuilder=n,this.env=o,this.step1Txt="Info",this.step2Txt="Options",this.step3Txt="Confirmer",this.nextTxt="Suivant",this.backTxt="Retour",this.confirmTxt="Confirmer",this.requiredTxt="Champ obligatoire",this.minLengthTxt="Le champ a une longueur minimale de ",this.submitTxt="Soumettre",this.nameTxt="Nom",this.nameTipTxt="Donnez un nom \xE0 votre personnage.",this.emailTxt="Email",this.emailTipTxt="Une adresse email \xE0 utiliser pour votre personnage.",this.descriptionTxt="Description",this.descriptionTipTxt="D\xE9crivez votre personnage",this.professionalDescriptionTxt="Description professionnelle",this.professionalDescriptionTipTxt="D\xE9crivez votre personnage dans sa vie professionnelle.",this.hobbiesTxt="Passe-temps",this.hobbiesTipTxt="Les passe-temps et les activit\xE9s de loisirs que votre personnage appr\xE9cie.",this.enabledTxt="Activ\xE9",this.enabledTipTxt="Activer ou d\xE9sactiver votre personnage",this.commentsPerDayTxt="Commentaires par jour",this.commentsPerDayTipTxt="Combien de fois par jour votre personnage commentera en moyenne.",this.iconTxt="Ic\xF4ne",this.iconTipTxt="Entrez une cha\xEEne d'ic\xF4ne pour votre personnage.",this.confirmCreateTxt="Cr\xE9er un nouveau personnage ?",this.confirmEditTxt="Confirmer les modifications du personnage?",this.editData=ct(),this.saveEvent=new z(),this.character=this.service.createDefaultCharacter(),this.form1Error="Character information form is invalid",this.form2Error="Le formulaire de commentaires est invalide",this.error1="",this.error2="",this.stepperOrientation=r.observe("(min-width: 800px)").pipe(me(({matches:a})=>a?"horizontal":"vertical"));}ngOnInit(){let e=this.editData();e?(this.character=e,console.log("edit character data",this.character)):console.log("default character data: ",this.character),this.buildForm();}buildForm(){this.firstFormGroup=this.formBuilder.group({name:[this.character.name,[vt.required]],email:[this.character.email,[vt.email,vt.required]],description:[this.character.description,[vt.required]],professionalDescription:[this.character.professionalDescription,[vt.required]],hobbies:[this.character.hobbies],date:[this.character.date,[vt.required]]}),this.secondFormGroup=this.formBuilder.group({enabled:[this.character.enabled],commentsPerDay:[this.character.commentsPerDay,[vt.required,vt.min(.001),vt.max(6)]],icon:[this.character.icon,[vt.required]]});}isValid(){return!1;}showSubmitErrors(){this.error1=this.firstFormGroup.valid?"":this.form1Error,this.error2=this.secondFormGroup.valid?"":this.form2Error;}submit(){if(console.log("submit form 1: ",this.firstFormGroup),console.log("submit form 2: ",this.secondFormGroup),this.showSubmitErrors(),!this.firstFormGroup.valid||!this.secondFormGroup.valid){console.log("form is invalid");return;}let e=this.editData(),n={name:this.firstFormGroup.get("name")?.value,email:this.firstFormGroup.get("email")?.value,description:this.firstFormGroup.get("description")?.value,professionalDescription:this.firstFormGroup.get("professionalDescription")?.value,hobbies:this.firstFormGroup.get("hobbies")?.value,enabled:this.secondFormGroup.get("enabled")?.value,commentsPerDay:this.secondFormGroup.get("commentsPerDay")?.value,icon:this.secondFormGroup.get("icon")?.value,siteId:this.env.get().slug,storageId:e?e.storageId:void 0,date:this.firstFormGroup.get("date")?.value};console.log("emit character: ",n),this.saveEvent.emit(n);}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(Es),w(hs),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character-form"]],inputs:{editData:[1,"editData"]},outputs:{saveEvent:"saveEvent"},decls:59,vars:32,consts:[[1,"example-stepper",3,"orientation"],[3,"stepControl","label"],[3,"formGroup"],[1,"section-one"],["type","text","matInput","","name","name","formControlName","name",3,"placeholder"],["type","email","matInput","","name","email","formControlName","email",3,"placeholder"],["matInput","","name","description","formControlName","description",3,"placeholder"],["matInput","","name","professionalDescription","formControlName","professionalDescription",3,"placeholder"],[1,"character-field"],["matInput","","name","hobbies","formControlName","hobbies",3,"placeholder"],["mat-raised-button","","matStepperNext",""],[1,"section-two"],[1,"enabled-toggle"],["formControlName","enabled"],["type","number","matInput","","name","commentsPerDay","formControlName","commentsPerDay",3,"placeholder"],["type","text","matInput","","name","icon","formControlName","icon",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],["matStepLabel",""],[1,"section-three"],[1,"validation-error"],["mat-raised-button","",3,"click"]],template:function(n,r){n&1&&(m(0,"mat-stepper",0),as(1,"async"),m(2,"mat-step",1)(3,"form",2)(4,"section",3)(5,"mat-form-field")(6,"mat-label"),f(7),u(),D(8,"input",4),u(),m(9,"mat-form-field")(10,"mat-label"),f(11),u(),D(12,"input",5),u(),m(13,"mat-form-field")(14,"mat-label"),f(15),u(),D(16,"textarea",6),u(),m(17,"mat-form-field")(18,"mat-label"),f(19),u(),D(20,"textarea",7),u(),m(21,"mat-form-field",8)(22,"mat-label"),f(23),u(),D(24,"textarea",9),u()(),m(25,"div")(26,"button",10),f(27),u()()()(),m(28,"mat-step",1)(29,"form",2)(30,"section",11)(31,"div",12)(32,"mat-slide-toggle",13),f(33),u()(),m(34,"mat-form-field")(35,"mat-label"),f(36),u(),D(37,"input",14),u(),m(38,"mat-form-field")(39,"mat-label"),f(40),u(),D(41,"input",15),u()(),m(42,"div")(43,"button",16),f(44),u(),m(45,"button",10),f(46),u()()()(),m(47,"mat-step"),T(48,RY,1,1,"ng-template",17),m(49,"section",18),T(50,OY,2,1,"div")(51,PY,2,1,"div")(52,FY,2,1,"p",19)(53,NY,2,1,"p",19),u(),m(54,"div")(55,"button",16),f(56),u(),m(57,"button",20),S("click",function(){return r.submit();}),f(58),u()()()()),n&2&&(y("orientation",Xh(1,30,r.stepperOrientation)),d(2),G("label",r.step1Txt),y("stepControl",r.firstFormGroup),d(),y("formGroup",r.firstFormGroup),d(4),C(r.nameTxt),d(),G("placeholder",r.nameTipTxt),d(3),C(r.emailTxt),d(),G("placeholder",r.emailTipTxt),d(3),C(r.descriptionTxt),d(),G("placeholder",r.descriptionTipTxt),d(3),C(r.professionalDescriptionTxt),d(),G("placeholder",r.professionalDescriptionTipTxt),d(3),C(r.hobbiesTxt),d(),G("placeholder",r.hobbiesTipTxt),d(3),C(r.nextTxt),d(),G("label",r.step2Txt),y("stepControl",r.secondFormGroup),d(),y("formGroup",r.secondFormGroup),d(4),C(r.enabledTxt),d(3),C(r.commentsPerDayTxt),d(),G("placeholder",r.commentsPerDayTipTxt),d(3),C(r.iconTxt),d(),G("placeholder",r.iconTipTxt),d(3),P(" ",r.backTxt," "),d(2),C(r.nextTxt),d(4),K(r.editData()?50:51),d(2),K(r.error1?52:-1),d(),K(r.error2?53:-1),d(3),C(r.backTxt),d(2),C(r.confirmTxt));},dependencies:[H,ff,un,Nr,dn,Ow,_n,Fr,Lr,Ki,Pa,Tt,bn,Ft,Pt,$t,ce,Me,x0,nt,I0,Vm,Ml,zm,D0,E0,YP,M0],styles:["section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.example-stepper[_ngcontent-%COMP%]{margin-top:8px}button[_ngcontent-%COMP%]{margin-right:10px}.toggle[_ngcontent-%COMP%]{margin-bottom:20px}.mat-hint[_ngcontent-%COMP%]{color:red}mat-form-field[_ngcontent-%COMP%]{width:100%}.validation-error[_ngcontent-%COMP%]{color:red}.enabled-toggle[_ngcontent-%COMP%]{margin-bottom:20px}"]});}}return t;})();var LY=["widget"],KP=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.closeTxt="Fermer";}ngOnInit(){console.log("dialog data",this.data);}ngAfterViewInit(){}submitEnabled(){return this.characterForm?this.characterForm.isValid():!1;}configSave(e){console.log("character saved",e),this.dialogRef.close({data:e});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["character-manager-dialog"]],viewQuery:function(n,r){if(n&1&&Y(LY,5),n&2){let o;F(o=N())&&(r.characterForm=o.first);}},decls:8,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"saveEvent","editData"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""]],template:function(n,r){n&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"cb-character-form",2),S("saveEvent",function(a){return r.configSave(a);}),u()(),m(4,"div",3)(5,"button",4),f(6),u()(),D(7,"br")),n&2&&(d(),C(r.data.title),d(2),y("editData",r.data.editCharacterData),d(3),C(r.closeTxt));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,ZP,Tt],encapsulation:2});}}return t;})();function VY(t,i){t&1&&(m(0,"mat-error"),f(1,"URL is "),m(2,"strong"),f(3,"required"),u()());}function zY(t,i){if(t&1&&(m(0,"mat-error"),f(1),u()),t&2){let e=x();d(),C(e.urlError);}}function BY(t,i){t&1&&f(0," \xA0 ");}function jY(t,i){t&1&&(m(0,"span",10),D(1,"mat-spinner",13),u()),t&2&&(d(),y("diameter",40));}var XP=(()=>{class t{constructor(e,n,r,o){this.dialogRef=e,this.data=n,this.api=r,this.cms=o,this.urlControl=new zo("",[vt.required]),this.instructionsControl=new zo(""),this.closeTxt="Fermer",this.replyTxt="R\xE9pondre",this.instructions1="Instructions: ",this.instructions2="Collez l'URL du message dans la bo\xEEte. Assurez-vous que le message permet les commentaires. Si vous voulez que le personnage r\xE9ponde \xE0 un commentaire existant, collez le lien de r\xE9ponse pour ce commentaire. ",this.specialInstructions="Instructions sp\xE9ciales : ",this.loading=!1,this.urlError="";}ngOnInit(){this.character=this.data.characterData;}ngAfterViewInit(){}reply(){let e=this;this.urlError="",e.loading=!0;let n=this.urlControl.value;if(!n)return;let r=this.instructionsControl.value;if(console.log("url is ",this.urlControl.value),console.log("instructions are: ",this.instructionsControl.value),!n?.startsWith("http")){this.urlError="URL invalide";return;}e.api.postComment(e.character,n,r||"").pipe(de(1)).subscribe({next(o){if(!o){console.log("no results from post comment");return;}e.loading=!1,console.log("post comment result is ",o),e.dialogRef.close({data:{msg:"Reply added successfully for post at "+n}});},error(o){e.loading=!1,e.urlError="Erreur: "+o.error.detail,console.log("error encountered posting comment: ",o.error.detail);},complete(){}});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt),w(Ht),w(jo));};}static{this.ɵcmp=E({type:t,selectors:[["reply-dialog"]],decls:29,vars:13,consts:[["autosize","cdkTextareaAutosize"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-form"],[1,"full-width"],["type","text","matInput","","placeholder","Ex. https://example.com/my-article/",3,"formControl"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"formControl"],[1,"error-container"],[1,"reply-container"],["mat-raised-button","",3,"click","disabled"],[1,"spinner-container"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mode","indeterminate",3,"diameter"]],template:function(n,r){if(n&1){let o=W();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"p")(4,"strong"),f(5),u(),f(6),u(),m(7,"form",3)(8,"mat-form-field",4)(9,"mat-label"),f(10,"URL"),u(),D(11,"input",5),T(12,VY,4,0,"mat-error"),u(),m(13,"mat-form-field",4)(14,"mat-label"),f(15),u(),D(16,"textarea",6,0),u(),m(18,"div",7),T(19,zY,2,1,"mat-error")(20,BY,1,0),u(),m(21,"div",8)(22,"button",9),S("click",function(){return k(o),M(r.reply());}),f(23),u(),T(24,jY,2,1,"span",10),u()()(),m(25,"div",11)(26,"button",12),f(27),u()(),D(28,"br");}n&2&&(d(),C(r.data.title),d(4),C(r.instructions1),d(),P(" ",r.instructions2,""),d(5),y("formControl",r.urlControl),d(),K(r.urlControl.hasError("required")?12:-1),d(3),C(r.specialInstructions),d(),y("formControl",r.instructionsControl),d(3),K(r.urlError!==""?19:20),d(3),y("disabled",r.loading),d(),P(" ",r.replyTxt," "),d(),K(r.loading?24:-1),d(2),y("disabled",r.loading),d(),P(" ",r.closeTxt," "));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,Tt,bn,Ft,Pt,td,Bo,un,Nr,dn,_n,Fr,Oa,$t,Lr,vm,Xn,Kn],styles:[".example-form[_ngcontent-%COMP%]{min-width:150px;max-width:900px;width:100%}.full-width[_ngcontent-%COMP%]{width:100%}.error-container[_ngcontent-%COMP%]{text-align:center;margin:10px 0 20px}.reply-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.spinner-container[_ngcontent-%COMP%]{margin-left:15px}"]});}}return t;})();function $Y(t,i){t&1&&(m(0,"mat-error"),f(1,"Please enter a valid email address"),u());}function HY(t,i){t&1&&(m(0,"mat-error"),f(1,"Email is "),m(2,"strong"),f(3,"required"),u()());}function UY(t,i){t&1&&(m(0,"span"),f(1,"This field is required."),u());}function qY(t,i){if(t&1&&(m(0,"mat-error"),T(1,UY,2,0,"span",9),u()),t&2){let e,n=x();d(),y("ngIf",(e=n.form.get("comment"))==null||e.errors==null?null:e.errors.required);}}var JP=(()=>{class t{constructor(e,n,r){this.formBuilder=e,this.dialogRef=n,this.data=r,this.shareTxt="Partager",this.closeTxt="Fermer",this.commentTxt="Commentaire",this.commentTipTxt="Entrez votre commentaire ici.",this.p1="Partagez votre conversation avec le personnel de Turman Solutions.";}ngOnInit(){console.log("dialog data",this.data),this.form=this.formBuilder.group({email:["",[vt.required,vt.email]],comment:["",[vt.required]]});}ngAfterViewInit(){}isValid(){return this.form.valid;}submitEnabled(){return this.form.valid;}submit(){console.log("valid",this.form.value),this.dialogRef.close({data:this.form.value});}static{this.ɵfac=function(n){return new(n||t)(w(Es),w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["share-dialog"]],decls:26,vars:11,consts:[["mat-dialog-title",""],[1,"dialog-header"],["mat-dialog-content",""],[1,"container"],[3,"formGroup"],[1,"my-form-field"],["appearance","outline",1,"form-field"],["matInput","","type","email","formControlName","email","id","email"],["matInput","","name","comment","formControlName","comment",3,"placeholder"],[4,"ngIf"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""],["mat-raised-button","",3,"click","disabled"]],template:function(n,r){if(n&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1),f(3),u(),m(4,"div",2)(5,"div",3)(6,"form",4)(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),f(10,"Email:"),u(),D(11,"input",7),T(12,$Y,2,0,"mat-error")(13,HY,4,0,"mat-error"),u()(),m(14,"div",5)(15,"mat-form-field",6)(16,"mat-label"),f(17),u(),D(18,"textarea",8),T(19,qY,2,1,"mat-error",9),u()()()()(),m(20,"div",10)(21,"button",11),f(22),u(),m(23,"button",12),S("click",function(){return r.submit();}),f(24),u()(),D(25,"br")),n&2){let o;d(),C(r.shareTxt),d(2),C(r.p1),d(3),y("formGroup",r.form),d(6),K(r.form.get("email").hasError("email")&&!r.form.get("email").hasError("required")?12:-1),d(),K(r.form.get("email").hasError("required")?13:-1),d(4),C(r.commentTxt),d(),G("placeholder",r.commentTipTxt),d(),y("ngIf",((o=r.form.get("comment"))==null?null:o.touched)&&((o=r.form.get("comment"))==null?null:o.invalid)),d(3),C(r.closeTxt),d(),y("disabled",!r.submitEnabled()),d(),P(" ",r.shareTxt," ");}},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,Ot,Tt,bn,Ft,Pt,td,$t,un,Nr,dn,_n,Fr,Lr,Ki,Pa],styles:[".dialog-header[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}"]});}}return t;})();function WY(t,i){t&1&&(m(0,"span",8),D(1,"mat-spinner",11),u()),t&2&&(d(),y("diameter",40));}var eF=(()=>{class t{constructor(e,n,r,o){this.dialogRef=e,this.data=n,this.api=r,this.cms=o,this.instructionsControl=new zo(""),this.closeTxt="Fermer",this.createTxt="Cr\xE9er un article",this.instructions1="Instructions: ",this.instructions2="Ajoutez des instructions suppl\xE9mentaires pour le personnage si d\xE9sir\xE9. ",this.userInstructions="Instructions suppl\xE9mentaires : ",this.loading=!1,this.formError="";}ngOnInit(){this.character=this.data.characterData;}ngAfterViewInit(){}add(){let e=this;this.formError="",e.loading=!0;let n=this.instructionsControl.value;console.log("instructions are: ",this.instructionsControl.value),e.api.createArticle(e.character,n||"").pipe(de(1)).subscribe({next(r){if(!r){console.log("no results from post comment");return;}e.loading=!1,console.log("post comment result is ",r),e.dialogRef.close({data:{msg:"Article created"}});},error(r){e.loading=!1,console.log("error encountered creating article: ",r.error.detail);},complete(){}});}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt),w(Ht),w(jo));};}static{this.ɵcmp=E({type:t,selectors:[["new-article-dialog"]],decls:21,vars:10,consts:[["autosize","cdkTextareaAutosize"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-form"],[1,"full-width"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"formControl"],[1,"reply-container"],["mat-raised-button","",3,"click","disabled"],[1,"spinner-container"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mode","indeterminate",3,"diameter"]],template:function(n,r){if(n&1){let o=W();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"p")(4,"strong"),f(5),u(),f(6),u(),m(7,"form",3)(8,"mat-form-field",4)(9,"mat-label"),f(10),u(),D(11,"textarea",5,0),u(),m(13,"div",6)(14,"button",7),S("click",function(){return k(o),M(r.add());}),f(15),u(),T(16,WY,2,1,"span",8),u()()(),m(17,"div",9)(18,"button",10),f(19),u()(),D(20,"br");}n&2&&(d(),C(r.data.title),d(4),C(r.instructions1),d(),P(" ",r.instructions2,""),d(4),C(r.userInstructions),d(),y("formControl",r.instructionsControl),d(3),y("disabled",r.loading),d(),P(" ",r.createTxt," "),d(),K(r.loading?16:-1),d(2),y("disabled",r.loading),d(),P(" ",r.closeTxt," "));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,Tt,bn,Ft,Pt,Bo,un,Nr,dn,_n,Fr,Oa,$t,Lr,vm,Xn,Kn],styles:[".example-form[_ngcontent-%COMP%]{min-width:150px;max-width:900px;width:100%}.full-width[_ngcontent-%COMP%]{width:100%}.error-container[_ngcontent-%COMP%]{text-align:center;margin:10px 0 20px}.reply-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.spinner-container[_ngcontent-%COMP%]{margin-left:15px}"]});}}return t;})();var pe=(()=>{class t{constructor(e,n,r,o,a,s){this.env=e,this.user=n,this.cms=r,this.http=o,this.dialog=a,this.router=s,this.userWidgets=[];}openShareDialog(e){return this.dialog.open(JP,{width:"500px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,panelClass:"share-panel",data:e});}openPromptsDialog(e,n){let r="Les directives disponibles sont affich\xE9es ci-dessous.";return this.dialog.open(DP,{enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,restoreFocus:!1,panelClass:"choose-prompt-panel",data:{msg:r,msg2:"",imagePrompt:e,characterData:n}});}openWidgetCreateDialog(e){return this.dialog.open(QP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openNewArticleDialog(e){return this.dialog.open(eF,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openReplyDialog(e){return this.dialog.open(XP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openCharacterCreateDialog(e){return this.dialog.open(KP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openConfirmationDialog(e){return this.dialog.open(EP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openImageCreateDialog(e){return this.dialog.open(OP,{width:"300px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openImageSizeAndCountDialog(e){return this.dialog.open(Ts,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e}).afterClosed();}pxToNum(e){let n=e;return n.endsWith("px")&&(n=n.substring(0,n.length-2)),parseInt(n,10);}numToPx(e){return e===0?"0":e+"px";}formatDate(e){var n=new Date(e),r=""+(n.getMonth()+1),o=""+n.getDate(),a=n.getFullYear();return r.length<2&&(r="0"+r),o.length<2&&(o="0"+o),[a,r,o].join("-");}formatDateShort(e){var n=new Date(e),r=""+(n.getMonth()+1),o=""+n.getDate(),a=n.getFullYear();r.length<2&&(r="0"+r),o.length<2&&(o="0"+o);let s=a.toString().substring(2);return[r,o,s].join("-");}truncateString(e,n=200){if(e.length<=n)return e;let r=e.slice(0,n);if(e.charAt(n)!==" "){let o=r.lastIndexOf(" ");o>-1&&(r=r.slice(0,o));}return r+"...";}createDefaultWidgetConfig(){return{endpoint:te.unknown,messageHint:"Entrez votre message",message:"",messageType:"Message de Chat",features:{prompt:!0,new:!0,save:!1,prompts:{enabled:!1,imagePrompt:!1},clear:!1,share:!1,send:!0,refresh:!1,imageCount:!1,imageSize:!1,uploadImages:!1,uploadImagesImageSize:!1,downloadImages:!1,copyToClipboard:!0,copyToPrompt:!0,saveImagePrompt:!1,createImageFromText:!1,autoSend:{enabled:!1,addToViewer:!1,addUserName:!1},streamedResponses:!1},animation:{enterDuration:"500ms",exitDuration:"300ms"}};}createDefaultCharacter(){return{name:"",email:"",description:"A helpful assistant.",professionalDescription:"",hobbies:"",enabled:!0,commentsPerDay:1,icon:"",date:new Date(Date.now()),siteId:this.env.get().slug};}convertAIMessageToHtml(e){let n=JSON.parse(e);return n=n.replace(/[\u00A0-\u9999<>\&]/g,function(r){return"&#"+r.charCodeAt(0)+";";}),n=this.addCodeTags(n),n;}addCodeTags(e){let n=`
`;function r(l){let c="",p=!1;for(let g=l;!p;g++){if(e.charAt(g)===n){p=!0;continue;}c+=e[g];}return c;}let o="",a="",s=!1;for(let l=0;l<e.length;l++){let c=e.charAt(l);if(c==="`"){if(a+="`",a==="```")if(s)o+="</code></pre></div>",s=!1,a="";else{let p=r(l+1);o+='<div class="code-block '+p+'"><pre><code>',l+=p.length,s=!0,a="";}continue;}a.length&&(a="",s=!1),c===n&&!s?o+="<br>":o+=c;}return o;}logHidden(e){let n=e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");console.log(n);}strCount(e,n,r=!1){let o=0,a=0;if(n.length<=0)return e.length+1;for(;a=e.indexOf(n,a),a>=0;)o++,a+=r?1:n.length;return o;}escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");}static{this.ɵfac=function(n){return new(n||t)(J(je),J(Vr),J(jo),J(ui),J(jt),J(Je));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var GY=t=>({display:t});function QY(t,i){t&1&&(m(0,"div",10),D(1,"mat-spinner",11),u()),t&2&&(d(),y("diameter",40));}function YY(t,i){if(t&1&&(m(0,"th",12),f(1),u()),t&2){let e=x();d(),P(" ",e.idText," ");}}function ZY(t,i){if(t&1&&(m(0,"td",13),f(1),u()),t&2){let e=i.$implicit;d(),C(e.id);}}function KY(t,i){if(t&1&&(m(0,"th",14),f(1),u()),t&2){let e=x();d(),P(" ",e.createdText," ");}}function XY(t,i){if(t&1&&(m(0,"td",13),f(1),u()),t&2){let e=i.$implicit;d(),C(e.created);}}function JY(t,i){t&1&&D(0,"tr",15);}function eZ(t,i){t&1&&D(0,"tr",16);}var tZ=[],tF=(()=>{class t{constructor(e,n,r){this.api=e,this.service=n,this.cache=r,this.displayedColumns=["id","created"],this.dataSource=new zr(tZ),this.table=Xv.required(hi),this.sort=Xv.required(Zn),this.idText="ID",this.createdText="Cr\xE9\xE9",this.loading=!0;}ngOnInit(){}ngAfterViewInit(){this.dataSource.sort=this.sort(),this.dataSource.sortingDataAccessor=(o,a)=>{switch(a){case"created":return o.createdOriginal;default:return o[a];}};let e=this,n={userId:Et.unknown,endpoint:te.openaimodels,body:"",bodyOriginal:"",options:{}};n.id=++Nt.sNextID;let r=this.cache.get("info-api");if(r){setTimeout(()=>{e.handleResponse(r);});return;}e.api.fetchModels().subscribe(o=>{o?(this.cache.set("info-api",o,20),e.handleResponse(o)):console.log("no data received");},o=>{console.log("error: ",o);});}handleResponse(e){this.loading=!1;let n=e.data,r=[];n.forEach(o=>{let a=new Date(o.created*1e3);r.push({id:o.id,created:this.service.formatDateShort(a),createdOriginal:o.created});}),r.sort((o,a)=>o.createdOriginal<a.createdOriginal?1:o.createdOriginal>a.createdOriginal?-1:0),r=r.slice(0,8),this.dataSource.data=r,this.table().renderRows();}static{this.ɵfac=function(n){return new(n||t)(w(Ht),w(pe),w(Hg));};}static{this.ɵcmp=E({type:t,selectors:[["api-card"]],viewQuery:function(n,r){n&1&&(hy(r.table,hi,5),hy(r.sort,Zn,5)),n&2&&Kh(2);},decls:11,vars:7,consts:[["class","spinner-container",4,"ngIf"],[1,"well"],["mat-table","","matSort","","matSortActive","created","matSortDirection","desc","matSortDisableClear","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mode","indeterminate",3,"diameter"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id"],["mat-cell",""],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(T(0,QY,2,1,"div",0),m(1,"div",1)(2,"table",2),ye(3,3),T(4,YY,2,1,"th",4)(5,ZY,2,1,"td",5),xe(),ye(6,6),T(7,KY,2,1,"th",7)(8,XY,2,1,"td",5),xe(),T(9,JY,1,0,"tr",8)(10,��eZ,1,0,"tr",9),u()()),n&2&&(y("ngIf",r.loading),d(2),y("ngStyle",Be(5,GY,r.loading?"none":"table"))("dataSource",r.dataSource),d(7),y("matHeaderRowDef",r.displayedColumns),d(),y("matRowDefColumns",r.displayedColumns));},dependencies:[H,Ot,Di,Xo,hi,Uo,Qo,qo,Ho,Yo,Wo,Go,Zo,Ko,ks,Zn,Is,Xn,Kn,md],styles:["table[_ngcontent-%COMP%]{width:100%;margin-left:-5px;margin-right:-5px}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}.spinner-container[_ngcontent-%COMP%]{padding:30px 0;display:flex;align-items:center;justify-content:center}.spinner-container[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px}"]});}}return t;})();function nZ(t,i){if(t&1&&(m(0,"div",1),D(1,"img",2),u()),t&2){let e=x();d(),y("src",e.gravatarUrl,wr);}}function iZ(t,i){if(t&1&&(m(0,"mat-icon"),f(1),u()),t&2){let e=x();d(),C(e.altIcon());}}var ra=(()=>{class t{constructor(){this.email=ct("test@example.com"),this.altIcon=ct("person"),this.gravatarUrl="";}ngOnInit(){this.useGravatars()&&this.getGravatarUrl(this.email());}useGravatars(){return window.location.hostname==="localhost"?!0:window.location.protocol==="https:";}getGravatarUrl(e){if(!this.useGravatars()){console.log("gravatars not supported");return;}let n=this;function r(o){return Fd(this,null,function*(){let a=new TextEncoder().encode(o),s=yield window.crypto.subtle.digest("SHA-256",a);return Array.from(new Uint8Array(s)).map(p=>p.toString(16).padStart(2,"0")).join("");});}r(e).then(o=>{n.gravatarUrl=`https://www.gravatar.com/avatar/${o}`;});}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-gravatar"]],inputs:{email:[1,"email"],altIcon:[1,"altIcon"]},decls:3,vars:1,consts:[[1,"character-name"],[1,"gravatar-container"],["alt","Gravatar Image",3,"src"]],template:function(n,r){n&1&&(m(0,"span",0),T(1,nZ,2,1,"div",1)(2,iZ,2,1,"mat-icon"),u()),n&2&&(d(),K(r.useGravatars()?1:2));},dependencies:[Ee,Re],styles:[".gravatar-container[_ngcontent-%COMP%]{text-align:center;margin:5px}.gravatar-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%;width:100px;height:100px}"]});}}return t;})();function rZ(t,i){if(t&1){let e=W();m(0,"button",3),S("click",function(){k(e);let r=x().$implicit,o=x(2);return M(o.click(r));}),m(1,"mat-icon"),f(2),u(),m(3,"span"),f(4),u()();}if(t&2){let e=x().$implicit;d(2),C(e.icon),d(2),C(e.title);}}function oZ(t,i){if(t&1&&T(0,rZ,5,2,"button",2),t&2){let e=i.$implicit;K(e.enabled&&!e.hidden?0:-1);}}function aZ(t,i){if(t&1&&(m(0,"button",1)(1,"mat-icon"),f(2,"menu"),u()(),m(3,"mat-menu",null,0),ci(5,oZ,1,1,null,null,os),u()),t&2){let e=Ke(4),n=x();y("matMenuTriggerFor",e),d(5),di(n.cards);}}var NC=(()=>{class t{constructor(e){this.router=e,this.cards=[];}click(e){this.router.navigate([e.link.href]);}static{this.ɵfac=function(n){return new(n||t)(w(Je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-page-header-menu"]],decls:1,vars:1,consts:[["menu","matMenu"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"]],template:function(n,r){n&1&&T(0,aZ,7,1),n&2&&K(r.cards&&r.cards.length>0?0:-1);},dependencies:[ce,Mi,xs,Or,ro,ys,Ee,Re,Yt],encapsulation:2});}}return t;})();function sZ(t,i){if(t&1&&(m(0,"mat-icon"),f(1),u()),t&2){let e=x(2).$implicit;d(),C(e.icon);}}function lZ(t,i){if(t&1&&(m(0,"a",13),T(1,sZ,2,1,"mat-icon",5),m(2,"span"),f(3),u()()),t&2){let e=x().$implicit;G("routerLink",e.href),d(),y("ngIf",e.icon),d(2),C(e.name);}}function cZ(t,i){if(t&1&&(m(0,"mat-icon"),f(1),u()),t&2){let e=x(2).$implicit;d(),C(e.icon);}}function dZ(t,i){if(t&1&&(m(0,"a",13),T(1,cZ,2,1,"mat-icon",5),f(2),u()),t&2){let e=x().$implicit;G("routerLink",e.href),d(),y("ngIf",e.icon),d(),P(" ",e.name,"");}}function uZ(t,i){t&1&&(m(0,"span"),f(1," \xA0/\xA0 "),u());}function mZ(t,i){if(t&1&&(m(0,"span",11),T(1,lZ,4,3,"a",12)(2,dZ,3,3,"ng-template",null,0,Ir)(4,uZ,2,0,"span",5),u()),t&2){let e=i.index,n=Ke(3),r=x(2);d(),y("ngIf",r.breadcrumbs.length===1)("ngIfElse",n),d(3),y("ngIf",e<r.breadcrumbs.length-1);}}function pZ(t,i){if(t&1&&(m(0,"span",2),T(1,mZ,5,3,"span",10),u()),t&2){let e=x();d(),y("ngForOf",e.breadcrumbs);}}function hZ(t,i){if(t&1&&(m(0,"span",3),D(1,"cb-gravatar",14),u()),t&2){let e=x();d(),y("email",e.gravatarEmail);}}function fZ(t,i){t&1&&(m(0,"span",2),f(1,"\xA0"),u());}function gZ(t,i){if(t&1&&T(0,fZ,2,0,"span",15),t&2){let e=x();y("ngIf",!e.breadcrumbs);}}function _Z(t,i){if(t&1&&(m(0,"span")(1,"mat-icon"),f(2),u(),f(3,"\xA0"),u()),t&2){let e=x();d(2),C(e.icon.toLowerCase());}}function bZ(t,i){if(t&1&&(m(0,"mat-icon",16),f(1,"help"),u()),t&2){let e=x();G("matTooltip",e.help);}}function vZ(t,i){t&1&&(m(0,"span"),f(1,"\xA0"),u());}var yn=(()=>{class t{constructor(e,n,r){this.router=e,this.changeDetector=n,this.env=r,this.gravatarEmail="",this.help="",this.allowNavigation=!1;}ngOnInit(){this.allowNavigation=this.env.allowNavigation;}static{this.ɵfac=function(n){return new(n||t)(w(Je),w(ge),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-page-header"]],viewQuery:function(n,r){if(n&1&&Y(NC,5),n&2){let o;F(o=N())&&(r.menu=o.first);}},inputs:{breadcrumbs:"breadcrumbs",gravatarEmail:"gravatarEmail",icon:"icon",title:"title",help:"help"},decls:13,vars:5,consts:[["nothome",""],[1,"page-header"],[1,"breadcrumbs"],[1,"gravatar"],[1,"header-title"],[4,"ngIf"],[1,"right-side"],[1,"nav-menu"],[1,"help-icon"],[3,"matTooltip",4,"ngIf"],["class","crumb",4,"ngFor","ngForOf"],[1,"crumb"],[3,"routerLink",4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"email"],["class","breadcrumbs",4,"ngIf"],[3,"matTooltip"]],template:function(n,r){n&1&&(m(0,"div",1),T(1,pZ,2,1,"span",2)(2,hZ,2,1,"span",3)(3,gZ,1,1,"span",2),m(4,"span",4),T(5,_Z,4,1,"span",5),f(6),u(),m(7,"span",6)(8,"span",7),D(9,"cb-page-header-menu"),u(),m(10,"span",8),T(11,bZ,2,1,"mat-icon",9)(12,vZ,2,0,"span",5),u()()()),n&2&&(d(),K(r.breadcrumbs&&r.allowNavigation?1:r.gravatarEmail?2:3),d(4),y("ngIf",r.icon),d(),C(r.title),d(5),y("ngIf",r.help),d(),y("ngIf",!r.help));},dependencies:[H,an,Ot,Ee,Re,nt,St,Yt,Pn,ra,NC],styles:["@media (max-width: var(--cb-break-point-small)){.breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:none}}@media (min-width: var(--cb-content-max-width)){.page-header[_ngcontent-%COMP%]{border-radius:10px}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:16px 0;background-color:var(--mat-sys-on-primary)}.page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.page-header[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]{font-size:small;margin-left:20px;width:150px}.page-header[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:2px;margin-left:2px;vertical-align:bottom;width:16px;height:16px;font-size:16px}.page-header[_ngcontent-%COMP%]   .gravatar[_ngcontent-%COMP%]{width:150px;text-align:center}.page-header[_ngcontent-%COMP%]   .header-title[_ngcontent-%COMP%]{text-align:center;font-size:large;font-weight:700}.page-header[_ngcontent-%COMP%]   .header-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}.page-header[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]{width:150px;margin-right:10px;text-align:right}.page-header[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   .nav-menu[_ngcontent-%COMP%]{margin-right:15px}.page-header[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   .help-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:24px;height:24px;font-size:24px}"]});}}return t;})();var yZ=t=>({width:t});function xZ(t,i){if(t&1&&(m(0,"span"),f(1),u()),t&2){let e=x(2).$implicit;d(),C(e.name);}}function wZ(t,i){if(t&1&&(m(0,"a",6)(1,"mat-icon"),f(2),u(),T(3,xZ,2,1,"span",7),u()),t&2){let e=x().$implicit,n=x();G("matTooltip",e.tooltip),G("href",n.fullUrl(),wr),d(2),C(e.icon),d(),y("ngIf",!n.miniSize);}}function CZ(t,i){if(t&1&&(m(0,"span"),f(1),u()),t&2){let e=x(2).$implicit;d(),C(e.name);}}function DZ(t,i){if(t&1){let e=W();m(0,"button",8),S("click",function(){k(e);let r=x().$implicit,o=x();return M(o.performAction(r.id));}),m(1,"mat-icon"),f(2),u(),T(3,CZ,2,1,"span",7),u();}if(t&2){let e=x().$implicit,n=x();G("matTooltip",e.tooltip),d(2),C(e.icon),d(),y("ngIf",!n.miniSize);}}function EZ(t,i){if(t&1&&(ye(0),T(1,wZ,4,4,"a",4)(2,DZ,4,3,"button",5),xe()),t&2){let e=i.$implicit;d(),y("ngIf",e.id===3),d(),y("ngIf",e.enabled&&e.id!==3);}}var xd=(()=>{class t{constructor(e){this.router=e,this.url=ct.required(),this.fullUrl=ct.required(),this.altText=ct(""),this.disabledActions=ct([]),this.saveToLibraryEvent=new z(),this.createVariationsEvent=new z(),this.createEditsEvent=new z(),this.miniSize=!1,this.actions=[];}ngOnInit(){this.width&&this.width<250&&(this.miniSize=!0);let e=[];e.push({id:0,name:"Enregistrer",href:"#",icon:"save",tooltip:"Enregistrer l'image dans la biblioth\xE8que multim\xE9dia"}),e.push({id:1,name:"Variations",href:"#",icon:"burst_mode",tooltip:"D\xE9finissez les options et g\xE9n\xE9rez des variations de cette image."}),e.push({id:2,name:"Modifier",href:"#",icon:"edit",tooltip:"R\xE9g\xE9n\xE9rez s\xE9lectivement certaines zones de cette image en fonction d'une directive."}),e.push({id:3,name:"Nouvel onglet",href:"#",icon:"open_in_new",tooltip:"Ouvrir l'image dans un nouvel onglet."}),e.forEach(n=>{this.disabledActions()?.indexOf(n.id)===-1?n.enabled=!0:n.enabled=!1,this.actions.push(n);});}ngAfterViewInit(){}performAction(e){let n=this.actions[e];switch(n.href=this.url(),console.log("perform action",n),e){case 0:this.saveToLibraryEvent.emit(n);break;case 1:this.createVariationsEvent.emit(n);break;case 2:this.createEditsEvent.emit(n);break;case 3:break;case 4:break;default:console.log("invalid action id");}}static{this.ɵfac=function(n){return new(n||t)(w(Je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-enhancer"]],inputs:{url:[1,"url"],fullUrl:[1,"fullUrl"],altText:[1,"altText"],width:"width",disabledActions:[1,"disabledActions"]},outputs:{saveToLibraryEvent:"saveToLibraryEvent",createVariationsEvent:"createVariationsEvent",createEditsEvent:"createEditsEvent"},decls:4,vars:7,consts:[[1,"image-container",3,"ngStyle","ngClass"],[3,"src","alt"],[1,"image-overlay"],[4,"ngFor","ngForOf"],["color","accent","class","action","mat-raised-button","","target","_blank",3,"matTooltip","href",4,"ngIf"],["class","action","mat-raised-button","","color","accent",3,"matTooltip","click",4,"ngIf"],["color","accent","mat-raised-button","","target","_blank",1,"action",3,"matTooltip","href"],[4,"ngIf"],["mat-raised-button","","color","accent",1,"action",3,"click","matTooltip"]],template:function(n,r){n&1&&(m(0,"div",0),D(1,"img",1),m(2,"div",2),T(3,EZ,3,2,"ng-container",3),u()()),n&2&&(y("ngStyle",Be(5,yZ,r.width?r.width+"px":"auto"))("ngClass",r.miniSize?"mini":"large"),d(),G("src",r.url(),wr),G("alt",r.altText()),d(2),y("ngForOf",r.actions));},dependencies:[H,cs,an,Ot,Di,ce,ki,Me,Ee,Re,nt,St],styles:["[_nghost-%COMP%]:hover   .image-overlay[_ngcontent-%COMP%]{display:flex}.image-container[_ngcontent-%COMP%]{position:relative;text-align:center;display:inline-block}.image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:auto;display:block}.image-container.mini[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.image-container.mini[_ngcontent-%COMP%]   .image-overlay[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{padding:0;height:32px;width:32px;min-width:32px}.image-overlay[_ngcontent-%COMP%]{padding-top:5px;display:none;position:absolute;top:0;left:0;width:100%;justify-content:center;align-items:left;flex-wrap:wrap;background-color:#fff0}.image-overlay[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{height:30px;margin:2px}"]});}}return t;})();var nF=(()=>{class t{get vertical(){return this._vertical;}set vertical(e){this._vertical=Tr(e);}_vertical=!1;get inset(){return this._inset;}set inset(e){this._inset=Tr(e);}_inset=!1;static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,r){n&2&&(oe("aria-orientation",r.vertical?"vertical":"horizontal"),ne("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset));},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,r){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});}return t;})(),ei=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,fe]});}return t;})();var kZ=()=>[0];function MZ(t,i){if(t&1){let e=W();m(0,"cb-image-enhancer",9),S("createEditsEvent",function(){k(e);let r=x().$implicit,o=x();return M(o.createEdits(r.fullImageUrl));})("createVariationsEvent",function(){k(e);let r=x().$implicit,o=x();return M(o.createVariations(r.fullImageUrl));}),u();}if(t&2){let e=x().$implicit;y("disabledActions",Wn(4,kZ))("width",100)("url",e.imageUrl)("fullUrl",e.fullImageUrl);}}function SZ(t,i){if(t&1){let e=W();m(0,"div",2),T(1,MZ,1,5,"cb-image-enhancer",3),m(2,"div")(3,"a",4),S("click",function(){let r=k(e).$implicit,o=x();return M(o.goToCms(r));}),f(4),u(),D(5,"br"),m(6,"span",5),f(7),u(),f(8),m(9,"span",6),f(10),u(),D(11,"br")(12,"span",7),u(),D(13,"div",8)(14,"mat-divider"),u();}if(t&2){let e=i.$implicit,n=x();d(),y("ngIf",e.imageUrl),d(3),C(e.title),d(3),C(e.date),d(),P(" ",n.byTxt," "),d(2),C(e.author),d(2),y("innerHTML",n.sanitizer.bypassSecurityTrustHtml(e.excerpt),_c);}}var iF=(()=>{class t{constructor(e,n,r,o,a,s){this.service=e,this.sanitizer=n,this.unsavedChanges=r,this.dialog=o,this.env=a,this.router=s,this.posts=[],this.byTxt="par";}ngOnInit(){let e=this;this.service.cms.fetchNews("").pipe(de(1)).subscribe({next(n){e.posts=e.service.cms.convertWpPosts(n);},error(n){console.log("error encountered: ",n);},complete(){}});}createVariations(e){let n=this,r=encodeURI(e);this.service.openImageSizeAndCountDialog({title:"Cr\xE9er des variations",msg:"Soumettez vos options pour les variations.",msg2:""}).pipe(de(1)).subscribe({next(o){console.log("dialog result is ",o),n.router.navigate(["/image/variations",{img:r,count:o.count,size:o.size}]);},error(o){console.log("error encountered: ",o);},complete(){}});}createEdits(e){let n=encodeURI(e);this.router.navigate(["/image/edit",{editImg:n}]);}goToCms(e){this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(Vo,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:e.url}}):window.open(e.url,"_self");}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(rr),w(Pr),w(jt),w(je),w(Je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-news-card"]],decls:2,vars:1,consts:[[1,"news"],["class","article news-article",4,"ngFor","ngForOf"],[1,"article","news-article"],[3,"disabledActions","width","url","fullUrl","createEditsEvent","createVariationsEvent",4,"ngIf"],[3,"click","routerLink"],[1,"date"],[1,"author"],[1,"excerpt",3,"innerHTML"],[1,"clear"],[3,"createEditsEvent","createVariationsEvent","disabledActions","width","url","fullUrl"]],template:function(n,r){n&1&&(m(0,"div",0),T(1,SZ,15,6,"div",1),u()),n&2&&(d(),y("ngForOf",r.posts));},dependencies:[H,an,Ot,xd,Yt,Pn,ei,nF],encapsulation:2});}}return t;})();var TZ=()=>[0];function AZ(t,i){if(t&1){let e=W();m(0,"li",5)(1,"a",6),S("click",function(){let r=k(e).$implicit,o=x();return M(o.goToCms(r));}),f(2),u()();}if(t&2){let e=i.$implicit;d(2),C(e.title);}}function RZ(t,i){if(t&1){let e=W();m(0,"div",7)(1,"cb-image-enhancer",8),S("createEditsEvent",function(r){let o=k(e).$implicit,a=x();return M(a.createEdits(o,r));})("createVariationsEvent",function(){let r=k(e).$implicit,o=x();return M(o.createVariations(r.fullUrl));}),u()();}if(t&2){let e=i.$implicit;d(),y("disabledActions",Wn(4,TZ))("width",100)("url",e.url)("fullUrl",e.fullUrl);}}var rF=(()=>{class t{constructor(e,n,r,o){this.service=e,this.sanitizer=n,this.unsavedChanges=r,this.dialog=o,this.router=h(Je),this.createVariationsEvent=new z(),this.posts=[],this.images=[];}ngOnInit(){let e=this;this.service.cms.fetchRecentContent("").pipe(de(1)).subscribe({next(n){e.posts=e.service.cms.convertWpPosts(n);},error(n){console.log("error encountered: ",n);},complete(){}}),this.service.cms.fetchFeaturedImages("").pipe(de(1)).subscribe({next(n){n.forEach(r=>{let o=r.media_details.sizes.thumbnail.source_url;e.images.push({url:o,fullUrl:r.source_url,meta:r.media_details});});},error(n){console.log("error encountered: ",n);},complete(){}});}createVariations(e){let n=this,r=encodeURI(e);this.service.openImageSizeAndCountDialog({title:"Cr\xE9er des variations",msg:"Soumettez vos options pour les variations.",msg2:""}).pipe(de(1)).subscribe({next(o){console.log("dialog result is ",o),n.router.navigate(["/image/variations",{img:r,count:o.count,size:o.size}]);},error(o){console.log("error encountered: ",o);},complete(){}});}createEdits(e,n){let r=encodeURI(e.meta.sizes.full.source_url);console.log("create edit",n),this.router.navigate(["/image/edit",{editImg:r}]);}goToCms(e){this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(Vo,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:e.url}}):window.open(e.url,"_self");}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(rr),w(Pr),w(jt));};}static{this.ɵcmp=E({type:t,selectors:[["cb-recent-card"]],outputs:{createVariationsEvent:"createVariationsEvent"},decls:5,vars:2,consts:[[1,"recent"],[1,"articles"],["class","article recent-article",4,"ngFor","ngForOf"],[1,"image-container"],["class","image",4,"ngFor","ngForOf"],[1,"article","recent-article"],[3,"click","routerLink"],[1,"image"],[3,"createEditsEvent","createVariationsEvent","disabledActions","width","url","fullUrl"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"ul",1),T(2,AZ,3,1,"li",2),u(),m(3,"div",3),T(4,RZ,2,5,"div",4),u()()),n&2&&(d(2),y("ngForOf",r.posts),d(2),y("ngForOf",r.images));},dependencies:[H,an,xd,Yt,Pn],encapsulation:2});}}return t;})();function OZ(t,i){if(t&1){let e=W();m(0,"div",1)(1,"button",2),S("click",function(){k(e);let r=x();return M(r.action());}),f(2),u()();}if(t&2){let e=x();d(2),P(" ",e.data.action," ");}}var PZ=["label"];function FZ(t,i){}var NZ=Math.pow(2,31)-1,Bm=class{_overlayRef;instance;containerInstance;_afterDismissed=new U();_afterOpened=new U();_onAction=new U();_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,NZ));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1;}afterDismissed(){return this._afterDismissed;}afterOpened(){return this.containerInstance._onEnter;}onAction(){return this._onAction;}},oF=new R("MatSnackBarData"),wd=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom";},LZ=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});}return t;})(),VZ=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});}return t;})(),zZ=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});}return t;})(),aF=(()=>{class t{snackBarRef=h(Bm);data=h(oF);constructor(){}action(){this.snackBarRef.dismissWithAction();}get hasAction(){return!!this.data.action;}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(m(0,"div",0),f(1),u(),T(2,OZ,3,1,"div",1)),n&2&&(d(),P(" ",r.data.message,`
`),d(),K(r.hasAction?2:-1));},dependencies:[Me,LZ,VZ,zZ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});}return t;})(),BZ={snackBarState:kn("state",[Mt("void, hidden",Ze({transform:"scale(0.8)",opacity:0})),Mt("visible",Ze({transform:"scale(1)",opacity:1})),Zt("* => visible",en("150ms cubic-bezier(0, 0, 0.2, 1)")),Zt("* => void, * => hidden",en("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ze({opacity:0})))])},jZ=(()=>{class t extends _s{_ngZone=h(le);_elementRef=h(ee);_changeDetectorRef=h(ge);_platform=h(We);snackBarConfig=h(wd);_document=h(ve);_trackedModals=new Set();_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new U();_onExit=new U();_onEnter=new U();_animationState="void";_live;_label;_role;_liveElementId=h(pt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n;}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n;}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n;};onAnimationEnd(e){let{fromState:n,toState:r}=e;if((r==="void"&&n!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete();});}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce());}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId);}),this._onExit;}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit();}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`));}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],a=o.getAttribute("aria-owns");this._trackedModals.add(o),a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e);}}_clearFromModals(){this._trackedModals.forEach(e=>{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(Y(Si,7),Y(PZ,7)),n&2){let o;F(o=N())&&(r._portalOutlet=o.first),F(o=N())&&(r._label=o.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&uy("@state.done",function(a){return r.onAnimationEnd(a);}),n&2&&dy("@state",r._animationState);},features:[q],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(m(0,"div",1)(1,"div",2,0)(3,"div",3),T(4,FZ,0,0,"ng-template",4),u(),D(5,"div"),u()()),n&2&&(d(5),oe("aria-live",r._live)("role",r._role)("id",r._liveElementId));},dependencies:[Si],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[BZ.snackBarState]}});}return t;})();function $Z(){return new wd();}var HZ=new R("mat-snack-bar-default-options",{providedIn:"root",factory:$Z}),Vi=(()=>{class t{_overlay=h(hn);_live=h($c);_injector=h(Oe);_breakpointObserver=h(hs);_parentSnackBar=h(t,{optional:!0,skipSelf:!0});_defaultConfig=h(HZ);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=aF;snackBarContainerComponent=jZ;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel;}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e;}constructor(){}openFromComponent(e,n){return this._attach(e,n);}openFromTemplate(e,n){return this._attach(e,n);}open(e,n="",r){let o=j(j({},this._defaultConfig),r);return o.data={message:e,action:n},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o);}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,o=Oe.create({parent:r||this._injector,providers:[{provide:wd,useValue:n}]}),a=new io(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance;}_attach(e,n){let r=j(j(j({},new wd()),this._defaultConfig),n),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new Bm(a,o);if(e instanceof ot){let l=new Yn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l);}else{let l=this._createInjector(r,s),c=new io(e,void 0,l),p=a.attachComponentPortal(c);s.instance=p.instance;}return this._breakpointObserver.observe(WT.HandsetPortrait).pipe(Ae(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches);}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness);}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef;}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear();}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration));}_createOverlay(e){let n=new No();n.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n);}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Oe.create({parent:r||this._injector,providers:[{provide:Bm,useValue:n},{provide:oF,useValue:e.data}]});}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var As=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({providers:[Vi],imports:[Rr,mr,ce,fe,aF,fe]});}return t;})();var lF=(()=>{class t{constructor(e){this.service=e,this.router=h(Je),this.dialog=h(jt),this._snackBar=h(Vi),this.unsavedChanges=h(Pr),this.env=h(je),this.hint="Entrez votre question ici.",this.msg="",this.directions="Le chatbot peut r\xE9pondre \xE0 toutes sortes de questions (science, histoire, art, math\xE9matiques, etc.) et effectuer de nombreuses t\xE2ches (\xE9criture de code, po\xE9sie, traduction de texte). Le chatbot a \xE9t\xE9 form\xE9 jusqu'\xE0 environ un an auparavant.",this.directions2="Instructions:",this.directions3="Tapez votre question ou vos instructions ci-dessous. Si vous n'\xEAtes pas s\xFBr de comment commencer, utilisez le bouton Prompts et s\xE9lectionnez parmi les invites disponibl��es. Ensuite, cliquez sur le bouton d'envoi pour continuer.",this.promptsTip="Trouvez une directive pour vous aider \xE0 commencer.",this.promptsMsg="Instructions",this.clearTip="Effacez votre message.",this.clearMsg="Effacer",this.sendTip="Envoyer le message",this.sendMsg="Envoyer";}showPrompts(){let e=this;this.service.openPromptsDialog(!1).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.msg=o.Message,this._snackBar.open("La directive s\xE9lectionn\xE9e a \xE9t\xE9 ins\xE9r\xE9e.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});});}clear(){this.msg="";}send(){let e=encodeURIComponent(this.msg),n=window.location.protocol+"//"+window.location.host+"/chat/ask-me-anything?msg="+e;this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(Vo,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{navigation:["/chat/ask-me-anything",{msg:this.msg}],destinationUrl:n}}):this.router.navigate(["/chat/ask-me-anything",{msg:this.msg}]);}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-chat-card"]],decls:28,vars:13,consts:[["chatinput","","autosize","cdkTextareaAutosize"],[1,"directions2"],[1,"input-wrapper"],[1,"input","mat-form-field-no-padding"],[1,"large-label"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModelChange","ngModel"],[1,"example-spacer"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"]],template:function(n,r){if(n&1){let o=W();m(0,"p"),f(1),u(),m(2,"p")(3,"span",1),f(4),u(),f(5),u(),m(6,"div",2)(7,"mat-form-field",3)(8,"mat-label",4),f(9),u(),m(10,"textarea",5,0),Rn("ngModelChange",function(s){return k(o),jn(r.msg,s)||(r.msg=s),M(s);}),u()()(),m(13,"mat-toolbar"),D(14,"span",6),m(15,"button",7),S("click",function(){return k(o),M(r.send());}),m(16,"mat-icon"),f(17,"send"),u(),f(18),u(),m(19,"button",7),S("click",function(){return k(o),M(r.clear());}),m(20,"mat-icon"),f(21,"clear"),u(),f(22),u(),m(23,"button",8),S("click",function(){return k(o),M(r.showPrompts());}),m(24,"mat-icon"),f(25,"text_snippet"),u(),f(26),u(),D(27,"span",6),u();}n&2&&(d(),C(r.directions),d(3),P("",r.directions2," "),d(),P("",r.directions3,`
`),d(4),C(r.hint),d(),An("ngModel",r.msg),d(5),G("matTooltip",r.sendTip),y("disabled",!r.msg.length),d(3),P(" ",r.sendMsg," "),d(),G("matTooltip",r.clearTip),y("disabled",!r.msg.length),d(3),P(" ",r.clearMsg," "),d(),G("matTooltip",r.promptsTip),d(3),P(" ",r.promptsMsg," "));},dependencies:[H,$t,Ft,Pt,Tt,bn,Bo,un,dn,_n,so,Ii,Qn,nt,St,Ee,Re,ce,Me,_t,As,ei],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.directions2[_ngcontent-%COMP%]{font-weight:700}"]});}}return t;})();var cF=(()=>{class t{constructor(){this.service=h(pe),this.router=h(Je),this.dialog=h(jt),this._snackBar=h(Vi),this.hint="Describe the image here.",this.msg="",this.directions="Le chatbot peut cr\xE9er des images \xE0 partir d'une description textuelle. Gardez votre description simple (chiot, voiture), ou donnez autant de d\xE9tails que vous le souhaitez. Vous pouvez inclure le type d'art, les couleurs, les descriptions d'arri\xE8re-plan, etc. (par exemple, Une aquarelle repr\xE9sentant un lac avec des montagnes \xE0 l'arri\xE8re-plan.).",this.directions2="Instructions:",this.directions3="Tapez la description de l'image ci-dessous. Si vous n'\xEAtes pas s\xFBr de comment commencer, utilisez le bouton Prompts et s\xE9lectionnez parmi les invites disponibles. Ensuite, cliquez sur le bouton d'envoi pour continuer.",this.promptsTip="Trouvez une directive pour vous aider \xE0 commencer.",this.promptsMsg="Instructions",this.clearTip="Effacez votre message.",this.clearMsg="Effacer",this.sendTip="Envoyer le message",this.sendMsg="Envoyer";}showPrompts(){let e=this;this.service.openPromptsDialog(!0).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.msg=o.Message,this._snackBar.open("La directive s\xE9lectionn\xE9e a \xE9t\xE9 ins\xE9r\xE9e.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});});}clear(){this.msg="";}send(){let e=this,n={title:"Cr\xE9er des images",msg:"D\xE9finir les options d'image",msg2:"Note : Dalle-3 produit une seule image."};this.service.openImageCreateDialog(n).afterClosed().subscribe(o=>{if(!o){console.log("dialog closed with no data.");return;}if(o.quality){let a=encodeURI(this.msg);this.router.navigate(["/image/generate",{prompt:a,count:o.count,size:o.size,quality:o.quality,style:o.style}]);}else{let a=encodeURI(this.msg);this.router.navigate(["/image/generate",{msg:a,count:o.count,size:o.size}]);}console.log("results: ",o);});}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-images-card"]],decls:28,vars:13,consts:[["chatinput","","autosize","cdkTextareaAutosize"],[1,"directions2"],[1,"input-wrapper"],[1,"input","mat-form-field-no-padding"],[1,"large-label"],["type","text","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModelChange","ngModel"],[1,"example-spacer"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"]],template:function(n,r){if(n&1){let o=W();m(0,"p"),f(1),u(),m(2,"p")(3,"span",1),f(4),u(),f(5),u(),m(6,"div",2)(7,"mat-form-field",3)(8,"mat-label",4),f(9),u(),m(10,"textarea",5,0),Rn("ngModelChange",function(s){return k(o),jn(r.msg,s)||(r.msg=s),M(s);}),u()()(),m(13,"mat-toolbar"),D(14,"span",6),m(15,"button",7),S("click",function(){return k(o),M(r.send());}),m(16,"mat-icon"),f(17,"send"),u(),f(18),u(),m(19,"button",7),S("click",function(){return k(o),M(r.clear());}),m(20,"mat-icon"),f(21,"clear"),u(),f(22),u(),m(23,"button",8),S("click",function(){return k(o),M(r.showPrompts());}),m(24,"mat-icon"),f(25,"text_snippet"),u(),f(26),u(),D(27,"span",6),u();}n&2&&(d(),C(r.directions),d(3),P("",r.directions2," "),d(),P("",r.directions3,`
`),d(4),C(r.hint),d(),An("ngModel",r.msg),d(5),G("matTooltip",r.sendTip),y("disabled",!r.msg.length),d(3),P(" ",r.sendMsg," "),d(),G("matTooltip",r.clearTip),y("disabled",!r.msg.length),d(3),P(" ",r.clearMsg," "),d(),G("matTooltip",r.promptsTip),d(3),P(" ",r.promptsMsg," "));},dependencies:[H,un,dn,_n,so,$t,Ft,Pt,Tt,bn,Bo,Ii,Qn,nt,St,Ee,Re,ce,Me,_t,As,ei],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.directions2[_ngcontent-%COMP%]{font-weight:700}"]});}}return t;})();var UZ=()=>["/chat/character"],qZ=t=>({id:t});function WZ(t,i){t&1&&(m(0,"div",1),D(1,"mat-spinner",4),u()),t&2&&(d(),y("diameter",40));}function GZ(t,i){if(t&1&&(m(0,"div",2),f(1),u()),t&2){let e=x();d(),C(e.noCharacters);}}function QZ(t,i){if(t&1&&(m(0,"span",5)(1,"span",6)(2,"span")(3,"span",7),D(4,"cb-gravatar",8),u()(),m(5,"span")(6,"span",9)(7,"span",7)(8,"mat-icon",10),f(9,"sports_soccer"),u()(),m(10,"span",11)(11,"mat-icon",10),f(12,"chat_bubble_outline"),u()(),m(13,"span",11)(14,"mat-icon",10),f(15,"check_box"),u()(),m(16,"span",11)(17,"mat-icon",10),f(18,"settings"),u()()()()(),m(19,"div")(20,"mat-toolbar"),D(21,"span",12),m(22,"span")(23,"a",13),f(24),m(25,"mat-icon",10),f(26,"question_answer"),u()()(),D(27,"span",12),u()()()),t&2){let e=i.$implicit,n=x(2);d(3),y("matTooltip",n.descriptionTxt+n.service.truncateString(e.description,250))("matTooltipPosition","below"),d(),y("email",e.email),d(3),y("matTooltip",n.hobbiesTxt+n.service.truncateString(e.hobbies,250))("matTooltipPosition","below"),d(3),y("matTooltip",n.perDayTxt+e.commentsPerDay),d(3),y("matTooltip",n.enabledTxt+e.enabled),d(3),y("matTooltip",n.settingsTxt),d(7),y("routerLink",Wn(11,UZ))("queryParams",Be(12,qZ,e.name)),d(),P(" ",e.name," ");}}function YZ(t,i){if(t&1&&(m(0,"div",3),ci(1,QZ,28,14,"span",5,os),u()),t&2){let e=x();d(),di(e.characters);}}var dF=(()=>{class t{constructor(e,n,r,o){this.service=e,this.api=n,this.sanitizer=r,this.env=o,this.directions="Les personnages peuvent effectuer diverses t\xE2ches, telles que commenter et r\xE9pondre \xE0 des articles. Les personnages ont des noms, des avatars, une description, une liste de loisirs, un e-mail, etc., dont la plupart peuvent \xEAtre configur\xE9s.",this.noCharacters="Aucun personnage activ\xE9 :",this.descriptionTxt="Description :",this.hobbiesTxt="Loisirs :",this.perDayTxt="Commentaires par jour :",this.enabledTxt="Activ\xE9 :",this.settingsTxt="Configurer le personnage",this.characters=[],this.loading=!0;}ngOnInit(){let e=this;this.api.characters.getAllCharacters().pipe(de(1)).subscribe({next(n){console.log("characters card characters",n);let r=e.env.get().slug,o=e.api.characters.extractCharacters(n);o=o.filter(a=>a.enabled?r===a.siteId||r==="demo"&&a.siteId==="tsai":!1).sort((a,s)=>a.name<s.name?-1:a.name>s.name?1:0),e.characters=o,e.loading=!1;},error(n){console.log("error encountered: ",n);},complete(){}});}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(Ht),w(rr),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-characters-card"]],decls:6,vars:2,consts:[[1,"characters"],[1,"spinner-container"],[1,"character-list-label"],[1,"character-container"],["mode","indeterminate",3,"diameter"],[1,"character"],[1,"character-box"],[3,"matTooltip","matTooltipPosition"],[3,"email"],[1,"info-container"],[1,"info-icon"],[3,"matTooltip"],[1,"flex-spacer"],["mat-raised-button","",1,"character-link",3,"routerLink","queryParams"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"p"),f(2),u()(),T(3,WZ,2,1,"div",1)(4,GZ,2,1,"div",2)(5,YZ,3,0,"div",3)),n&2&&(d(2),C(r.directions),d(),K(r.loading?3:r.characters.length?5:4));},dependencies:[H,Yt,Pn,Xn,Kn,ra,nt,St,Ee,Re,ei,ce,ki,Ii,Qn],styles:[".directions2[_ngcontent-%COMP%], .character-list-label[_ngcontent-%COMP%]{font-weight:700}.character-container[_ngcontent-%COMP%]{text-align:center;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-around;gap:2px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline);margin:8px 1px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   .character-box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   .character-box[_ngcontent-%COMP%]   .character-link[_ngcontent-%COMP%]{margin:0 0 5px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   .character-box[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   .character-box[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;margin:3px 3px 3px -3px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]{height:48px;background-color:var(--mat-sys-surface-variant);padding:0}"]});}}return t;})();var uF=(()=>{class t{constructor(){this.description="Cette application devrait fonctionner correctement sur la plupart des navigateurs, mais il s'agit d'un produit b\xEAta et tous les navigateurs n'ont pas \xE9t\xE9 test\xE9s. Vous pouvez trouver des conseils, des conseils et des informations de contact ici. Les commentaires et les suggestions sont encourag\xE9s.",this.description2="Pour obtenir de l'aide suppl\xE9mentaire, vous pouvez contacter un membre de notre \xE9quipe de support IA.";}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-support-card"]],decls:16,vars:3,consts:[[1,"banner","center","cb-outline"],[1,"intro","flex-center"],[1,"intro-inner"],[1,"bold"],[3,"email"],["mat-raised-button","","target","_blank","href","https://turmansolutions.ai/ai-team/roberto"]],template:function(n,r){n&1&&(m(0,"div")(1,"p"),f(2),u(),m(3,"section",0)(4,"div",1)(5,"div",2),f(6),u()(),m(7,"h3",3),f(8,"Roberto"),u(),D(9,"cb-gravatar",4),m(10,"h5"),f(11,"AI Support Engineer"),u(),m(12,"a",5),f(13,"Chat Now "),m(14,"mat-icon"),f(15,"open_in_new"),u()()()()),n&2&&(d(2),C(r.description),d(4),C(r.description2),d(3),y("email","roberto@turmansolutions.ai"));},dependencies:[ra,nt,ce,ki,Ee,Re],styles:[".banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{margin:20px 0}.banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .intro-inner[_ngcontent-%COMP%]{width:250px}"]});}}return t;})();var mF=(()=>{class t{constructor(){this.description="Chatbot est une application web qui permet aux utilisateurs de discuter avec une API IA, et peut \xEAtre utilis\xE9 pour rechercher l'histoire, \xE9crire du code ou de la po\xE9sie, r\xE9pondre \xE0 des questions de math\xE9matiques et de sciences, traduire du texte, cr\xE9er et \xE9diter des images, et bien plus encore !",this.description2="D\xE9couvrez-en plus sur notre produit en discutant avec un membre de notre \xE9quipe de vente IA.";}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-about-card"]],decls:16,vars:3,consts:[[1,"banner","center","cb-outline"],[1,"intro","flex-center"],[1,"intro-inner"],[1,"bold"],[3,"email"],["mat-raised-button","","target","_blank","href","https://turmansolutions.ai/ai-team/alma"]],template:function(n,r){n&1&&(m(0,"div")(1,"p"),f(2),u(),m(3,"section",0)(4,"div",1)(5,"div",2),f(6),u()(),m(7,"h3",3),f(8,"Alma"),u(),D(9,"cb-gravatar",4),m(10,"h5"),f(11,"AI Sales Rep"),u(),m(12,"a",5),f(13,"Chat Now "),m(14,"mat-icon"),f(15,"open_in_new"),u()()()()),n&2&&(d(2),C(r.description),d(4),C(r.description2),d(3),y("email","alma@turmansolutions.ai"));},dependencies:[ra,nt,ce,ki,Ee,Re],styles:[".banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{margin:20px 0}.banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .intro-inner[_ngcontent-%COMP%]{width:250px}"]});}}return t;})();function ZZ(t,i){t&1&&(ye(0),D(1,"cb-chat-card"),xe());}function KZ(t,i){t&1&&(ye(0),D(1,"cb-images-card"),xe());}function XZ(t,i){t&1&&(ye(0),D(1,"cb-characters-card"),xe());}function JZ(t,i){t&1&&(ye(0),D(1,"api-card"),xe());}function eK(t,i){t&1&&(ye(0),D(1,"cb-recent-card"),xe());}function tK(t,i){t&1&&(ye(0),D(1,"cb-news-card"),xe());}function nK(t,i){t&1&&(ye(0),D(1,"cb-about-card"),xe());}function iK(t,i){t&1&&(ye(0),D(1,"cb-support-card"),xe());}function rK(t,i){if(t&1&&(m(0,"p"),f(1),u()),t&2){let e=x(2).$implicit;d(),P(" ",e.description," ");}}function oK(t,i){if(t&1&&D(0,"cb-quicklinks",10),t&2){let e=x(2).$implicit;y("links",e.quickLinks);}}function aK(t,i){if(t&1&&(m(0,"a",11,0),f(2),u()),t&2){let e=x(2).$implicit;y("routerLink",e.link.href),d(2),C(e.link.name);}}function sK(t,i){if(t&1&&(m(0,"mat-card",5)(1,"mat-card-header")(2,"mat-icon",6),f(3),u(),m(4,"mat-card-title"),f(5),u(),m(6,"mat-card-subtitle"),f(7),u()(),m(8,"mat-card-content"),T(9,ZZ,2,0,"ng-container",7)(10,KZ,2,0,"ng-container",7)(11,XZ,2,0,"ng-container",7)(12,JZ,2,0,"ng-container",7)(13,eK,2,0,"ng-container",7)(14,tK,2,0,"ng-container",7)(15,nK,2,0,"ng-container",7)(16,iK,2,0,"ng-container",7)(17,rK,2,1,"p",7),u(),m(18,"mat-card-actions"),T(19,oK,1,1,"cb-quicklinks",8)(20,aK,3,2,"a",9),u()()),t&2){let e=x().$implicit;d(2),Cr("chat-icon-",e.link.href,""),d(),C(e.icon),d(2),C(e.title),d(2),C(e.subtitle),d(2),y("ngIf",e.id==="chat"),d(),y("ngIf",e.id==="images"),d(),y("ngIf",e.id==="characters"),d(),y("ngIf",e.id==="api"),d(),y("ngIf",e.id==="recent"),d(),y("ngIf",e.id==="news"),d(),y("ngIf",e.id==="about"),d(),y("ngIf",e.id==="support"),d(),y("ngIf",!e.dynamic),d(2),y("ngIf",e.quickLinks&&e.quickLinks.length),d(),y("ngIf",!e.quickLinks);}}function lK(t,i){if(t&1&&(ye(0),T(1,sK,21,17,"mat-card",4),xe()),t&2){let e=i.$implicit;d(),y("ngIf",e.enabled);}}var pF=(()=>{class t{constructor(e,n){this.navService=e,this.titleService=n,this.home="Accueil",this.cards=[],this.titleService.setTitle("Chatbot - "+this.home),this.cards=this.navService.homeCards;}static{this.ɵfac=function(n){return new(n||t)(w($o),w(Ei));};}static{this.ɵcmp=E({type:t,selectors:[["cb-home"]],decls:3,vars:2,consts:[["rla","routerLinkActive"],[3,"title"],[1,"dash-cards"],[4,"ngFor","ngForOf"],["class","dash-card",4,"ngIf"],[1,"dash-card"],["mat-card-avatar","",2,"width","32px","height","32px","font-size","32px"],[4,"ngIf"],[3,"links",4,"ngIf"],["mat-raised-button","","routerLinkActive","",3,"routerLink",4,"ngIf"],[3,"links"],["mat-raised-button","","routerLinkActive","",3,"routerLink"]],template:function(n,r){n&1&&(D(0,"cb-page-header",1),m(1,"div",2),T(2,lK,2,1,"ng-container",3),u()),n&2&&(y("title",r.home),d(2),y("ngForOf",r.cards));},dependencies:[H,an,Ot,cd,nd,ad,ld,rd,sd,od,id,ce,ki,ei,Ee,Re,Yt,Pn,Rc,GA,tF,yn,iF,rF,lF,cF,dF,uF,mF],encapsulation:2});}}return t;})();var cK=["autosize"],dK=["prompterinput"];function uK(t,i){if(t&1){let e=W();m(0,"div",2)(1,"mat-form-field",11)(2,"mat-label"),f(3),u(),m(4,"textarea",12,1),Rn("ngModelChange",function(r){k(e);let o=x();return jn(o.config.message,r)||(o.config.message=r),M(r);}),u()()();}if(t&2){let e=x();d(3),C(e.config.messageHint),d(),An("ngModel",e.config.message);}}function mK(t,i){if(t&1){let e=W();m(0,"button",13),S("click",function(){k(e);let r=x();return M(r.send());}),m(1,"mat-icon"),f(2,"send"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.sendTip),y("disabled",!e.sendEnabled()),d(3),P(" ",e.sendMsg," ");}}function pK(t,i){if(t&1){let e=W();m(0,"button",13),S("click",function(){k(e);let r=x();return M(r.share());}),m(1,"mat-icon"),f(2,"ios_share"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.shareTip),y("disabled",!e.shareEnabled()),d(3),P(" ",e.shareMsg," ");}}function hK(t,i){if(t&1){let e=W();m(0,"button",13),S("click",function(){k(e);let r=x();return M(r.clear());}),m(1,"mat-icon"),f(2,"clear"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.clearTip),y("disabled",!e.config.message),d(3),P(" ",e.clearMsg," ");}}function fK(t,i){if(t&1){let e=W();m(0,"button",14),S("click",function(){k(e);let r=x();return M(r.refresh());}),m(1,"mat-icon"),f(2,"refresh"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.refreshTip),y("disabled",!e.refreshEnabled()),d(3),P(" ",e.refreshTxt," ");}}function gK(t,i){if(t&1){let e=W();m(0,"button",15),S("click",function(){k(e);let r=x();return M(r.hit());}),m(1,"mat-icon"),f(2,"swipe_down"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.hitTip),d(3),P(" ",e.hitMsg," ");}}function _K(t,i){if(t&1){let e=W();m(0,"button",15),S("click",function(){k(e);let r=x();return M(r.stick());}),m(1,"mat-icon"),f(2,"back_hand"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.stickTip),d(3),P(" ",e.stickMsg," ");}}function bK(t,i){if(t&1){let e=W();m(0,"button",16),S("click",function(){k(e);let r=x();return M(r.newConversation());}),m(1,"mat-icon"),f(2,"create"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.newTip),y("disabled",!e.newEnabled()),d(3),P(" ",e.newTxt," ");}}function vK(t,i){if(t&1){let e=W();m(0,"button",17),S("click",function(){k(e);let r=x();return M(r.save());}),m(1,"mat-icon"),f(2,"cloud_upload"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.saveTip),y("disabled",!e.saveEnabled()),d(3),P(" ",e.saveTxt," ");}}function yK(t,i){if(t&1){let e=W();m(0,"button",15),S("click",function(){k(e);let r=x();return M(r.showPrompts());}),m(1,"mat-icon"),f(2,"text_snippet"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.promptsTip),d(3),P(" ",e.promptsMsg," ");}}function xK(t,i){if(t&1){let e=W();ye(0),m(1,"button",13),S("click",function(){k(e),x();let r=Ke(15);return r.value="",M(r.click());}),m(2,"mat-icon"),f(3,"upload_file"),u(),f(4),u(),xe();}if(t&2){let e=x();d(),G("matTooltip",e.uploadTip),y("disabled",!1),d(3),P(" ",e.uploadMsg," ");}}function wK(t,i){if(t&1){let e=W();m(0,"button",15),S("click",function(){k(e);let r=x();return M(r.showSimilarContent());}),m(1,"mat-icon"),f(2,"thumb_up"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.similarTip),d(3),P(" ",e.similarMsg," ");}}function CK(t,i){if(t&1){let e=W();m(0,"button",15),S("click",function(){k(e);let r=x();return M(r.showDifferentContent());}),m(1,"mat-icon"),f(2,"refresh"),u(),f(3),u();}if(t&2){let e=x();G("matTooltip",e.differentTip),d(3),P(" ",e.differentMsg," ");}}var Cd=(()=>{class t{triggerResize(){Cn(()=>{this.autosize.resizeToFitContent(!0);},{injector:this._injector});}constructor(e,n,r,o){this.service=e,this.api=n,this.dialog=r,this.env=o,this.shareEnabled=ct(!1),this.saveEnabled=ct(!1),this.newEnabled=ct(!1),this.refreshEnabled=ct(!1),this._injector=h(Oe),this.inProgress=!1,this.sendMessageEvent=new z(),this.saveEvent=new z(),this.shareEvent=new z(),this.newEvent=new z(),this.refreshEvent=new z(),this.uploadEvent=new z(),this.showPromptsEvent=new z(),this.refreshTip="Effacer la conversation en cours et commencer une autre.",this.refreshTxt="Red\xE9marrer",this.newTip="Effacer la conversation en cours et commencer une autre.",this.newTxt="Tout Effacer",this.saveTip="Enregistrer la conversation en cours",this.saveTxt="Enregistrer",this.clearTip="Effacer votre message",this.clearMsg="Effacer",this.promptsTip="Trouvez une directive pour vous aider \xE0 commencer.",this.promptsMsg="Instructions",this.uploadTip="T\xE9l\xE9chargez une image depuis votre appareil.",this.uploadMsg="T\xE9l\xE9charger",this.shareTip="Partagez ce contenu avec les autres.",this.shareMsg="Partager...",this.sendTip="Envoyez votre message au Chatbot.",this.sendMsg="Envoyer",this.similarTip="Voir une autre citation comme celle-ci",this.similarMsg="Similaire",this.differentTip="Changer pour un autre sujet philosophique",this.differentMsg="Diff\xE9rent",this.hitTip="Prenez une autre carte",this.hitMsg="Tirez",this.stickTip="Ne prenez pas de carte",this.stickMsg="Restez",this.uploadFileType="image/png,image/jpeg,image/gif",this.uploadFileName="",this.uploadFileSent=!1,this.uploadCompleteEvent=new z(),this.fileSentEvent=new z(),this.config=e.createDefaultWidgetConfig();}ngOnInit(){}ngAfterViewInit(){}clear(){this.config.message="";}save(){this.saveEvent.emit(!0);}share(){this.shareEvent.emit(!0);}refresh(){this.refreshEvent.emit(!0),this.config.message="";}newConversation(){this.newEvent.emit(!0),this.config.message="";}showPrompts(){this.showPromptsEvent.emit(!0);}onFileSelected(e){let n=e.target.files[0];if(!n){console.log("file not selected");return;}this.fileSentEvent.emit(!0),this.uploadFileSent=!0,this.uploadFileName=n.name,this.uploadSub=this.api.sendFile(n).subscribe(r=>{this.uploadCompleteEvent.emit(r);},r=>{console.log("error: ",r);});}sendEnabled(){return this.config.features.prompt?this.config.message.length>0:!1;}send(){if(this.config.features.imageCount){this.config.endpoint===te.imageGenerate?this.sendD3Image():this.sendImage();return;}let e={userId:Et.human,endpoint:this.config.endpoint,body:this.config.message,bodyOriginal:this.config.message,imageCount:0,imageSize:""};e.id=++Nt.sNextID,this.sendMessageEvent.emit(e),this.config.message="";}sendD3Image(){let e=this,n={title:"Cr\xE9er des images",msg:"D\xE9finir les options d'image",msg2:"Note : Dalle-3 produit une seule image."};this.service.openImageCreateDialog(n).afterClosed().subscribe(o=>{if(!o)return;console.log("Dialog result: ",o);let a={userId:Et.human,endpoint:e.config.endpoint,body:e.config.message,bodyOriginal:e.config.message,imageCount:parseInt(o.count,10),imageSize:o.size};a.id=++Nt.sNextID,o.quality&&(a.d3RequestData={prompt:e.config.message,count:o.count,size:o.size,quality:o.quality,style:o.style,user:"demo user"}),this.sendMessageEvent.emit(a),this.config.message="";});}sendImage(){let e=this;this.dialog.open(Ts,{width:"516px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{title:"Cr\xE9er une image",msg:"",msg2:""}}).afterClosed().subscribe(a=>{if(!a)return;console.log("Dialog result: ",a);let s={userId:Et.human,endpoint:e.config.endpoint,body:e.config.message,bodyOriginal:e.config.message,imageCount:parseInt(a.count,10),imageSize:a.size};s.id=++Nt.sNextID,this.sendMessageEvent.emit(s),this.config.message="";});}showSimilarContent(){let e=this.config.message;e+=" Make this quote similar to the last one.";let n={userId:Et.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!1,progressMessage:"Recherche de citations similaires. Veuillez patienter..."};n.id=++Nt.sNextID,this.sendMessageEvent.emit(n);}showDifferentContent(){let e=this.config.message;e+=" Make this quote different than the last one.";let n={userId:Et.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!1,progressMessage:"Recherche de citations philosophiques. Veuillez patienter..."};n.id=++Nt.sNextID,this.sendMessageEvent.emit(n);}hit(){let e="hit",n={userId:Et.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!0,progressMessage:"Prenez une carte. Veuillez attendre..."};n.id=++Nt.sNextID,this.sendMessageEvent.emit(n);}stick(){let e="stick",n={userId:Et.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!0,progressMessage:"Ne prenez pas de carte. Veuillez attendre."};n.id=++Nt.sNextID,this.sendMessageEvent.emit(n);}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(Ht),w(jt),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-prompter"]],viewQuery:function(n,r){if(n&1&&(Y(cK,5),Y(dK,5)),n&2){let o;F(o=N())&&(r.autosize=o.first),F(o=N())&&(r.prompterinput=o.first);}},inputs:{config:"config",shareEnabled:[1,"shareEnabled"],saveEnabled:[1,"saveEnabled"],newEnabled:[1,"newEnabled"],refreshEnabled:[1,"refreshEnabled"]},outputs:{sendMessageEvent:"sendMessageEvent",saveEvent:"saveEvent",shareEvent:"shareEvent",newEvent:"newEvent",refreshEvent:"refreshEvent",uploadEvent:"uploadEvent",showPromptsEvent:"showPromptsEvent",uploadCompleteEvent:"uploadCompleteEvent",fileSentEvent:"fileSentEvent"},decls:16,vars:14,consts:[["fileUpload",""],["autosize","cdkTextareaAutosize"],[1,"prompter-input-wrapper"],[1,"custom-toolbar"],["mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["class","clear-all","mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-raised-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","new","mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-raised-button","","aria-label","Save","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],[4,"ngIf"],["type","file","name","fileToUpload","id","fileToUpload",1,"file-input",3,"change","accept"],[1,"prompter-input"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"ngModelChange","ngModel"],["mat-raised-button","","matTooltipPosition","above",3,"click","disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"clear-all",3,"click","disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"new",3,"click","disabled","matTooltip"],["mat-raised-button","","aria-label","Save","matTooltipPosition","above",3,"click","disabled","matTooltip"]],template:function(n,r){if(n&1){let o=W();T(0,uK,6,2,"div",2),m(1,"div",3),T(2,mK,4,3,"button",4)(3,pK,4,3,"button",4)(4,hK,4,3,"button",4)(5,fK,4,3,"button",5)(6,gK,4,2,"button",6)(7,_K,4,2,"button",6)(8,bK,4,3,"button",7)(9,vK,4,3,"button",8)(10,yK,4,2,"button",6)(11,xK,5,3,"ng-container",9)(12,wK,4,2,"button",6)(13,CK,4,2,"button",6),u(),m(14,"input",10,0),S("change",function(s){return k(o),M(r.onFileSelected(s));}),u();}n&2&&(K(r.config.features.prompt?0:-1),d(2),y("ngIf",r.config.features.send),d(),y("ngIf",r.config.features.share),d(),y("ngIf",r.config.features.clear),d(),y("ngIf",r.config.features.refresh),d(),y("ngIf",r.config.endpoint===18),d(),y("ngIf",r.config.endpoint===18),d(),y("ngIf",r.config.features.new),d(),y("ngIf",r.config.features.save),d(),y("ngIf",r.config.features.prompts.enabled),d(),y("ngIf",r.config.features.uploadImages),d(),y("ngIf",r.config.endpoint===3),d(),y("ngIf",r.config.endpoint===3),d(),y("accept",r.uploadFileType));},dependencies:[H,Ot,Tt,bn,Ft,Pt,Bo,$t,un,dn,_n,so,Ee,Re,Ii,ce,Me,ia,Jo,nt,St],styles:["@media (max-width: var(--cb-break-point-small)){.custom-toolbar[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:none}}@media (max-width: var(--cb-break-point-xsmall)){.custom-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:70px!important}}.custom-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:5px}.custom-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px 4px;height:50px!important;min-width:90px;border-radius:7px}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}#image-count[_ngcontent-%COMP%], #image-size[_ngcontent-%COMP%]{width:150px;margin-top:20px;margin-left:15px}.file-input[_ngcontent-%COMP%]{display:none}"]});}}return t;})();var hF=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[Nc,fe,no,Xx,ei]});}return t;})();var DK=["knob"],EK=["valueIndicatorContainer"];function IK(t,i){if(t&1&&(m(0,"div",2,1)(2,"div",5)(3,"span",6),f(4),u()()()),t&2){let e=x();d(4),C(e.valueIndicatorText);}}var kK=["trackActive"],MK=["*"];function SK(t,i){if(t&1&&D(0,"div"),t&2){let e=i.$implicit,n=i.$index,r=x(3);Dt(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),qn("transform",r._calcTickMarkTransform(n));}}function TK(t,i){if(t&1&&ci(0,SK,1,4,"div",8,os),t&2){let e=x(2);di(e._tickMarks);}}function AK(t,i){if(t&1&&(m(0,"div",6,1),T(2,TK,2,0),u()),t&2){let e=x();d(2),K(e._cachedWidth?2:-1);}}function RK(t,i){if(t&1&&D(0,"mat-slider-visual-thumb",7),t&2){let e=x();y("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText);}}var qe=function(t){return t[t.START=1]="START",t[t.END=2]="END",t;}(qe||{}),Dd=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t;}(Dd||{}),LC=new R("_MatSlider"),fF=new R("_MatSliderThumb"),OK=new R("_MatSliderRangeThumb"),gF=new R("_MatSliderVisualThumb");var PK=(()=>{class t{_cdr=h(ge);_ngZone=h(le);_slider=h(LC);_renderer=h(wt);_listenerCleanups;discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=h(ee).nativeElement;_platform=h(We);constructor(){}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let n=this._sliderInputEl,r=this._renderer;this._listenerCleanups=[r.listen(n,"pointermove",this._onPointerMove),r.listen(n,"pointerdown",this._onDragStart),r.listen(n,"pointerup",this._onDragEnd),r.listen(n,"pointerleave",this._onMouseLeave),r.listen(n,"focus",this._onFocus),r.listen(n,"blur",this._onBlur)];}));}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e());}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let n=this._hostElement.getBoundingClientRect(),r=this._slider._isCursorOnSliderThumb(e,n);this._isHovered=r,r?this._showHoverRipple():this._hideRipple(this._hoverRippleRef);};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef);};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused");};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused");};_onDragStart=e=>{e.button===0&&(this._isActive=!0,this._showActiveRipple());};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple();};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"));}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"));}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"));}_isShowingRipple(e){return e?.state===Ni.FADING_IN||e?.state===Ni.VISIBLE;}_showRipple(e,n){if(!this._slider.di��sabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===qe.START?qe.END:qe.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!n)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0});}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let n=this._getSibling();n._isShowingAnyRipple()||(this._hideValueIndicator(),n._hideValueIndicator());}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator");}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator");}_getSibling(){return this._slider._getThumb(this.thumbPosition===qe.START?qe.END:qe.START);}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement;}_getKnob(){return this._knob.nativeElement;}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(n,r){if(n&1&&(Y(Li,5),Y(DK,5),Y(EK,5)),n&2){let o;F(o=N())&&(r._ripple=o.first),F(o=N())&&(r._knob=o.first),F(o=N())&&(r._valueIndicatorContainer=o.first);}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[be([{provide:gF,useExisting:t}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(n,r){n&1&&(T(0,IK,5,1,"div",2),D(1,"div",3,0)(3,"div",4)),n&2&&(K(r.discrete?0:-1),d(3),y("matRippleDisabled",!0));},dependencies:[Li],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0});}return t;})(),S0=(()=>{class t{_ngZone=h(le);_cdr=h(ge);_elementRef=h(ee);_dir=h(Jt,{optional:!0});_globalRippleOptions=h(Uc,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled;}set disabled(e){this._disabled=e;let n=this._getInput(qe.END),r=this._getInput(qe.START);n&&(n.disabled=this._disabled),r&&(r.disabled=this._disabled);}_disabled=!1;get discrete(){return this._discrete;}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs();}_discrete=!1;showTickMarks=!1;get min(){return this._min;}set min(e){let n=isNaN(e)?this._min:e;this._min!==n&&this._updateMin(n);}_min=0;color;disableRipple=!1;_updateMin(e){let n=this._min;this._min=e,this._isRange?this._updateMinRange({old:n,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange();}_updateMinRange(e){let n=this._getInput(qe.END),r=this._getInput(qe.START),o=n.value,a=r.value;r.min=e.new,n.min=Math.max(e.new,r.value),r.max=Math.min(n.max,n.value),r._updateWidthInactive(),n._updateWidthInactive(),e.new<e.old?this._onTranslateXChangeBySideEffect(n,r):this._onTranslateXChangeBySideEffect(r,n),o!==n.value&&this._onValueChange(n),a!==r.value&&this._onValueChange(r);}_updateMinNonRange(e){let n=this._getInput(qe.END);if(n){let r=n.value;n.min=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n);}}get max(){return this._max;}set max(e){let n=isNaN(e)?this._max:e;this._max!==n&&this._updateMax(n);}_max=100;_updateMax(e){let n=this._max;this._max=e,this._isRange?this._updateMaxRange({old:n,new:e}):this._updateMaxNonRange(e),this._onMinMaxOrStepChange();}_updateMaxRange(e){let n=this._getInput(qe.END),r=this._getInput(qe.START),o=n.value,a=r.value;n.max=e.new,r.max=Math.min(e.new,n.value),n.min=r.value,n._updateWidthInactive(),r._updateWidthInactive(),e.new>e.old?this._onTranslateXChangeBySideEffect(r,n):this._onTranslateXChangeBySideEffect(n,r),o!==n.value&&this._onValueChange(n),a!==r.value&&this._onValueChange(r);}_updateMaxNonRange(e){let n=this._getInput(qe.END);if(n){let r=n.value;n.max=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n);}}get step(){return this._step;}set step(e){let n=isNaN(e)?this._step:e;this._step!==n&&this._updateStep(n);}_step=1;_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange();}_updateStepRange(){let e=this._getInput(qe.END),n=this._getInput(qe.START),r=e.value,o=n.value,a=n.value;e.min=this._min,n.max=this._max,e.step=this._step,n.step=this._step,this._platform.SAFARI&&(e.value=e.value,n.value=n.value),e.min=Math.max(this._min,n.value),n.max=Math.min(this._max,e.value),n._updateWidthInactive(),e._updateWidthInactive(),e.value<a?this._onTranslateXChangeBySideEffect(n,e):this._onTranslateXChangeBySideEffect(e,n),r!==e.value&&this._onValueChange(e),o!==n.value&&this._onValueChange(n);}_updateStepNonRange(){let e=this._getInput(qe.END);if(e){let n=e.value;e.step=this._step,this._platform.SAFARI&&(e.value=e.value),e._updateThumbUIByValue(),n!==e.value&&this._onValueChange(e);}}displayWith=e=>`${e}`;_tickMarks;_noopAnimations;_dirChangeSubscription;_resizeObserver;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=!1;_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=h(We);constructor(){h(kt).load(Fn);let e=h(mt,{optional:!0});this._noopAnimations=e==="NoopAnimations",this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl");}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(qe.END),n=this._getInput(qe.START);this._isRange=!!e&&!!n,this._cdr.detectChanges();let r=this._getThumb(qe.END);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,n):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges();}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue();}_initUIRange(e,n){e.initProps(),e.initUI(),n.initProps(),n.initUI(),e._updateMinMax(),n._updateMinMax(),e._updateStaticStyles(),n._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),n._updateThumbUIByValue();}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null;}_onDirChange(){this._isRtl=this._dir?.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI();}_onDirChangeRange(){let e=this._getInput(qe.END),n=this._getInput(qe.START);e._setIsLeftThumb(),n._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),n.translateX=n._calcTranslateXByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateWidthInactive(),n._updateWidthInactive(),e._updateThumbUIByValue(),n._updateThumbUIByValue();}_onDirChangeNonRange(){this._getInput(qe.END)._updateThumbUIByValue();}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize());}),this._resizeObserver.observe(this._elementRef.nativeElement);});}_isActive(){return this._getThumb(qe.START)._isActive||this._getThumb(qe.END)._isActive;}_getValue(e=qe.END){let n=this._getInput(e);return n?n.value:this.min;}_skipUpdate(){return!!(this._getInput(qe.START)?._skipUIUpdate||this._getInput(qe.END)?._skipUIUpdate);}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left;}_setTrackActiveStyles(e){let n=this._trackActive.nativeElement.style;n.left=e.left,n.right=e.right,n.transformOrigin=e.transformOrigin,n.transform=e.transform;}_calcTickMarkTransform(e){let n=e*(this._tickMarkTrackWidth/(this._tickMarks.length-1));return`translateX(${this._isRtl?this._cachedWidth-6-n:n}px`;}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e));}_onTranslateXChangeBySideEffect(e,n){this._hasViewInitialized&&(e._updateThumbUIByValue(),n._updateThumbUIByValue());}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges());}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck());}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(qe.END),n=this._getInput(qe.START);e._updateThumbUIByValue(),n._updateThumbUIByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateMinMax(),n._updateMinMax(),e._updateWidthInactive(),n._updateWidthInactive();}else{let e=this._getInput(qe.END);e&&e._updateThumbUIByValue();}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges();}}_thumbsOverlap=!1;_areThumbsOverlapping(){let e=this._getInput(qe.START),n=this._getInput(qe.END);return!e||!n?!1:n.translateX-e.translateX<20;}_updateOverlappingThumbClassNames(e){let n=e.getSibling(),r=this._getThumb(e.thumbPosition);this._getThumb(n.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap);}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e));}_updateThumbUI(e){if(this._skipUpdate())return;let n=this._getThumb(e.thumbPosition===qe.END?qe.END:qe.START);n._hostElement.style.transform=`translateX(${e.translateX}px)`;}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let n=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(n):e._hostElement.setAttribute("aria-valuetext",n),this.discrete){e.thumbPosition===qe.START?this.startValueIndicatorText=n:this.endValueIndicatorText=n;let r=this._getThumb(e.thumbPosition);n.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value");}}_updateValueIndicatorUIs(){let e=this._getInput(qe.END),n=this._getInput(qe.START);e&&this._updateValueIndicatorUI(e),n&&this._updateValueIndicatorUI(n);}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=(this._cachedWidth-6)*r;}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e));}_updateTrackUIRange(e){let n=e.getSibling();if(!n||!this._cachedWidth)return;let r=Math.abs(n.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-n.translateX}px`,transformOrigin:"right",transform:`scaleX(${r})`}):this._setTrackActiveStyles({left:`${n.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`});}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`});}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e);}_updateTickMarkUINonRange(e){let n=this._getValue(),r=Math.max(Math.round((n-this.min)/e),0)+1,o=Math.max(Math.round((this.max-n)/e),0)-1;this._isRtl?r++:o++,this._tickMarks=Array(r).fill(Dd.ACTIVE).concat(Array(o).fill(Dd.INACTIVE));}_updateTickMarkUIRange(e){let n=this._getValue(),r=this._getValue(qe.START),o=Math.max(Math.round((r-this.min)/e),0),a=Math.max(Math.round((n-r)/e)+1,0),s=Math.max(Math.round((this.max-n)/e),0);this._tickMarks=Array(o).fill(Dd.INACTIVE).concat(Array(a).fill(Dd.ACTIVE),Array(s).fill(Dd.INACTIVE));}_getInput(e){if(e===qe.END&&this._input)return this._input;if(this._inputs?.length)return e===qe.START?this._inputs.first:this._inputs.last;}_getThumb(e){return e===qe.END?this._thumbs?.last:this._thumbs?.first;}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation);}_isCursorOnSliderThumb(e,n){let r=n.width/2,o=n.x+r,a=n.y+r,s=e.clientX-o,l=e.clientY-a;return Math.pow(s,2)+Math.pow(l,2)<Math.pow(r,2);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-slider"]],contentQueries:function(n,r,o){if(n&1&&(Fe(o,fF,5),Fe(o,OK,4)),n&2){let a;F(a=N())&&(r._input=a.first),F(a=N())&&(r._inputs=a);}},viewQuery:function(n,r){if(n&1&&(Y(kK,5),Y(gF,5)),n&2){let o;F(o=N())&&(r._trackActive=o.first),F(o=N())&&(r._thumbs=o);}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(n,r){n&2&&(Dt("mat-"+(r.color||"primary")),ne("mdc-slider--range",r._isRange)("mdc-slider--disabled",r.disabled)("mdc-slider--discrete",r.discrete)("mdc-slider--tick-marks",r.showTickMarks)("_mat-animation-noopable",r._noopAnimations));},inputs:{disabled:[2,"disabled","disabled",Q],discrete:[2,"discrete","discrete",Q],showTickMarks:[2,"showTickMarks","showTickMarks",Q],min:[2,"min","min",at],color:"color",disableRipple:[2,"disableRipple","disableRipple",Q],max:[2,"max","max",at],step:[2,"step","step",at],displayWith:"displayWith"},exportAs:["matSlider"],features:[be([{provide:LC,useExisting:t}])],ngContentSelectors:MK,decls:9,vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(n,r){n&1&&(Pe(),ue(0),m(1,"div",2),D(2,"div",3),m(3,"div",4),D(4,"div",5,0),u(),T(6,AK,3,1,"div",6),u(),T(7,RK,1,3,"mat-slider-visual-thumb",7),D(8,"mat-slider-visual-thumb",7)),n&2&&(d(6),K(r.showTickMarks?6:-1),d(),K(r._isRange?7:-1),d(),y("discrete",r.discrete)("thumbPosition",2)("valueIndicatorText",r.endValueIndicatorText));},dependencies:[PK],styles:['.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mdc-slider-inactive-track-height, 4px)}.mdc-slider__track--active,.mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider__track--active{overflow:hidden;border-radius:var(--mdc-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mdc-slider-active-track-height, 4px);top:calc((var(--mdc-slider-inactive-track-height, 4px) - var(--mdc-slider-active-track-height, 4px))/2)}.mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;transform-origin:left;transition:transform 80ms ease;border-color:var(--mdc-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mdc-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color, var(--mat-sys-on-surface))}[dir=rtl] .mdc-slider__track--active_fill{-webkit-transform-origin:right;transform-origin:right}.mdc-slider__track--inactive{left:0;top:0;opacity:.24;background-color:var(--mdc-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mdc-slider-inactive-track-height, 4px);border-radius:var(--mdc-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color, var(--mat-sys-on-surface));opacity:.24}.mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider__value-indicator-container{bottom:44px;left:50%;pointer-events:none;position:absolute;transform:translateX(-50%);transform:var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg))}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider__value-indicator{display:flex;align-items:center;border-radius:4px;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom;opacity:1;transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mdc-slider-label-container-color, var(--mat-sys-primary));color:var(--mdc-slider-label-label-text-color, var(--mat-sys-on-primary));width:var(--mat-slider-value-indicator-width, 28px);height:var(--mat-slider-value-indicator-height, 28px);padding:var(--mat-slider-value-indicator-padding, 0);opacity:var(--mat-slider-value-indicator-opacity, 1);border-radius:var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0)}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}.mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;display:var(--mat-slider-value-indicator-caret-display, none);border-top-color:var(--mdc-slider-label-container-color, var(--mat-sys-primary))}.mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider__value-indicator-text{text-align:center;width:var(--mat-slider-value-indicator-width, 28px);transform:var(--mat-slider-value-indicator-text-transform, rotate(45deg));font-family:var(--mdc-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mdc-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mdc-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mdc-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mdc-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking))}.mdc-slider__thumb{-webkit-user-select:none;user-select:none;display:flex;left:-24px;outline:none;position:absolute;height:48px;width:48px;pointer-events:none}.mdc-slider--discrete .mdc-slider__thumb{transition:transform 80ms ease}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__thumb--top{z-index:1}.mdc-slider__thumb-knob{position:absolute;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%, -50%);border-style:solid;width:var(--mdc-slider-handle-width, 20px);height:var(--mdc-slider-handle-height, 20px);border-width:calc(var(--mdc-slider-handle-height, 20px)/2) calc(var(--mdc-slider-handle-width, 20px)/2);box-shadow:var(--mdc-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mdc-slider-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mdc-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mdc-slider-disabled-handle-color, var(--mat-sys-on-surface))}.mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border:solid 1px #fff;box-sizing:content-box;border-color:var(--mdc-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mdc-slider-with-overlap-handle-outline-width, 1px)}.mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider__tick-mark--active,.mdc-slider__tick-mark--inactive{width:var(--mdc-slider-with-tick-marks-container-size, 2px);height:var(--mdc-slider-with-tick-marks-container-size, 2px);border-radius:var(--mdc-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary))}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;position:absolute;top:2px;width:44px;box-sizing:content-box}.mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;cursor:pointer;height:48px;margin:0 8px;position:relative;touch-action:pan-y;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider.mdc-slider--disabled{cursor:auto;opacity:.38}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color, var(--mat-sys-primary))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent))}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});}return t;})();var FK={provide:oo,useExisting:Bn(()=>jm),multi:!0};var jm=(()=>{class t{_ngZone=h(le);_elementRef=h(ee);_cdr=h(ge);_slider=h(LC);_platform=h(We);_listenerCleanups;get value(){return at(this._hostElement.value,0);}set value(e){e=isNaN(e)?0:e;let n=e+"";if(!this._hasSetInitialValue){this._initialValue=n;return;}this._isActive||this._setValue(n);}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck();}valueChange=new z();dragStart=new z();dragEnd=new z();get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX);}set translateX(e){this._translateX=e;}_translateX;thumbPosition=qe.END;get min(){return at(this._hostElement.min,0);}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges();}get max(){return at(this._hostElement.max,0);}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges();}get step(){return at(this._hostElement.step,0);}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges();}get disabled(){return Q(this._hostElement.disabled);}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled);}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min);}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0;}_hostElement=this._elementRef.nativeElement;_valuetext=Ci("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(e){this._isFocused=e;}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new U();_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let e=h(wt);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))];});}ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete();}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue();}initUI(){this._updateThumbUIByValue();}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges());}_getDefaultValue(){return this.min;}_onBlur(){this._setIsFocused(!1),this._onTouchedFn();}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0);}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0});}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this);}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled;}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let n=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=n,this._updateWidthActive(),this._slider._updateDimensions();return;}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}));}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e);},0);}_fixValue(e){let n=e.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),s=this._slider._isRtl?1-n/r:n/r,c=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,p=Math.round(c/o)*o,g=this.value;if(p===g){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return;}this.value=p,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e);}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0));}_clamp(e){let n=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,r),n);}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset;}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft;}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`;}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e);}_updateThumbUIByPointerEvent(e,n){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(n);}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this);}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e);}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0;}registerOnTouched(e){this._onTouchedFn=e;}setDisabledState(e){this.disabled=e;}focus(){this._hostElement.focus();}blur(){this._hostElement.blur();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(n,r){n&1&&S("change",function(){return r._onChange();})("input",function(){return r._onInput();})("blur",function(){return r._onBlur();})("focus",function(){return r._onFocus();}),n&2&&oe("aria-valuetext",r._valuetext());},inputs:{value:[2,"value","value",at]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[be([FK,{provide:fF,useExisting:t}])]});}return t;})();var T0=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,no]});}return t;})();var NK=["myCanvas"],bF=t=>({display:t});function LK(t,i){if(t&1){let e=W();m(0,"button",10),S("click",function(){k(e);let r=x();return M(r.editLockedImage());}),m(1,"mat-icon"),f(2,"edit"),u(),f(3),u();}if(t&2){let e=x();d(3),P(" ",e.editTxt," ");}}function VK(t,i){if(t&1){let e=W();m(0,"button",10),S("click",function(){k(e);let r=x();return M(r.clearMask());}),m(1,"mat-icon"),f(2,"clear"),u(),f(3),u();}if(t&2){let e=x();d(3),P(" ",e.clearTxt," ");}}var VC=(()=>{class t{static{this.SId=0;}onScroll(){this.loaded&&(this.resizeCanvas(),setTimeout(()=>{this.drawImage();}));}constructor(e){this.service=e,this.url=ct.required(),this.createEditsEvent=new z(),this.editTxt="Modifier",this.clearTxt="Effacer le masque",this.positionX=0,this.positionY=0,this.startX=0,this.startY=0,this.locked=!1,this.loaded=!��1,this.penSize=45,this.paths=[],this.isDrawing=!1,this.id=++t.SId;}ngAfterViewInit(){this.context=this.canvas.nativeElement.getContext("2d"),(!this.context||!this.canvas)&&console.log("unable to init canvas",this.canvas,this.context),setTimeout(()=>{this.resizeCanvas(),this.drawImage();},100);}resizeCanvas(){if(!this.loaded)return;let e=window.innerWidth,n=256,r=768,o=100,a=this.image.width/this.image.height;this.width=e-o*2,this.width<n?this.width=n:this.width>r&&(this.width=r),this.height=this.width/a;}lock(){this.locked=!0,console.log("image masker locked - "+this.id);}editLockedImage(){this.createEditsEvent.emit(!0);}drawImage(){let e=this;function n(){e.context?.clearRect(0,0,e.canvas.nativeElement.width,e.canvas.nativeElement.height),e.context?.drawImage(e.image,0,0,e.image.width,e.image.height,0,0,e.canvas.nativeElement.width,e.canvas.nativeElement.height),e.paths.length&&e.paths.forEach(r=>{e.drawCircle(r);});}if(this.image){n();return;}this.image=new Image(),this.image.crossOrigin="Anonymous",this.image.onload=function(){console.log("myImg width, height",e.image.width,e.image.height),console.log("image load"),e.loaded=!0,e.resizeCanvas(),setTimeout(()=>{n();});},this.image.src=this.url();}formatLabel(e){return e>=1e3?Math.round(e/1e3)+" px":`${e}`;}clearMask(){this.context.clearRect(0,0,this.canvas.nativeElement.width,this.canvas.nativeElement.height),this.paths.length=0,this.drawImage();}toBase64(){var e=document.createElement("canvas"),n=e.getContext("2d");e.width=this.image.width,e.height=this.image.height,console.log("new canvas",e),console.log("new canvas width",e.width),console.log("new canvas height",e.height),n.drawImage(this.canvas.nativeElement,0,0,this.width,this.height,0,0,this.image.width,this.image.height);let r=e.toDataURL();return r=r.replace(/^data:image\/(png|jpg);base64,/,""),r;}getMousePosition(e){if(e.offsetX){let r=e.offsetX,o=e.offsetY;return{x:r,y:o};}else{var n=this.canvas.nativeElement.getBoundingClientRect();let r=e.touches[0].clientX-n.left,o=e.touches[0].clientY-n.top;return{x:r,y:o};}}mousedown(e){let n=this.getMousePosition(e);console.log("mouse position: ",n),this.positionX=n.x,this.positionY=n.y,this.isDrawing=!0;}mouseup(e){this.isDrawing=!1;}mouseleave(e){this.isDrawing=!1;}mousemove(e){if(!this.isDrawing)return;let n=this.getMousePosition(e);this.positionX=n.x,this.positionY=n.y;let r={x:this.positionX,y:this.positionY,size:this.penSize,width:this.canvas.nativeElement.width};this.paths.push(r),this.drawCircle(r),e.preventDefault(),e.stopImmediatePropagation();}drawCircle(e){let n=this.context,r=0;r=e.width/this.canvas.nativeElement.width;let o={x:e.x,y:e.y,size:e.size,width:e.width};o.x/=r,o.y/=r,o.size/=r,n?.save(),n?.beginPath(),n.lineWidth=5,n.lineCap="round",n.strokeStyle="#c0392b",n.arc(o.x,o.y,o.size,0,2*Math.PI,!0),n.clip(),n.clearRect(0,0,this.canvas.nativeElement.width,this.canvas.nativeElement.height),n.closePath(),n?.restore();}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["image-masker"]],viewQuery:function(n,r){if(n&1&&Y(NK,5),n&2){let o;F(o=N())&&(r.canvas=o.first);}},hostBindings:function(n,r){n&1&&S("resize",function(){return r.onScroll();},!1,bc);},inputs:{url:[1,"url"]},outputs:{createEditsEvent:"createEditsEvent"},decls:15,vars:14,consts:[["mySlider",""],["myCanvas",""],[1,"loader",3,"ngStyle"],[1,"edit-container",3,"ngStyle"],[1,"toolbar-container"],["mat-raised-button","","class","example-icon favorite-icon",3,"click",4,"ngIf"],[1,"example-spacer"],["min","5","max","50","step","5","showTickMarks","","discrete","",3,"displayWith"],["matSliderThumb","",3,"ngModelChange","ngModel"],[3,"mousedown","touchstart","mouseup","touchend","mouseleave","mousemove","touchmove","id","height","width"],["mat-raised-button","",1,"example-icon","favorite-icon",3,"click"]],template:function(n,r){if(n&1){let o=W();m(0,"div",2),D(1,"mat-spinner"),u(),m(2,"div",3)(3,"div",4)(4,"mat-toolbar"),T(5,LK,4,1,"button",5)(6,VK,4,1,"button",5),D(7,"span",6),m(8,"mat-slider",7,0)(10,"input",8,0),Rn("ngModelChange",function(s){return k(o),jn(r.penSize,s)||(r.penSize=s),M(s);}),u()(),D(12,"span",6),u()(),m(13,"canvas",9,1),S("mousedown",function(s){return k(o),M(r.mousedown(s));})("touchstart",function(s){return k(o),M(r.mousedown(s));})("mouseup",function(s){return k(o),M(r.mouseup(s));})("touchend",function(s){return k(o),M(r.mouseup(s));})("mouseleave",function(s){return k(o),M(r.mouseleave(s));})("mousemove",function(s){return k(o),M(r.mousemove(s));})("touchmove",function(s){return k(o),M(r.mousemove(s));}),u()();}n&2&&(y("ngStyle",Be(10,bF,r.loaded?"none":"block")),d(2),y("ngStyle",Be(12,bF,r.loaded?"block":"none")),d(3),y("ngIf",r.locked),d(),y("ngIf",!r.locked),d(2),y("displayWith",r.formatLabel),d(2),An("ngModel",r.penSize),d(3),Er("id","mask-canvas-",r.id,""),G("height",r.height),G("width",r.width));},dependencies:[H,Ot,Di,Ii,Qn,ce,Me,Ee,Re,T0,S0,jm,un,dn,_n,so,Xn,Kn],styles:[".loader[_ngcontent-%COMP%]{text-align:center}.loader[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin:0 auto}.edit-container[_ngcontent-%COMP%]{text-align:center;margin:30px auto 0}.edit-container[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]{width:256px;margin:0 auto}.edit-container[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]   mat-slider[_ngcontent-%COMP%]{width:150px}.edit-container[_ngcontent-%COMP%]   canvas[_ngcontent-%COMP%]{border:1px solid gray}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]});}}return t;})();var GC={};np(GC,{arrayReplaceAt:()=>WC,assign:()=>kd,escapeHtml:()=>ja,escapeRE:()=>xX,fromCodePoint:()=>Um,has:()=>dX,isMdAsciiPunct:()=>Rl,isPunctChar:()=>Al,isSpace:()=>dt,isString:()=>$0,isValidEntityCode:()=>H0,isWhiteSpace:()=>Tl,lib:()=>wX,normalizeReference:()=>Ol,unescapeAll:()=>Ba,unescapeMd:()=>fX});var F0={};np(F0,{decode:()=>$m,encode:()=>O0,format:()=>Ed,parse:()=>Hm});var vF={};function zK(t){let i=vF[t];if(i)return i;i=vF[t]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);i.push(n);}for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);i[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);}return i;}function A0(t,i){typeof i!="string"&&(i=A0.defaultChars);let e=zK(i);return t.replace(/(%[a-f0-9]{2})+/gi,function(n){let r="";for(let o=0,a=n.length;o<a;o+=3){let s=parseInt(n.slice(o+1,o+3),16);if(s<128){r+=e[s];continue;}if((s&224)===192&&o+3<a){let l=parseInt(n.slice(o+4,o+6),16);if((l&192)===128){let c=s<<6&1984|l&63;c<128?r+="\uFFFD\uFFFD":r+=String.fromCharCode(c),o+=3;continue;}}if((s&240)===224&&o+6<a){let l=parseInt(n.slice(o+4,o+6),16),c=parseInt(n.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){let p=s<<12&61440|l<<6&4032|c&63;p<2048||p>=55296&&p<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(p),o+=6;continue;}}if((s&248)===240&&o+9<a){let l=parseInt(n.slice(o+4,o+6),16),c=parseInt(n.slice(o+7,o+9),16),p=parseInt(n.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(p&192)===128){let g=s<<18&1835008|l<<12&258048|c<<6&4032|p&63;g<65536||g>1114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(g-=65536,r+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),o+=9;continue;}}r+="\uFFFD";}return r;});}A0.defaultChars=";/?:@&=+$,#";A0.componentChars="";var $m=A0;var yF={};function BK(t){let i=yF[t];if(i)return i;i=yF[t]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));}for(let e=0;e<t.length;e++)i[t.charCodeAt(e)]=t[e];return i;}function R0(t,i,e){typeof i!="string"&&(e=i,i=R0.defaultChars),typeof e>"u"&&(e=!0);let n=BK(i),r="";for(let o=0,a=t.length;o<a;o++){let s=t.charCodeAt(o);if(e&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){r+=t.slice(o,o+3),o+=2;continue;}if(s<128){r+=n[s];continue;}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){let l=t.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[o]+t[o+1]),o++;continue;}}r+="%EF%BF%BD";continue;}r+=encodeURIComponent(t[o]);}return r;}R0.defaultChars=";/?:@&=+$,-_.!~*'()#";R0.componentChars="-_.!~*'()";var O0=R0;function Ed(t){let i="";return i+=t.protocol||"",i+=t.slashes?"//":"",i+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?i+="["+t.hostname+"]":i+=t.hostname||"",i+=t.port?":"+t.port:"",i+=t.pathname||"",i+=t.search||"",i+=t.hash||"",i;}function P0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null;}var jK=/^([a-z0-9.+-]+:)/i,$K=/:[0-9]*$/,HK=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,UK=["<",">",'"',"`"," ","\r",`
`,"	"],qK=["{","}","|","\\","^","`"].concat(UK),WK=["'"].concat(qK),xF=["%","/","?",";","#"].concat(WK),wF=["/","?","#"],GK=255,CF=/^[+a-z0-9A-Z_-]{0,63}$/,QK=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,DF={javascript:!0,"javascript:":!0},EF={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function YK(t,i){if(t&&t instanceof P0)return t;let e=new P0();return e.parse(t,i),e;}P0.prototype.parse=function(t,i){let e,n,r,o=t;if(o=o.trim(),!i&&t.split("#").length===1){let c=HK.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this;}let a=jK.exec(o);if(a&&(a=a[0],e=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(i||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(a&&DF[a])&&(o=o.substr(2),this.slashes=!0)),!DF[a]&&(r||a&&!EF[a])){let c=-1;for(let v=0;v<wF.length;v++)n=o.indexOf(wF[v]),n!==-1&&(c===-1||n<c)&&(c=n);let p,g;c===-1?g=o.lastIndexOf("@"):g=o.lastIndexOf("@",c),g!==-1&&(p=o.slice(0,g),o=o.slice(g+1),this.auth=p),c=-1;for(let v=0;v<xF.length;v++)n=o.indexOf(xF[v]),n!==-1&&(c===-1||n<c)&&(c=n);c===-1&&(c=o.length),o[c-1]===":"&&c--;let _=o.slice(0,c);o=o.slice(c),this.parseHost(_),this.hostname=this.hostname||"";let b=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!b){let v=this.hostname.split(/\./);for(let I=0,A=v.length;I<A;I++){let $=v[I];if($&&!$.match(CF)){let Z="";for(let B=0,ae=$.length;B<ae;B++)$.charCodeAt(B)>127?Z+="x":Z+=$[B];if(!Z.match(CF)){let B=v.slice(0,I),ae=v.slice(I+1),_e=$.match(QK);_e&&(B.push(_e[1]),ae.unshift(_e[2])),ae.length&&(o=ae.join(".")+o),this.hostname=B.join(".");break;}}}}this.hostname.length>GK&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2));}let s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));let l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),EF[e]&&this.hostname&&!this.pathname&&(this.pathname=""),this;};P0.prototype.parseHost=function(t){let i=$K.exec(t);i&&(i=i[0],i!==":"&&(this.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(this.hostname=t);};var Hm=YK;var zC={};np(zC,{Any:()=>N0,Cc:()=>L0,Cf:()=>IF,P:()=>Id,S:()=>V0,Z:()=>z0});var N0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var L0=/[\0-\x1F\x7F-\x9F]/;var IF=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var Id=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var V0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var z0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var kF=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow��;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0)));var MF=new Uint16Array("\u0200aglq	\x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var BC,ZK=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),jC=(BC=String.fromCodePoint)!==null&&BC!==void 0?BC:function(t){let i="";return t>65535&&(t-=65536,i+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),i+=String.fromCharCode(t),i;};function $C(t){var i;return t>=55296&&t<=57343||t>1114111?65533:(i=ZK.get(t))!==null&&i!==void 0?i:t;}var gi=function(t){return t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z",t;}(gi||{}),KK=32,Sl=function(t){return t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE",t;}(Sl||{});function HC(t){return t>=gi.ZERO&&t<=gi.NINE;}function XK(t){return t>=gi.UPPER_A&&t<=gi.UPPER_F||t>=gi.LOWER_A&&t<=gi.LOWER_F;}function JK(t){return t>=gi.UPPER_A&&t<=gi.UPPER_Z||t>=gi.LOWER_A&&t<=gi.LOWER_Z||HC(t);}function eX(t){return t===gi.EQUALS||JK(t);}var fi=function(t){return t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity",t;}(fi||{}),za=function(t){return t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute",t;}(za||{}),B0=class{constructor(i,e,n){this.decodeTree=i,this.emitCodePoint=e,this.errors=n,this.state=fi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=za.Strict;}startEntity(i){this.decodeMode=i,this.state=fi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1;}write(i,e){switch(this.state){case fi.EntityStart:return i.charCodeAt(e)===gi.NUM?(this.state=fi.NumericStart,this.consumed+=1,this.stateNumericStart(i,e+1)):(this.state=fi.NamedEntity,this.stateNamedEntity(i,e));case fi.NumericStart:return this.stateNumericStart(i,e);case fi.NumericDecimal:return this.stateNumericDecimal(i,e);case fi.NumericHex:return this.stateNumer��icHex(i,e);case fi.NamedEntity:return this.stateNamedEntity(i,e);}}stateNumericStart(i,e){return e>=i.length?-1:(i.charCodeAt(e)|KK)===gi.LOWER_X?(this.state=fi.NumericHex,this.consumed+=1,this.stateNumericHex(i,e+1)):(this.state=fi.NumericDecimal,this.stateNumericDecimal(i,e));}addToNumericResult(i,e,n,r){if(e!==n){let o=n-e;this.result=this.result*Math.pow(r,o)+parseInt(i.substr(e,o),r),this.consumed+=o;}}stateNumericHex(i,e){let n=e;for(;e<i.length;){let r=i.charCodeAt(e);if(HC(r)||XK(r))e+=1;else return this.addToNumericResult(i,n,e,16),this.emitNumericEntity(r,3);}return this.addToNumericResult(i,n,e,16),-1;}stateNumericDecimal(i,e){let n=e;for(;e<i.length;){let r=i.charCodeAt(e);if(HC(r))e+=1;else return this.addToNumericResult(i,n,e,10),this.emitNumericEntity(r,2);}return this.addToNumericResult(i,n,e,10),-1;}emitNumericEntity(i,e){var n;if(this.consumed<=e)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(i===gi.SEMI)this.consumed+=1;else if(this.decodeMode===za.Strict)return 0;return this.emitCodePoint($C(this.result),this.consumed),this.errors&&(i!==gi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed;}stateNamedEntity(i,e){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&Sl.VALUE_LENGTH)>>14;for(;e<i.length;e++,this.excess++){let a=i.charCodeAt(e);if(this.treeIndex=tX(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===za.Attribute&&(o===0||eX(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Sl.VALUE_LENGTH)>>14,o!==0){if(a===gi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==za.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0);}}return-1;}emitNotTerminatedNamedEntity(){var i;let{result:e,decodeTree:n}=this,r=(n[e]&Sl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,r,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed;}emitNamedEntityData(i,e,n){let{decodeTree:r}=this;return this.emitCodePoint(e===1?r[i]&~Sl.VALUE_LENGTH:r[i+1],n),e===3&&this.emitCodePoint(r[i+2],n),n;}end(){var i;switch(this.state){case fi.NamedEntity:return this.result!==0&&(this.decodeMode!==za.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case fi.NumericDecimal:return this.emitNumericEntity(0,2);case fi.NumericHex:return this.emitNumericEntity(0,3);case fi.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case fi.EntityStart:return 0;}}};function SF(t){let i="",e=new B0(t,n=>i+=jC(n));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){i+=r.slice(a,s),e.startEntity(o);let c=e.write(r,s+1);if(c<0){a=s+e.end();break;}a=s+c,s=c===0?a+1:a;}let l=i+r.slice(a);return i="",l;};}function tX(t,i,e,n){let r=(i&Sl.BRANCH_LENGTH)>>7,o=i&Sl.JUMP_TABLE;if(r===0)return o!==0&&n===o?e:-1;if(o){let l=n-o;return l<0||l>=r?-1:t[e+l]-1;}let a=e,s=a+r-1;for(;a<=s;){let l=a+s>>>1,c=t[l];if(c<n)a=l+1;else if(c>n)s=l-1;else return t[l+r];}return-1;}var nX=SF(kF),yMe=SF(MF);function Rs(t,i=za.Legacy){return nX(t,i);}function j0(t){for(let i=1;i<t.length;i++)t[i][0]+=t[i-1][0]+1;return t;}var iX=new Map(j0([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(j0([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(j0([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(j0([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var rX=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),oX=String.prototype.codePointAt!=null?(t,i)=>t.codePointAt(i):(t,i)=>(t.charCodeAt(i)&64512)===55296?(t.charCodeAt(i)-55296)*1024+t.charCodeAt(i+1)-56320+65536:t.charCodeAt(i);function UC(t,i){return function(n){let r,o=0,a="";for(;r=t.exec(n);)o!==r.index&&(a+=n.substring(o,r.index)),a+=i.get(r[0].charCodeAt(0)),o=r.index+1;return a+n.substring(o);};}var TF=UC(/[&<>'"]/g,rX),AF=UC(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),RF=UC(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));function lX(t){return Object.prototype.toString.call(t);}function $0(t){return lX(t)==="[object String]";}var cX=Object.prototype.hasOwnProperty;function dX(t,i){return cX.call(t,i);}function kd(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if(typeof e!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach(function(n){t[n]=e[n];});}}),t;}function WC(t,i,e){return[].concat(t.slice(0,i),e,t.slice(i+1));}function H0(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111);}function Um(t){if(t>65535){t-=65536;let i=55296+(t>>10),e=56320+(t&1023);return String.fromCharCode(i,e);}return String.fromCharCode(t);}var FF=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,uX=/&([a-z#][a-z0-9]{1,31});/gi,mX=new RegExp(FF.source+"|"+uX.source,"gi"),pX=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function hX(t,i){if(i.charCodeAt(0)===35&&pX.test(i)){let n=i[1].toLowerCase()==="x"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return H0(n)?Um(n):t;}let e=Rs(t);return e!==t?e:t;}function fX(t){return t.indexOf("\\")<0?t:t.replace(FF,"$1");}function Ba(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(mX,function(i,e,n){return e||hX(i,n);});}var gX=/[&<>"]/,_X=/[&<>"]/g,bX={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function vX(t){return bX[t];}function ja(t){return gX.test(t)?t.replace(_X,vX):t;}var yX=/[.?*+^$[\]\\(){}|-]/g;function xX(t){return t.replace(yX,"\\$&");}function dt(t){switch(t){case 9:case 32:return!0;}return!1;}function Tl(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0;}return!1;}function Al(t){return Id.test(t)||V0.test(t);}function Rl(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1;}}function Ol(t){return t=t.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(t=t.replace(/ẞ/g,"\xDF")),t.toLowerCase().toUpperCase();}var wX={mdurl:F0,ucmicro:zC};var KC={};np(KC,{parseLinkDestination:()=>YC,parseLinkLabel:()=>QC,parseLinkTitle:()=>ZC});function QC(t,i,e){let n,r,o,a,s=t.posMax,l=t.pos;for(t.pos=i+1,n=1;t.pos<s;){if(o=t.src.charCodeAt(t.pos),o===93&&(n--,n===0)){r=!0;break;}if(a=t.pos,t.md.inline.skipToken(t),o===91){if(a===t.pos-1)n++;else if(e)return t.pos=l,-1;}}let c=-1;return r&&(c=t.pos),t.pos=l,c;}function YC(t,i,e){let n,r=i,o={ok:!1,pos:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<e;){if(n=t.charCodeAt(r),n===10||n===60)return o;if(n===62)return o.pos=r+1,o.str=Ba(t.slice(i+1,r)),o.ok=!0,o;if(n===92&&r+1<e){r+=2;continue;}r++;}return o;}let a=0;for(;r<e&&(n=t.charCodeAt(r),!(n===32||n<32||n===127));){if(n===92&&r+1<e){if(t.charCodeAt(r+1)===32)break;r+=2;continue;}if(n===40&&(a++,a>32))return o;if(n===41){if(a===0)break;a--;}r++;}return i===r||a!==0||(o.str=Ba(t.slice(i,r)),o.pos=r,o.ok=!0),o;}function ZC(t,i,e,n){let r,o=i,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(o>=e)return a;let s=t.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;i++,o++,s===40&&(s=41),a.marker=s;}for(;o<e;){if(r=t.charCodeAt(o),r===a.marker)return a.pos=o+1,a.str+=Ba(t.slice(i,o)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&o+1<e&&o++,o++;}return a.can_continue=!0,a.str+=Ba(t.slice(i,o)),a;}var oa={};oa.code_inline=function(t,i,e,n,r){let o=t[i];return"<code"+r.renderAttrs(o)+">"+ja(o.content)+"</code>";};oa.code_block=function(t,i,e,n,r){let o=t[i];return"<pre"+r.renderAttrs(o)+"><code>"+ja(t[i].content)+`</code></pre>
`;};oa.fence=function(t,i,e,n,r){let o=t[i],a=o.info?Ba(o.info).trim():"",s="",l="";if(a){let p=a.split(/(\s+)/g);s=p[0],l=p.slice(2).join("");}let c;if(e.highlight?c=e.highlight(o.content,s,l)||ja(o.content):c=ja(o.content),c.indexOf("<pre")===0)return c+`
`;if(a){let p=o.attrIndex("class"),g=o.attrs?o.attrs.slice():[];p<0?g.push(["class",e.langPrefix+s]):(g[p]=g[p].slice(),g[p][1]+=" "+e.langPrefix+s);let _={attrs:g};return`<pre><code${r.renderAttrs(_)}>${c}</code></pre>
`;}return`<pre><code${r.renderAttrs(o)}>${c}</code></pre>
`;};oa.image=function(t,i,e,n,r){let o=t[i];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,e,n),r.renderToken(t,i,e);};oa.hardbreak=function(t,i,e){return e.xhtmlOut?`<br />
`:`<br>
`;};oa.softbreak=function(t,i,e){return e.breaks?e.xhtmlOut?`<br />
`:`<br>
`:`
`;};oa.text=function(t,i){return ja(t[i].content);};oa.html_block=function(t,i){return t[i].content;};oa.html_inline=function(t,i){return t[i].content;};function Md(){this.rules=kd({},oa);}Md.prototype.renderAttrs=function(i){let e,n,r;if(!i.attrs)return"";for(r="",e=0,n=i.attrs.length;e<n;e++)r+=" "+ja(i.attrs[e][0])+'="'+ja(i.attrs[e][1])+'"';return r;};Md.prototype.renderToken=function(i,e,n){let r=i[e],o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&e&&i[e-1].hidden&&(o+=`
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&e+1<i.length)){let s=i[e+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(a=!1);}return o+=a?`>
`:">",o;};Md.prototype.renderInline=function(t,i,e){let n="��",r=this.rules;for(let o=0,a=t.length;o<a;o++){let s=t[o].type;typeof r[s]<"u"?n+=r[s](t,o,i,e,this):n+=this.renderToken(t,o,i);}return n;};Md.prototype.renderInlineAsText=function(t,i,e){let n="";for(let r=0,o=t.length;r<o;r++)switch(t[r].type){case"text":n+=t[r].content;break;case"image":n+=this.renderInlineAsText(t[r].children,i,e);break;case"html_inline":case"html_block":n+=t[r].content;break;case"softbreak":case"hardbreak":n+=`
`;break;default:}return n;};Md.prototype.render=function(t,i,e){let n="",r=this.rules;for(let o=0,a=t.length;o<a;o++){let s=t[o].type;s==="inline"?n+=this.renderInline(t[o].children,i,e):typeof r[s]<"u"?n+=r[s](t,o,i,e,this):n+=this.renderToken(t,o,i,e);}return n;};var NF=Md;function mo(){this.__rules__=[],this.__cache__=null;}mo.prototype.__find__=function(t){for(let i=0;i<this.__rules__.length;i++)if(this.__rules__[i].name===t)return i;return-1;};mo.prototype.__compile__=function(){let t=this,i=[""];t.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(n){i.indexOf(n)<0&&i.push(n);});}),t.__cache__={},i.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(n){n.enabled&&(e&&n.alt.indexOf(e)<0||t.__cache__[e].push(n.fn));});});};mo.prototype.at=function(t,i,e){let n=this.__find__(t),r=e||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=i,this.__rules__[n].alt=r.alt||[],this.__cache__=null;};mo.prototype.before=function(t,i,e,n){let r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:i,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null;};mo.prototype.after=function(t,i,e,n){let r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:i,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null;};mo.prototype.push=function(t,i,e){let n=e||{};this.__rules__.push({name:t,enabled:!0,fn:i,alt:n.alt||[]}),this.__cache__=null;};mo.prototype.enable=function(t,i){Array.isArray(t)||(t=[t]);let e=[];return t.forEach(function(n){let r=this.__find__(n);if(r<0){if(i)return;throw new Error("Rules manager: invalid rule name "+n);}this.__rules__[r].enabled=!0,e.push(n);},this),this.__cache__=null,e;};mo.prototype.enableOnly=function(t,i){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(e){e.enabled=!1;}),this.enable(t,i);};mo.prototype.disable=function(t,i){Array.isArray(t)||(t=[t]);let e=[];return t.forEach(function(n){let r=this.__find__(n);if(r<0){if(i)return;throw new Error("Rules manager: invalid rule name "+n);}this.__rules__[r].enabled=!1,e.push(n);},this),this.__cache__=null,e;};mo.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[];};var Pl=mo;function Sd(t,i,e){this.type=t,this.tag=i,this.attrs=null,this.map=null,this.nesting=e,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1;}Sd.prototype.attrIndex=function(i){if(!this.attrs)return-1;let e=this.attrs;for(let n=0,r=e.length;n<r;n++)if(e[n][0]===i)return n;return-1;};Sd.prototype.attrPush=function(i){this.attrs?this.attrs.push(i):this.attrs=[i];};Sd.prototype.attrSet=function(i,e){let n=this.attrIndex(i),r=[i,e];n<0?this.attrPush(r):this.attrs[n]=r;};Sd.prototype.attrGet=function(i){let e=this.attrIndex(i),n=null;return e>=0&&(n=this.attrs[e][1]),n;};Sd.prototype.attrJoin=function(i,e){let n=this.attrIndex(i);n<0?this.attrPush([i,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e;};var $a=Sd;function LF(t,i,e){this.src=t,this.env=e,this.tokens=[],this.inlineMode=!1,this.md=i;}LF.prototype.Token=$a;var VF=LF;var CX=/\r\n?|\n/g,DX=/\0/g;function XC(t){let i;i=t.src.replace(CX,`
`),i=i.replace(DX,"\uFFFD"),t.src=i;}function JC(t){let i;t.inlineMode?(i=new t.Token("inline","",0),i.content=t.src,i.map=[0,1],i.children=[],t.tokens.push(i)):t.md.block.parse(t.src,t.md,t.env,t.tokens);}function e1(t){let i=t.tokens;for(let e=0,n=i.length;e<n;e++){let r=i[e];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children);}}function EX(t){return /^<a[>\s]/i.test(t);}function IX(t){return /^<\/a\s*>/i.test(t);}function t1(t){let i=t.tokens;if(t.md.options.linkify)for(let e=0,n=i.length;e<n;e++){if(i[e].type!=="inline"||!t.md.linkify.pretest(i[e].content))continue;let r=i[e].children,o=0;for(let a=r.length-1;a>=0;a--){let s=r[a];if(s.type==="link_close"){for(a--;r[a].level!==s.level&&r[a].type!=="link_open";)a--;continue;}if(s.type==="html_inline"&&(EX(s.content)&&o>0&&o--,IX(s.content)&&o++),!(o>0)&&s.type==="text"&&t.md.linkify.test(s.content)){let l=s.content,c=t.md.linkify.match(l),p=[],g=s.level,_=0;c.length>0&&c[0].index===0&&a>0&&r[a-1].type==="text_special"&&(c=c.slice(1));for(let b=0;b<c.length;b++){let v=c[b].url,I=t.md.normalizeLink(v);if(!t.md.validateLink(I))continue;let A=c[b].text;c[b].schema?c[b].schema==="mailto:"&&!/^mailto:/i.test(A)?A=t.md.normalizeLinkText("mailto:"+A).replace(/^mailto:/,""):A=t.md.normalizeLinkText(A):A=t.md.normalizeLinkText("http://"+A).replace(/^http:\/\//,"");let $=c[b].index;if($>_){let _e=new t.Token("text","",0);_e.content=l.slice(_,$),_e.level=g,p.push(_e);}let Z=new t.Token("link_open","a",1);Z.attrs=[["href",I]],Z.level=g++,Z.markup="linkify",Z.info="auto",p.push(Z);let B=new t.Token("text","",0);B.content=A,B.level=g,p.push(B);let ae=new t.Token("link_close","a",-1);ae.level=--g,ae.markup="linkify",ae.info="auto",p.push(ae),_=c[b].lastIndex;}if(_<l.length){let b=new t.Token("text","",0);b.content=l.slice(_),b.level=g,p.push(b);}i[e].children=r=WC(r,a,p);}}}}var zF=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,kX=/\((c|tm|r)\)/i,MX=/\((c|tm|r)\)/ig,SX={c:"\xA9",r:"\xAE",tm:"\u2122"};function TX(t,i){return SX[i.toLowerCase()];}function AX(t){let i=0;for(let e=t.length-1;e>=0;e--){let n=t[e];n.type==="text"&&!i&&(n.content=n.content.replace(MX,TX)),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++;}}function RX(t){let i=0;for(let e=t.length-1;e>=0;e--){let n=t[e];n.type==="text"&&!i&&zF.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++;}}function n1(t){let i;if(t.md.options.typographer)for(i=t.tokens.length-1;i>=0;i--)t.tokens[i].type==="inline"&&(kX.test(t.tokens[i].content)&&AX(t.tokens[i].children),zF.test(t.tokens[i].content)&&RX(t.tokens[i].children));}var OX=/['"]/,BF=/['"]/g,jF="\u2019";function U0(t,i,e){return t.slice(0,i)+e+t.slice(i+1);}function PX(t,i){let e,n=[];for(let r=0;r<t.length;r++){let o=t[r],a=t[r].level;for(e=n.length-1;e>=0&&!(n[e].level<=a);e--);if(n.length=e+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){BF.lastIndex=l;let p=BF.exec(s);if(!p)break;let g=!0,_=!0;l=p.index+1;let b=p[0]==="'",v=32;if(p.index-1>=0)v=s.charCodeAt(p.index-1);else for(e=r-1;e>=0&&!(t[e].type==="softbreak"||t[e].type==="hardbreak");e--)if(t[e].content){v=t[e].content.charCodeAt(t[e].content.length-1);break;}let I=32;if(l<c)I=s.charCodeAt(l);else for(e=r+1;e<t.length&&!(t[e].type==="softbreak"||t[e].type==="hardbreak");e++)if(t[e].content){I=t[e].content.charCodeAt(0);break;}let A=Rl(v)||Al(String.fromCharCode(v)),$=Rl(I)||Al(String.fromCharCode(I)),Z=Tl(v),B=Tl(I);if(B?g=!1:$&&(Z||A||(g=!1)),Z?_=!1:A&&(B||$||(_=!1)),I===34&&p[0]==='"'&&v>=48&&v<=57&&(_=g=!1),g&&_&&(g=A,_=$),!g&&!_){b&&(o.content=U0(o.content,p.index,jF));continue;}if(_)for(e=n.length-1;e>=0;e--){let ae=n[e];if(n[e].level<a)break;if(ae.single===b&&n[e].level===a){ae=n[e];let _e,Ce;b?(_e=i.md.options.quotes[2],Ce=i.md.options.quotes[3]):(_e=i.md.options.quotes[0],Ce=i.md.options.quotes[1]),o.content=U0(o.content,p.index,Ce),t[ae.token].content=U0(t[ae.token].content,ae.pos,_e),l+=Ce.length-1,ae.token===r&&(l+=_e.length-1),s=o.content,c=s.length,n.length=e;continue e;}}g?n.push({token:r,pos:p.index,single:b,level:a}):_&&b&&(o.content=U0(o.content,p.index,jF));}}}function i1(t){if(t.md.options.typographer)for(let i=t.tokens.length-1;i>=0;i--)t.tokens[i].type!=="inline"||!OX.test(t.tokens[i].content)||PX(t.tokens[i].children,t);}function r1(t){let i,e,n=t.tokens,r=n.length;for(let o=0;o<r;o++){if(n[o].type!=="inline")continue;let a=n[o].children,s=a.length;for(i=0;i<s;i++)a[i].type==="text_special"&&(a[i].type="text");for(i=e=0;i<s;i++)a[i].type==="text"&&i+1<s&&a[i+1].type==="text"?a[i+1].content=a[i].content+a[i+1].content:(i!==e&&(a[e]=a[i]),e++);i!==e&&(a.length=e);}}var o1=[["normalize",XC],["block",JC],["inline",e1],["linkify",t1],["replacements",n1],["smartquotes",i1],["text_join",r1]];function a1(){this.ruler=new Pl();for(let t=0;t<o1.length;t++)this.ruler.push(o1[t][0],o1[t][1]);}a1.prototype.process=function(t){let i=this.ruler.getRules("");for(let e=0,n=i.length;e<n;e++)i[e](t);};a1.prototype.State=VF;var $F=a1;function aa(t,i,e,n){this.src=t,this.md=i,this.env=e,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let r=this.src;for(let o=0,a=0,s=0,l=0,c=r.length,p=!1;a<c;a++){let g=r.charCodeAt(a);if(!p)if(dt(g)){s++,g===9?l+=4-l%4:l++;continue;}else p=!0;(g===10||a===c-1)&&(g!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),p=!1,s=0,l=0,o=a+1);}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1;}aa.prototype.push=function(t,i,e){let n=new $a(t,i,e);return n.block=!0,e<0&&this.level--,n.level=this.level,e>0&&this.level++,this.tokens.push(n),n;};aa.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i];};aa.prototype.skipEmptyLines=function(i){for(let e=this.lineMax;i<e&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i;};aa.prototype.skipSpaces=function(i){for(let e=this.src.length;i<e;i++){let n=this.src.charCodeAt(i);if(!dt(n))break;}return i;};aa.prototype.skipSpacesBack=function(i,e){if(i<=e)return i;for(;i>e;)if(!dt(this.src.charCodeAt(--i)))return i+1;return i;};aa.prototype.skipChars=function(i,e){for(let n=this.src.length;i<n&&this.src.charCodeAt(i)===e;i++);return i;};aa.prototype.skipCharsBack=function(i,e,n){if(i<=n)return i;for(;i>n;)if(e!==this.src.charCodeAt(--i))return i+1;return i;};aa.prototype.getLines=function(i,e,n,r){if(i>=e)return"";let o=new Array(e-i);for(let a=0,s=i;s<e;s++,a++){let l=0,c=this.bMarks[s],p=c,g;for(s+1<e||r?g=this.eMarks[s]+1:g=this.eMarks[s];p<g&&l<n;){let _=this.src.charCodeAt(p);if(dt(_))_===9?l+=4-(l+this.bsCount[s])%4:l++;else if(p-c<this.tShift[s])l++;else break;p++;}l>n?o[a]=new Array(l-n+1).join(" ")+this.src.slice(p,g):o[a]=this.src.slice(p,g);}return o.join("");};aa.prototype.Token=$a;var HF=aa;var FX=65536;function s1(t,i){let e=t.bMarks[i]+t.tShift[i],n=t.eMarks[i];return t.src.slice(e,n);}function UF(t){let i=[],e=t.length,n=0,r=t.charCodeAt(n),o=!1,a=0,s="";for(;n<e;)r===124&&(o?(s+=t.substring(a,n-1),a=n):(i.push(s+t.substring(a,n)),s="",a=n+1)),o=r===92,n++,r=t.charCodeAt(n);return i.push(s+t.substring(a)),i;}function l1(t,i,e,n){if(i+2>e)return!1;let r=i+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let o=t.bMarks[r]+t.tShift[r];if(o>=t.eMarks[r])return!1;let a=t.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=t.eMarks[r])return!1;let s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!dt(s)||a===45&&dt(s))return!1;for(;o<t.eMarks[r];){let ae=t.src.charCodeAt(o);if(ae!==124&&ae!==45&&ae!==58&&!dt(ae))return!1;o++;}let l=s1(t,i+1),c=l.split("|"),p=[];for(let ae=0;ae<c.length;ae++){let _e=c[ae].trim();if(!_e){if(ae===0||ae===c.length-1)continue;return!1;}if(!/^:?-+:?$/.test(_e))return!1;_e.charCodeAt(_e.length-1)===58?p.push(_e.charCodeAt(0)===58?"center":"right"):_e.charCodeAt(0)===58?p.push("left"):p.push("");}if(l=s1(t,i).trim(),l.indexOf("|")===-1||t.sCount[i]-t.blkIndent>=4)return!1;c=UF(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let g=c.length;if(g===0||g!==p.length)return!1;if(n)return!0;let _=t.parentType;t.parentType="table";let b=t.md.block.ruler.getRules("blockquote"),v=t.push("table_open","table",1),I=[i,0];v.map=I;let A=t.push("thead_open","thead",1);A.map=[i,i+1];let $=t.push("tr_open","tr",1);$.map=[i,i+1];for(let ae=0;ae<c.length;ae++){let _e=t.push("th_open","th",1);p[ae]&&(_e.attrs=[["style","text-align:"+p[ae]]]);let Ce=t.push("inline","",0);Ce.content=c[ae].trim(),Ce.children=[],t.push("th_close","th",-1);}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let Z,B=0;for(r=i+2;r<e&&!(t.sCount[r]<t.blkIndent);r++){let ae=!1;for(let Ce=0,et=b.length;Ce<et;Ce++)if(b[Ce](t,r,e,!0)){ae=!0;break;}if(ae||(l=s1(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4||(c=UF(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),B+=g-c.length,B>FX))break;if(r===i+2){let Ce=t.push("tbody_open","tbody",1);Ce.map=Z=[i+2,0];}let _e=t.push("tr_open","tr",1);_e.map=[r,r+1];for(let Ce=0;Ce<g;Ce++){let et=t.push("td_open","td",1);p[Ce]&&(et.attrs=[["style","text-align:"+p[Ce]]]);let xt=t.push("inline","",0);xt.content=c[Ce]?c[Ce].trim():"",xt.children=[],t.push("td_close","td",-1);}t.push("tr_close","tr",-1);}return Z&&(t.push("tbody_close","tbody",-1),Z[1]=r),t.push("table_close","table",-1),I[1]=r,t.parentType=_,t.line=r,!0;}function c1(t,i,e){if(t.sCount[i]-t.blkIndent<4)return!1;let n=i+1,r=n;for(;n<e;){if(t.isEmpty(n)){n++;continue;}if(t.sCount[n]-t.blkIndent>=4){n++,r=n;continue;}break;}t.line=r;let o=t.push("code_block","code",0);return o.content=t.getLines(i,r,4+t.blkIndent,!1)+`
`,o.map=[i,t.line],!0;}function d1(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4||r+3>o)return!1;let a=t.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let s=r;r=t.skipChars(r,a);let l=r-s;if(l<3)return!1;let c=t.src.slice(s,r),p=t.src.slice(r,o);if(a===96&&p.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let g=i,_=!1;for(;g++,!(g>=e||(r=s=t.bMarks[g]+t.tShift[g],o=t.eMarks[g],r<o&&t.sCount[g]<t.blkIndent));)if(t.src.charCodeAt(r)===a&&!(t.sCount[g]-t.blkIndent>=4)&&(r=t.skipChars(r,a),!(r-s<l)&&(r=t.skipSpaces(r),!(r<o)))){_=!0;break;}l=t.sCount[i],t.line=g+(_?1:0);let b=t.push("fence","code",0);return b.info=p,b.content=t.getLines(i+1,g,l,!0),b.markup=c,b.map=[i,t.line],!0;}function u1(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i],a=t.lineMax;if(t.sCount[i]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(n)return!0;let s=[],l=[],c=[],p=[],g=t.md.block.ruler.getRules("blockquote"),_=t.parentType;t.parentType="blockquote";let b=!1,v;for(v=i;v<e;v++){let B=t.sCount[v]<t.blkIndent;if(r=t.bMarks[v]+t.tShift[v],o=t.eMarks[v],r>=o)break;if(t.src.charCodeAt(r++)===62&&!B){let _e=t.sCount[v]+1,Ce,et;t.src.charCodeAt(r)===32?(r++,_e++,et=!1,Ce=!0):t.src.charCodeAt(r)===9?(Ce=!0,(t.bsCount[v]+_e)%4===3?(r++,_e++,et=!1):et=!0):Ce=!1;let xt=_e;for(s.push(t.bMarks[v]),t.bMarks[v]=r;r<o;){let rn=t.src.charCodeAt(r);if(dt(rn))rn===9?xt+=4-(xt+t.bsCount[v]+(et?1:0))%4:xt++;else break;r++;}b=r>=o,l.push(t.bsCount[v]),t.bsCount[v]=t.sCount[v]+1+(Ce?1:0),c.push(t.sCount[v]),t.sCount[v]=xt-_e,p.push(t.tShift[v]),t.tShift[v]=r-t.bMarks[v];continue;}if(b)break;let ae=!1;for(let _e=0,Ce=g.length;_e<Ce;_e++)if(g[_e](t,v,e,!0)){ae=!0;break;}if(ae){t.lineMax=v,t.blkIndent!==0&&(s.push(t.bMarks[v]),l.push(t.bsCount[v]),p.push(t.tShift[v]),c.push(t.sCount[v]),t.sCount[v]-=t.blkIndent);break;}s.push(t.bMarks[v]),l.push(t.bsCount[v]),p.push(t.tShift[v]),c.push(t.sCount[v]),t.sCount[v]=-1;}let I=t.blkIndent;t.blkIndent=0;let A=t.push("blockquote_open","blockquote",1);A.markup=">";let $=[i,0];A.map=$,t.md.block.tokenize(t,i,v);let Z=t.push("blockquote_close","blockquote",-1);Z.markup=">",t.lineMax=a,t.parentType=_,$[1]=t.line;for(let B=0;B<p.length;B++)t.bMarks[B+i]=s[B],t.tShift[B+i]=p[B],t.sCount[B+i]=c[B],t.bsCount[B+i]=l[B];return t.blkIndent=I,!0;}function m1(t,i,e,n){let r=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4)return!1;let o=t.bMarks[i]+t.tShift[i],a=t.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<r;){let c=t.src.charCodeAt(o++);if(c!==a&&!dt(c))return!1;c===a&&s++;}if(s<3)return!1;if(n)return!0;t.line=i+1;let l=t.push("hr","hr",0);return l.map=[i,t.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0;}function qF(t,i){let e=t.eMarks[i],n=t.bMarks[i]+t.tShift[i],r=t.src.charCodeAt(n++);if(r!==42&&r!==45&&r!==43)return-1;if(n<e){let o=t.src.charCodeAt(n);if(!dt(o))return-1;}return n;}function WF(t,i){let e=t.bMarks[i]+t.tShift[i],n=t.eMarks[i],r=e;if(r+1>=n)return-1;let o=t.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=t.src.charCodeAt(r++),o>=48&&o<=57){if(r-e>=10)return-1;continue;}if(o===41||o===46)break;return-1;}return r<n&&(o=t.src.charCodeAt(r),!dt(o))?-1:r;}function NX(t,i){let e=t.level+2;for(let n=i+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===e&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2);}function p1(t,i,e,n){let r,o,a,s,l=i,c=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let p=!1;n&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(p=!0);let g,_,b;if((b=WF(t,l))>=0){if(g=!0,a=t.bMarks[l]+t.tShift[l],_=Number(t.src.slice(a,b-1)),p&&_!==1)return!1;}else if((b=qF(t,l))>=0)g=!1;else return!1;if(p&&t.skipSpaces(b)>=t.eMarks[l])return!1;if(n)return!0;let v=t.src.charCodeAt(b-1),I=t.tokens.length;g?(s=t.push("ordered_list_open","ol",1),_!==1&&(s.attrs=[["start",_]])):s=t.push("bullet_list_open","ul",1);let A=[l,0];s.map=A,s.markup=String.fromCharCode(v);let $=!1,Z=t.md.block.ruler.getRules("list"),B=t.parentType;for(t.parentType="list";l<e;){o=b,r=t.eMarks[l];let ae=t.sCount[l]+b-(t.bMarks[l]+t.tShift[l]),_e=ae;for(;o<r;){let Nn=t.src.charCodeAt(o);if(Nn===9)_e+=4-(_e+t.bsCount[l])%4;else if(Nn===32)_e++;else break;o++;}let Ce=o,et;Ce>=r?et=1:et=_e-ae,et>4&&(et=1);let xt=ae+et;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(v);let rn=[l,0];s.map=rn,g&&(s.info=t.src.slice(a,b-1));let xn=t.tight,$r=t.tShift[l],_i=t.sCount[l],ti=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=xt,t.tight=!0,t.tShift[l]=Ce-t.bMarks[l],t.sCount[l]=_e,Ce>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,e):t.md.block.tokenize(t,l,e,!0),(!t.tight||$)&&(c=!1),$=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=ti,t.tShift[l]=$r,t.sCount[l]=_i,t.tight=xn,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(v),l=t.line,rn[1]=l,l>=e||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let zi=!1;for(let Nn=0,he=Z.length;Nn<he;Nn++)if(Z[Nn](t,l,e,!0)){zi=!0;break;}if(zi)break;if(g){if(b=WF(t,l),b<0)break;a=t.bMarks[l]+t.tShift[l];}else if(b=qF(t,l),b<0)break;if(v!==t.src.charCodeAt(b-1))break;}return g?s=t.push("ordered_list_close","ol",-1):s=t.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(v),A[1]=l,t.line=l,t.parentType=B,c&&NX(t,I),!0;}function h1(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i],a=i+1;if(t.sCount[i]-t.blkIndent>=4||t.src.charCodeAt(r)!==91)return!1;function s(Z){let B=t.lineMax;if(Z>=B||t.isEmpty(Z))return null;let ae=!1;if(t.sCount[Z]-t.blkIndent>3&&(ae=!0),t.sCount[Z]<0&&(ae=!0),!ae){let et=t.md.block.ruler.getRules("reference"),xt=t.parentType;t.parentType="reference";let rn=!1;for(let xn=0,$r=et.length;xn<$r;xn++)if(et[xn](t,Z,B,!0)){rn=!0;break;}if(t.parentType=xt,rn)return null;}let _e=t.bMarks[Z]+t.tShift[Z],Ce=t.eMarks[Z];return t.src.slice(_e,Ce+1);}let l=t.src.slice(r,o+1);o=l.length;let c=-1;for(r=1;r<o;r++){let Z=l.charCodeAt(r);if(Z===91)return!1;if(Z===93){c=r;break;}else if(Z===10){let B=s(a);B!==null&&(l+=B,o=l.length,a++);}else if(Z===92&&(r++,r<o&&l.charCodeAt(r)===10)){let B=s(a);B!==null&&(l+=B,o=l.length,a++);}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<o;r++){let Z=l.charCodeAt(r);if(Z===10){let B=s(a);B!==null&&(l+=B,o=l.length,a++);}else if(!dt(Z))break;}let p=t.md.helpers.parseLinkDestination(l,r,o);if(!p.ok)return!1;let g=t.md.normalizeLink(p.str);if(!t.md.validateLink(g))return!1;r=p.pos;let _=r,b=a,v=r;for(;r<o;r++){let Z=l.charCodeAt(r);if(Z===10){let B=s(a);B!==null&&(l+=B,o=l.length,a++);}else if(!dt(Z))break;}let I=t.md.helpers.parseLinkTitle(l,r,o);for(;I.can_continue;){let Z=s(a);if(Z===null)break;l+=Z,r=o,o=l.length,a++,I=t.md.helpers.parseLinkTitle(l,r,o,I);}let A;for(r<o&&v!==r&&I.ok?(A=I.str,r=I.pos):(A="",r=_,a=b);r<o;){let Z=l.charCodeAt(r);if(!dt(Z))break;r++;}if(r<o&&l.charCodeAt(r)!==10&&A)for(A="",r=_,a=b;r<o;){let Z=l.charCodeAt(r);if(!dt(Z))break;r++;}if(r<o&&l.charCodeAt(r)!==10)return!1;let $=Ol(l.slice(1,c));return $?(n||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[$]>"u"&&(t.env.references[$]={title:A,href:g}),t.line=a),!0):!1;}var GF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var LX="[a-zA-Z_:][a-zA-Z0-9:._-]*",VX="[^\"'=<>`\\x00-\\x20]+",zX="'[^']*'",BX='"[^"]*"',jX="(?:"+VX+"|"+zX+"|"+BX+")",$X="(?:\\s+"+LX+"(?:\\s*=\\s*"+jX+")?)",QF="<[A-Za-z][A-Za-z0-9\\-]*"+$X+"*\\s*\\/?>",YF="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",HX="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",UX="<[?][\\s\\S]*?[?]>",qX="<![A-Za-z][^>]*>",WX="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ZF=new RegExp("^(?:"+QF+"|"+YF+"|"+HX+"|"+UX+"|"+qX+"|"+WX+")"),KF=new RegExp("^(?:"+QF+"|"+YF+")");var Td=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+GF.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(KF.source+"\\s*$"),/^$/,!1]];function f1(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let a=t.src.slice(r,o),s=0;for(;s<Td.length&&!Td[s][0].test(a);s++);if(s===Td.length)return!1;if(n)return Td[s][2];let l=i+1;if(!Td[s][1].test(a)){for(;l<e&&!(t.sCount[l]<t.blkIndent);l++)if(r=t.bMarks[l]+t.tShift[l],o=t.eMarks[l],a=t.src.slice(r,o),Td[s][1].test(a)){a.length!==0&&l++;break;}}t.line=l;let c=t.push("html_block","",0);return c.map=[i,l],c.content=t.getLines(i,l,t.blkIndent,!0),!0;}function g1(t,i,e,n){let r=t.bMarks[i]+t.tShift[i],o=t.eMarks[i];if(t.sCount[i]-t.blkIndent>=4)return!1;let a=t.src.charCodeAt(r);if(a!==35||r>=o)return!1;let s=1;for(a=t.src.charCodeAt(++r);a===35&&r<o&&s<=6;)s++,a=t.src.charCodeAt(++r);if(s>6||r<o&&!dt(a))return!1;if(n)return!0;o=t.skipSpacesBack(o,r);let l=t.skipCharsBack(o,35,r);l>r&&dt(t.src.charCodeAt(l-1))&&(o=l),t.line=i+1;let c=t.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[i,t.line];let p=t.push("inline","",0);p.content=t.src.slice(r,o).trim(),p.map=[i,t.line],p.children=[];let g=t.push("heading_close","h"+String(s),-1);return g.markup="########".slice(0,s),!0;}function _1(t,i,e){let n=t.md.block.ruler.getRules("paragraph");if(t.sCount[i]-t.blkIndent>=4)return!1;let r=t.parentType;t.parentType="paragraph";let o=0,a,s=i+1;for(;s<e&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let b=t.bMarks[s]+t.tShift[s],v=t.eMarks[s];if(b<v&&(a=t.src.charCodeAt(b),(a===45||a===61)&&(b=t.skipChars(b,a),b=t.skipSpaces(b),b>=v))){o=a===61?1:2;break;}}if(t.sCount[s]<0)continue;let _=!1;for(let b=0,v=n.length;b<v;b++)if(n[b](t,s,e,!0)){_=!0;break;}if(_)break;}if(!o)return!1;let l=t.getLines(i,s,t.blkIndent,!1).trim();t.line=s+1;let c=t.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[i,t.line];let p=t.push("inline","",0);p.content=l,p.map=[i,t.line-1],p.children=[];let g=t.push("heading_close","h"+String(o),-1);return g.markup=String.fromCharCode(a),t.parentType=r,!0;}function b1(t,i,e){let n=t.md.block.ruler.getRules("paragraph"),r=t.parentType,o=i+1;for(t.parentType="paragraph";o<e&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3||t.sCount[o]<0)continue;let c=!1;for(let p=0,g=n.length;p<g;p++)if(n[p](t,o,e,!0)){c=!0;break;}if(c)break;}let a=t.getLines(i,o,t.blkIndent,!1).trim();t.line=o;let s=t.push("paragraph_open","p",1);s.map=[i,t.line];let l=t.push("inline","",0);return l.content=a,l.map=[i,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0;}var q0=[["table",l1,["paragraph","reference"]],["code",c1],["fence",d1,["paragraph","reference","blockquote","list"]],["blockquote",u1,["paragraph","reference","blockquote","list"]],["hr",m1,["paragraph","reference","blockquote","list"]],["list",p1,["paragraph","reference","blockquote"]],["reference",h1],["html_block",f1,["paragraph","reference","blockquote"]],["heading",g1,["paragraph","reference","blockquote"]],["lheading",_1],["paragraph",b1]];function W0(){this.ruler=new Pl();for(let t=0;t<q0.length;t++)this.ruler.push(q0[t][0],q0[t][1],{alt:(q0[t][2]||[]).slice()});}W0.prototype.tokenize=function(t,i,e){let n=this.ruler.getRules(""),r=n.length,o=t.md.options.maxNesting,a=i,s=!1;for(;a<e&&(t.line=a=t.skipEmptyLines(a),!(a>=e||t.sCount[a]<t.blkIndent));){if(t.level>=o){t.line=e;break;}let l=t.line,c=!1;for(let p=0;p<r;p++)if(c=n[p](t,a,e,!1),c){if(l>=t.line)throw new Error("block rule didn't increment state.line");break;}if(!c)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),a=t.line,a<e&&t.isEmpty(a)&&(s=!0,a++,t.line=a);}};W0.prototype.parse=function(t,i,e,n){if(!t)return;let r=new this.State(t,i,e,n);this.tokenize(r,r.line,r.lineMax);};W0.prototype.State=HF;var XF=W0;function qm(t,i,e,n){this.src=t,this.env=e,this.md=i,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0;}qm.prototype.pushPending=function(){let t=new $a("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t;};qm.prototype.push=function(t,i,e){this.pending&&this.pushPending();let n=new $a(t,i,e),r=null;return e<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,e>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n;};qm.prototype.scanDelims=function(t,i){let e=this.posMax,n=this.src.charCodeAt(t),r=t>0?this.src.charCodeAt(t-1):32,o=t;for(;o<e&&this.src.charCodeAt(o)===n;)o++;let a=o-t,s=o<e?this.src.charCodeAt(o):32,l=Rl(r)||Al(String.fromCharCode(r)),c=Rl(s)||Al(String.fromCharCode(s)),p=Tl(r),g=Tl(s),_=!g&&(!c||p||l),b=!p&&(!l||g||c);return{can_open:_&&(i||!b||l),can_close:b&&(i||!_||c),length:a};};qm.prototype.Token=$a;var JF=qm;function GX(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1;}}function v1(t,i){let e=t.pos;for(;e<t.posMax&&!GX(t.src.charCodeAt(e));)e++;return e===t.pos?!1:(i||(t.pending+=t.src.slice(t.pos,e)),t.pos=e,!0);}var QX=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function y1(t,i){if(!t.md.options.linkify||t.linkLevel>0)return!1;let e=t.pos,n=t.posMax;if(e+3>n||t.src.charCodeAt(e)!==58||t.src.charCodeAt(e+1)!==47||t.src.charCodeAt(e+2)!==47)return!1;let r=t.pending.match(QX);if(!r)return!1;let o=r[1],a=t.md.linkify.matchAtStart(t.src.slice(e-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");let l=t.md.normalizeLink(s);if(!t.md.validateLink(l))return!1;if(!i){t.pending=t.pending.slice(0,-o.length);let c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";let p=t.push("text","",0);p.content=t.md.normalizeLinkText(s);let g=t.push("link_close","a",-1);g.markup="linkify",g.info="auto";}return t.pos+=s.length-o.length,!0;}function x1(t,i){let e=t.pos;if(t.src.charCodeAt(e)!==10)return!1;let n=t.pending.length-1,r=t.posMax;if(!i)if(n>=0&&t.pending.charCodeAt(n)===32){if(n>=1&&t.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0);}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);}else t.push("softbreak","br",0);for(e++;e<r&&dt(t.src.charCodeAt(e));)e++;return t.pos=e,!0;}var w1=[];for(let t=0;t<256;t++)w1.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){w1[t.charCodeAt(0)]=1;});function C1(t,i){let e=t.pos,n=t.posMax;if(t.src.charCodeAt(e)!==92||(e++,e>=n))return!1;let r=t.src.charCodeAt(e);if(r===10){for(i||t.push("hardbreak","br",0),e++;e<n&&(r=t.src.charCodeAt(e),!!dt(r));)e++;return t.pos=e,!0;}let o=t.src[e];if(r>=55296&&r<=56319&&e+1<n){let s=t.src.charCodeAt(e+1);s>=56320&&s<=57343&&(o+=t.src[e+1],e++);}let a="\\"+o;if(!i){let s=t.push("text_special","",0);r<256&&w1[r]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape";}return t.pos=e+1,!0;}function D1(t,i){let e=t.pos;if(t.src.charCodeAt(e)!==96)return!1;let r=e;e++;let o=t.posMax;for(;e<o&&t.src.charCodeAt(e)===96;)e++;let a=t.src.slice(r,e),s=a.length;if(t.backticksScanned&&(t.backticks[s]||0)<=r)return i||(t.pending+=a),t.pos+=s,!0;let l=e,c;for(;(c=t.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&t.src.charCodeAt(l)===96;)l++;let p=l-c;if(p===s){if(!i){let g=t.push("code_inline","code",0);g.markup=a,g.content=t.src.slice(e,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1");}return t.pos=l,!0;}t.backticks[p]=c;}return t.backticksScanned=!0,i||(t.pending+=a),t.pos+=s,!0;}function YX(t,i){let e=t.pos,n=t.src.charCodeAt(e);if(i||n!==126)return!1;let r=t.scanDelims(t.pos,!0),o=r.length,a=String.fromCharCode(n);if(o<2)return!1;let s;o%2&&(s=t.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=t.push("text","",0),s.content=a+a,t.delimiters.push({marker:n,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0;}function e3(t,i){let e,n=[],r=i.length;for(let o=0;o<r;o++){let a=i[o];if(a.marker!==126||a.end===-1)continue;let s=i[a.end];e=t.tokens[a.token],e.type="s_open",e.tag="s",e.nesting=1,e.markup="~~",e.content="",e=t.tokens[s.token],e.type="s_close",e.tag="s",e.nesting=-1,e.markup="~~",e.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&n.push(s.token-1);}for(;n.length;){let o=n.pop(),a=o+1;for(;a<t.tokens.length&&t.tokens[a].type==="s_close";)a++;a--,o!==a&&(e=t.tokens[a],t.tokens[a]=t.tokens[o],t.tokens[o]=e);}}function ZX(t){let i=t.tokens_meta,e=t.tokens_meta.length;e3(t,t.delimiters);for(let n=0;n<e;n++)i[n]&&i[n].delimiters&&e3(t,i[n].delimiters);}var E1={tokenize:YX,postProcess:ZX};function KX(t,i){let e=t.pos,n=t.src.charCodeAt(e);if(i||n!==95&&n!==42)return!1;let r=t.scanDelims(t.pos,n===42);for(let o=0;o<r.length;o++){let a=t.push("text","",0);a.content=String.fromCharCode(n),t.delimiters.push({marker:n,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});}return t.pos+=r.length,!0;}function t3(t,i){let e=i.length;for(let n=e-1;n>=0;n--){let r=i[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let o=i[r.end],a=n>0&&i[n-1].end===r.end+1&&i[n-1].marker===r.marker&&i[n-1].token===r.token-1&&i[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";let c=t.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(t.tokens[i[n-1].token].content="",t.tokens[i[r.end+1].token].content="",n--);}}function XX(t){let i=t.tokens_meta,e=t.tokens_meta.length;t3(t,t.delimiters);for(let n=0;n<e;n++)i[n]&&i[n].delimiters&&t3(t,i[n].delimiters);}var I1={tokenize:KX,postProcess:XX};function k1(t,i){let e,n,r,o,a="",s="",l=t.pos,c=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;let p=t.pos,g=t.posMax,_=t.pos+1,b=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(b<0)return!1;let v=b+1;if(v<g&&t.src.charCodeAt(v)===40){for(c=!1��,v++;v<g&&(e=t.src.charCodeAt(v),!(!dt(e)&&e!==10));v++);if(v>=g)return!1;if(l=v,r=t.md.helpers.parseLinkDestination(t.src,v,t.posMax),r.ok){for(a=t.md.normalizeLink(r.str),t.md.validateLink(a)?v=r.pos:a="",l=v;v<g&&(e=t.src.charCodeAt(v),!(!dt(e)&&e!==10));v++);if(r=t.md.helpers.parseLinkTitle(t.src,v,t.posMax),v<g&&l!==v&&r.ok)for(s=r.str,v=r.pos;v<g&&(e=t.src.charCodeAt(v),!(!dt(e)&&e!==10));v++);}(v>=g||t.src.charCodeAt(v)!==41)&&(c=!0),v++;}if(c){if(typeof t.env.references>"u")return!1;if(v<g&&t.src.charCodeAt(v)===91?(l=v+1,v=t.md.helpers.parseLinkLabel(t,v),v>=0?n=t.src.slice(l,v++):v=b+1):v=b+1,n||(n=t.src.slice(_,b)),o=t.env.references[Ol(n)],!o)return t.pos=p,!1;a=o.href,s=o.title;}if(!i){t.pos=_,t.posMax=b;let I=t.push("link_open","a",1),A=[["href",a]];I.attrs=A,s&&A.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1);}return t.pos=v,t.posMax=g,!0;}function M1(t,i){let e,n,r,o,a,s,l,c,p="",g=t.pos,_=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;let b=t.pos+2,v=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(v<0)return!1;if(o=v+1,o<_&&t.src.charCodeAt(o)===40){for(o++;o<_&&(e=t.src.charCodeAt(o),!(!dt(e)&&e!==10));o++);if(o>=_)return!1;for(c=o,s=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),s.ok&&(p=t.md.normalizeLink(s.str),t.md.validateLink(p)?o=s.pos:p=""),c=o;o<_&&(e=t.src.charCodeAt(o),!(!dt(e)&&e!==10));o++);if(s=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<_&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<_&&(e=t.src.charCodeAt(o),!(!dt(e)&&e!==10));o++);else l="";if(o>=_||t.src.charCodeAt(o)!==41)return t.pos=g,!1;o++;}else{if(typeof t.env.references>"u")return!1;if(o<_&&t.src.charCodeAt(o)===91?(c=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?r=t.src.slice(c,o++):o=v+1):o=v+1,r||(r=t.src.slice(b,v)),a=t.env.references[Ol(r)],!a)return t.pos=g,!1;p=a.href,l=a.title;}if(!i){n=t.src.slice(b,v);let I=[];t.md.inline.parse(n,t.md,t.env,I);let A=t.push("image","img",0),$=[["src",p],["alt",""]];A.attrs=$,A.children=I,A.content=n,l&&$.push(["title",l]);}return t.pos=o,t.posMax=_,!0;}var JX=/^([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])?)*)$/,eJ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function S1(t,i){let e=t.pos;if(t.src.charCodeAt(e)!==60)return!1;let n=t.pos,r=t.posMax;for(;;){if(++e>=r)return!1;let a=t.src.charCodeAt(e);if(a===60)return!1;if(a===62)break;}let o=t.src.slice(n+1,e);if(eJ.test(o)){let a=t.md.normalizeLink(o);if(!t.md.validateLink(a))return!1;if(!i){let s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);let c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto";}return t.pos+=o.length+2,!0;}if(JX.test(o)){let a=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(a))return!1;if(!i){let s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);let c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto";}return t.pos+=o.length+2,!0;}return!1;}function tJ(t){return /^<a[>\s]/i.test(t);}function nJ(t){return /^<\/a\s*>/i.test(t);}function iJ(t){let i=t|32;return i>=97&&i<=122;}function T1(t,i){if(!t.md.options.html)return!1;let e=t.posMax,n=t.pos;if(t.src.charCodeAt(n)!==60||n+2>=e)return!1;let r=t.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!iJ(r))return!1;let o=t.src.slice(n).match(ZF);if(!o)return!1;if(!i){let a=t.push("html_inline","",0);a.content=o[0],tJ(a.content)&&t.linkLevel++,nJ(a.content)&&t.linkLevel--;}return t.pos+=o[0].length,!0;}var rJ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oJ=/^&([a-z][a-z0-9]{1,31});/i;function A1(t,i){let e=t.pos,n=t.posMax;if(t.src.charCodeAt(e)!==38||e+1>=n)return!1;if(t.src.charCodeAt(e+1)===35){let o=t.src.slice(e).match(rJ);if(o){if(!i){let a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=t.push("text_special","",0);s.content=H0(a)?Um(a):Um(65533),s.markup=o[0],s.info="entity";}return t.pos+=o[0].length,!0;}}else{let o=t.src.slice(e).match(oJ);if(o){let a=Rs(o[0]);if(a!==o[0]){if(!i){let s=t.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity";}return t.pos+=o[0].length,!0;}}}return!1;}function n3(t){let i={},e=t.length;if(!e)return;let n=0,r=-2,o=[];for(let a=0;a<e;a++){let s=t[a];if(o.push(0),(t[n].marker!==s.marker||r!==s.token-1)&&(n=a),r=s.token,s.length=s.length||0,!s.close)continue;i.hasOwnProperty(s.marker)||(i[s.marker]=[-1,-1,-1,-1,-1,-1]);let l=i[s.marker][(s.open?3:0)+s.length%3],c=n-o[n]-1,p=c;for(;c>l;c-=o[c]+1){let g=t[c];if(g.marker===s.marker&&g.open&&g.end<0){let _=!1;if((g.close||s.open)&&(g.length+s.length)%3===0&&(g.length%3!==0||s.length%3!==0)&&(_=!0),!_){let b=c>0&&!t[c-1].open?o[c-1]+1:0;o[a]=a-c+b,o[c]=b,s.open=!1,g.end=a,g.close=!1,p=-1,r=-2;break;}}}p!==-1&&(i[s.marker][(s.open?3:0)+(s.length||0)%3]=p);}}function R1(t){let i=t.tokens_meta,e=t.tokens_meta.length;n3(t.delimiters);for(let n=0;n<e;n++)i[n]&&i[n].delimiters&&n3(i[n].delimiters);}function O1(t){let i,e,n=0,r=t.tokens,o=t.tokens.length;for(i=e=0;i<o;i++)r[i].nesting<0&&n--,r[i].level=n,r[i].nesting>0&&n++,r[i].type==="text"&&i+1<o&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==e&&(r[e]=r[i]),e++);i!==e&&(r.length=e);}var P1=[["text",v1],["linkify",y1],["newline",x1],["escape",C1],["backticks",D1],["strikethrough",E1.tokenize],["emphasis",I1.tokenize],["link",k1],["image",M1],["autolink",S1],["html_inline",T1],["entity",A1]],F1=[["balance_pairs",R1],["strikethrough",E1.postProcess],["emphasis",I1.postProcess],["fragments_join",O1]];function Wm(){this.ruler=new Pl();for(let t=0;t<P1.length;t++)this.ruler.push(P1[t][0],P1[t][1]);this.ruler2=new Pl();for(let t=0;t<F1.length;t++)this.ruler2.push(F1[t][0],F1[t][1]);}Wm.prototype.skipToken=function(t){let i=t.pos,e=this.ruler.getRules(""),n=e.length,r=t.md.options.maxNesting,o=t.cache;if(typeof o[i]<"u"){t.pos=o[i];return;}let a=!1;if(t.level<r){for(let s=0;s<n;s++)if(t.level++,a=e[s](t,!0),t.level--,a){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break;}}else t.pos=t.posMax;a||t.pos++,o[i]=t.pos;};Wm.prototype.tokenize=function(t){let i=this.ruler.getRules(""),e=i.length,n=t.posMax,r=t.md.options.maxNesting;for(;t.pos<n;){let o=t.pos,a=!1;if(t.level<r){for(let s=0;s<e;s++)if(a=i[s](t,!1),a){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break;}}if(a){if(t.pos>=n)break;continue;}t.pending+=t.src[t.pos++];}t.pending&&t.pushPending();};Wm.prototype.parse=function(t,i,e,n){let r=new this.State(t,i,e,n);this.tokenize(r);let o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](r);};Wm.prototype.State=JF;var i3=Wm;function r3(t){let i={};t=t||{},i.src_Any=N0.source,i.src_Cc=L0.source,i.src_Z=z0.source,i.src_P=Id.source,i.src_ZPCc=[i.src_Z,i.src_P,i.src_Cc].join("|"),i.src_ZCc=[i.src_Z,i.src_Cc].join("|");let e="[><\uFF5C]";return i.src_pseudo_letter="(?:(?!"+e+"|"+i.src_ZPCc+")"+i.src_Any+")",i.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",i.src_auth="(?:(?:(?!"+i.src_ZCc+"|[@/\\[\\]()]).)+@)?",i.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",i.src_host_terminator="(?=$|"+e+"|"+i.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+i.src_ZPCc+"))",i.src_path="(?:[/?#](?:(?!"+i.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+i.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+i.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+i.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+i.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+i.src_ZCc+"|[']).)+\\'|\\'(?="+i.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+i.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+i.src_ZCc+"|$)|;(?!"+i.src_ZCc+"|$)|\\!+(?!"+i.src_ZCc+"|[!]|$)|\\?(?!"+i.src_ZCc+"|[?]|$))+|\\/)?",i.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',i.src_xn="xn--[a-z0-9\\-]{1,59}",i.src_domain_root="(?:"+i.src_xn+"|"+i.src_pseudo_letter+"{1,63})",i.src_domain="(?:"+i.src_xn+"|(?:"+i.src_pseudo_letter+")|(?:"+i.src_pseudo_letter+"(?:-|"+i.src_pseudo_letter+"){0,61}"+i.src_pseudo_letter+"))",i.src_host="(?:(?:(?:(?:"+i.src_domain+")\\.)*"+i.src_domain+"))",i.tpl_host_fuzzy="(?:"+i.src_ip4+"|(?:(?:(?:"+i.src_domain+")\\.)+(?:%TLDS%)))",i.tpl_host_no_ip_fuzzy="(?:(?:(?:"+i.src_domain+")\\.)+(?:%TLDS%))",i.src_host_strict=i.src_host+i.src_host_terminator,i.tpl_host_fuzzy_strict=i.tpl_host_fuzzy+i.src_host_terminator,i.src_host_port_strict=i.src_host+i.src_port+i.src_host_terminator,i.tpl_host_port_fuzzy_strict=i.tpl_host_fuzzy+i.src_port+i.src_host_terminator,i.tpl_host_port_no_ip_fuzzy_strict=i.tpl_host_no_ip_fuzzy+i.src_port+i.src_host_terminator,i.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+i.src_ZPCc+"|>|$))",i.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+i.src_ZCc+")("+i.src_email_name+"@"+i.tpl_host_fuzzy_strict+")",i.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+i.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+i.tpl_host_port_fuzzy_strict+i.src_path+")",i.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+i.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+i.tpl_host_port_no_ip_fuzzy_strict+i.src_path+")",i;}function N1(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n];});}),t;}function Q0(t){return Object.prototype.toString.call(t);}function aJ(t){return Q0(t)==="[object String]";}function sJ(t){return Q0(t)==="[object Object]";}function lJ(t){return Q0(t)==="[object RegExp]";}function o3(t){return Q0(t)==="[object Function]";}function cJ(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&");}var s3={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function dJ(t){return Object.keys(t||{}).reduce(function(i,e){return i||s3.hasOwnProperty(e);},!1);}var uJ={"http:":{validate:function(t,i,e){let n=t.slice(i);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(n)?n.match(e.re.http)[0].length:0;}},"https:":"http:","ftp:":"http:","//":{validate:function(t,i,e){let n=t.slice(i);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(n)?i>=3&&t[i-3]===":"||i>=3&&t[i-3]==="/"?0:n.match(e.re.no_http)[0].length:0;}},"mailto:":{validate:function(t,i,e){let n=t.slice(i);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(n)?n.match(e.re.mailto)[0].length:0;}}},mJ="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",pJ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function hJ(t){t.__index__=-1,t.__text_cache__="";}function fJ(t){return function(i,e){let n=i.slice(e);return t.test(n)?n.match(t)[0].length:0;};}function a3(){return function(t,i){i.normalize(t);};}function G0(t){let i=t.re=r3(t.__opts__),e=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||e.push(mJ),e.push(i.src_xn),i.src_tlds=e.join("|");function n(s){return s.replace("%TLDS%",i.src_tlds);}i.email_fuzzy=RegExp(n(i.tpl_email_fuzzy),"i"),i.link_fuzzy=RegExp(n(i.tpl_link_fuzzy),"i"),i.link_no_ip_fuzzy=RegExp(n(i.tpl_link_no_ip_fuzzy),"i"),i.host_fuzzy_test=RegExp(n(i.tpl_host_fuzzy_test),"i");let r=[];t.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l);}Object.keys(t.__schemas__).forEach(function(s){let l=t.__schemas__[s];if(l===null)return;let c={validate:null,link:null};if(t.__compiled__[s]=c,sJ(l)){lJ(l.validate)?c.validate=fJ(l.validate):o3(l.validate)?c.validate=l.validate:o(s,l),o3(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=a3();return;}if(aJ(l)){r.push(s);return;}o(s,l);}),r.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize);}),t.__compiled__[""]={validate:null,normalize:a3()};let a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s];}).map(cJ).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+i.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+i.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),hJ(t);}function gJ(t,i){let e=t.__index__,n=t.__last_index__,r=t.__text_cache__.slice(e,n);this.schema=t.__schema__.toLowerCase(),this.index=e+i,this.lastIndex=n+i,this.raw=r,this.text=r,this.url=r;}function L1(t,i){let e=new gJ(t,i);return t.__compiled__[e.schema].normalize(e,t),e;}function gr(t,i){if(!(this instanceof gr))return new gr(t,i);i||dJ(t)&&(i=t,t={}),this.__opts__=N1({},s3,i),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=N1({},uJ,t),this.__compiled__={},this.__tlds__=pJ,this.__tlds_replaced__=!1,this.re={},G0(this);}gr.prototype.add=function(i,e){return this.__schemas__[i]=e,G0(this),this;};gr.prototype.set=function(i){return this.__opts__=N1(this.__opts__,i),this;};gr.prototype.test=function(i){if(this.__text_cache__=i,this.__index__=-1,!i.length)return!1;let e,n,r,o,a,s,l,c,p;if(this.re.schema_test.test(i)){for(l=this.re.schema_search,l.lastIndex=0;(e=l.exec(i))!==null;)if(o=this.testSchemaAt(i,e[2],l.lastIndex),o){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break;}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=i.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=i.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=i.indexOf("@"),p>=0&&(r=i.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0;};gr.prototype.pretest=function(i){return this.re.pretest.test(i);};gr.prototype.testSchemaAt=function(i,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(i,n,this):0;};gr.prototype.match=function(i){let e=[],n=0;this.__index__>=0&&this.__text_cache__===i&&(e.push(L1(this,n)),n=this.__last_index__);let r=n?i.slice(n):i;for(;this.test(r);)e.push(L1(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return e.length?e:null;};gr.prototype.matchAtStart=function(i){if(this.__text_cache__=i,this.__index__=-1,!i.length)return null;let e=this.re.schema_at_start.exec(i);if(!e)return null;let n=this.testSchemaAt(i,e[2],e[0].length);return n?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+n,L1(this,0)):null;};gr.prototype.tlds=function(i,e){return i=Array.isArray(i)?i:[i],e?(this.__tlds__=this.__tlds__.concat(i).sort().filter(function(n,r,o){return n!==o[r-1];}).reverse(),G0(this),this):(this.__tlds__=i.slice(),this.__tlds_replaced__=!0,G0(this),this);};gr.prototype.normalize=function(i){i.schema||(i.url="http://"+i.url),i.schema==="mailto:"&&!/^mailto:/i.test(i.url)&&(i.url="mailto:"+i.url);};gr.prototype.onCompile=function(){};var l3=gr;var d3="-",_J=/^xn--/,bJ=/[^\0-\x7F]/,vJ=/[\x2E\u3002\uFF0E\uFF61]/g,yJ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V1=35,sa=Math.floor,z1=String.fromCharCode;function Os(t){throw new RangeError(yJ[t]);}function xJ(t,i){let e=[],n=t.length;for(;n--;)e[n]=i(t[n]);return e;}function u3(t,i){let e=t.split("@"),n="";e.length>1&&(n=e[0]+"@",t=e[1]),t=t.replace(vJ,".");let r=t.split("."),o=xJ(r,i).join(".");return n+o;}function m3(t){let i=[],e=0,n=t.length;for(;e<n;){let r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){let o=t.charCodeAt(e++);(o&64512)==56320?i.push(((r&1023)<<10)+(o&1023)+65536):(i.push(r),e--);}else i.push(r);}return i;}var wJ=t=>String.fromCodePoint(...t),CJ=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36;},c3=function(t,i){return t+22+75*(t<26)-((i!=0)<<5);},p3=function(t,i,e){let n=0;for(t=e?sa(t/700):t>>1,t+=sa(t/i);t>V1*26>>1;n+=36)t=sa(t/V1);return sa(n+(V1+1)*t/(t+38));},h3=function(t){let i=[],e=t.length,n=0,r=128,o=72,a=t.lastIndexOf(d3);a<0&&(a=0);for(let s=0;s<a;++s)t.charCodeAt(s)>=128&&Os("not-basic"),i.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s<e;){let l=n;for(let p=1,g=36;;g+=36){s>=e&&Os("invalid-input");let _=CJ(t.charCodeAt(s++));_>=36&&Os("invalid-input"),_>sa((2147483647-n)/p)&&Os("overflow"),n+=_*p;let b=g<=o?1:g>=o+26?26:g-o;if(_<b)break;let v=36-b;p>sa(2147483647/v)&&Os("overflow"),p*=v;}let c=i.length+1;o=p3(n-l,c,l==0),sa(n/c)>2147483647-r&&Os("overflow"),r+=sa(n/c),n%=c,i.splice(n++,0,r);}return String.fromCodePoint(...i);},f3=function(t){let i=[];t=m3(t);let e=t.length,n=128,r=0,o=72;for(let l of t)l<128&&i.push(z1(l));let a=i.length,s=a;for(a&&i.push(d3);s<e;){let l=2147483647;for(let p of t)p>=n&&p<l&&(l=p);let c=s+1;l-n>sa((2147483647-r)/c)&&Os("overflow"),r+=(l-n)*c,n=l;for(let p of t)if(p<n&&++r>2147483647&&Os("overflow"),p===n){let g=r;for(let _=36;;_+=36){let b=_<=o?1:_>=o+26?26:_-o;if(g<b)break;let v=g-b,I=36-b;i.push(z1(c3(b+v%I,0))),g=sa(v/I);}i.push(z1(c3(g,0))),o=p3(r,c,s===a),r=0,++s;}++r,++n;}return i.join("");},DJ=function(t){return u3(t,function(i){return _J.test(i)?h3(i.slice(4).toLowerCase()):i;});},EJ=function(t){return u3(t,function(i){return bJ.test(i)?"xn--"+f3(i):i;});},IJ={version:"2.3.1",ucs2:{decode:m3,encode:wJ},decode:h3,encode:f3,toASCII:EJ,toUnicode:DJ};var B1=IJ;var g3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var _3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var b3={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var kJ={default:g3,zero:_3,commonmark:b3},MJ=/^(vbscript|javascript|file|data):/,SJ=/^data:image\/(gif|png|jpeg|webp);/;function TJ(t){let i=t.trim().toLowerCase();return MJ.test(i)?SJ.test(i):!0;}var v3=["http:","https:","mailto:"];function AJ(t){let i=Hm(t,!0);if(i.hostname&&(!i.protocol||v3.indexOf(i.protocol)>=0))try{i.hostname=B1.toASCII(i.hostname);}catch{}return O0(Ed(i));}function RJ(t){let i=Hm(t,!0);if(i.hostname&&(!i.protocol||v3.indexOf(i.protocol)>=0))try{i.hostname=B1.toUnicode(i.hostname);}catch{}return $m(Ed(i),$m.defaultChars+"%");}function Br(t,i){if(!(this instanceof Br))return new Br(t,i);i||$0(t)||(i=t||{},t="default"),this.inline=new i3(),this.block=new XF(),this.core=new $F(),this.renderer=new NF(),this.linkify=new l3(),this.validateLink=TJ,this.normalizeLink=AJ,this.normalizeLinkText=RJ,this.utils=GC,this.helpers=kd({},KC),this.options={},this.configure(t),i&&this.set(i);}Br.prototype.set=function(t){return kd(this.options,t),this;};Br.prototype.configure=function(t){let i=this;if($0(t)){let e=t;if(t=kJ[e],!t)throw new Error('Wrong `markdown-it` preset "'+e+'", check name');}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&i.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&i[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&i[e].ruler2.enableOnly(t.components[e].rules2);}),this;};Br.prototype.enable=function(t,i){let e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){e=e.concat(this[r].ruler.enable(t,!0));},this),e=e.concat(this.inline.ruler2.enable(t,!0));let n=t.filter(function(r){return e.indexOf(r)<0;});if(n.length&&!i)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this;};Br.prototype.disable=function(t,i){let e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){e=e.concat(this[r].ruler.disable(t,!0));},this),e=e.concat(this.inline.ruler2.disable(t,!0));let n=t.filter(function(r){return e.indexOf(r)<0;});if(n.length&&!i)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this;};Br.prototype.use=function(t){let i=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,i),this;};Br.prototype.parse=function(t,i){if(typeof t!="string")throw new Error("Input data should be a String");let e=new this.core.State(t,this,i);return this.core.process(e),e.tokens;};Br.prototype.render=function(t,i){return i=i||{},this.renderer.render(this.parse(t,i),this.options,i);};Br.prototype.parseInline=function(t,i){let e=new this.core.State(t,this,i);return e.inlineMode=!0,this.core.process(e),e.tokens;};Br.prototype.renderInline=function(t,i){return i=i||{},this.renderer.render(this.parseInline(t,i),this.options,i);};var j1=Br;var $1=(()=>{class t{constructor(e){this.sanitizer=e,this.id=ct(),this.markdown="",this.htmlString="";}ngAfterViewInit(){this.md=new j1();}addToken(e){this.markdown+=e,this.htmlString=this.md.render(this.markdown);}static{this.ɵfac=function(n){return new(n||t)(w(rr));};}static{this.ɵcmp=E({type:t,selectors:[["streamed-message"]],inputs:{id:[1,"id"]},decls:1,vars:1,consts:[[1,"streamed-message",3,"innerHTML"]],template:function(n,r){n&1&&D(0,"span",0),n&2&&y("innerHTML",r.sanitizer.bypassSecurityTrustHtml(r.htmlString),_c);},dependencies:[H],encapsulation:2});}}return t;})();var OJ=(t,i,e)=>({"human-message":t,"ai-message":i,"auto-send":e}),y3=t=>({display:t});function PJ(t,i){if(t&1&&(ye(0),m(1,"div",5)(2,"mat-icon"),f(3,"not_interested"),u(),m(4,"span"),f(5),u()(),xe()),t&2){let e=x();d(5),C(e.txt1);}}function FJ(t,i){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=x(2);d(),P("",e.youTxt,": ");}}function NJ(t,i){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=x(3);d(),P("",e.config==null||e.config.character==null?null:e.config.character.name,": ");}}function LJ(t,i){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=x(3);d(),P("",e.chatbotTxt,": ");}}function VJ(t,i){if(t&1&&T(0,NJ,2,1,"span",7)(1,LJ,2,1,"span",7),t&2){let e=x(2);K(e.config!=null&&e.config.character?0:1);}}function zJ(t,i){if(t&1){let e=W();ye(0),m(1,"image-masker",12),S("createEditsEvent",function(){k(e);let r=x().$implicit,o=x(2).$implicit,a=x();return M(a.createEdits(r,o.imageSize));}),u(),xe();}if(t&2){let e=x(3).$implicit;d(),y("url",e.images[0]);}}function BJ(t,i){if(t&1){let e=W();m(0,"div",13)(1,"div",14)(2,"button",15),S("click",function(){k(e);let r=x().index,o=x(2).$implicit,a=x();return M(a.saveImage(o,r));}),m(3,"mat-icon"),f(4,"save"),u(),f(5),u(),m(6,"button",15),S("click",function(){k(e);let r=x().index,o=x(2).$implicit,a=x();return M(a.createVariations(o.images[r]));}),m(7,"mat-icon"),f(8,"burst_mode"),u(),f(9),u(),m(10,"button",15),S("click",function(){k(e);let r=x().index,o=x(2).$implicit,a=x();return M(a.createEdits(o.images[r],o.imageSize));}),m(11,"mat-icon"),f(12,"edit"),u(),f(13),u(),m(14,"a",16)(15,"mat-icon"),f(16,"open_in_new"),u(),f(17),u()(),m(18,"span",17),f(19),u()(),D(20,"br"),m(21,"a",18),D(22,"img",19),u();}if(t&2){let e=x(),n=e.$implicit,r=e.index,o=x(2).$implicit,a=x();d(2),G("matTooltip",a.saveTip),d(3),P(" ",a.saveTxt," "),d(),G("matTooltip",a.variationsTip),d(3),P(" ",a.variationsTxt," "),d(),G("matTooltip",a.editTip),d(3),P(" ",a.editTxt," "),d(),G("matTooltip",a.tabTip),G("href",n,wr),d(3),C(a.tabTxt),d(2),C(a.dlTxt),d(2),G("href",n,wr),d(),py("id","gi-img-",o.id,"-",r,""),G("src",n,wr);}}function jJ(t,i){if(t&1&&(m(0,"div",10)(1,"span",11),T(2,zJ,2,1,"ng-container",8)(3,BJ,23,15,"ng-template",null,1,Ir),u()()),t&2){let e=Ke(4),n=x(2).$implicit;y("ngClass",n.userId===0?"user-image":"ai-image"),d(2),y("ngIf",n.responseIsEditable)("ngIfElse",e);}}function $J(t,i){if(t&1&&(m(0,"span"),T(1,jJ,5,3,"div",9),u()),t&2){let e=x().$implicit;d(),y("ngForOf",e.images);}}function HJ(t,i){if(t&1&&D(0,"streamed-message",24),t&2){let e=x(2).$implicit;y("id",e==null?null:e.id);}}function UJ(t,i){if(t&1&&D(0,"span",25),t&2){let e=x(2).$implicit,n=x();y("innerHTML",n.sanitizer.bypassSecurityTrustHtml(e.body),_c);}}function qJ(t,i){if(t&1){let e=W();m(0,"span",26)(1,"button",27),S("click",function(){k(e);let r=x(2).$implicit,o=x();return M(o.copyToClipboard(r));}),m(2,"mat-icon"),f(3,"content_copy"),u()()();}if(t&2){let e=x(3);y("ngStyle",Be(2,y3,e.inProgress?"none":"inline")),d(),G("matTooltip",e.clipboardCopyTip);}}function WJ(t,i){if(t&1){let e=W();m(0,"span",26)(1,"button",28),S("click",function(){k(e);let r=x(2).$implicit,o=x();return M(o.copyToPrompt(r));}),m(2,"mat-icon"),f(3,"save_alt"),u()()();}if(t&2){let e=x(3);y("ngStyle",Be(2,y3,e.inProgress?"none":"inline")),d(),G("matTooltip",e.promptCopyTip);}}function GJ(t,i){if(t&1){let e=W();m(0,"span",29)(1,"button",30),S("click",function(){k(e);let r=x(2).$implicit,o=x();return M(o.saveImagePrompt(r));}),m(2,"mat-icon"),f(3,"cloud_upload"),u()()();}if(t&2){let e=x(3);d(),G("matTooltip",e.saveImageTip);}}function QJ(t,i){if(t&1){let e=W();m(0,"span",29)(1,"button",30),S("click",function(){k(e);let r=x(2).$implicit,o=x();return M(o.createImageFromText(r.body));}),m(2,"mat-icon"),f(3,"image"),u()()();}if(t&2){let e=x(3);d(),G("matTooltip",e.createImageTip);}}function YJ(t,i){if(t&1&&T(0,HJ,1,1,"streamed-message",20)(1,UJ,1,1,"span",21)(2,qJ,4,4,"span",22)(3,WJ,4,4,"span",22)(4,GJ,4,1,"span",23)(5,QJ,4,1,"span",23),t&2){let e=x().$implicit,n=x();y("ngIf",(n.config==null||n.config.features==null?null:n.config.features.streamedResponses)&&e.userId===1),d(),y("ngIf",e.userId===0||!(!(n.config==null||n.config.features==null)&&n.config.features.streamedResponses)),d(),y("ngIf",n.config==null||n.config.features==null?null:n.config.features.copyToClipboard),d(),y("ngIf",n.config==null||n.config.features==null?null:n.config.features.copyToPrompt),d(),y("ngIf",n.config==null||n.config.features==null?null:n.config.features.saveImagePrompt),d(),y("ngIf",n.config==null||n.config.features==null?null:n.config.features.createImageFromText);}}function ZJ(t,i){if(t&1&&(m(0,"div",6),T(1,FJ,2,1,"span",7)(2,VJ,2,1)(3,$J,2,1,"span",8)(4,YJ,6,6,"ng-template",null,0,Ir),u()),t&2){let e=i.$implicit,n=Ke(5),r=x();Er("id","message-",e.id,""),y("ngClass",GM(6,OJ,e.userId===0,e.userId===1,r.config==null||r.config.features==null||r.config.features.autoSend==null?null:r.config.features.autoSend.enabled)),d(),K(e.userId===0?1:2),d(2),y("ngIf",e.images==null?null:e.images.length)("ngIfElse",n);}}var Ad=(()=>{class t{constructor(e,n,r,o,a){this.dialog=e,this.sanitizer=n,this.changeDetector=r,this.env=o,this.service=a,this.config=void 0,this.messages=ct([]),this.inProgress=!1,this.saveImageEvent=new z(),this.createVariationsEvent=new z(),this.createEditsEvent=new z(),this.copyToClipboardEvent=new z(),this.copyToPromptEvent=new z(),this.saveImagePromptEvent=new z(),this.createImageFromTextEvent=new z(),this.txt1="Astuce : Vous pouvez am\xE9liorer toutes les images que vous voyez dans le chatbot en survolant l'image et en acc\xE9dant \xE0 la barre d'outils de l'image. Vous pouvez \xE9galement t\xE9l\xE9charger une image depuis votre appareil en utilisant le bouton ci-dessous.",this.youTxt="Toi",this.chatbotTxt="Chatbot",this.saveTxt="Enregistrer",this.saveTip="Enregistrer l'image dans la biblioth\xE8que multim\xE9dia",this.variationsTip="D\xE9finissez les options et g\xE9n\xE9rez des variations de cette image.",this.variationsTxt="Variations",this.editTip="R\xE9g\xE9n\xE9rez s\xE9lectivement certaines zones de cette image en fonction d'une directive.",this.editTxt="Modifier",this.tabTip="Ouvrir l'image dans un nouvel onglet.",this.tabTxt="Nouvel onglet",this.dlTxt="Cliquez sur l'image pour la t\xE9l\xE9charger.",this.clipboardCopyTip="Copier dans le presse-papiers",this.promptCopyTip="Copier dans la directive",this.saveImageTip="Enregistrer la directive de l'image",this.createImageTip="Cr\xE9er une image \xE0 partir de ce texte",this.imageTxt="Image",this.messageTxt="Message",this.messagesTxt="Messages";}ngAfterViewInit(){}createEdits(e,n){console.log("create edits",e,n);let r={userId:Et.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageSize:n,images:[e]};r.id=++Nt.sNextID,this.createEditsEvent.emit(r);}lockImageMaskers(){console.log("lock image maskers",this.imageMaskers),this.imageMaskers.forEach(function(e){e.lock();});}findLastImageMasker(){let e=null;return this.imageMaskers.forEach(function(n){e?n.id>e.id&&(e=n):e=n;}),e;}findStreamedMessage(e){let n=this.streamedMessages.toArray();return n.length?n.find(o=>e===o.id()):void 0;}copyToClipboard(e){console.log("copy to clipboard:",e),this.copyToClipboardEvent.emit(e.body);}copyToPrompt(e){console.log("copy to prompot:",e),this.copyToPromptEvent.emit(e.body);}saveImagePrompt(e){console.log("save image prompot:",e),this.saveImagePromptEvent.emit(e.body);}createImageFromText(e){let n={title:"Cr\xE9er des images",msg:"D\xE9finir les options d'image",msg2:"Note : Dalle-3 produit une seule image."};this.service.openImageCreateDialog(n).afterClosed().subscribe(o=>{if(!o)return;let a={userId:Et.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,imageCount:o.count,imageSize:o.size};a.id=++Nt.sNextID,o.quality&&(a.d3RequestData={prompt:e,count:o.count,size:o.size,quality:o.quality,style:o.style,user:"demo user"}),this.createImageFromTextEvent.emit(a);});}saveImage(e,n){if(console.log("save image",e,n),e.images){let r=e.images[n];this.saveImageEvent.emit({url:r,msg:e});}else console.log("image not found");}createVariations(e){this.dialog.open(Ts,{width:"516px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{title:"Cr\xE9er des variations",msg:"Soumettez vos options pour les variations.",msg2:""}}).afterClosed().subscribe(a=>{if(!a)return;let s={userId:Et.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[e],imageCount:a.count,imageSize:a.size};s.id=++Nt.sNextID,this.createVariationsEvent.emit(s);});}static{this.ɵfac=function(n){return new(n||t)(w(jt),w(rr),w(ge),w(je),w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-viewer"]],viewQuery:function(n,r){if(n&1&&(Y(VC,5),Y($1,5)),n&2){let o;F(o=N())&&(r.imageMaskers=o),F(o=N())&&(r.streamedMessages=o);}},inputs:{messages:[1,"messages"]},outputs:{saveImageEvent:"saveImageEvent",createVariationsEvent:"createVariationsEvent",createEditsEvent:"createEditsEvent",copyToClipboardEvent:"copyToClipboardEvent",copyToPromptEvent:"copyToPromptEvent",saveImagePromptEvent:"saveImagePromptEvent",createImageFromTextEvent:"createImageFromTextEvent"},decls:4,vars:4,consts:[["elseBlock",""],["imgElse",""],[1,"msg-count"],[4,"ngIf"],["class","message",3,"id","ngClass",4,"ngFor","ngForOf"],[1,"no-image"],[1,"message",3,"id","ngClass"],[1,"user-label"],[4,"ngIf","ngIfElse"],["class","image-outer",3,"ngClass",4,"ngFor","ngForOf"],[1,"image-outer",3,"ngClass"],[1,"image-container"],[3,"createEditsEvent","url"],[1,"hidden-actions"],[1,"action-container"],["mat-raised-button","",1,"action",3,"click","matTooltip"],["mat-raised-button","","target","_blank",1,"action",3,"matTooltip","href"],[1,"click-to-download"],["download","",3,"href"],[3,"id","src"],[3,"id",4,"ngIf"],["class","message-body",3,"innerHTML",4,"ngIf"],["class","text-tool",3,"ngStyle",4,"ngIf"],["class","text-tool",4,"ngIf"],[3,"id"],[1,"message-body",3,"innerHTML"],[1,"text-tool",3,"ngStyle"],["mat-flat-button","",1,"copy-to��-clipboard",3,"click","matTooltip"],["mat-flat-button","",1,"copy-to-prompt",3,"click","matTooltip"],[1,"text-tool"],["mat-flat-button","",1,"save-image-prompt",3,"click","matTooltip"]],template:function(n,r){n&1&&(m(0,"div",2),f(1),u(),T(2,PJ,6,1,"ng-container",3)(3,ZJ,6,10,"div",4)),n&2&&(d(),ll(" ",r.messages().length," ",r.messages().length===1?r.messageTxt:r.messagesTxt,`
`),d(),y("ngIf",r.messages().length===0&&(r.config==null||r.config.features==null?null:r.config.features.uploadImages)),d(),y("ngForOf",r.messages()));},dependencies:[H,cs,an,Ot,Di,hF,ei,ce,ki,Me,nt,St,Ee,Re,Ii,VC,$1],styles:[".msg-count[_ngcontent-%COMP%]{text-align:center;margin:0 auto;padding:12px 0;font-size:small}.no-image[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;height:175px}.no-image[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px}.no-image[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:300px;margin:20px 0;font-size:small}.message[_ngcontent-%COMP%]{padding:10px 15px}.message[_ngcontent-%COMP%]   .text-tool[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:34px;min-width:24px;margin-left:5px;padding:0;height:24px}.message[_ngcontent-%COMP%]   .text-tool[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:8px}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]{text-align:center;position:relative;margin-bottom:5px;z-index:400}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .hidden-actions[_ngcontent-%COMP%]{display:block!important}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{text-align:center}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]{height:125px;margin:0 auto -125px;display:none}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]{padding-top:22px}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{height:45px;margin:3px 2px}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]   .click-to-download[_ngcontent-%COMP%]{pointer-events:none;font-size:smaller;margin:0 auto;padding:5px;z-index:500;position:relative;color:#fff}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;border:3px solid transparent}.human-message[_ngcontent-%COMP%]   .user-label[_ngcontent-%COMP%]{font-weight:700;margin-right:4px}.human-message[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]{background-color:transparent;text-align:center}.ai-message[_ngcontent-%COMP%]   .user-label[_ngcontent-%COMP%]{font-weight:700;margin-right:4px}.ai-message[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]{background-color:transparent;text-align:center}"]});}}return t;})();var Y0=class{constructor(){}};var Z0=(()=>{class t extends Y0{static{this.Sid=0;}onScroll(){let e=this;function n(o){let a=o.getBoundingClientRect();return a.top>=0&&a.left>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth);}let r=document.getElementById("prompter-container-"+e.id);r&&(n(r)?e.showJumpToButton=!1:e.inProgress||(e.showJumpToButton=!0));}get messages(){return this._messages;}set messages(e){this._messages=e;}constructor(e){super(),this.changeDetector=e,this.dynamicConfig=ct(!1),this.message=ct(""),this.inProgress=!1,this.allowNavigation=!1,this.jumpToTxt="Aller en bas",this._messages=[],this.newEnabled=!1,this.refreshEnabled=!1,this.shareEnabled=!1,this.saveEnabled=!1,this.showJumpToButton=!1,this.router=h(Je),this.route=h(Qi),this.dialog=h(jt),this.service=h(pe),this.navService=h($o),this._snackBar=h(Vi),this.env=h(je),this.user=h(Vr),this.api=h(Ht),this.unsavedChanges=h(Pr),this.titleService=h(Ei),this.characterService=h(b0),this.id=++t.Sid;}ngOnInit(){this.allowNavigation=this.env.allowNavigation;}ngAfterViewInit(){let e=this;this.router.events.pipe(ke(n=>n instanceof eo)).subscribe(()=>{this.showJumpToButton=!1;}),this.router.events.pipe(ke(n=>n instanceof lr)).subscribe(()=>{e.handleParams();});}setConfig(e,n=!1){let r=this;this.config=e;let o=[];n||(this.config.card=this.navService.imageCards.find(a=>a.routeKey===this.config.endpoint),this.config.card?o=this.navService.imageCards:(this.config.card=this.navService.textCards.find(a=>a.routeKey===this.config.endpoint),this.config.card?o=this.navService.textCards:console.log("card not found"))),this.changeDetector.detectChanges(),this.pageHeader&&(this.pageHeader.title=this.config.card?.title,this.pageHeader.icon=this.config.card?.icon,this.pageHeader.breadcrumbs=[{name:"Home",icon:"home",href:"/"},{name:this.router.url.indexOf("image/")>0?"Images":"Chat",href:this.router.url.indexOf("image/")>0?"/image":"/chat",icon:this.router.url.indexOf("image/")>0?"image":"question_answer"}],this.pageHeader.menu.cards=o,this.pageHeader.help=this.config.card?.description||"",this.pageHeader.changeDetector.detectChanges()),this.viewer.config=e,this.titleService.setTitle("Chatbot - "+this.config.card?.title),this.config.features.autoSend.enabled&&setTimeout(()=>{r.autoSendMessage();}),setTimeout(()=>{this.handleParams(),console.log("handle params");});}autoSendMessage(){this.setInProgress(!0);let e=this.config.message;if(this.config.features.autoSend.addUserName){let r=this.service.user.user;if(console.log("user is ",r),r){e=this.config.features.autoSend.intro||"";let o=" "+"Mon nom est ";e+=o+r.name+".";}}let n={userId:Et.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,imageCount:0,imageSize:"",addToViewer:this.config.features.autoSend.addToViewer,progressMessage:"S'il vous pla\xEEt, attendez."};n.id=++Nt.sNextID,this.config.message="",this.sendMessage(n);}setInProgress(e){this.inProgress=e,this.viewer.inProgress=e,this.prompter.inProgress=e,this.changeDetector.detectChanges(),this.viewer.changeDetector.detectChanges();}getInProgress(){return this.inProgress;}handleParams(){}uploadEvent(e){}saveImage(e){}copyToClipboard(e){navigator.clipboard.writeText(e),this._snackBar.open("Texte copi\xE9 dans le presse-papiers.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});}copyToPrompt(e){this.prompter.config.message=e,this._snackBar.open("Texte copi\xE9 dans la directive.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});}saveImagePrompt(e){let n=this;function r(){let a="Enregistrement de la directive...";return n.dialog.open(vd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:a,msg2:""}});}let o=r();this.api.getCsrfToken().subscribe(a=>{n.api.postPrompt(a,e).subscribe(s=>{o.close(),console.log("result: ",s),this._snackBar.open("Directive enregistr\xE9e !","",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},s=>{o.close(),console.log("error in posting:",s);});},a=>{console.log("csrf err is ",a),o.close(),this._snackBar.open("Erreur rencontr\xE9e :",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});}),this._snackBar.open("La directive d'image a \xE9t\xE9 enregistr\xE9e.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});}createImageFromText(e){let n=encodeURI(e.body);e.d3RequestData?this.router.navigate(["/image/generate",e.d3RequestData]):this.router.navigate(["/image/generate",{msg:n,count:e.imageCount,size:e.imageSize}]);}ngOnDestroy(){this.saveSubscription?.unsubscribe();}convertConversation(){let e=this.user.user.nicename||this.user.user.name,n=[];return this.messages.forEach(r=>{let o='<div class="human-label" style="font-weight:bold">'+e+":</div> ";r.userId==1&&(o='<div class="ai-label" style="font-weight:bold">'+"Chatbot"+":</div> ");let a=this.viewer.findStreamedMessage(r.id);console.log("streamed message:",a),a?o+=a?.htmlString:o+=r.body,n.push(o);}),n;}openProgressDialog(e){let n=e;this.dialog.open(vd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:n,msg2:""}});}share(){let e=this;console.log("share");let n={msg:"",msg2:""};this.service.openShareDialog(n).afterClosed().subscribe(o=>{if(!o){console.log("dialog closed with no data.");return;}console.log("dialog result is ",o),this.openProgressDialog("Partage de la conversation...");let a=this.user.user.token,s=this.convertConversation();s.push("This conversation is from: "+o.data.email),s.push("The comment is: "+o.data.comment);let l="Message from "+o.data.email;e.service.cms.createPost(a,l,s,"").pipe(de(1)).subscribe({next(c){console.log("share success: ",c),e.dialog.closeAll(),e._snackBar.open("Conversation partag\xE9e !","",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},error(c){console.log("error encountered: ",c),e.dialog.closeAll(),e._snackBar.open("Erreur rencontr\xE9e :",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});},complete(){console.log("share complete");}});});}save(){let e=this;this.openProgressDialog("Enregistrement de la conversation...");let n=this.user.user.token,r=this.convertConversation(),o=e.messages[0].body.substring(0,128);e.service.cms.createPost(n,o,r,this.config.updateId).pipe(de(1)).subscribe({next(a){console.log("save success: ",a),e.config.updateId=a.id,console.log("save id: ",e.config.updateId),e.config.updateId=a.id.toString(),e.saveEnabled=!1,e.dialog.closeAll(),e._snackBar.open("Conversation enregistr\xE9e !","",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},error(a){console.log("error encountered: ",a),e.dialog.closeAll(),e._snackBar.open("Erreur rencontr\xE9e :",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});},complete(){console.log("save complete");}});}refresh(){this.messages=[],this.refreshEnabled=!1,this.shareEnabled=!1,this.saveEnabled=!1,this.unsavedChanges.unset(this.config.endpoint.toString()),this.titleService.setTitle("Chatbot - "+this.config.card?.title),this.autoSendMessage();}newConversation(){this.messages=[],this.newEnabled=!1,this.shareEnabled=!1,this.saveEnabled=!1,this.unsavedChanges.unset(this.config.endpoint.toString()),this.titleService.setTitle("Chatbot - "+this.config.card?.title);}showPrompts(){let e=this;document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this.service.openPromptsDialog(e.config.features.prompts.imagePrompt,this.config?.character).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.prompter.config.message=o.Message,this._snackBar.open("La directive s\xE9lectionn\xE9e a \xE9t\xE9 ins\xE9r\xE9e.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});});}scrollToBottom(){this.navService.scrollToBottom();}delayedScrollToBottom(e=1e3){setTimeout(()=>{this.navService.scrollToBottom();},e);}createVariations(e){if(!e.images){console.warn("image not found");return;}let n=encodeURI(e.images[0]);console.log("create variations",e),this.router.navigate(["/image/variations",{img:n,count:e.imageCount,size:e.imageSize}]);}createEdits(e){if(!e.images){console.warn("image not found");return;}let n=encodeURI(e.images[0]);console.log("create edits",e),this.router.navigate(["/image/edit",{editImg:n,imageSize:e.imageSize}]);}sendMessage(e,n=Et.ai){let r=this;e.addToViewer!==!1&&this.messages.push(e),this.setInProgress(!0),this.unsavedChanges.set(this.config.endpoint.toString());let o=r.messages.slice(0,r.messages.length-1),a="";this.config.instructions&&(a=this.config.instructions),this.config?.character&&(a=this.characterService.makeCharacterInstructions(this.config),console.log("character found - make instructions are: ",e.instructions));let s="Chat: ",l="";o.length?l=o[0].body:l=e.body;let c=50,p=s+l.substring(0,c);if(l.length>c&&(p+="..."),this.titleService.setTitle(p),this.config.features.streamedResponses){r.sendStreamedMessage(e,o,a);return;}console.error("invalid response type");}sendStreamedMessage(e,n,r){let o=this;console.log("send streamed message: ",e);let a={userId:Et.ai,endpoint:this.config.endpoint,body:"",bodyOriginal:""};a.id=++Nt.sNextID,this.messages.push(a),this.viewer.changeDetector.detectChanges();let s=this.viewer.findStreamedMessage(a.id);if(!s){console.log("Unable to find streamed message");return;}let l={userId:e.userId,body:e.bodyOriginal,instructions:r||"",conversation:n},c=!1;this.api.storeData(l).subscribe({next(p){let g=p.message,_=o.env.get().apiUrl+"/stream/"+g;o.evtSource&&(o.evtSource?.close(),delete o.evtSource),o.evtSource=new EventSource(_),o.evtSource.onmessage=function(b){let v=new RegExp("__chatbot_br__","g"),I=b.data,A=I.replace(v,`
`),$=I.replace(v,`
`);!A&&!c?(console.log("stream initialized"),c=!0):A==="__chatbot_end__"?setTimeout(()=>{console.log("close"),o.evtSource.close(),o.newEnabled=!0,o.refreshEnabled=!0,o.shareEnabled=!0,o.saveEnabled=!0,o.setInProgress(!1),o.scrollToBottom(),o.prompter.prompterinput&&o.prompter.prompterinput.nativeElement.focus(),o.changeDetector.detectChanges();},500):(s?.addToken($),a.body+=A,a.bodyOriginal+=A,o.viewer.changeDetector.detectChanges(),o.scrollToBottom());};},error(p){console.error("An error occurred:",p);},complete(){console.log("Done.");}});}static{this.ɵfac=function(n){return new(n||t)(w(ge));};}static{this.ɵdir=L({type:t,selectors:[["cb-messenger"]],viewQuery:function(n,r){if(n&1&&(Y(Cd,5),Y(Ad,5),Y(yn,5)),n&2){let o;F(o=N())&&(r.prompter=o.first),F(o=N())&&(r.viewer=o.first),F(o=N())&&(r.pageHeader=o.first);}},hostBindings:function(n,r){n&1&&S("scroll",function(){return r.onScroll();},!1,bc);},inputs:{dynamicConfig:[1,"dynamicConfig"],message:[1,"message"]},features:[q]});}}return t;})();var KJ=t=>({display:t});function XJ(t,i){if(t&1){let e=W();m(0,"div",0)(1,"div",2)(2,"button",3),S("click",function(){k(e);let r=x();return M(r.scrollToBottom());}),m(3,"mat-icon"),f(4,"arrow_downward"),u()()(),m(5,"cb-page-header",4),S("email",function(){k(e);let r=x();return M((r.config.character==null?null:r.config.character.email)||"test@example.com");}),u(),m(6,"div",5)(7,"cb-viewer",6),S("createVariationsEvent",function(r){k(e);let o=x();return M(o.createVariations(r));})("createEditsEvent",function(r){k(e);let o=x();return M(o.createEdits(r));})("copyToClipboardEvent",function(r){k(e);let o=x();return M(o.copyToClipboard(r));})("copyToPromptEvent",function(r){k(e);let o=x();return M(o.copyToPrompt(r));})("saveImageEvent",function(r){k(e);let o=x();return M(o.saveImage(r));})("saveImagePromptEvent",function(r){k(e);let o=x();return M(o.saveImagePrompt(r));})("createImageFromTextEvent",function(r){k(e);let o=x();return M(o.createImageFromText(r));}),u(),m(8,"div",7)(9,"cb-prompter",8),S("sendMessageEvent",function(r){k(e);let o=x();return M(o.sendMessage(r));})("saveEvent",function(){k(e);let r=x();return M(r.save());})("shareEvent",function(){k(e);let r=x();return M(r.share());})("newEvent",function(){k(e);let r=x();return M(r.newConversation());})("refreshEvent",function(){k(e);let r=x();return M(r.refresh());})("showPromptsEvent",function(){k(e);let r=x();return M(r.showPrompts());})("uploadCompleteEvent",function(r){k(e);let o=x();return M(o.uploadEvent(r));}),u()()()();}if(t&2){let e=x();Er("id","messenger-",e.id,""),d(),y("ngStyle",Be(12,KJ,e.showJumpToButton?"block":"none")),d(),oe("aria-label",e.jumpToTxt),d(5),y("messages",e.messages),d(),Er("id","prompter-container-",e.id,""),d(),y("config",e.config)("newEnabled",e.newEnabled)("refreshEnabled",e.refreshEnabled)("shareEnabled",e.shareEnabled)("saveEnabled",e.saveEnabled);}}function JJ(t,i){t&1&&(m(0,"div",1),D(1,"mat-spinner",9),u()),t&2&&(d(),y("diameter",40));}var gt=(()=>{class t extends Z0{constructor(e){super(e),this.changeDetector=e;}setConfig(e,n=!1){super.setConfig(e,n);}ngOnInit(){super.ngOnInit();let e=this;this.route.queryParamMap.subscribe(n=>{let r,o;n.get("id")&&(r=n.get("id"),console.log("character is ",r)),r&&(console.log("character name found"),this.characterService.fetchCharacterByTitle(r).pipe(de(1)).subscribe({next(a){console.log("character result",a);let s=e.characterService.loadCharacter(a.data[0]);e.config.character=s,console.log("casted character: ",s),e.config?.character?(console.log("config is ",e.config),e.pageHeader.gravatarEmail=e.config.character.email,e.pageHeader.title="Chatting with "+e.config.character.name):console.log("character not found");},error(a){console.log("error encountered: ",a);},complete(){console.log("complete");}}));});}handleParams(){let e=this.route.snapshot.params;console.log("chat handle params snapshot",e),e.msg?this.handleCreateChatParams(e.msg):this.route.queryParams.pipe(de(1)).subscribe(n=>{console.log("routeQuery parms: ",n.msg),n.msg&&this.handleCreateChatParams(n.msg);});}handleCreateChatParams(e){let n=this;this._snackBar.open("Cr\xE9ation d'une conversation de chat \xE0 partir du message.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let r={userId:Et.human,endpoint:n.config.endpoint,body:decodeURI(e),bodyOriginal:decodeURI(e)};r.id=++Nt.sNextID,n.sendMessage(r),this.router.navigate(["/chat/ask-me-anything"],{replaceUrl:!0});}static{this.ɵfac=function(n){return new(n||t)(w(ge));};}static{this.ɵcmp=E({type:t,selectors:[["cb-chat-messenger"]],features:[q],decls:2,vars:1,consts:[[1,"messenger",3,"id"],[1,"spinner-container"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"email"],[1,"messenger-container"],[3,"createVariationsEvent","createEditsEvent","copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","messages"],[1,"prompter-container",3,"id"],[3,"sendMessageEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","config","newEnabled","refreshEnabled","shareEnabled","saveEnabled"],["mode","indeterminate",3,"diameter"]],template:function(n,r){n&1&&T(0,XJ,10,14,"div",0)(1,JJ,2,1,"div",1),n&2&&K(r.config?0:1);},dependencies:[H,Di,Cd,Ad,ei,_t,ia,ce,cg,nt,As,Ee,Re,yn,Xn,Kn],styles:[".messenger[_ngcontent-%COMP%]{position:relative}.widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.messenger-container[_ngcontent-%COMP%]{width:100%;margin:0 auto}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}"]});}}return t;})();var eee=["myCanvas"],tee=["myOutputCanvas"],nee=["cropTool"],iee=["imageContainer"],ree=["cropContainer"],H1=(()=>{class t{onScroll(){this.resizeCanvas(),setTimeout(()=>{this.drawImage();});}static{this.SId=0;}constructor(e){this.service=e,this.cropEvent=new z(),this.MIN_WIDTH=512,this.url=ct.required(),this.imageHeight=ct.required(),this.imageWidth=ct.required(),this.width=0,this.height=0,this.sourceBox=null,this.moving=!1,this.resizing=!1,this.loaded=!1,this.img=new Image(),this.startPosition={x:0,y:0},this.origin_corner=0,this.cornerStartPosition={x:0,y:0},this.id=++t.SId;}ngOnInit(){}ngAfterViewInit(){let e=this;this.cropToolElement=this.cropTool.nativeElement,this.imageContainerElement=this.imageContainer.nativeElement,this.cropContainerElement=this.cropContainer.nativeElement,this.context=this.canvas.nativeElement.getContext("2d"),(!this.context||!this.canvas)&&console.log("unable to init canvas",this.canvas,this.context),this.outputContext=this.outputCanvas.nativeElement.getContext("2d"),(!this.outputContext||!this.outputCanvas)&&console.log("unable to init output canvas",this.outputCanvas,this.outputContext),window.addEventListener("mousemove",this.cornerMousemove.bind(this)),window.addEventListener("touchmove",this.cornerMousemove.bind(this)),window.addEventListener("mouseup",this.cornerMouseup.bind(this)),window.addEventListener("touchend",this.cornerMouseup.bind(this)),this.img.crossOrigin="Anonymous",this.img.onload=function(){e.context?.drawImage(e.img,0,0,e.imageWidth(),e.imageHeight(),0,0,e.width,e.height),e.loaded=!0,e.resizeCanvas(),e.centerCropTool(),setTimeout(()=>{e.drawImage(),e.checkSize();},100);},this.img.src=this.url();}resizeCanvas(){let e=window.innerWidth,n=256,r=768,a=e-200*2;a<n?a=n:a>r&&(a=r),this.width=a,this.height=this.width/this.aspectRatio;}drawImage(){this.context?.clearRect(0,0,this.width,this.height),this.sourceBox?this.context?.drawImage(this.img,this.sourceBox.left,this.sourceBox.top,this.sourceBox.sideLength,this.sourceBox.sideLength,0,0,this.width,this.height):this.context?.drawImage(this.img,0,0,this.imageWidth(),this.imageHeight(),0,0,this.width,this.height);}centerCropTool(){let e=this.cropToolElement.style;e.top=this.service.numToPx(this.height*.25),e.left=this.service.numToPx(this.width*.25),this.width>=this.height?(e.width=this.service.numToPx(this.height/2),e.height=this.service.numToPx(this.height/2)):(e.width=this.service.numToPx(this.width/2),e.height=this.service.numToPx(this.width/2));}getCropToolCropSquare(){let e=this.cropToolElement.style;return{top:this.service.pxToNum(e.top),left:this.service.pxToNum(e.left),sideLength:this.service.pxToNum(e.height)};}imageIsSquare(){return this.imageHeight()===this.imageWidth();}getScale(){return this.width/this.imageWidth();}isCropped(){return!!this.sourceBox;}crop(){if(this.isCropped()){this.cropAgain(),this.checkSize();return;}let e=this.getCropToolCropSquare(),n=this.getScale();this.sourceBox={top:e.top/n,left:e.left/n,sideLength:e.sideLength/n},this.aspectRatio=1,this.resizeCanvas(),setTimeout(()=>{this.drawImage(),this.checkSize();});}cropAgain(){let e={left:this.sourceBox.left,top:this.sourceBox.top,sideLength:this.sourceBox.sideLength},n=this.getCropToolCropSquare(),r=this.getScale(),o=e.sideLength/this.imageWidth();o/=r,this.sourceBox={left:e.left+n.left*o,top:e.top+n.top*o,sideLength:e.sideLength*(n.sideLength/this.width)},this.aspectRatio=1,this.resizeCanvas(),setTimeout(()=>{this.drawImage();});}undoCrop(){this.sourceBox=null,this.aspectRatio=this.imageWidth()/this.imageHeight(),this.resizeCanvas(),this.centerCropTool(),setTimeout(()=>{this.drawImage(),this.checkSize();});}getPoint(e){return{x:e.offsetX,y:e.offsetY};}checkSize(){let e=this.toBase64(),a=atob(e).length/1024/1024;this.cropEvent.emit({sourceBox:this.sourceBox,size:a});}toBase64(){let e=this.outputCanvas.nativeElement;if(this.sourceBox){let r=this.sourceBox.sideLength;e.setAttribute("height",this.service.numToPx(r)),e.setAttribute("width",this.service.numToPx(r)),this.outputContext?.clearRect(0,0,r,r),this.outputContext?.drawImage(this.img,this.sourceBox.left,this.sourceBox.top,r,r,0,0,r,r);}else{let r=this.imageWidth();e.setAttribute("width",this.service.numToPx(r));let o=this.imageHeight();e.setAttribute("height",this.service.numToPx(o)),this.outputContext?.clearRect(0,0,r,o),this.outputContext?.drawImage(this.img,0,0,r,o,0,0,r,o);}let n=this.outputCanvas.nativeElement.toDataURL();return n=n.replace(/^data:image\/(png|jpg);base64,/,""),n;}mousedown(e){this.moving=!0,this.resizing=!1,e.stopImmediatePropagation(),e.preventDefault(),this.startPosition=this.getTouchPosition(e),console.log("touchstart position:",this.startPosition);}mouseup(e){this.moving=!1,this.resizing=!1;}mouseleave(e){this.moving=!1,this.resizing=!1;}getTouchPosition(e){if(e.type!=="touchstart"&&e.type!=="touchmove")return{x:0,y:0};var n=this.canvas.nativeElement.getBoundingClientRect();let r=e.touches[0].clientX-n.left,o=e.touches[0].clientY-n.top;return{x:r,y:o};}mousemove(e){if(!this.moving)return;let n=0,r=0;if(e.type==="touchmove"){let c=this.getTouchPosition(e);n=c.x-this.startPosition.x,r=c.y-this.startPosition.y;}else n=e.movementX,r=e.movementY;this.startPosition=this.getTouchPosition(e);let o=this.getCropToolCropSquare(),a=this.cropToolElement.style,s=a.top,l=a.left;s.endsWith("px")&&(s=s.substring(0,s.length-2)),l.endsWith("px")&&(l=l.substring(0,l.length-2)),s=parseInt(s,10),r&&(s+=r,s>this.height-o.sideLength&&(s=this.height-o.sideLength),s<0&&(s=0),s===0?s="0":s=s+"px",a.top=s),l=parseInt(l,10),n&&(l+=n,l>this.width-o.sideLength&&(l=this.width-o.sideLength),l<0&&(l=0),l===0?l="0":l=l+"px",a.left=l);}cornerMouseup(e){this.resizing=!1,this.moving=!1;}cornerMouseleave(e){this.resizing=!1,this.moving=!1;}cornerMousedown(e,n){this.resizing=!0,this.moving=!1,e.stopImmediatePropagation(),e.preventDefault(),this.origin_corner=n,this.cornerStartPosition=this.getCornerTouchPosition(e);}getCornerTouchPosition(e){if(e.type!=="touchstart"&&e.type!=="touchmove")return{x:0,y:0};var n=this.canvas.nativeElement.getBoundingClientRect();let r=e.touches[0].clientX-n.left,o=e.touches[0].clientY-n.top;return{x:r,y:o};}cornerMousemove(e){if(!this.resizing)return;let n=0,r=0;if(e.type==="touchmove"){let l=this.getCornerTouchPosition(e);n=l.x-this.cornerStartPosition.x,r=l.y-this.cornerStartPosition.y;}else n=e.movementX,r=e.movementY;this.cornerStartPosition=this.getCornerTouchPosition(e);let o=this.cropToolElement.style,a=this.getCropToolCropSquare(),s={top:a.top,left:a.left,sideLength:a.sideLength};if(this.origin_corner===1){let l={x:a.left+a.sideLength,y:a.top+a.sideLength};s.top+=r,s.left+=n,s.sideLength=Math.abs(l.x-s.left);}else if(this.origin_corner===2){let l={x:a.left,y:a.top+a.sideLength},c={x:a.left+a.sideLength+n,y:a.top+r};s.top=c.y,s.sideLength=Math.abs(l.x-c.x);}else if(this.origin_corner===3){let l={x:a.left+a.sideLength,y:a.top},c={x:a.left+n,y:a.top+a.sideLength+r};s.top=l.y,s.left=c.x,s.sideLength=Math.abs(l.y-c.y);}else if(this.origin_corner===4){let l={x:a.left+a.sideLength+n,y:a.top+a.sideLength+r};s.sideLength=Math.abs(l.y-a.top);}else console.log("unknown corner");o.top=this.service.numToPx(s.top),o.left=this.service.numToPx(s.left),o.height=this.service.numToPx(s.sideLength),o.width=this.service.numToPx(s.sideLength);}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["image-cropper"]],viewQuery:function(n,r){if(n&1&&(Y(eee,5),Y(tee,5),Y(nee,5),Y(iee,5),Y(ree,5)),n&2){let o;F(o=N())&&(r.canvas=o.first),F(o=N())&&(r.outputCanvas=o.first),F(o=N())&&(r.cropTool=o.first),F(o=N())&&(r.imageContainer=o.first),F(o=N())&&(r.cropContainer=o.first);}},hostBindings:function(n,r){n&1&&S("resize",function(){return r.onScroll();},!1,bc);},inputs:{url:[1,"url"],imageHeight:[1,"imageHeight"],imageWidth:[1,"imageWidth"],aspectRatio:"aspectRatio"},outputs:{cropEvent:"cropEvent"},decls:15,vars:3,consts:[["cropContainer",""],["imageContainer",""],["cropTool",""],["myCanvas",""],["myOutputCanvas",""],[1,"crop-container"],[1,"image-container"],[1,"crop-tool",2,"top","0px","left","0px","width","100px","height","100px",3,"mousedown","touchstart","mousemove","touchmove","mouseup","touchend"],[1,"circle","corner-top-left",3,"mousedown","touchstart"],[1,"circle","corner-top-right",3,"mousedown","touchstart"],[1,"circle","corner-bottom-left",3,"mousedown","touchstart"],[1,"circle","corner-bottom-right",3,"mousedown","touchstart"],[1,"hidden-image",2,"display","none",3,"src"],[1,"crop-canvas",3,"width","height"],[1,"output-canvas",2,"display","none"]],template:function(n,r){if(n&1){let o=W();m(0,"div",5,0)(2,"div",6,1)(4,"div",7,2),S("mousedown",function(s){return k(o),M(r.mousedown(s));})("touchstart",function(s){return k(o),M(r.mousedown(s));})("mousemove",function(s){return k(o),M(r.mousemove(s));})("touchmove",function(s){return k(o),M(r.mousemove(s));})("mouseup",function(s){return k(o),M(r.mouseup(s));})("touchend",function(s){return k(o),M(r.mouseup(s));}),m(6,"div",8),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,1));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,1));}),u(),m(7,"div",9),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,2));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,2));}),u(),m(8,"div",10),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,3));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,3));}),u(),m(9,"div",11),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,4));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,4));}),u()(),D(10,"img",12)(11,"canvas",13,3),u()(),D(13,"canvas",14,4);}n&2&&(d(10),y("src",r.url(),wr),d(),y("width",r.width)("height",r.height));},dependencies:[H,un],styles:[".crop-container[_ngcontent-%COMP%]{text-align:center;margin:0 auto;position:relative}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{position:relative;margin:0 auto}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]{position:absolute;background-color:transparent;cursor:move;border:5px solid var(--mat-sys-on-primary-container)}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]{position:absolute;width:24px;height:24px;border-radius:50%;z-index:1000;box-sizing:border-box;background-color:var(--mat-sys-on-primary-container)}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-top-left[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-top-right[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize;background-color:var(--mat-sys-on-primary-container)}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-bottom-left[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-bottom-right[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}"]});}}return t;})();var U1=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.cropTxt="Recadrer",this.squareTxt="Carr\xE9",this.notSquareTxt="Pas carr\xE9.",this.originalTxt="Original",this.undoCropTxt="Voir",this.closeEnabled=!0,this.directions="Instructions : Le Chatbot a besoin d'une image carr\xE9e de moins de 4 MB.",this.directions2="Un recadrage peut \xEAtre n\xE9cessaire. L'image actuelle est : ",this.aspectRatio=0,this.initialized=!1,this.imageSize=0;}ngOnInit(){console.log("dialog data",this.data),this.imageWidth=this.data.width,this.imageHeight=this.data.height,this.aspectRatio=this.imageWidth/this.imageHeight,console.log("actual width, actual height, aspect ratio:"),console.log(this.imageWidth,this.imageHeight,this.aspectRatio);}ngAfterViewInit(){setTimeout(()=>{this.initialized=!0;});}cropEvent(e){console.log("crop event",e),this.imageSize=e.size.toFixed(2);}continue(){this.dialogRef.close({base64Img:this.cropper.toBase64()});}crop(){this.cropper.crop();}undoCrop(){this.cropper.undoCrop();}isSquared(){return this.initialized?!this.cropper||this.cropper.isCropped()?!0:this.cropper.imageIsSquare():!1;}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["crop-dialog"]],viewQuery:function(n,r){if(n&1&&Y(H1,5),n&2){let o;F(o=N())&&(r.cropper=o.first);}},decls:34,vars:22,consts:[[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content","",2,"max-height","90vh"],[1,"crop-outer"],[1,"crop-inner"],[1,"toolbar-container"],[1,"example-spacer"],["mat-raised-button","",3,"click"],[3,"cropEvent","url","imageWidth","imageHeight","aspectRatio"],[1,"directions"],["mat-dialog-actions","",3,"align"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mat-raised-button","",3,"click","disabled"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"h1",1),f(2),u(),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"mat-toolbar"),D(8,"span",6),m(9,"button",7),S("click",function(){return r.crop();}),m(10,"mat-icon"),f(11,"crop"),u(),f(12),u(),m(13,"button",7),S("click",function(){return r.undoCrop();}),m(14,"mat-icon"),f(15,"undo"),u(),f(16),u(),D(17,"span",6),u()(),m(18,"image-cropper",8),S("cropEvent",function(a){return r.cropEvent(a);}),u()(),m(19,"div",9),f(20),m(21,"span"),f(22),u(),m(23,"span"),f(24),u(),f(25," and is "),m(26,"span"),f(27),u(),f(28,". "),u()()(),m(29,"div",10)(30,"button",11),f(31," Cancel "),u(),m(32,"button",12),S("click",function(){return r.continue();}),f(33," Continue "),u()()()),n&2&&(d(2),wu(" Crop Image (",r.data.width,"x",r.data.height," ",r.originalTxt,") "),d(10),P��(" ",r.cropTxt," "),d(4),P(" ",r.undoCropTxt," "),d(2),y("url",r.data.url)("imageWidth",r.imageWidth)("imageHeight",r.imageHeight)("aspectRatio",r.aspectRatio),d(2),P(" ",r.directions," "),d(2),C(r.directions2),d(),Dt(r.isSquared()?"success":"warn"),d(),C(r.isSquared()?r.squareTxt:r.notSquareTxt),d(2),Dt(r.imageSize<4?"success":"warn"),d(),P("",r.imageSize," MB"),d(2),y("align","center"),d(),y("disabled",!r.closeEnabled),d(2),y("disabled",!r.isSquared()));},dependencies:[_t,Mn,tn,cn,nn,ce,Me,ia,H,Jo,H1,Ii,Qn,Ee,Re],styles:["mat-dialog-title[_ngcontent-%COMP%]{padding-left:20px}.directions[_ngcontent-%COMP%]{max-width:512px;font-size:small;line-height:12px;margin:0 auto}.crop-outer[_ngcontent-%COMP%]{text-align:center}.crop-outer[_ngcontent-%COMP%]   .crop-inner[_ngcontent-%COMP%], .crop-outer[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]{margin:0 auto}.crop-outer[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]{font-size:medium}.crop-outer[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:10px;width:150px;height:45px}"]});}}return t;})();var Rd=(()=>{class t{constructor(e,n,r,o){this.http=e,this.env=n,this._snackBar=r,this.user=o,this.cancelRequest$=new U();}getSize(e,n){let r=this.env.get().apiUrl+"/compress/get-compressed-jpg-size/",o={url:e,compression_level:n},a=this.user.user?.fapiToken,s=new st({Authorization:`Bearer ${a}`});return this.http.post(r,o,{headers:s});}cancelRequest(){this.cancelRequest$.next();}ngOnDestroy(){this.cancelRequest$.next(),this.cancelRequest$.complete();}compressAndSave(e,n){console.log("writing compressed image");let r=this.env.get().apiUrl+"/compress/convert-to-jpg/",o={url:e,compression_level:n},a=this.user.user?.fapiToken,s=new st({Authorization:`Bearer ${a}`});return this.http.post(r,o,{headers:s});}saveToMediaLibrary(e,n){let r=this;this.compressAndSave(e,n).pipe(de(1)).subscribe({next(o){console.log("save image result:",o),r._snackBar.open("Image ajout\xE9e \xE0 la biblioth\xE8que multim\xE9dia",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},error(o){console.log("Error: ",o),r._snackBar.open("Impossible d'ajouter l'image \xE0 la biblioth\xE8que multim\xE9dia",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});},complete(){}});}static{this.ɵfac=function(n){return new(n||t)(J(ui),J(je),J(Vi),J(Vr));};}static{this.ɵprov=O({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var K0=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.compressionService=h(Rd),this.saveTxt="Enregistrer l'image.",this.saveImageTxt="Enregistrer",this.closeTxt="Annuler",this.qualityTxt="Qualit\xE9",this.highestTxt="Le plus \xE9lev\xE9",this.lowestTxt="Le plus bas",this.compressionTxt="D\xE9finir le niveau de compression et enregistrer. Des images plus petites signifient que vos pages web se chargeront plus rapidement.",this.sizeTxt="Taille",this.disabled=!1,this.max=100,this.min=0,this.showTicks=!1,this.step=1,this.thumbLabel=!0,this.value=50,this.size=Ci(""),this.sizeSuffix=Ci("KB");}ngOnInit(){this.url=this.data.url,console.log("url is ",this.url);}ngAfterViewInit(){this.getSize();}cancelRequest(){this.compressionService.cancelRequest();}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}formatLabel(e){return`${e}%`;}setSize(e){let n=e/1024;this.size.set(n.toPrecision(4));}getSize(){let e=this;this.subscription=this.compressionService.getSize(this.url,this.value).subscribe(n=>{e.setSize(n.image_size);},n=>{console.log("Error:",n);});}submit(){this.dialogRef.close({data:this.value});}valueChange(){this.getSize();}static{this.ɵfac=function(n){return new(n||t)(w(At),w(Kt));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-compression"]],inputs:{url:"url"},decls:21,vars:17,consts:[["slider",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-label-container"],["id","example-name-label",1,"example-name-label"],[1,"example-value-label"],[1,"example-margin",3,"disabled","max","min","step","discrete","showTickMarks","displayWith"],["matSliderThumb","",3,"valueChange","ngModelChange","ngModel"],[1,"size-container"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""],["mat-raised-button","",3,"click"]],template:function(n,r){if(n&1){let o=W();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"p"),f(4),u(),m(5,"div",3)(6,"label",4),f(7),u(),m(8,"label",5),f(9),u()(),m(10,"mat-slider",6)(11,"input",7,0),S("valueChange",function(){return k(o),M(r.valueChange());}),Rn("ngModelChange",function(s){return k(o),jn(r.value,s)||(r.value=s),M(s);}),u()()(),m(13,"div",8),f(14),u(),m(15,"div",9)(16,"button",10),f(17),u(),m(18,"button",11),S("click",function(){return k(o),M(r.submit());}),f(19),u()(),D(20,"br");}if(n&2){let o=Ke(12);d(),C(r.saveTxt),d(3),C(r.compressionTxt),d(3),C(r.qualityTxt),d(2),C(o.value),d(),y("disabled",r.disabled)("max",r.max)("min",r.min)("step",r.step)("discrete",r.thumbLabel)("showTickMarks",r.showTicks)("displayWith",r.formatLabel),d(),An("ngModel",r.value),d(3),wu("",r.sizeTxt,": ",r.size()," ",r.sizeSuffix(),""),d(3),C(r.closeTxt),d(2),C(r.saveTxt);}},dependencies:[_t,Mn,tn,cn,nn,ce,Me,H,Tt,T0,S0,jm,un,dn,_n,so],styles:[".example-h2[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.example-section[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-content:center;align-items:center}.example-margin[_ngcontent-%COMP%]{margin:8px}.example-width[_ngcontent-%COMP%]{max-width:180px;width:100%}.mat-mdc-slider[_ngcontent-%COMP%]{max-width:300px;width:100%}.mat-mdc-card[_ngcontent-%COMP%] + .mat-mdc-card[_ngcontent-%COMP%]{margin-top:8px}.example-result-card[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0 8px}.example-label-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:20px 10px 0;max-width:100%}.example-result-card[_ngcontent-%COMP%]   .example-value-label[_ngcontent-%COMP%]{font-weight:600}mat-slider[_ngcontent-%COMP%]{width:100%;max-width:100%!important}.instructions-container[_ngcontent-%COMP%], .size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"]});}}return t;})();var oee=t=>({display:t});function aee(t,i){if(t&1){let e=W();m(0,"div",0)(1,"div",2)(2,"button",3),S("click",function(){k(e);let r=x();return M(r.scrollToBottom());}),m(3,"mat-icon"),f(4,"arrow_downward"),u()()(),m(5,"cb-page-header",4),S("email",function(){k(e);let r=x();return M((r.config.character==null?null:r.config.character.email)||"test@example.com");}),u(),m(6,"div",5)(7,"cb-viewer",6),S("createVariationsEvent",function(r){k(e);let o=x();return M(o.createVariations(r));})("createEditsEvent",function(r){k(e);let o=x();return M(o.createEdits(r));})("copyToClipboardEvent",function(r){k(e);let o=x();return M(o.copyToClipboard(r));})("copyToPromptEvent",function(r){k(e);let o=x();return M(o.copyToPrompt(r));})("saveImageEvent",function(r){k(e);let o=x();return M(o.saveImage(r));})("saveImagePromptEvent",function(r){k(e);let o=x();return M(o.saveImagePrompt(r));})("createImageFromTextEvent",function(r){k(e);let o=x();return M(o.createImageFromText(r));}),u(),m(8,"div",7)(9,"cb-prompter",8),S("sendMessageEvent",function(r){k(e);let o=x();return M(o.sendMessage(r));})("saveEvent",function(){k(e);let r=x();return M(r.save());})("shareEvent",function(){k(e);let r=x();return M(r.share());})("newEvent",function(){k(e);let r=x();return M(r.newConversation());})("refreshEvent",function(){k(e);let r=x();return M(r.refresh());})("showPromptsEvent",function(){k(e);let r=x();return M(r.showPrompts());})("uploadCompleteEvent",function(r){k(e);let o=x();return M(o.uploadEvent(r));}),u()()()();}if(t&2){let e=x();Er("id","messenger-",e.id,""),d(),y("ngStyle",Be(12,oee,e.showJumpToButton?"block":"none")),d(),oe("aria-label",e.jumpToTxt),d(5),y("messages",e.messages),d(),Er("id","prompter-container-",e.id,""),d(),y("config",e.config)("newEnabled",e.newEnabled)("refreshEnabled",e.refreshEnabled)("shareEnabled",e.shareEnabled)("saveEnabled",e.saveEnabled);}}function see(t,i){t&1&&(m(0,"div",1),D(1,"mat-spinner",9),u()),t&2&&(d(),y("diameter",40));}var Ps=(()=>{class t extends Z0{constructor(e,n){super(e),this.changeDetector=e,this.compressionService=n;}openDialog(e){return this.dialog.open(K0,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}saveImage(e){let n=this,r={title:"Save Image",msg:"",msg2:"",url:e.url};this.openDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(console.log("save image dialog results",a),!a){console.log("no results from dialog");return;}let s=a.data;console.log("compression value is",s),n.compressionService.saveToMediaLibrary(e.url,s);},error(a){console.log("error encountered: ",a);},complete(){console.log("dialogref cleared");}});}handleParams(){let e=this.route.snapshot.params;e.msg?this.handleCreateImageParams():e.prompt?this.handleCreateD3ImageParams():e.img?this.handleVariationsParams():e.editImg&&this.handleEditParams();}handleCreateD3ImageParams(){let e=this.route.snapshot.params,n=e.prompt,r=parseInt(e.count,10),o=e.size,a=e.style,s=e.quality,c={prompt:decodeURI(n),count:r,size:o,quality:s,style:a,user:"demo user"};console.log("d3 request data",c),this._snackBar.open("Cr\xE9ation d'une image \xE0 partir du message.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let p={userId:Et.human,endpoint:this.config.endpoint,body:decodeURI(n),bodyOriginal:decodeURI(n),imageCount:r,imageSize:o,d3RequestData:c};p.id=++Nt.sNextID,this.sendMessage(p),this.router.navigate(["/image/generate"],{replaceUrl:!0});}handleCreateImageParams(){let e=this.route.snapshot.params;if(e.msg){let n=e.msg,r=parseInt(e.count,10),o=e.size;this._snackBar.open("Cr\xE9ation d'une image \xE0 partir du message.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let a={userId:Et.human,endpoint:this.config.endpoint,body:decodeURI(n),bodyOriginal:decodeURI(n),imageCount:r,imageSize:o};a.id=++Nt.sNextID,this.sendMessage(a),this.router.navigate(["/image/generate"],{replaceUrl:!0});}}handleVariationsParams(){let e=this.route.snapshot.params;if(e.img){let n=e.img,r=parseInt(e.count,10),o=e.size;this._snackBar.open("Soumission de l'image pour les variations.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]}),this.createVariationsFromImgUrl(n,r,o),this.router.navigate(["/image/variations"],{replaceUrl:!0});}}handleEditParams(){let e=this.route.snapshot.params,n=e.editImg,r=e.imageSize;console.log("handle edit params",n,r),this._snackBar.open("Image pr\xEAte pour l'\xE9dition.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let o={userId:Et.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageSize:r,images:[n],responseIsEditable:!0};o.id=++Nt.sNextID,this.messages.push(o),this.viewer.lockImageMaskers(),this.router.navigate(["/image/edit"],{replaceUrl:!0});}createVariationsFromImgUrl(e,n,r){let o=this;console.log("create variations for ",e,n,r);let a={userId:Et.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[e],imageCount:n,imageSize:r};a.id=++Nt.sNextID,console.log("human variations msg: ",a),this.messages.push(a),this.viewer.changeDetector.detectChanges();function s(c){let p="Variation";c.imageCount!==1&&(p="Variations");let g="Cr\xE9ation "+" ";c.imageCount+"","Image"+"",p+""+c.imageSize;let _="Un moment s'il vous pla\xEEt.";return o.dialog.open(vd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:g,msg2:_}});}let l=s(a);setTimeout(()=>{o.api.sendFapiMessage(a,o.messages).subscribe(c=>{console.log("res received",c),c.forEach(g=>{let _={userId:Et.ai,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageSize:r,images:[g]};_.id=++Nt.sNextID,o.messages.push(_);}),l.close();},c=>{l.close(),console.log("error: "),console.log(c);});},100);}uploadEvent(e){let n=this.env.get().drupalHost+e.rel_path;console.log("upload response: ",e),this.config.features.uploadImagesImageSize===!0?this.uploadForVariations(e,n):this.uploadForEdit(e,n);}uploadForEdit(e,n){let r=this;this.dialog.open(U1,{enterAnimationDuration:"500ms",maxWidth:"95vw",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{url:n,width:e.width,height:e.height}}).afterClosed().subscribe(l=>{if(!l)return;console.log("Dialog result: (base64) ",l);let c={userId:Et.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[n],imageCount:1,imageSize:"512x512",croppedBase64:l.base64Img,responseIsEditable:!0};c.id=++Nt.sNextID,this.sendMessage(c,Et.human);});}uploadForVariations(e,n){let r=this;console.log("cropping",e),this.dialog.open(U1,{enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{url:n,width:e.width,height:e.height}}).afterClosed().subscribe(l=>{if(!l)return;console.log("Dialog result: (base64) ",l),this.dialog.open(Ts,{width:"516px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{title:"Cr\xE9er des variations",msg:"Soumettez vos options pour les variations.",msg2:""}}).afterClosed().subscribe(_=>{if(!_)return;console.log("Dialog result: ",_);let b={userId:Et.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[n],imageCount:_.count,imageSize:_.size,croppedBase64:l.base64Img};b.id=++Nt.sNextID,this.sendMessage(b);});});}sendMessage(e,n=Et.ai){let r=this;function o(){let c="",p="",g=e.imageCount===1?" image (":" images (";c="Cr\xE9ation "+e.imageCount+g+e.imageSize+"px)";let _=75;return p=e.body.substring(0,_),e.body.length>_&&(p+=" ... "),r.dialog.open(vd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:c,msg2:p}});}let a=o();if(this.config.endpoint===te.imageEdit&&this.viewer.imageMaskers.length>0){let c=this.viewer.findLastImageMasker();c?(console.log("masker found",c),e.maskBase64=c.toBase64(),e.images=[c.url()]):console.log("masker not found");}e.addToViewer!==!1&&(this.messages.push(e),this.unsavedChanges.set(this.config.endpoint.toString())),this.inProgress=!0;let s=r.messages.slice(0,r.messages.length-1),l=null;this.config.instructions&&(l=this.config.instructions),this.api.sendFapiMessage(e,s,l).subscribe(c=>{if(!c){let _="Erreur de r\xE9seau rencontr\xE9e.";console.log(_),this._snackBar.open(_,void 0,{duration:8e3,panelClass:["custom-snack","custom-snack-error"]}),this.inProgress=!1,a.close();return;}let p={userId:n,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageCount:e.imageCount,imageSize:e.imageSize,images:[]};p.id=++Nt.sNextID,c.forEach(_=>{p.images?.push(_);}),e.responseIsEditable&&(p.responseIsEditable=!0,p.images.length>1&&console.error("multiple images found")),delete e.maskBase64,delete e.croppedBase64,this.messages.push(p),this.scrollToBottom(),this.delayedScrollToBottom(),this.newEnabled=!0,this.saveEnabled=!0,this.inProgress=!1,a.close();},c=>{console.log("error: ",c),this.inProgress=!1,a.close();});}static{this.ɵfac=function(n){return new(n||t)(w(ge),w(Rd));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-messenger"]],features:[q],decls:2,vars:1,consts:[[1,"messenger",3,"id"],[1,"spinner-container"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"email"],[1,"messenger-container"],[3,"createVariationsEvent","createEditsEvent","copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","messages"],[1,"prompter-container",3,"id"],[3,"sendMessageEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","config","newEnabled","refreshEnabled","shareEnabled","saveEnabled"],["mode","indeterminate",3,"diameter"]],template:function(n,r){n&1&&T(0,aee,10,14,"div",0)(1,see,2,1,"div",1),n&2&&K(r.config?0:1);},dependencies:[H,Di,Cd,Ad,ei,_t,ia,ce,cg,nt,As,Ee,Re,yn,Xn,Kn],styles:[".messenger[_ngcontent-%COMP%]{position:relative}.widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.messenger-container[_ngcontent-%COMP%]{width:100%;margin:0 auto}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}"]});}}return t;})();var it=(()=>{class t{constructor(e,n=!0){this.aiService=e,n&&(this.config=this.aiService.createDefaultWidgetConfig());}setMessenger(){this.chatMessenger?this.messenger=this.chatMessenger:this.imageMessenger&&(this.messenger=this.imageMessenger);}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.setMessenger(),this.messenger.setConfig(this.config);});}ngAfterContentInit(){}static{this.ɵfac=function(n){qh();};}static{this.ɵdir=L({type:t,viewQuery:function(n,r){if(n&1&&(Y(gt,5),Y(Ps,5)),n&2){let o;F(o=N())&&(r.chatMessenger=o.first),F(o=N())&&(r.imageMessenger=o.first);}}});}}return t;})();var w3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.chat,this.config.messageHint="Posez votre question ici (par exemple : Quelle est la distance jusqu'\xE0 Pluton ?)",this.config.message="",this.config.features.prompts.enabled=!0,this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-chat"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var C3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.ancientPhilosophy,this.config.features.prompt=!1,this.config.features.send=!1,this.config.features.new=!1,this.config.features.save=!0,this.config.features.copyToPrompt=!1,this.config.features.autoSend.enabled=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a historian of philosophy.  When I ask you for a quote, you need to provide a quote and other information from a particular     philosopher. The quote can be from an ancient Greek or Roman philosopher, or an ancient Eastern philosopher such as Confucius. Also use quotes from the American TV series "Kung Fu", which aired     from 1972-1975, and starred David Carradine as the main character Kwai Chang Caine.  When using quotes from Kung Fu, be sure to provide information about the particular     episode the quote came from such as the episode name, year, the actors involved, etc. Some of the other philosophers you might choose to draw from include Plato, Aristotle, Lucretius, Socrates,     the Roman stoic philosophers, Marcus Aurelius, Seneca, etc. Represent female philosophers as well as male philosophers.  Do not use well known quotes very often. Do not ever repeat a quote you     have already used.

    Do not provide any other words just provide information about the philosophical quote, the author, and other relevant information. Do not address the user in     any way such as saying "Certainly", "of course" or anything like that.

    If you are told to provide a quote different than the last one, make sure the new quote you provide is from a different philosopher and is about a different philosophical     topic.  If you are told to provide a similar quote, provide a different quote from the same philosopher, or a quote about the same philosophical topic.  Remember, do not ever repeat a quote.

    Always format your response the same way.  The quote should be first and should have quotation marks.  After the quote, put a dash and then the name of the philosopher. Immediately following     that put the philosophers birth date and date of death within parentheses.  Then skip a line and then provide a short paragraph with some historical information or other background information.   
    Then skip a line and provide an interpretation of the meaning behind the quote.  
    
    Here is an example response for you to follow:

    "Be not ashamed of mistakes and thus make them crimes." - Confucius (c. 551 - c. 479 BCE)

    Confucius was a Chinese philosopher and politician of the Spring and Autumn period who is traditionally considered the paragon of Chinese sages. His philosophy emphasized     personal and governmental morality, correctness of social relationships, justice, kindness, and sincerity.

    This quote reflects his belief in the importance of recognizing and learning from one's mistakes rather than concealing them, which only leads to greater wrongdoing.
    `,this.config.message="Please provide a philosophical quote.";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["philosophy"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],styles:[`cb-viewer .message.auto-send{max-width:400px!important;margin:20px auto 25px;padding:10px!important;border-radius:10px}cb-viewer .message.auto-send .user-label{display:none}
`],encapsulation:2});}}return t;})();var D3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.chatAlt,this.config.messageHint="Posez votre question ici (par exemple : Quelle est la distance jusqu'\xE0 Pluton ?)",this.config.message="",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["chat-alt"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var E3=(()=>{class t{constructor(){this.notFound="S\xE9lectionner une Langue";}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-page-not-found"]],decls:2,vars:1,template:function(n,r){n&1&&(m(0,"h2"),f(1),u()),n&2&&(d(),C(r.notFound));},dependencies:[H],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]});}}return t;})();var I3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.jokes,this.config.messageHint="",this.config.features.autoSend.enabled=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a comedian. Do not address my first request. Start your comedy act by insulting your audience (me), but keep it clean.  
    Then tell me a joke and give me a chance to guess the answer. Then keep telling me jokes and keep the conversation interactive and lively.

    Do not repeat the same joke or use commonly heard jokes.  Be creative.
    `,this.config.message="Tell me some jokes!";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-jokes"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var k3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.topTen,this.config.messageHint="Entrez un sujet ici (par exemple, physique)",this.config.message="",this.config.instructions="Provide a top ten list of interesting facts about the topic the user enters.  List in descending order starting from 10.",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-top-ten"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var M3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.imageGenerate,this.config.messageHint="D\xE9crivez l'image (par exemple : \"chat gris mignon\").",this.config.message="",this.config.features.uploadImages=!1,this.config.features.downloadImages=!0,this.config.features.prompts={enabled:!0,imagePrompt:!0},this.config.features.clear=!0,this.config.features.send=!0,this.config.features.imageCount=!0,this.config.features.imageSize=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.saveImagePrompt=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-generate"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-image-messenger");},dependencies:[H,Ps],encapsulation:2});}}return t;})();var S3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.imageEdit,this.config.messageHint="Masquez les parties que vous souhaitez redessiner. D\xE9crivez \xE0 quoi vous souhaitez que l'image enti\xE8re ressemble.",this.config.message="",this.config.features.uploadImages=!0,this.config.features.downloadImages=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.imageCount=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-edit"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-image-messenger");},dependencies:[H,Ps],encapsulation:2});}}return t;})();var T3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.imageVariations,this.config.messageHint="T\xE9l\xE9chargez une image, d\xE9finissez des options, puis visualisez votre ou vos images.",this.config.message="",this.config.features.prompt=!1,this.config.features.uploadImages=!0,this.config.features.uploadImagesImageSize=!0,this.config.features.downloadImages=!0,this.config.features.clear=!1,this.config.features.imageCount=!0,this.config.features.imageSize=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-variations"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-image-messenger");},dependencies:[H,Ps],encapsulation:2});}}return t;})();var lee=t=>({name:t,icon:"home",href:"/"}),cee=t=>[t],dee=t=>({display:t});function uee(t,i){t&1&&(m(0,"div",12),D(1,"mat-spinner",13),u());}function mee(t,i){if(t&1&&(m(0,"th",14),f(1),u()),t&2){let e=x();d(),P(" ",e.idText," ");}}function pee(t,i){if(t&1&&(m(0,"td",15),f(1),u()),t&2){let e=i.$implicit;d(),C(e.id);}}function hee(t,i){if(t&1&&(m(0,"th",16),f(1),u()),t&2){let e=x();d(),P(" ",e.createdText," ");}}function fee(t,i){if(t&1&&(m(0,"td",15),f(1),u()),t&2){let e=i.$implicit;d(),C(e.created);}}function gee(t,i){t&1&&(m(0,"th",17),f(1," Owner "),u());}function _ee(t,i){if(t&1&&(m(0,"td",15),f(1),u()),t&2){let e=i.$implicit;d(),C(e.ownedBy);}}function bee(t,i){t&1&&D(0,"tr",18);}function vee(t,i){t&1&&D(0,"tr",19);}var A3=(()=>{class t{constructor(e,n,r,o){this.service=e,this.api=n,this._liveAnnouncer=r,this.titleService=o,this.displayedColumns=["id","created","ownedBy"],this.dataSource=new zr(yee),this.statusTxt="\xC9tat de l'API",this.idText="ID",this.createdText="Cr\xE9\xE9",this.home="Accueil",this.loading=!0,this.titleService.setTitle("Chatbot - "+this.statusTxt);}ngOnInit(){}ngAfterViewInit(){this.dataSource.sort=this.sort;let e=this;e.api.fetchModels().subscribe(n=>{if(n){this.loading=!1;let r=n.data,o=[];r.forEach(a=>{let s=new Date(a.created*1e3);o.push({id:a.id,created:e.service.formatDate(s),ownedBy:a.owned_by});}),this.dataSource.data=o,this.table.renderRows();}else console.log("no data received");},n=>{console.log("error: ",n);});}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(Ht),w($c),w(Ei));};}static{this.ɵcmp=E({type:t,selectors:[["oai-models"]],viewQuery:function(n,r){if(n&1&&(Y(hi,5),Y(Zn,5)),n&2){let o;F(o=N())&&(r.table=o.first),F(o=N())&&(r.sort=o.first);}},decls:14,vars:14,consts:[[3,"title","icon","breadcrumbs"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","created","matSortDirection","desc","matSortDisableClear","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created",4,"matHeaderCellDef"],["matColumnDef","ownedBy"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by owner",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id"],["mat-cell",""],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by owner"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(D(0,"cb-page-header",0),T(1,uee,2,0,"div",1),m(2,"table",2),ye(3,3),T(4,mee,2,1,"th",4)(5,pee,2,1,"td",5),xe(),ye(6,6),T(7,hee,2,1,"th",7)(8,fee,2,1,"td",5),xe(),ye(9,8),T(10,gee,2,0,"th",9)(11,_ee,2,1,"td",5),xe(),T(12,bee,1,0,"tr",10)(13,vee,1,0,"tr",11),u()),n&2&&(y("title",r.statusTxt)("icon","api")("breadcrumbs",Be(10,cee,Be(8,lee,r.home))),d(),y("ngIf",r.loading),d(),y("ngStyle",Be(12,dee,r.loading?"none":"table"))("dataSource",r.dataSource),d(10),y("matHeaderRowDef",r.displayedColumns),d(),y("matRowDefColumns",r.displayedColumns));},dependencies:[H,Ot,Di,Xo,hi,Uo,Qo,qo,Ho,Yo,Wo,Go,Zo,Ko,ks,Zn,Is,Xn,Kn,yn],styles:["table[_ngcontent-%COMP%]{margin-top:15px;width:100%}table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{background-color:red}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}.spinner-container[_ngcontent-%COMP%]{padding:30px 0;display:flex;align-items:center;justify-content:center}"]});}}return t;})(),yee=[];var R3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.imagePrompts,this.config.messageHint="Fournissez une description basique de l'image. Le chatbot ajoutera des d\xE9tails.",this.config.message="",this.config.instructions="You are writng a prompt for generating images. Use the user input as a starting point and provide more details. Use less than 150 words.",this.config.features.new=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.saveImagePrompt=!0,this.config.features.createImageFromText=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-prompts"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var xee=t=>({name:t,icon:"home",href:"/"}),wee=t=>[t];function Cee(t,i){if(t&1&&D(0,"cb-page-header",3),t&2){let e=x();y("title",e.title)("icon","question_answer")("breadcrumbs",Be(5,wee,Be(3,xee,e.home)));}}function Dee(t,i){if(t&1&&(m(0,"mat-card",7)(1,"mat-card-header")(2,"mat-icon",8),f(3),u(),m(4,"mat-card-title"),f(5),u(),m(6,"mat-card-subtitle"),f(7),u()(),m(8,"mat-card-content")(9,"p"),f(10),u()(),m(11,"mat-card-actions")(12,"a",9,0),f(14),u()()()),t&2){let e=x().$implicit;d(2),Cr("chat-icon-",e.link.href,""),d(),C(e.icon),d(2),C(e.title),d(2),C(e.subtitle),d(3),C(e.description),d(2),y("routerLink",e.link.href),d(2),C(e.link.name);}}function Eee(t,i){if(t&1&&(ye(0),T(1,Dee,15,9,"mat-card",6),xe()),t&2){let e=i.$implicit;d(),y("ngIf",e.enabled&&!e.hidden);}}function Iee(t,i){if(t&1&&(m(0,"div",4),T(1,Eee,2,1,"ng-container",5),u()),t&2){let e=x();d(),y("ngForOf",e.cards);}}var O3=(()=>{class t{constructor(e,n,r,o){this.service=e,this.router=n,this.titleService=r,this.env=o,this.cards=[],this.title="Discussion",this.home="Accueil",this.titleService.setTitle("Chatbot - "+this.title),this.cards=this.service.textCards;}static{this.ɵfac=function(n){return new(n||t)(w($o),w(Je),w(Ei),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["chat-dash"]],decls:3,vars:2,consts:[["rla","routerLinkActive"],[3,"title","icon","breadcrumbs",4,"ngIf"],["class","dash-cards",4,"ngIf"],[3,"title","icon","breadcrumbs"],[1,"dash-cards"],[4,"ngFor","ngForOf"],["class","dash-card",4,"ngIf"],[1,"dash-card"],["mat-card-avatar","",2,"w��idth","32px","height","32px","font-size","32px"],["mat-raised-button","","routerLinkActive","",3,"routerLink"]],template:function(n,r){n&1&&(T(0,Cee,1,7,"cb-page-header",1)(1,Iee,2,1,"div",2),D(2,"router-outlet")),n&2&&(y("ngIf",r.router.url==="/chat"),d(),y("ngIf",r.router.url==="/chat"));},dependencies:[H,an,Ot,cd,nd,ad,ld,rd,sd,od,id,ce,ki,Ee,Re,Yt,hl,Pn,Rc,yn],encapsulation:2});}}return t;})();var kee=t=>({name:t,icon:"home",href:"/"}),Mee=t=>[t];function See(t,i){if(t&1&&D(0,"cb-page-header",3),t&2){let e=x();y("title",e.title)("icon","photo_library")("breadcrumbs",Be(5,Mee,Be(3,kee,e.home)));}}function Tee(t,i){if(t&1&&(m(0,"mat-card",7)(1,"mat-card-header")(2,"mat-icon",8),f(3),u(),m(4,"mat-card-title"),f(5),u(),m(6,"mat-card-subtitle"),f(7),u()(),m(8,"mat-card-content")(9,"p"),f(10),u()(),m(11,"mat-card-actions")(12,"a",9,0),f(14),u()()()),t&2){let e=x().$implicit;d(2),Cr("chat-icon-",e.link.href,""),d(),C(e.icon),d(2),C(e.title),d(2),C(e.subtitle),d(3),C(e.description),d(2),y("routerLink",e.link.href),d(2),C(e.link.name);}}function Aee(t,i){if(t&1&&(ye(0),T(1,Tee,15,9,"mat-card",6),xe()),t&2){let e=i.$implicit;d(),y("ngIf",e.enabled);}}function Ree(t,i){if(t&1&&(m(0,"div",4),T(1,Aee,2,1,"ng-container",5),u()),t&2){let e=x();d(),y("ngForOf",e.cards);}}var P3=(()=>{class t{constructor(e,n,r){this.service=e,this.router=n,this.titleService=r,this.title="Images",this.home="Accueil",this.titleService.setTitle("Chatbot - "+this.title),this.cards=this.service.imageCards;}static{this.ɵfac=function(n){return new(n||t)(w($o),w(Je),w(Ei));};}static{this.ɵcmp=E({type:t,selectors:[["image-dash"]],decls:3,vars:2,consts:[["rla","routerLinkActive"],[3,"title","icon","breadcrumbs",4,"ngIf"],["class","dash-cards",4,"ngIf"],[3,"title","icon","breadcrumbs"],[1,"dash-cards"],[4,"ngFor","ngForOf"],["class","dash-card",4,"ngIf"],[1,"dash-card"],["mat-card-avatar","",2,"width","32px","height","32px","font-size","32px"],["mat-raised-button","","routerLinkActive","",3,"routerLink"]],template:function(n,r){n&1&&(T(0,See,1,7,"cb-page-header",1)(1,Ree,2,1,"div",2),D(2,"router-outlet")),n&2&&(y("ngIf",r.router.url==="/image"),d(),y("ngIf",r.router.url==="/image"));},dependencies:[H,an,Ot,cd,nd,ad,ld,rd,sd,od,id,ce,ki,Ee,Re,Yt,hl,Pn,Rc,yn],encapsulation:2});}}return t;})();var Oee=t=>({name:t,icon:"home",href:"/"}),Pee=t=>[t],F3=(()=>{class t{constructor(e,n){this.api=e,this.titleService=n,this.about="Sur",this.homeTxt="Accueil",this.p1=" Cette application de chatbot est construite en utilisant le framework Angular (V18). L'application est h\xE9berg\xE9e sur un serveur AWS EC2 (Amazon Linux). Le chatbot communique avec une API Python personnalis\xE9e (FastAPI), qui sert principalement de couche de transit vers les API aliment\xE9es par l'IA d'OpenAI et d'autres fournisseurs.",this.p2=" Le chatbot est \xE9galement int\xE9gr\xE9 \xE0 WordPress et Drupal de diff\xE9rentes mani\xE8res. Le contenu cr\xE9\xE9 avec le chatbot, y compris toutes les conversations textuelles et les images, peut \xEAtre sauvegard\xE9 sur WordPress. Les conversations textuelles sont sauvegard\xE9es comme brouillons dans WordPress et peuvent \xEAtre \xE9dit\xE9es ult\xE9rieurement, si n\xE9cessaire, et publi\xE9es comme posts de diff\xE9rents types (cat\xE9gories). Les images sont sauvegard\xE9es dans la biblioth\xE8que multim\xE9dia et peuvent \xEAtre ajout\xE9es aux articles comme images \xE0 la une, etc., ou utilis\xE9es dans une galerie d'images.",this.p3="Drupal est utilis\xE9 de mani\xE8re d\xE9coupl\xE9e comme serveur de contenu, et stocke des invites, des personnages, des widgets, etc.",this.features="Autres fonctionnalit\xE9s :",this.f1="Widgets de traitement du langage naturel (NLP) g\xE9r\xE9s par l'utilisateur",this.f2="Personnages IA g\xE9r\xE9s par l'utilisateur",this.f3="Gestion des invites",this.f4="Cr\xE9ation d'images, variations, et \xE9dition",this.roadmap="Feuille de Route",this.l1="T\xE9l\xE9charger des images dans les conversations textuelles (GPT-4o Vision)",this.l2="Am\xE9lioration de la navigation d'images",this.l3="Plus de capacit\xE9s pour les personnages d'IA",this.buildInfo="Informations de construction",this.appName="",this.appDate="",this.titleService.setTitle("Chatbot - "+this.about);}ngAfterViewInit(){this.api.fetchBuildInfo().subscribe(e=>{this.appDate=e.date,this.appName=e.name;},e=>{console.log("error fetching build info: ",e);});}static{this.ɵfac=function(n){return new(n||t)(w(Ht),w(Ei));};}static{this.ɵcmp=E({type:t,selectors:[["cb-about"]],decls:36,vars:22,consts:[[3,"title","icon","breadcrumbs"],[1,"outer"],[1,"inner"],[2,"margin-left","25px"]],template:function(n,r){n&1&&(D(0,"cb-page-header",0),m(1,"div",1)(2,"div",2)(3,"p"),f(4),u(),m(5,"p"),f(6),u(),m(7,"p"),f(8),u(),m(9,"p")(10,"b"),f(11),u()(),m(12,"ul")(13,"li"),f(14),u(),m(15,"li"),f(16),u(),m(17,"li"),f(18),u(),m(19,"li"),f(20),u()(),m(21,"p")(22,"b"),f(23),u()(),m(24,"ul")(25,"li"),f(26),u(),m(27,"li"),f(28),u(),m(29,"li"),f(30),u()(),m(31,"p")(32,"b"),f(33),u()(),m(34,"p",3),f(35),u()()()),n&2&&(y("title",r.about)("icon","info")("breadcrumbs",Be(20,Pee,Be(18,Oee,r.homeTxt))),d(4),C(r.p1),d(2),C(r.p2),d(2),C(r.p3),d(3),C(r.features),d(3),C(r.f1),d(2),C(r.f2),d(2),C(r.f3),d(2),C(r.f4),d(3),C(r.roadmap),d(3),C(r.l1),d(2),C(r.l2),d(2),C(r.l3),d(3),C(r.buildInfo),d(2),ll("",r.appName," - ",r.appDate,""));},dependencies:[H,yn],styles:[".outer[_ngcontent-%COMP%]{width:100%;text-align:center}.outer[_ngcontent-%COMP%]   .inner[_ngcontent-%COMP%]{padding:8px;margin:0 auto 55px;text-align:left;max-width:800px}"]});}}return t;})();var q1=new R("CdkAccordion"),N3=(()=>{class t{_stateChanges=new U();_openCloseAllActions=new U();id=h(pt).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0);}closeAll(){this._openCloseAllActions.next(!1);}ngOnChanges(e){this._stateChanges.next(e);}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete();}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",Q]},exportAs:["cdkAccordion"],features:[be([{provide:q1,useExisting:t}]),tt]});}return t;})(),L3=(()=>{class t{accordion=h(q1,{optional:!0,skipSelf:!0});_changeDetectorRef=h(ge);_expansionDispatcher=h(pg);_openCloseAllSubscription=Ie.EMPTY;closed=new z();opened=new z();destroyed=new z();expandedChange=new z();id=h(pt).getId("cdk-accordion-child-");get expanded(){return this._expanded;}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n);}else this.closed.emit();this._changeDetectorRef.markForCheck();}}_expanded=!1;disabled=!1;_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,n)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===n&&this.id!==e&&(this.expanded=!1);}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions());}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe();}toggle(){this.disabled||(this.expanded=!this.expanded);}close(){this.disabled||(this.expanded=!1);}open(){this.disabled||(this.expanded=!0);}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e);});}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",Q],disabled:[2,"disabled","disabled",Q]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[be([{provide:q1,useValue:void 0}])]});}return t;})(),V3=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({});}return t;})();var Fee=["body"],Nee=["bodyWrapper"],Lee=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Vee=["mat-expansion-panel-header","*","mat-action-row"];function zee(t,i){}var Bee=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],jee=["mat-panel-title","mat-panel-description","*"];function $ee(t,i){t&1&&(m(0,"span",1),wn(),m(1,"svg",2),D(2,"path",3),u()());}var W1=new R("MAT_ACCORDION"),z3=new R("MAT_EXPANSION_PANEL"),Hee=(()=>{class t{_template=h(ot);_expansionPanel=h(z3,{optional:!0});constructor(){}static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]});}return t;})(),B3=new R("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),G1=(()=>{class t extends L3{_viewContainerRef=h(Ct);_animationsDisabled=h(mt,{optional:!0})==="NoopAnimations";_document=h(ve);_ngZone=h(le);_elementRef=h(ee);_renderer=h(wt);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle;}set hideToggle(e){this._hideToggle=e;}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition;}set togglePosition(e){this._togglePosition=e;}_togglePosition;afterExpand=new z();afterCollapse=new z();_inputChanges=new U();accordion=h(W1,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=h(pt).getId("mat-expansion-panel-header-");constructor(){super();let e=h(B3,{optional:!0});this._expansionDispatcher=h(pg),e&&(this.hideToggle=e.hideToggle);}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1;}_getExpandedState(){return this.expanded?"expanded":"collapsed";}toggle(){this.expanded=!this.expanded;}close(){this.expanded=!1;}open(){this.expanded=!0;}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(yt(null),ke(()=>this.expanded&&!this._portal),de(1)).subscribe(()=>{this._portal=new Yn(this._lazyContent._template,this._viewContainerRef);}),this._setupAnimationEvents();}ngOnChanges(e){this._inputChanges.next(e);}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete();}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e);}return!1;}_transitionEndListener=({target:e,propertyName:n})=>{e===this._bodyWrapper?.nativeElement&&n==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit();});};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled");},200);});}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(n&1&&Fe(o,Hee,5),n&2){let a;F(a=N())&&(r._lazyContent=a.first);}},viewQuery:function(n,r){if(n&1&&(Y(Fee,5),Y(Nee,5)),n&2){let o;F(o=N())&&(r._body=o.first),F(o=N())&&(r._bodyWrapper=o.first);}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(n,r){n&2&&ne("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing());},inputs:{hideToggle:[2,"hideToggle","hideToggle",Q],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[be([{provide:W1,useValue:void 0},{provide:z3,useExisting:t}]),q,tt],ngContentSelectors:Vee,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){n&1&&(Pe(Lee),ue(0),m(1,"div",2,0)(3,"div",3,1)(5,"div",4),ue(6,1),T(7,zee,0,0,"ng-template",5),u(),ue(8,2),u()()),n&2&&(d(),oe("inert",r.expanded?null:""),d(2),y("id",r.id),oe("aria-labelledby",r._headerId),d(4),y("cdkPortalOutlet",r._portal));},dependencies:[Si],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-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)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});}return t;})();var Q1=(()=>{class t{panel=h(G1,{host:!0});_element=h(ee);_focusMonitor=h($n);_changeDetectorRef=h(ge);_parentChangeSubscription=Ie.EMPTY;constructor(){h(kt).load(Fn);let e=this.panel,n=h(B3,{optional:!0}),r=h(new ri("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(ke(a=>!!(a.hideToggle||a.togglePosition))):gn;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=qt(e.opened,e.closed,o,e._inputChanges.pipe(ke(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ke(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),n&&(this.expandedHeight=n.expandedHeight,this.collapsedHeight=n.collapsedHeight);}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled;}_toggle(){this.disabled||this.panel.toggle();}_isExpanded(){return this.panel.expanded;}_getExpandedState(){return this.panel._getExpandedState();}_getPanelId(){return this.panel.id;}_getTogglePosition(){return this.panel.togglePosition;}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled;}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null;}_keydown(e){switch(e.keyCode){case 32:case 13:pn(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return;}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n);}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this);});}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element);}static ɵfac=function(n){return new(n||t)();};static ɵcmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(n,r){n&1&&S("click",function(){return r._toggle();})("keydown",function(a){return r._keydown(a);}),n&2&&(oe("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),qn("height",r._getHeaderHeight()),ne("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"));},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:at(e)]},ngContentSelectors:jee,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,r){n&1&&(Pe(Bee),m(0,"span",0),ue(1),ue(2,1),ue(3,2),u(),T(4,$ee,3,0,"span",1)),n&2&&(ne("mat-content-hide-toggle",!r._showToggle()),d(4),K(r._showToggle()?4:-1));},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}'],encapsulation:2,changeDetection:0});}return t;})();var j3=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵdir=L({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});}return t;})(),$3=(()=>{class t extends N3{_keyManager;_ownHeaders=new oi();_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(yt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges();}),this._keyManager=new Oo(this._ownHeaders).withWrap().withHomeAndEnd();}_handleHeaderKeydown(e){this._keyManager.onKeydown(e);}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e);}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy();}static ɵfac=(()=>{let e;return function(r){return(e||(e=He(t)))(r||t);};})();static ɵdir=L({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,r,o){if(n&1&&Fe(o,Q1,5),n&2){let a;F(a=N())&&(r._headers=a);}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,r){n&2&&ne("mat-accordion-multi",r.multi);},inputs:{hideToggle:[2,"hideToggle","hideToggle",Q],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[be([{provide:W1,useExisting:t}]),q]});}return t;})(),H3=(()=>{class t{static ɵfac=function(n){return new(n||t)();};static ɵmod=re({type:t});static ɵinj=ie({imports:[fe,V3,mr]});}return t;})();var qee=t=>({name:t,icon:"home",href:"/"}),Wee=t=>[t];function Gee(t,i){if(t&1&&(m(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3),u()(),m(4,"p"),f(5),u()()),t&2){let e=i.$implicit;d(3),P(" ",e.question," "),d(2),C(e.answer);}}var U3=(()=>{class t{constructor(e){this.titleService=e,this.support="Soutien",this.homeTxt="Accueil",this.faqs=[{question:"Can I edit images now?",answer:"Yes! Editing of images is supported (256x256, 512x512, and 1024x1024 sizes)."},{question:"Will Chatbot support languages other than English, Spanish, and French?",answer:"Yes, hopefully more languages will be added soon."},{question:"Does Chatbot work with Wordpress?",answer:"Yes, Chatbot is integrated with both Wordpress and Drupal."},{question:"I'm experiencing problems using chatbot.  What do I do?",answer:"Chatbot is a product beta and hasn't been tested in all browsers.  See the chart below."}],this.other="Pour toute autre question, veuillez nous contacter \xE0 l'adresse suivante :",this.faqsTxt="Questions Fr\xE9quemment Pos\xE9es",this.col1="Navigateur",this.col2="OS",this.col3="Essai",this.browserTesting="Test de Navigateur",this.currentTxt="actuel",this.needsTesting="besoin de tests",this.titleService.setTitle("Chatbot - "+this.support);}static{this.ɵfac=function(n){return new(n||t)(w(Ei));};}static{this.ɵcmp=E({type:t,selectors:[["cb-support"]],decls:46,vars:17,consts:[[3,"title","icon","breadcrumbs"],[1,"faqs-title"],[4,"ngFor","ngForOf"],[1,"browser-testing"],[1,"other-questions"],["href","mailto: jturman87@gmail.com",2,"color","white"]],template:function(n,r){n&1&&(D(0,"cb-page-header",0),m(1,"h4",1),f(2),u(),m(3,"mat-accordion"),T(4,Gee,6,2,"mat-expansion-panel",2),u(),D(5,"br"),m(6,"h4",1),f(7),u(),m(8,"table",3)(9,"tr")(10,"th"),f(11),u(),m(12,"th"),f(13),u(),m(14,"th"),f(15),u()(),m(16,"tr")(17,"td"),f(18,"Chrome"),u(),m(19,"td"),f(20,"Mac, IOS"),u(),m(21,"td"),f(22),u()(),m(23,"tr")(24,"td"),f(25,"Safari"),u(),m(26,"td"),f(27,"Mac, IOS"),u(),m(28,"td"),f(29),u()(),m(30,"tr")(31,"td"),f(32,"All Others"),u(),m(33,"td"),f(34,"\xA0"),u(),m(35,"td"),f(36),u()()(),D(37,"br")(38,"br"),m(39,"p",4),f(40),m(41,"a",5),f(42,"John"),u(),f(43,`.
`),u(),D(44,"br")(45,"br")),n&2&&(y("title",r.support)("icon","contact_support")("breadcrumbs",Be(15,Wee,Be(13,qee,r.homeTxt))),d(2),C(r.faqsTxt),d(2),y("ngForOf",r.faqs),d(3),C(r.browserTesting),d(4),C(r.col1),d(2),C(r.col2),d(2),C(r.col3),d(7),C(r.currentTxt),d(7),C(r.currentTxt),d(7),C(r.needsTesting),d(4),P(" ",r.other," "));},dependencies:[H,an,H3,$3,G1,Q1,j3,yn],styles:[".faqs-title[_ngcontent-%COMP%]{text-align:center}.browser-testing[_ngcontent-%COMP%]{border:1px solid gray;margin:0 auto;min-width:400px}.other-questions[_ngcontent-%COMP%]{text-align:center}.other-questions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}"]});}}return t;})();var q3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.toFrench,this.config.messageHint="Entrez le texte ci-dessous. Le Chatbot le convertira en fran\xE7ais.",this.config.instructions=`You are a translator.  Translate all the text sent to you to french and send back the 
      translated words with nothing else.  For example, if you are sent the text "water", you would respond with "agua".
      `,this.config.message="",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["to-french"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var W3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.toSpanish,this.config.messageHint="Ingrese el texto a continuaci\xF3n. El Chatbot lo convertir\xE1 al espa\xF1ol.",this.config.message="",this.config.instructions=`You are a translator.  Translate all the text sent to you to spanish and send back the 
      translated words with nothing else.  For example, if you are sent the text "city", you would respond with "ville".
    `,this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["to-spanish"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var G3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.chatStream,this.config.messageHint="Posez votre question ici (par exemple : Quelle est la distance jusqu'\xE0 Pluton ?)",this.config.message="",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["chat-stream"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var Q3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.chemicalElements,this.config.features.autoSend.enabled=!0,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a chemistry teacher. Provide information about a chemical element from the 
    periodic table of elements.  Choose any element you want.  After you have provided the information, ask me a question 
    about the information and then tell me if I'm right or not. Do not provide the answeer.  Let me answer the question.  
    Ask me another question if I get it right.  If I get it wrong, give me some guidance to help me get the right answer 
    before moving on to the next question.  Ask me about 3 or 4 questions, and then ask me if I want to study another 
    element.  Do not just focus on the common elements.  Use elements from throughout the periodic table.
    
    Do not address me first, just present the information.  Format the information starting with the name of the element and it's
    symbol in parentheses, then provide a table that has rows for basic element information such as symbol, atomic weight, 
    atomic number, group, etc.  Then provide 2-3 paragraphs of text with important and interesting facts about the element.
    `,this.config.message="Please provide  information about a chemical element and ask a question about the element.";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["chemical-elements"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var Y3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.socrates,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.save=!0,this.config.features.copyToPrompt=!1,this.config.features.autoSend.enabled=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are Socrates the great Greek philosopher.  You have a student that wants to talk to you.

    First, introduce yourself andf tell the student that you have heard about their wisdom and scho��larly ability, and mention that it is an honor to
    be able to speak with them today.  Use some creativity in how you express this.

    After the introduction, tell the student that you want them to help you understand some things better.  Give them a list of 5 topics to explore.
    Choose topics such as  "The nature of Virtue", or "The concept of Knowledge".

    Ask the user to select a topic out of the 5 topics your provide.  Once they have chosen a topic, ask them if they can tell you what the word or 
    concept means.  If they don't know, help them out and suggest different definitions.  Once you have agreed upon a definition, use the Socratic method
    to break down the definition and show that the definition is inadequate.

    Move on to another definition, or another topic after that.
    `,this.config.message="Do you have a minute to talk, Socrates?";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["socrates"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],styles:[`cb-viewer .message.auto-send{max-width:400px!important;margin:20px auto 25px;padding:10px!important;border-radius:10px}cb-viewer .message.auto-send .user-label{display:none}
`],encapsulation:2});}}return t;})();var Z3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.particlePhysics,this.config.features.autoSend.enabled=!0,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a physics teacher. Provide information about a particle from the periodic table of particles.
    Choose any particle you want.  After you have provided the information, ask me a question about
    the information and then tell me if I'm right or not. Do not provide the answeer.  Let me answer the question.
    Ask me another question if I get it right.  If I get it wrong, give me some guidance to help me get the right answer
    before moving on to the next question.  Ask me about 3 or 4 questions, and then ask me if I want to study another
    particle.  Use elements from throughout the table, not just the common ones.

    Do not address me first, just present the information.  Format the information starting with the name of the particle and it's
    symbol in parentheses, then provide a table that has rows for basic particle information such as symbol, rest mass value,  
    neutron count, etc.  Then provide 2-3 paragraphs of text with important and interesting facts about the particle.
    `,this.config.message="Please provide  information about a particle and then ask a me question about it.";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["particle-physics"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var K3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.blackjack,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.features.autoSend.enabled=!0,this.config.features.autoSend.addToViewer=!0,this.config.features.autoSend.addUserName=!0,this.config.features.autoSend.intro="Hi.  I'd like to play some blackjack. I have $100. Can you deal me in?",this.config.instructions=`You are a blackjack dealer and you have one player who is starting with $100. Deal cards to the player and
    display the values of the cards to the player.  Then tell the player how many cards you have and show the values of any cards that are visible
    to the player.  Ask the player to hit or stick and play out the rest of the game.

    Keep the user informed about how much money they have left.  The player will bet $10 each hand, but the player can change their bet.  After
    the first hand, let the user know what their current bet is and that they can change their bet.

    The game is over when the player is out of money.
    `,this.config.message="";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["blackjack"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var X3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.pythonTutor,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.features.autoSend.enabled=!0,this.config.features.autoSend.addToViewer=!0,this.config.features.autoSend.addUserName=!0,this.config.features.autoSend.intro="Hi.  I'd like to learn some Python.",this.config.instructions=`You are a Python teacher (the Python programming language).  Pick a topic about Python language itself, or maybe a  
    popular library (especially those related to AI). Do not always start with a beginner topic - choose advanced topics as well.  Present some information
    about the topic in an easy to read format. Keep the information fairly short - limited to 4 or 5 paragraphs or blocks of information.
    
    Then ask me questions one at a time about the information in multiple choice or true/false format.  If I get a question
    wrong, give me some help and let me try to answer again. If I get it right, move on to the next question. If I get 3 or 4 questions right, give me a grade for my answers.  The possible grades you 
    can give are A, B, C, D, and F.  It's okay if you give me an F, or whatever, just make an attempt to give me a fair grade.`,this.config.message="";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["python-tutor"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var J3=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.mlTutor,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.features.autoSend.enabled=!0,this.config.features.autoSend.addToViewer=!0,this.config.features.autoSend.addUserName=!0,this.config.features.autoSend.intro="Hi.  I'm a student and I'm trying to learning about machine learning (ML).  Can you help me?",this.config.instructions=`You are a machine learning (ML) expert and teacher. Pick a topic about ML in general, or about the Pandas library 
    and how that library is used to process data for ML purposes. Sometimes start with a beginner topic, but also choose intermediate and advanced topics.  
    Present some information about the topic in an easy to read format. Keep the information fairly short - limited to 4 or 5 paragraphs or blocks of information.
    
    Then ask me questions one at a time about the information in multiple choice or true/false format.  If I get a question
    wrong, give me some help and let me try to answer again. If I get it right, move on to the next question. If I get 3 or 4 questions right, give me a 
    grade for my answers.  The possible grades you can give are A, B, C, D, and F.  It's okay if you give me an F, or whatever, just make an attempt to 
    give me a fair grade.`,this.config.message="";}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["ml-tutor"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var eN=(()=>{class t extends it{constructor(e,n,r){super(e,!1),this.service=e,this.api=n,this.route=r,this.id=null;}ngOnInit(){}ngAfterViewInit(){let e=this;if(this.id=this.route.snapshot.paramMap.get("id"),console.log("id: ",this.id),!this.id){console.log("no id found in route");return;}setTimeout(()=>{this.api.widgetService.fetchWidget(e.id).pipe(de(1)).subscribe({next(n){console.log("res: ",n);let r=JSON.parse(n.data.attributes.body.value);e.config=r,console.log("new config",e.config),e.setMessenger(),e.messenger.setConfig(e.config,!0);},error(n){console.log("error encountered fetching widget: ",n);},complete(){}});},500);}static{this.ɵfac=function(n){return new(n||t)(w(pe),w(Ht),w(Qi));};}static{this.ɵcmp=E({type:t,selectors:[["dynamic-config"]],features:[q],decls:1,vars:1,consts:[[3,"dynamicConfig"]],template:function(n,r){n&1&&D(0,"cb-chat-messenger",0),n&2&&y("dynamicConfig",!0);},dependencies:[H,gt],encapsulation:2});}}return t;})();var Qee=t=>({name:t,icon:"home",href:"/"}),Yee=()=>({name:"Chat",href:"/chat",icon:"question_answer"}),Zee=(t,i)=>[t,i],Kee=()=>["expandedDetail"],Xee=()=>[10,25,100],tN=t=>["/chat/widget",t];function Jee(t,i){t&1&&(m(0,"th",25),f(1,"ID"),u());}function ete(t,i){if(t&1){let e=W();m(0,"td",26)(1,"a",27),f(2),u(),m(3,"button",28),S("click",function(){let r=k(e).$implicit,o=x();return M(o.edit(r.storageId));}),m(4,"mat-icon"),f(5,"edit"),u()()();}if(t&2){let e=i.$implicit;d(),y("routerLink",Be(2,tN,e.storageId)),d(),C(e.storageId);}}function tte(t,i){t&1&&(m(0,"th",25),f(1,"Name"),u());}function nte(t,i){if(t&1&&(m(0,"td",26)(1,"span",29)(2,"a",27)(3,"mat-icon"),f(4),u(),f(5),u()()()),t&2){let e=i.$implicit;d(2),y("routerLink",Be(3,tN,e.storageId)),d(2),C(e.config.card.icon),d(),C(e.name);}}function ite(t,i){t&1&&(m(0,"th",25),f(1,"Modified"),u());}function rte(t,i){if(t&1&&(m(0,"td",26)(1,"span",30),f(2),as(3,"date"),u()()),t&2){let e=i.$implicit;d(2),C(Jh(3,1,e.date,"short"));}}function ote(t,i){t&1&&(m(0,"th",25),f(1,"Category"),u());}function ate(t,i){if(t&1&&(m(0,"td",26)(1,"span",31),f(2),u()()),t&2){let e=i.$implicit;d(2),C(e.category);}}function ste(t,i){if(t&1&&(m(0,"th",25),f(1),u()),t&2){let e=x();d(),P(" ",e.enabledTxt," ");}}function lte(t,i){if(t&1&&(m(0,"td",26),f(1),u()),t&2){let e=i.$implicit;d(),C(e.enabled);}}function cte(t,i){if(t&1&&(m(0,"th",25),f(1),u()),t&2){let e=x();d(),C(e.hiddenTxt);}}function dte(t,i){if(t&1&&(m(0,"td",26),f(1),u()),t&2){let e=i.$implicit;d(),C(e.hidden);}}function ute(t,i){if(t&1&&(m(0,"th",32)(1,"span",33),f(2),u()()),t&2){let e=x();d(2),C(e.actionsTxt);}}function mte(t,i){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_up"),u());}function pte(t,i){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_down"),u());}function hte(t,i){if(t&1){let e=W();m(0,"td",26)(1,"mat-toolbar",34)(2,"button",35),S("click",function(r){let o=k(e).$implicit,a=x();return a.expandedElement=a.expandedElement===o?null:o,M(r.stopPropagation());}),T(3,mte,2,0,"mat-icon")(4,pte,2,0,"mat-icon"),u(),m(5,"button",36),S("click",function(r){let o=k(e).$implicit;return x().edit(o),M(r.stopPropagation());}),m(6,"mat-icon"),f(7,"edit"),u()(),m(8,"button",37),S("click",function(r){let o=k(e).$implicit;return x().duplicate(o),M(r.stopPropagation());}),m(9,"mat-icon"),f(10,"content_copy"),u()(),m(11,"button",38),S("click",function(r){let o=k(e).$implicit;return x().remove(o),M(r.stopPropagation());}),m(12,"mat-icon"),f(13,"delete"),u()()()();}if(t&2){let e=i.$implicit,n=x();d(3),K(n.expandedElement===e?3:4),d(2),G("matTooltip",n.editTxt),d(3),G("matTooltip",n.duplicateTxt),d(3),G("matTooltip",n.deleteTxt);}}function fte(t,i){if(t&1&&(m(0,"td",26)(1,"div",39)(2,"div",40),f(3,"Appearance"),u(),m(4,"div",41)(5,"span",42)(6,"span",43),f(7,"Title:"),u(),f(8),u(),m(9,"span",42)(10,"span",43),f(11,"Subtitle:"),u(),f(12),u(),m(13,"span",42)(14,"span",43),f(15,"Description:"),u(),f(16),u(),m(17,"span",42)(18,"span",43),f(19,"Help:"),u(),f(20),u(),m(21,"span",42)(22,"span",43),f(23,"Icon:"),u(),f(24),u(),m(25,"span",42)(26,"span",43),f(27),u(),f(28),u(),m(29,"span",42)(30,"span",43),f(31),u(),f(32),u(),m(33,"span",42)(34,"span",43),f(35),u(),f(36),u(),m(37,"span",42)(38,"span",43),f(39),u(),f(40),u(),m(41,"span",42)(42,"span",43),f(43,"Icon:"),u(),f(44),u()(),m(45,"div",40),f(46,"Features"),u(),m(47,"div",44)(48,"div",45)(49,"span",42)(50,"span",43),f(51,"Prompt:"),u(),f(52),u(),m(53,"span",42)(54,"span",43),f(55,"Prompt:"),u(),f(56),u(),m(57,"span",42)(58,"span",43),f(59,"New:"),u(),f(60),u(),m(61,"span",42)(62,"span",43),f(63,"Save:"),u(),f(64),u(),m(65,"span",42)(66,"span",43),f(67,"Clear:"),u(),f(68),u(),m(69,"span",42)(70,"span",43),f(71,"Send:"),u(),f(72),u(),m(73,"span",42)(74,"span",43),f(75,"Refresh:"),u(),f(76),u(),m(77,"span",42)(78,"span",43),f(79,"Copy to Clipboard:"),u(),f(80),u(),m(81,"span",42)(82,"span",43),f(83,"Copy to Prompt:"),u(),f(84),u(),m(85,"span",42)(86,"span",43),f(87,"Streamed Responses:"),u(),f(88),u(),m(89,"span",42)(90,"span",43),f(91,"Create Image from Text:"),u(),f(92),u(),m(93,"span",42)(94,"span",43),f(95,"Prompt:"),u(),f(96),u(),m(97,"span",42)(98,"span",43),f(99,"Prompt:"),u(),f(100),u()(),m(101,"div",46)(102,"span",47),f(103,"Prompts:"),u(),m(104,"span",42)(105,"span",43),f(106,"Enabled:"),u(),f(107),u(),m(108,"span",42)(109,"span",43),f(110,"Image Prompt:"),u(),f(111),u()(),m(112,"div",48)(113,"span",47),f(114,"AutoSend:"),u(),m(115,"span",42)(116,"span",43),f(117,"Enabled:"),u(),f(118),u(),m(119,"span",42)(120,"span",43),f(121,"Add To Viewer:"),u(),f(122),u(),m(123,"span",42)(124,"span",43),f(125,"Add User Name:"),u(),f(126),u(),m(127,"span",42)(128,"span",43),f(129,"Intro:"),u(),f(130),u()()()()()),t&2){let e=i.$implicit,n=x();oe("colspan",n.columnsToDisplayWithExpand.length),d(),y("@detailExpand",e==n.expandedElement?"expanded":"collapsed"),d(7),P(" ",e.config.card.title,""),d(4),P(" ",e.config.card.subtitle,""),d(4),P(" ",e.config.card.description,""),d(4),P(" ",e.config.card.help,""),d(4),P(" ",e.config.card.icon,""),d(3),P("",n.instructionsTxt,":"),d(),P(" ",e.config.instructions,""),d(3),P("",n.messageTxt,":"),d(),P(" ",e.config.message,""),d(3),P("",n.messageHintTxt,":"),d(),P(" ",e.config.messageHint,""),d(3),P("",n.messageTypeTxt,":"),d(),P(" ",e.config.messageType,""),d(4),P(" ",e.config.card.icon,""),d(8),P(" ",e.config.features.prompt,""),d(4),P(" ",e.config.features.prompt,""),d(4),P(" ",e.config.features.new,""),d(4),P(" ",e.config.features.save,""),d(4),P(" ",e.config.features.clear,""),d(4),P(" ",e.config.features.send,""),d(4),P(" ",e.config.features.refresh,""),d(4),P(" ",e.config.features.copyToClipboard,""),d(4),P(" ",e.config.features.copyToPrompt,""),d(4),P(" ",e.config.features.streamedResponses,""),d(4),P(" ",e.config.features.createImageFromText,""),d(4),P(" ",e.config.features.prompt,""),d(4),P(" ",e.config.features.prompt,""),d(7),P(" ",e.config.features.prompts.enabled,""),d(4),P(" ",e.config.features.prompts.imagePrompt,""),d(7),P(" ",e.config.features.autoSend.enabled,""),d(4),P(" ",e.config.features.autoSend.addToViewer,""),d(4),P(" ",e.config.features.autoSend.addUserName,""),d(4),P(" ",e.config.features.autoSend.intro,"");}}function gte(t,i){t&1&&D(0,"tr",49);}function _te(t,i){if(t&1&&D(0,"tr",50),t&2){let e=i.$implicit,n=x();ne("example-expanded-row",n.expandedElement===e);}}function bte(t,i){t&1&&D(0,"tr",51);}function vte(t,i){if(t&1&&(m(0,"tr",52)(1,"td",53),f(2),u()()),t&2){x();let e=Ke(6);d(2),P(' No data matching the filter "',e.value,'" ');}}var nN=(()=>{class t{constructor(e,n){this.api=e,this.service=n,this.displayedColumns=["name","category","date"],this.columnsToDisplayWithExpand=[...this.displayedColumns,"actions"],this.expandedElement=null,this.newTxt="Nouveau",this.editTxt="Modifier",this.homeTxt="Accueil",this.enabledTxt="Activ\xE9",this.hiddenTxt="Cach\xE9",this.duplicateTxt="Dupliquer",this.actionsTxt="Actions",this.deleteTxt="Supprimer",this.instructionsTxt="Instructions",this.messageTxt="Message",this.messageHintTxt="Indice du message",this.messageTypeTxt="Type de message",this.managerTxt="Gestionnaire de widget",this.helpTxt="Le Gestionnaire de widget permet aux utilisateurs de cr\xE9er, modifier et supprimer des widgets d'IA \xE9troite pour une utilisation dans le chatbot.",this.users=new Map(),this._snackBar=h(Vi);let r=[];this.dataSource=new zr(r);}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.getWidgets();}getWidgets(){let e=[];this.api.widgetService.getAllWidgets().subscribe(n=>{console.log("get widgets data",n),n.forEach(o=>{let s=o.included.find(l=>l.type==="user--user");s&&this.users.set(s.id,s.attributes.display_name);}),console.log("get widgets users",this.users);let r=[];n.forEach(o=>{let a=o.data;r.push(...a);}),console.log("get widgets all widgets",r),r.forEach(o=>{let a=this.loadWidget(o);e.push(a);}),this.dataSource.data=e;},n=>console.error("Error fetching articles",n));}loadWidget(e){let n=JSON.parse(e.attributes.body.value);n.storageId=e.id;let r=e.attributes.changed,o=Date.parse(r),s=new Date(o);return{storageId:n.storageId||"",id:n.card?.id||"",name:n.card.title||"",category:n.card.subtitle||"",date:s,enabled:n.card?.enabled?"true":"false",hidden:n.card?.hidden?"true":"false",config:n};}applyFilter(e){let n=e.target.value;this.dataSource.filter=n.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage();}new(){this.openCreateWidgetWindow();}remove(e){let n=this,r={title:"Supprimer le widget ?",msg:e.config.card.title,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}a?.confirm===!0?n.deleteWidget(e.config):console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}duplicate(e){let n=this,r={title:"Dupliquer le widget ?",msg:e.config.card.title,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}if(a?.confirm===!0){e.config.storageId=void 0;let s=" (copy)";e.config.card.title?.endsWith(s)||(e.config.card.title+=s),n.postNewWidget(e.config);}else console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}edit(e){this.openCreateWidgetWindow(e.config);}openCreateWidgetWindow(e){let n=this,r="Cr\xE9er un widget d'IA",o="Modifier le widget d'IA",a={title:e?o:r,msg:"",msg2:""};e&&(a.editWidgetConfig=e),this.dialogRef=this.service.openWidgetCreateDialog(a),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(s){if(console.log("create widget dialog results",s),!s){console.log("no results from dialog");return;}if(s.data?.storageId){let c=s.data;n.patchWidget(c);}else{let c=s.data;n.postNewWidget(c);}},error(s){console.log("error encountered: ",s);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}patchWidget(e){let n=this;this.api.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.api.widgetService.patchWidget(r,e).pipe(de(1)).subscribe({next(o){n.getWidgets(),n._snackBar.open("Le widget a \xE9t\xE9 modifi\xE9.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered patching widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}postNewWidget(e){let n=this;this.api.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.api.widgetService.postWidgetConfig(r,e).pipe(de(1)).subscribe({next(o){n.getWidgets(),n._snackBar.open("Nouveau widget cr\xE9\xE9.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered creating widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}deleteWidget(e){let n=this;console.log("delete widget",e),this.api.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.api.widgetService.deleteWidget(r,e).pipe(de(1)).subscribe({next(o){n.getWidgets(),n._snackBar.open("Widget supprim\xE9.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered deleting widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}static{this.ɵfac=function(n){return new(n||t)(w(Ht),w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-widget-manager"]],viewQuery:function(n,r){if(n&1&&(Y(Na,5),Y(Zn,5)),n&2){let o;F(o=N())&&(r.paginator=o.first),F(o=N())&&(r.sort=o.first);}},decls:40,vars:18,consts:[["input",""],[3,"title","icon","help","breadcrumbs"],[1,"manager-tools"],[1,"tool-filter"],["matInput","","placeholder","Enter search term",3,"keyup"],[1,"example-spacer"],["mat-raised-button","",3,"click"],[1,"mat-elevation-z8"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","date","matSortDirection","desc",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","date"],["matColumnDef","category"],["matColumnDef","enabled"],["matColumnDef","hidden"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",3,"example-expanded-row",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["id","manager-paginator","aria-label","Select page of users",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"routerLink"],["mat-buttom","",3,"click"],[1,"widget-name"],[1,"widget-modification-date"],[1,"widget-category"],["mat-header-cell",""],[1,"actions-txt"],[1,"actions-tools"],["mat-icon-button","","aria-label","expand row","matTooltip","Show Details",3,"click"],["mat-icon-button","",1,"edit-button",3,"click","matTooltip"],["mat-icon-button","",1,"duplicate-button",3,"click","matTooltip"],["mat-icon-button","",1,"delete-button",3,"click","matTooltip"],[1,"example-element-detail"],[1,"section-header"],[1,"appearance"],[1,"detail-span"],[1,"detail-label"],[1,"features-container"],[1,"features"],[1,"prompts"],[1,"detail-span-header"],[1,"autosend"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-row","",1,"example-detail-row"],[1,"mat-row"],["colspan","4",1,"mat-cell"]],template:function(n,r){if(n&1){let o=W();D(0,"cb-page-header",1),m(1,"mat-toolbar",2)(2,"mat-form-field",3)(3,"mat-label"),f(4,"Filter"),u(),m(5,"input",4,0),S("keyup",function(s){return k(o),M(r.applyFilter(s));}),u()(),D(7,"span",5),m(8,"button",6),S("click",function(){return k(o),M(r.new());}),f(9),u()(),m(10,"div",7)(11,"table",8),ye(12,9),T(13,Jee,2,0,"th",10)(14,ete,6,4,"td",11),xe(),ye(15,12),T(16,tte,2,0,"th",10)(17,nte,6,5,"td",11),xe(),ye(18,13),T(19,ite,2,0,"th",10)(20,rte,4,4,"td",11),xe(),ye(21,14),T(22,ote,2,0,"th",10)(23,ate,3,1,"td",11),xe(),ye(24,15),T(25,ste,2,1,"th",10)(26,lte,2,1,"td",11),xe(),ye(27,16),T(28,cte,2,1,"th",10)(29,dte,2,1,"td",11),xe(),ye(30,17),T(31,ute,3,1,"th",18)(32,hte,14,4,"td",11),xe(),ye(33,19),T(34,fte,131,35,"td",11),xe(),T(35,gte,1,0,"tr",20)(36,_te,1,2,"tr",21)(37,bte,1,0,"tr",22)(38,vte,3,1,"tr",23),u(),D(39,"mat-paginator",24),u();}n&2&&(y("title",r.managerTxt)("icon","widgets")("help",r.helpTxt)("breadcrumbs",Kr(13,Zee,Be(10,Qee,r.homeTxt),Wn(12,Yee))),d(9),C(r.newTxt),d(2),y("dataSource",r.dataSource),d(24),y("matHeaderRowDef",r.columnsToDisplayWithExpand),d(),y("matRowDefColumns",r.columnsToDisplayWithExpand),d(),y("matRowDefColumns",Wn(16,Kee)),d(2),y("pageSizeOptions",Wn(17,Xee)));},dependencies:[ce,Me,Mi,$t,Ft,Pt,Tt,bn,Xo,hi,Uo,Qo,qo,Ho,Yo,Wo,Go,Zo,Ko,Jg,ks,Zn,Is,md,Na,Yt,Pn,Ee,Re,Qn,yn,nt,St,gf],styles:[".manager-tools[_ngcontent-%COMP%]{margin-top:10px;height:80px}.manager-tools[_ngcontent-%COMP%]   .tool-filter[_ngcontent-%COMP%]{margin-top:15px;width:200px}.actions-tools[_ngcontent-%COMP%]{padding-left:0}.actions-txt[_ngcontent-%COMP%]{margin-left:20px}.widget-name[_ngcontent-%COMP%]{font-size:larger}.widget-name[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:5px;margin-bottom:-5px}.appearance[_ngcontent-%COMP%], .features[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.section-header[_ngcontent-%COMP%]{font-weight:700;margin:10px 0}.appearance[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]{padding:4px;border-radius:10px}.appearance[_ngcontent-%COMP%]   .detail-label[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .detail-label[_ngcontent-%COMP%]{font-weight:700;font-size:smaller}.appearance[_ngcontent-%COMP%]   .detail-span-header[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .detail-span-header[_ngcontent-%COMP%]{padding:5px;margin:5px}.appearance[_ngcontent-%COMP%]   .detail-span[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .detail-span[_ngcontent-%COMP%]{padding:5px;margin:5px;border-radius:5px}.appearance[_ngcontent-%COMP%]   .autosend[_ngcontent-%COMP%], .appearance[_ngcontent-%COMP%]   .prompts[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .autosend[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .prompts[_ngcontent-%COMP%]{padding:2px;margin:5px;border-radius:5px}table[_ngcontent-%COMP%]{width:100%}tr.example-detail-row[_ngcontent-%COMP%]{height:0}.example-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[kn("detailExpand",[Mt("collapsed,void",Ze({height:"0px",minHeight:"0"})),Mt("expanded",Ze({height:"*"})),Zt("expanded <=> collapsed",en("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});}}return t;})();var yte=t=>({name:t,icon:"home",href:"/"}),xte=()=>({name:"Chat",href:"/chat",icon:"question_answer"}),wte=(t,i)=>[t,i],Cte=()=>["expandedDetail"],Dte=()=>[10,25,100];function Ete(t,i){t&1&&(m(0,"th",25),f(1,"Avatar"),u());}function Ite(t,i){if(t&1&&(m(0,"td",26),D(1,"cb-gravatar",27),u()),t&2){let e=i.$implicit;d(),y("email",e.email);}}function kte(t,i){t&1&&(m(0,"th",25),f(1,"Name"),u());}function Mte(t,i){if(t&1&&(m(0,"td",26)(1,"span",28),f(2),u()()),t&2){let e=i.$implicit;d(2),P(" ",e.name," ");}}function Ste(t,i){t&1&&(m(0,"th",25),f(1,"Modified"),u());}function Tte(t,i){if(t&1&&(m(0,"td",26)(1,"span",29),f(2),as(3,"date"),u()()),t&2){let e=i.$implicit;d(2),C(Jh(3,1,e.date,"short"));}}function Ate(t,i){t&1&&(m(0,"th",25),f(1,"Category"),u());}function Rte(t,i){if(t&1&&(m(0,"td",26)(1,"span",30),f(2),u()()),t&2){let e=i.$implicit;d(2),C(e.category);}}function Ote(t,i){t&1&&(m(0,"th",25),f(1,"Description"),u());}function Pte(t,i){if(t&1&&(m(0,"td",26)(1,"span",31),f(2),u()()),t&2){let e=i.$implicit;d(2),C(e.description);}}function Fte(t,i){if(t&1&&(m(0,"th",25),f(1),u()),t&2){let e=x();d(),P(" ",e.enabledTxt," ");}}function Nte(t,i){if(t&1&&(m(0,"td",26),f(1),u()),t&2){let e=i.$implicit;d(),C(e.enabled);}}function Lte(t,i){if(t&1&&(m(0,"th",32)(1,"span",33),f(2),u()()),t&2){let e=x();d(2),C(e.actionsTxt);}}function Vte(t,i){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_up"),u());}function zte(t,i){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_down"),u());}function Bte(t,i){if(t&1){let e=W();m(0,"td",26)(1,"mat-toolbar",34)(2,"button",35),S("click",function(r){let o=k(e).$implicit,a=x();return a.expandedElement=a.expandedElement===o?null:o,M(r.stopPropagation());}),T(3,Vte,2,0,"mat-icon")(4,zte,2,0,"mat-icon"),u(),m(5,"button",36),S("click",function(r){let o=k(e).$implicit;return x().edit(o),M(r.stopPropagation());}),m(6,"mat-icon"),f(7,"edit"),u()(),m(8,"button",37),S("click",function(r){let o=k(e).$implicit;return x().newArticle(o),M(r.stopPropagation());}),m(9,"mat-icon"),f(10,"article"),u()(),m(11,"button",38),S("click",function(r){let o=k(e).$implicit;return x().reply(o),M(r.stopPropagation());}),m(12,"mat-icon"),f(13,"reply"),u()(),m(14,"button",39),S("click",function(r){let o=k(e).$implicit;return x().duplicate(o),M(r.stopPropagation());}),m(15,"mat-icon"),f(16,"content_copy"),u()(),m(17,"button",40),S("click",function(r){let o=k(e).$implicit;return x().remove(o),M(r.stopPropagation());}),m(18,"mat-icon"),f(19,"delete"),u()()()();}if(t&2){let e=i.$implicit,n=x();d(3),K(n.expandedElement===e?3:4),d(2),G("matTooltip",n.editTxt),d(3),G("matTooltip",n.newArticleTxt),d(3),G("matTooltip",n.replyTxt),d(3),G("matTooltip",n.duplicateTxt),d(3),G("matTooltip",n.deleteTxt);}}function jte(t,i){if(t&1&&(m(0,"td",26)(1,"div",41)(2,"div",42)(3,"div")(4,"b"),f(5),u(),f(6),u(),m(7,"div")(8,"b"),f(9),u(),f(10),u(),m(11,"div")(12,"b"),f(13),u(),f(14),u(),m(15,"div")(16,"b"),f(17),u(),f(18),u()()()()),t&2){let e=i.$implicit,n=x();oe("colspan",n.columnsToDisplayWithExpand.length),d(),y("@detailExpand",e==n.expandedElement?"expanded":"collapsed"),d(4),C(n.hobbiesTxt),d(),P(": ",e.hobbies," "),d(3),C(n.commentInstructionsTxt),d(),P(": ",e.commentInstructions," "),d(3),C(n.commentReplyInstructionsTxt),d(),P(": ",e.commentReplyInstructions," "),d(3),C(n.commentsPerDayTxt),d(),P(" : ",e.commentsPerDay," ");}}function $te(t,i){t&1&&D(0,"tr",43);}function Hte(t,i){if(t&1&&D(0,"tr",44),t&2){let e=i.$implicit,n=x();ne("example-expanded-row",n.expandedElement===e);}}function Ute(t,i){t&1&&D(0,"tr",45);}function qte(t,i){if(t&1&&(m(0,"tr",46)(1,"td",47),f(2),u()()),t&2){x();let e=Ke(6);d(2),P(' No data matching the filter "',e.value,'" ');}}var iN=(()=>{class t{constructor(e,n,r){this.api=e,this.service=n,this.env=r,this.displayedColumns=["icon","name","description","date"],this.columnsToDisplayWithExpand=[...this.displayedColumns,"actions"],this.expandedElement=null,this.newTxt="Nouveau",this.editTxt="Modifier",this.newArticleTxt="Cr\xE9er un article",this.replyTxt="R\xE9pondre \xE0 la publication",this.homeTxt="Accueil",this.enabledTxt="Activ\xE9",this.hiddenTxt="Cach\xE9",this.duplicateTxt="Dupliquer",this.actionsTxt="Actions",this.deleteTxt="Supprimer",this.hobbiesTxt="Passe-temps",this.commentInstructionsTxt="Instructions sur les commentaires",this.commentReplyInstructionsTxt="Instructions de r\xE9ponse aux commentaires",this.commentsPerDayTxt="Commentaires par jour",this.managerTxt="Gestionnaire de personnages",this.helpTxt="Le Gestionnaire de personnages permet aux utilisateurs de cr\xE9er, modifier et supprimer des personnages IA. Les personnages peuvent effectuer diverses actions telles que poster des commentaires sur des articles.",this.checked=!1,this.users=new Map(),this._snackBar=h(Vi);let o=[];this.dataSource=new zr(o);}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.getCharacters();}getCharacters(){let e=[];this.api.characters.getAllCharacters().subscribe(n=>{if(console.log("character data: ",n),console.log("character data length: ",n.length),n.length===1&&n[0].data.length===0){console.log("no character data found");return;}n.forEach(a=>{let l=a.included.find(c=>c.type==="user--user");l&&this.users.set(l.id,l.attributes.display_name);}),console.log("character users",this.users);let r=this.env.get().slug;console.log("slug is ",r);let o=this.api.characters.extractCharacters(n);o=o.filter(a=>r===a.siteId||r==="demo"&&a.siteId==="tsai"),this.dataSource.data=o,console.log("character table data is: ",e);},n=>console.error("Error fetching articles",n));}applyFilter(e){let n=e.target.value;this.dataSource.filter=n.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage();}new(){console.log("new"),this.openCreateCharacterWindow();}edit(e){this.openCreateCharacterWindow(e);}newArticle(e){let n=this;console.log(e.name+"is writing an article");let r=" ("+e.name+")",o={title:"Create an article"+r,msg:"",msg2:"",characterData:e};this.dialogRef=this.service.openNewArticleDialog(o),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}console.log("new article dialog results",a),n._snackBar.open(a.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(a){console.log("error encountered: ",a);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}reply(e){let n=this;console.log(e.name+"is repling");let r=" ("+e.name+")",o={title:"R\xE9pondre \xE0 l'article/commentaire"+r,msg:"",msg2:"",characterData:e};this.dialogRef=this.service.openReplyDialog(o),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}console.log("reply dialog results",a),n._snackBar.open(a.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(a){console.log("error encountered: ",a);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}openCreateCharacterWindow(e){let n=this,r="Cr\xE9er un personnage IA",o="Modifier le personnage IA",a={title:e?o:r,msg:"",msg2:""};e&&(a.ed��itCharacterData=e),this.dialogRef=this.service.openCharacterCreateDialog(a),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(s){if(console.log("create character dialog results",s),!s){console.log("no results from dialog");return;}let l=s.data?.storageId;if(console.log("storage id is ",l),l){let c=s.data;n.patchCharacter(c),console.log("character patched");}else{let c=s.data;n.postNewCharacter(c),console.log("character posted");}},error(s){console.log("error encountered: ",s);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}remove(e){let n=this,r={title:"Supprimer le personnage ?",msg:e.name,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}a?.confirm===!0?n.deleteCharacter(e):console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}deleteCharacter(e){let n=this;console.log("delete character",e),this.api.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.api.characters.deleteCharacter(r,e).pipe(de(1)).subscribe({next(o){n.getCharacters(),n._snackBar.open("Widget supprim\xE9.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered deleting widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}duplicate(e){let n=this,r={title:"Dupliquer le personnage ?",msg:e.name,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}if(a?.confirm===!0){e.storageId=void 0;let s=" (copy)";e.name?.endsWith(s)||(e.name+=s),n.postNewCharacter(e);}else console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){n.dialogRef=void 0,console.log("dialogref cleared");}});}patchCharacter(e){let n=this;this.api.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.api.characters.patchCharacter(r,e).pipe(de(1)).subscribe({next(o){n.getCharacters(),n._snackBar.open("Le personnage a \xE9t\xE9 modifi\xE9.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered patching character: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}postNewCharacter(e){let n=this;this.api.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.api.characters.postCharacter(r,e).pipe(de(1)).subscribe({next(o){n.getCharacters(),n._snackBar.open("Nouveau personnage cr\xE9\xE9.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered creating character: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}static{this.ɵfac=function(n){return new(n||t)(w(Ht),w(pe),w(je));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character-manager"]],viewQuery:function(n,r){if(n&1&&(Y(Na,5),Y(Zn,5)),n&2){let o;F(o=N())&&(r.paginator=o.first),F(o=N())&&(r.sort=o.first);}},decls:40,vars:18,consts:[["input",""],[3,"title","icon","help","breadcrumbs"],[1,"manager-tools"],[1,"tool-filter"],["matInput","","placeholder","Enter search term",3,"keyup"],[1,"example-spacer"],["mat-raised-button","",3,"click"],[1,"mat-elevation-z8"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","name","matSortDirection","asc",3,"dataSource"],["matColumnDef","icon"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","date"],["matColumnDef","category"],["matColumnDef","description"],["matColumnDef","enabled"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",3,"example-expanded-row",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["id","manager-paginator","aria-label","Select page of users",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"email"],[1,"character-name"],[1,"character-modification-date"],[1,"character-category"],[1,"character-description"],["mat-header-cell",""],[1,"actions-txt"],[1,"actions-tools"],["mat-icon-button","","aria-label","expand row","matTooltip","Show Details",3,"click"],["mat-icon-button","",1,"edit-button",3,"click","matTooltip"],["mat-icon-button","",1,"new-article-button",3,"click","matTooltip"],["mat-icon-button","",1,"reply-button",3,"click","matTooltip"],["mat-icon-button","",1,"duplicate-button",3,"click","matTooltip"],["mat-icon-button","",1,"delete-button",3,"click","matTooltip"],[1,"example-element-detail"],[1,"details-container"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-row","",1,"example-detail-row"],[1,"mat-row"],["colspan","4",1,"mat-cell"]],template:function(n,r){if(n&1){let o=W();D(0,"cb-page-header",1),m(1,"mat-toolbar",2)(2,"mat-form-field",3)(3,"mat-label"),f(4,"Filter"),u(),m(5,"input",4,0),S("keyup",function(s){return k(o),M(r.applyFilter(s));}),u()(),D(7,"span",5),m(8,"button",6),S("click",function(){return k(o),M(r.new());}),f(9),u()(),m(10,"div",7)(11,"table",8),ye(12,9),T(13,Ete,2,0,"th",10)(14,Ite,2,1,"td",11),xe(),ye(15,12),T(16,kte,2,0,"th",10)(17,Mte,3,1,"td",11),xe(),ye(18,13),T(19,Ste,2,0,"th",10)(20,Tte,4,4,"td",11),xe(),ye(21,14),T(22,Ate,2,0,"th",10)(23,Rte,3,1,"td",11),xe(),ye(24,15),T(25,Ote,2,0,"th",10)(26,Pte,3,1,"td",11),xe(),ye(27,16),T(28,Fte,2,1,"th",10)(29,Nte,2,1,"td",11),xe(),ye(30,17),T(31,Lte,3,1,"th",18)(32,Bte,20,6,"td",11),xe(),ye(33,19),T(34,jte,19,10,"td",11),xe(),T(35,$te,1,0,"tr",20)(36,Hte,1,2,"tr",21)(37,Ute,1,0,"tr",22)(38,qte,3,1,"tr",23),u(),D(39,"mat-paginator",24),u();}n&2&&(y("title",r.managerTxt)("icon","people")("help",r.helpTxt)("breadcrumbs",Kr(13,wte,Be(10,yte,r.homeTxt),Wn(12,xte))),d(9),C(r.newTxt),d(2),y("dataSource",r.dataSource),d(24),y("matHeaderRowDef",r.columnsToDisplayWithExpand),d(),y("matRowDefColumns",r.columnsToDisplayWithExpand),d(),y("matRowDefColumns",Wn(16,Cte)),d(2),y("pageSizeOptions",Wn(17,Dte)));},dependencies:[ce,Me,Mi,$t,Ft,Pt,Tt,bn,Xo,hi,Uo,Qo,qo,Ho,Yo,Wo,Go,Zo,Ko,Jg,ks,Zn,Is,md,Na,Yt,Ee,Re,Qn,yn,nt,St,gf,ra],styles:[".manager-tools[_ngcontent-%COMP%]{margin-top:10px;height:80px}.manager-tools[_ngcontent-%COMP%]   .tool-filter[_ngcontent-%COMP%]{margin-top:15px}.actions-tools[_ngcontent-%COMP%]{padding-left:0}.actions-txt[_ngcontent-%COMP%]{margin-left:20px}.character-name[_ngcontent-%COMP%]{font-size:larger}.details-container[_ngcontent-%COMP%]{width:90%;margin-left:15px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%]   .mat-column-name[_ngcontent-%COMP%]{min-width:130px}table[_ngcontent-%COMP%]   .mat-column-date[_ngcontent-%COMP%]{min-width:175px}tr.example-detail-row[_ngcontent-%COMP%]{height:0}.example-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[kn("detailExpand",[Mt("collapsed,void",Ze({height:"0px",minHeight:"0"})),Mt("expanded",Ze({height:"*"})),Zt("expanded <=> collapsed",en("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});}}return t;})();var Wte=()=>[0],rN=(()=>{class t{constructor(e,n,r,o,a,s){this.router=e,this.route=n,this.env=r,this.api=o,this._snackBar=a,this.compressionService=s,this.testImage="http://drupal.local/sites/default/files/cbt/create/2024-08-27.png",this.saveTxt="Enregistrer",this.saveTipTxt="Enregistrer l'image compress\xE9e dans la biblioth\xE8que multim\xE9dia.",this.url="",this.dialog=h(jt);}ngOnInit(){let e=this;this.testImage=this.env.get().drupalHost+"/sites/default/files/cbt/create/2024-08-27.png",this.route.queryParamMap.subscribe(n=>{e.url=n.get("url")||this.testImage;});}openDialog(e){return this.dialog.open(K0,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}save(){let e=this,n={title:"Save Image",msg:"",msg2:"",url:this.url};this.openDialog(n).afterClosed().pipe(de(1)).subscribe({next(o){if(!o){console.log("no results from dialog");return;}let a=o.data;console.log("compression value is",a),e.compressionService.saveToMediaLibrary(e.url,a);},error(o){console.log("error encountered: ",o);},complete(){console.log("dialogref cleared");}});}createEdits(){console.log("create edits not implemented here.");}createVariations(){console.log("create edits not implemented here.");}static{this.ɵfac=function(n){return new(n||t)(w(Je),w(Qi),w(je),w(Ht),w(Vi),w(Rd));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-detail"]],decls:9,vars:7,consts:[[1,"image-container"],[3,"createEditsEvent","createVariationsEvent","disabledActions","width","url","fullUrl"],[1,"example-spacer"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"cb-image-enhancer",1),S("createEditsEvent",function(){return r.createEdits();})("createVariationsEvent",function(){return r.createVariations();}),u()(),m(2,"mat-toolbar"),D(3,"span",2),m(4,"button",3),S("click",function(){return r.save();}),m(5,"mat-icon"),f(6,"save_alt"),u(),f(7),u(),D(8,"span",2),u()),n&2&&(d(),y("disabledActions",Wn(6,Wte))("width",512)("url",r.url)("fullUrl",r.url),d(3),G("matTooltip",r.saveTipTxt),d(3),P(" ",r.saveTxt," "));},dependencies:[Ii,Qn,nt,St,Ee,Re,ce,Me,xd],styles:[".image-container[_ngcontent-%COMP%]{margin:60px 0;display:flex;align-items:center;justify-content:center}.image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50%}"]});}}return t;})();var oN=(()=>{class t extends it{constructor(e){super(e),this.service=e,this.config.endpoint=te.character,this.config.messageHint="Entrez votre message ici.",this.config.message="",this.config.features.prompts.enabled=!0,this.config.features.new=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0,this.config.features.share=!0;}static{this.ɵfac=function(n){return new(n||t)(w(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character"]],features:[q],decls:1,vars:0,template:function(n,r){n&1&&D(0,"cb-chat-messenger");},dependencies:[H,gt],encapsulation:2});}}return t;})();var aN=[{path:"",component:pF,data:{key:te.home}},{path:"login",component:Ng,data:{}},{path:"about",component:F3,data:{}},{path:"support",component:U3,data:{}},{path:"models",component:A3,data:{key:te.openaimodels}},{path:"characters",component:iN,data:{key:te.characters}},{path:"image",component:P3,data:{},children:[{path:"generate",component:M3,data:{key:te.imageGenerate}},{path:"edit",component:S3,data:{key:te.imageEdit}},{path:"variations",component:T3,data:{key:te.imageVariations}},{path:"prompts",component:R3,data:{key:te.imagePrompts}},{path:"detail",component:rN,data:{}}]},{path:"chat",component:O3,data:{},children:[{path:"widget-manager",component:nN,data:{}},{path:"ask-me-anything",component:w3,data:{key:te.chat}},{path:"ask-me-anything-alt",component:D3,data:{key:te.chatAlt}},{path:"to-french",component:q3,data:{key:te.toFrench}},{path:"to-spanish",component:W3,data:{key:te.toSpanish}},{path:"ancient-philosophy",component:C3,data:{key:te.ancientPhilosophy}},{path:"jokes",component:I3,data:{key:te.jokes}},{path:"topten",component:k3,data:{key:te.topTen}},{path:"chat-stream",component:G3,data:{key:te.chatStream}},{path:"chemical-elements",component:Q3,data:{key:te.chemicalElements}},{path:"socrates",component:Y3,data:{key:te.socrates}},{path:"particle-physics",component:Z3,data:{key:te.particlePhysics}},{path:"blackjack",component:K3,data:{key:te.blackjack}},{path:"python-tutor",component:X3,data:{key:te.pythonTutor}},{path:"ml-tutor",component:J3,data:{key:te.mlTutor}},{path:"character",component:oN,data:{key:te.character}},{path:"widget/:id",component:eN,data:{}}]},{path:"**",component:E3}];function sN(t){return new X(3e3,!1);}function Gte(){return new X(3100,!1);}function Qte(){return new X(3101,!1);}function Yte(t){return new X(3001,!1);}function Zte(t){return new X(3003,!1);}function Kte(t){return new X(3004,!1);}function Xte(t,i){return new X(3005,!1);}function Jte(){return new X(3006,!1);}function ene(){return new X(3007,!1);}function tne(t,i){return new X(3008,!1);}function nne(t){return new X(3002,!1);}function ine(t,i,e,n,r){return new X(3010,!1);}function rne(){return new X(3011,!1);}function one(){return new X(3012,!1);}function ane(){return new X(3200,!1);}function sne(){return new X(3202,!1);}function lne(){return new X(3013,!1);}function cne(t){return new X(3014,!1);}function dne(t){return new X(3015,!1);}function une(t){return new X(3016,!1);}function mne(t,i){return new X(3404,!1);}function pne(t){return new X(3502,!1);}function hne(t){return new X(3503,!1);}function fne(){return new X(3300,!1);}function gne(t){return new X(3504,!1);}function _ne(t){return new X(3301,!1);}function bne(t,i){return new X(3302,!1);}function vne(t){return new X(3303,!1);}function yne(t,i){return new X(3400,!1);}function xne(t){return new X(3401,!1);}function wne(t){return new X(3402,!1);}function Cne(t,i){return new X(3505,!1);}function Fs(t){switch(t.length){case 0:return new vs();case 1:return t[0];default:return new lm(t);}}function xN(t,i,e=new Map(),n=new Map()){let r=[],o=[],a=-1,s=null;if(i.forEach(l=>{let c=l.get("offset"),p=c==a,g=p&&s||new Map();l.forEach((_,b)=>{let v=b,I=_;if(b!=="offset")switch(v=t.normalizePropertyName(v,r),I){case gg:I=e.get(b);break;case Lo:I=n.get(b);break;default:I=t.normalizeStyleValue(b,v,I,r);break;}g.set(v,I);}),p||o.push(g),s=g,a=c;}),r.length)throw pne(r);return o;}function gD(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&Y1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Y1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Y1(e,"destroy",t)));break;}}function Y1(t,i,e){let n=e.totalTime,r=!!e.disabled,o=_D(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o;}function _D(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a};}function br(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n;}function lN(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n];}var Dne=typeof document>"u"?null:document.documentElement;function bD(t){let i=t.parentNode||t.host||null;return i===Dne?null:i;}function Ene(t){return t.substring(1,6)=="ebkit";}var Fl=null,cN=!1;function Ine(t){Fl||(Fl=kne()||{},cN=Fl.style?"WebkitAppearance"in Fl.style:!1);let i=!0;return Fl.style&&!Ene(t)&&(i=t in Fl.style,!i&&cN&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Fl.style)),i;}function kne(){return typeof document<"u"?document.body:null;}function wN(t,i){for(;i;){if(i===t)return!0;i=bD(i);}return!1;}function CN(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[];}var vD=(()=>{class t{validateStyleProperty(e){return Ine(e);}containsElement(e,n){return wN(e,n);}getParentElement(e){return bD(e);}query(e,n,r){return CN(e,n,r);}computeStyle(e,n,r){return r||"";}animate(e,n,r,o,a,s=[],l){return new vs(r,o);}static ɵfac=function(n){return new(n||t)();};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})(),Vl=class{static NOOP=new vD();},zl=class{};var Mne=1e3,DN="{{",Sne="}}",EN="ng-enter",tD="ng-leave",X0="ng-trigger",i_=".ng-trigger",dN="ng-animating",nD=".ng-animating";function Ha(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:iD(parseFloat(i[1]),i[2]);}function iD(t,i){switch(i){case"s":return t*Mne;default:return t;}}function r_(t,i,e){return t.hasOwnProperty("duration")?t:Tne(t,i,e);}function Tne(t,i,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,a="";if(typeof t=="string"){let s=t.match(n);if(s===null)return i.push(sN(t)),{duration:0,delay:0,easing:""};r=iD(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=iD(parseFloat(l),s[4]));let c=s[5];c&&(a=c);}else r=t;if(!e){let s=!1,l=i.length;r<0&&(i.push(Gte()),s=!0),o<0&&(i.push(Qte()),s=!0),s&&i.splice(l,0,sN(t));}return{duration:r,delay:o,easing:a};}function Ane(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[];}function la(t,i,e){i.forEach((n,r)=>{let o=yD(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n;});}function Ll(t,i){i.forEach((e,n)=>{let r=yD(n);t.style[r]="";});}function Gm(t){return Array.isArray(t)?t.length==1?t[0]:L2(t):t;}function Rne(t,i,e){let n=i.params||{},r=IN(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(Yte(o));});}var rD=new RegExp(`${DN}\\s*(.+?)\\s*${Sne}`,"g");function IN(t){let i=[];if(typeof t=="string"){let e;for(;e=rD.exec(t);)i.push(e[1]);rD.lastIndex=0;}return i;}function Ym(t,i,e){let n=`${t}`,r=n.replace(rD,(o,a)=>{let s=i[a];return s==null&&(e.push(Zte(a)),s=""),s.toString();});return r==n?t:r;}var One=/-+([a-z0-9])/g;function yD(t){return t.replace(One,(...i)=>i[1].toUpperCase());}function Pne(t,i){return t===0||i===0;}function Fne(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o);}),r.length)for(let o=1;o<i.length;o++){let a=i[o];r.forEach(s=>a.set(s,xD(t,s)));}}return i;}function _r(t,i,e){switch(i.type){case Ue.Trigger:return t.visitTrigger(i,e);case Ue.State:return t.visitState(i,e);case Ue.Transition:return t.visitTransition(i,e);case Ue.Sequence:return t.visitSequence(i,e);case Ue.Group:return t.visitGroup(i,e);case Ue.Animate:return t.visitAnimate(i,e);case Ue.Keyframes:return t.visitKeyframes(i,e);case Ue.Style:return t.visitStyle(i,e);case Ue.Reference:return t.visitReference(i,e);case Ue.AnimateChild:return t.visitAnimateChild(i,e);case Ue.AnimateRef:return t.visitAnimateRef(i,e);case Ue.Query:return t.visitQuery(i,e);case Ue.Stagger:return t.visitStagger(i,e);default:throw Kte(i.type);}}function xD(t,i){return window.getComputedStyle(t)[i];}var Nne=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"]),o_=class extends zl{normalizePropertyName(i,e){return yD(i);}normalizeStyleValue(i,e,n,r){let o="",a=n.toString().trim();if(Nne.has(e)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&r.push(Xte(i,n));}return a+o;}};var a_="*";function Lne(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Vne(n,e,i)):e.push(t),e;}function Vne(t,i,e){if(t[0]==":"){let l=zne(t,e);if(typeof l=="function"){i.push(l);return;}t=l;}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(dne(t)),i;let r=n[1],o=n[2],a=n[3];i.push(uN(r,a));let s=r==a_&&a==a_;o[0]=="<"&&!s&&i.push(uN(a,r));}function zne(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return i.push(une(t)),"* => *";}}var J0=new Set(["true","1"]),e_=new Set(["false","0"]);function uN(t,i){let e=J0.has(t)||e_.has(t),n=J0.has(i)||e_.has(i);return(r,o)=>{let a=t==a_||t==r,s=i==a_||i==o;return!a&&e&&typeof r=="boolean"&&(a=r?J0.has(t):e_.has(t)),!s&&n&&typeof o=="boolean"&&(s=o?J0.has(i):e_.has(i)),a&&s;};}var kN=":self",Bne=new RegExp(`s*${kN}s*,?`,"g");function MN(t,i,e,n){return new oD(t).build(i,e,n);}var mN="",oD=class{_driver;constructor(i){this._driver=i;}build(i,e,n){let r=new aD(e);return this._resetContextStyleTimingState(r),_r(this,Gm(i),r);}_resetContextStyleTimingState(i){i.currentQuerySelector=mN,i.collectedStyles=new Map(),i.collectedStyles.set(mN,new Map()),i.currentTime=0;}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0,o=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(Jte()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Ue.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,o.push(this.visitState(l,e));}),l.name=c;}else if(s.type==Ue.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,r+=l.depCount,a.push(l);}else e.errors.push(ene());}),{type:Ue.Trigger,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null};}visitState(i,e){let n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){let o=new Set(),a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{IN(l).forEach(c=>{a.hasOwnProperty(c)||o.add(c);});});}),o.size&&e.errors.push(tne(i.name,[...o.values()]));}return{type:Ue.State,name:i.name,style:n,options:r?{params:r}:null};}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=_r(this,Gm(i.animation),e),r=Lne(i.expr,e.errors);return{type:Ue.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Nl(i.options)};}visitSequence(i,e){return{type:Ue.Sequence,steps:i.steps.map(n=>_r(this,n,e)),options:Nl(i.options)};}visitGroup(i,e){let n=e.currentTime,r=0,o=i.steps.map(a=>{e.currentTime=n;let s=_r(this,a,e);return r=Math.max(r,e.currentTime),s;});return e.currentTime=r,{type:Ue.Group,steps:o,options:Nl(i.options)};}visitAnimate(i,e){let n=Une(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:Ze({});if(o.type==Ue.Keyframes)r=this.visitKeyframes(o,e);else{let a=i.styles,s=!1;if(!a){s=!0;let c={};n.easing&&(c.easing=n.easing),a=Ze(c);}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,r=l;}return e.currentAnimateTimings=null,{type:Ue.Animate,timings:n,style:r,options:null};}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n;}_makeStyleAst(i,e){let n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of r)typeof s=="string"?s===Lo?n.push(s):e.errors.push(nne(s)):n.push(new Map(Object.entries(s)));let o=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(DN)>=0){o=!0;break;}}}),{type:Ue.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null};}_validateStyleAst(i,e){let n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),p=c.get(l),g=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push(ine(l,p.startTime,p.endTime,o,r)),g=!1),o=p.startTime),g&&c.set(l,{startTime:o,endTime:r}),e.options&&Rne(s,e.options,e.errors);});});}visitKeyframes(i,e){let n={type:Ue.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(rne()),n;let r=1,o=0,a=[],s=!1,l=!1,c=0,p=i.steps.map($=>{let Z=this._makeStyleAst($,e),B=Z.offset!=null?Z.offset:Hne(Z.styles),ae=0;return B!=null&&(o++,ae=Z.offset=B),l=l||ae<0||ae>1,s=s||ae<c,c=ae,a.push(ae),Z;});l&&e.errors.push(one()),s&&e.errors.push(ane());let g=i.steps.length,_=0;o>0&&o<g?e.errors.push(sne()):o==0&&(_=r/(g-1));let b=g-1,v=e.currentTime,I=e.currentAnimateTimings,A=I.duration;return p.forEach(($,Z)=>{let B=_>0?Z==b?1:_*Z:a[Z],ae=B*A;e.currentTime=v+I.delay+ae,I.duration=ae,this._validateStyleAst($,e),$.offset=B,n.styles.push($);}),n;}visitReference(i,e){return{type:Ue.Reference,animation:_r(this,Gm(i.animation),e),options:Nl(i.options)};}visitAnimateChild(i,e){return e.depCount++,{type:Ue.AnimateChild,options:Nl(i.options)};}visitAnimateRef(i,e){return{type:Ue.AnimateRef,animation:this.visitReference(i.animation,e),options:Nl(i.options)};}visitQuery(i,e){let n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;let[o,a]=jne(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,br(e.collectedStyles,e.currentQuerySelector,new Map());let s=_r(this,Gm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Ue.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Nl(i.options)};}visitStagger(i,e){e.currentQuery||e.errors.push(lne());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:r_(i.timings,e.errors,!0);return{type:Ue.Stagger,animation:_r(this,Gm(i.animation),e),timings:n,options:null};}};function jne(t){let i=!!t.split(/\s*,\s*/).find(e=>e==kN);return i&&(t=t.replace(Bne,"")),t=t.replace(/@\*/g,i_).replace(/@\w+/g,e=>i_+"-"+e.slice(1)).replace(/:animating/g,nD),[t,i];}function $ne(t){return t?j({},t):null;}var aD=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(i){this.errors=i;}};function Hne(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset");}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset");}return i;}function Une(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=r_(t,i).duration;return Z1(o,0,"");}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Z1(0,0,"");return o.dynamic=!0,o.strValue=e,o;}let r=r_(e,i);return Z1(r.duration,r.delay,r.easing);}function Nl(t){return t?(t=j({},t),t.params&&(t.params=$ne(t.params))):t={},t;}function Z1(t,i,e){return{duration:t,delay:i,easing:e};}function wD(t,i,e,n,r,o,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s};}var Zm=class{_map=new Map();get(i){return this._map.get(i)||[];}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e);}has(i){return this._map.has(i);}clear(){this._map.clear();}},qne=1,Wne=":enter",Gne=new RegExp(Wne,"g"),Qne=":leave",Yne=new RegExp(Qne,"g");function SN(t,i,e,n,r,o=new Map(),a=new Map(),s,l,c=[]){return new sD().buildKeyframes(t,i,e,n,r,o,a,s,l,c);}var sD=class{buildKeyframes(i,e,n,r,o,a,s,l,c,p=[]){c=c||new Zm();let g=new lD(i,e,c,r,o,p,[]);g.options=l;let _=l.delay?Ha(l.delay):0;g.currentTimeline.delayNextStep(_),g.currentTimeline.setStyles([a],null,g.errors,l),_r(this,n,g);let b=g.timelines.filter(v=>v.containsAnimation());if(b.length&&s.size){let v;for(let I=b.length-1;I>=0;I--){let A=b[I];if(A.element===e){v=A;break;}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([s],null,g.errors,l);}return b.length?b.map(v=>v.buildKeyframes()):[wD(e,[],[],[],0,_,"",!1)];}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a);}e.previousNode=i;}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i;}_applyAnimationRefDelays(i,e,n){for(let r of i){let o=r?.delay;if(o){let a=typeof o=="number"?o:Ha(Ym(o,r?.params??{},e.errors));n.delayNextStep(a);}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime,a=n.duration!=null?Ha(n.duration):null,s=n.delay!=null?Ha(n.delay):null;return a!==0&&i.forEach(l=>{let c=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,c.duration+c.delay);}),o;}visitReference(i,e){e.updateOptions(i.options,!0),_r(this,i.animation,e),e.previousNode=i;}visitSequence(i,e){let n=e.subContextCount,r=e,o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Ue.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=s_);let a=Ha(o.delay);r.delayNextStep(a);}i.steps.length&&(i.steps.forEach(a=>_r(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i;}visitGroup(i,e){let n=[],r=e.currentTimeline.currentTime,o=i.options&&i.options.delay?Ha(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);o&&s.delayNextStep(o),_r(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline);}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i;}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,r=e.params?Ym(n,e.params,e.errors):n;return r_(r,e.errors);}else return{duration:i.duration,delay:i.delay,easing:i.easing};}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let o=i.style;o.type==Ue.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i;}visitStyle(i,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i;}visitKeyframes(i,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe();}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=i;}visitQuery(i,e){let n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?Ha(r.delay):0;o&&(e.previousNode.type===Ue.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=s_);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,p)=>{e.currentQueryIndex=p;let g=e.createSubContext(i.options,c);o&&g.delayNextStep(o),c===e.element&&(l=g.currentTimeline),_r(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let _=g.currentTimeline.currentTime;a=Math.max(a,_);}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i;}visitStagger(i,e){let n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break;}let p=e.currentTimeline;l&&p.delayNextStep(l);let g=p.currentTime;_r(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-g+(r.startTime-n.currentTimeline.startTime);}},s_={},lD=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=s_;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,r,o,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.currentTimeline=l||new l_(this._driver,e,0),s.push(this.currentTimeline);}get params(){return this.options.params;}updateOptions(i,e){if(!i)return;let n=i,r=this.options;n.duration!=null&&(r.duration=Ha(n.duration)),n.delay!=null&&(r.delay=Ha(n.delay));let o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Ym(o[s],a,this.errors));});}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r];});}}return i;}createSubContext(i=null,e,n){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o;}transformIntoNewTimeline(i){return this.previousNode=s_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.��timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(i,e,n){let r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new cD(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r;}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i);}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i);}invokeQuery(i,e,n,r,o,a){let s=[];if(r&&s.push(this.element),i.length>0){i=i.replace(Gne,"."+this._enterClassName),i=i.replace(Yne,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,i,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),s.push(...c);}return!o&&s.length==0&&a.push(cne(e)),s;}},l_=class t{_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(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0;}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0;}get currentTime(){return this.startTime+this.duration;}delayNextStep(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i;}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=qne,this._loadKeyframe();}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe();}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Lo),this._currentKeyframe.set(e,Lo);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=Zne(i,this._globalTimelineStyles);for(let[s,l]of a){let c=Ym(l,o,n);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Lo),this._updateStyle(s,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i);}));}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i;}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value);});}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set(),e=new Set(),n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((p,g)=>{p===gg?i.add(g):p===Lo&&e.add(g);}),n||c.set("offset",l/this.duration),r.push(c);});let o=[...i.values()],a=[...e.values()];if(n){let s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l];}return wD(this.element,r,o,a,this.duration,this.startTime,this.easing,!1);}},cD=class extends l_{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,r,o,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),o.push(l);let c=new Map(i[0]);c.set("offset",pN(s)),o.push(c);let p=i.length-1;for(let g=1;g<=p;g++){let _=new Map(i[g]),b=_.get("offset"),v=e+b*n;_.set("offset",pN(v/a)),o.push(_);}n=a,e=0,r="",i=o;}return wD(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0);}};function pN(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e;}function Zne(t,i){let e=new Map(),n;return t.forEach(r=>{if(r==="*"){n??=i.keys();for(let o of n)e.set(o,Lo);}else for(let[o,a]of r)e.set(o,a);}),e;}function hN(t,i,e,n,r,o,a,s,l,c,p,g,_){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:p,totalTime:g,errors:_};}var K1={},c_=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n;}match(i,e,n,r){return Kne(this.ast.matchers,i,e,n,r);}buildStyles(i,e,n){let r=this._stateStyles.get("*");return i!==void 0&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map();}build(i,e,n,r,o,a,s,l,c,p){let g=[],_=this.ast.options&&this.ast.options.params||K1,b=s&&s.params||K1,v=this.buildStyles(n,b,g),I=l&&l.params||K1,A=this.buildStyles(r,I,g),$=new Set(),Z=new Map(),B=new Map(),ae=r==="void",_e={params:TN(I,_),delay:this.ast.options?.delay},Ce=p?[]:SN(i,e,this.ast.animation,o,a,v,A,_e,c,g),et=0;return Ce.forEach(xt=>{et=Math.max(xt.duration+xt.delay,et);}),g.length?hN(e,this._triggerName,n,r,ae,v,A,[],[],Z,B,et,g):(Ce.forEach(xt=>{let rn=xt.element,xn=br(Z,rn,new Set());xt.preStyleProps.forEach(_i=>xn.add(_i));let $r=br(B,rn,new Set());xt.postStyleProps.forEach(_i=>$r.add(_i)),rn!==e&&$.add(rn);}),hN(e,this._triggerName,n,r,ae,v,A,Ce,[...$.values()],Z,B,et));}};function Kne(t,i,e,n,r){return t.some(o=>o(i,e,n,r));}function TN(t,i){let e=j({},i);return Object.entries(t).forEach(([n,r])=>{r!=null&&(e[n]=r);}),e;}var dD=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n;}buildStyles(i,e){let n=new Map(),r=TN(i,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=Ym(a,r,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a);});}),n;}};function Xne(t,i,e){return new uD(t,i,e);}var uD=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map();constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new dD(r.style,o,n));}),fN(this.states,"true","1"),fN(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new c_(i,r,this.states));}),this.fallbackTransition=Jne(i,this.states,this._normalizer);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null;}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n);}};function Jne(t,i,e){let n=[(a,s)=>!0],r={type:Ue.Sequence,steps:[],options:null},o={type:Ue.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new c_(t,o,i);}function fN(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e));}var eie=new Zm(),mD=class{bodyNode;_driver;_normalizer;_animations=new Map();_playersById=new Map();players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n;}register(i,e){let n=[],r=[],o=MN(this._driver,e,n,r);if(n.length)throw hne(n);this._animations.set(i,o);}_buildPlayer(i,e,n){let r=i.element,o=xN(this._normalizer,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0);}create(i,e,n={}){let r=[],o=this._animations.get(i),a,s=new Map();if(o?(a=SN(this._driver,e,o,EN,tD,new Map(),new Map(),n,eie,r),a.forEach(p=>{let g=br(s,p.element,new Map());p.postStyleProps.forEach(_=>g.set(_,null));})):(r.push(fne()),a=[]),r.length)throw gne(r);s.forEach((p,g)=>{p.forEach((_,b)=>{p.set(b,this._driver.computeStyle(g,b,Lo));});});let l=a.map(p=>{let g=s.get(p.element);return this._buildPlayer(p,new Map(),g);}),c=Fs(l);return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c;}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1);}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw _ne(i);return e;}listen(i,e,n,r){let o=_D(e,"","","");return gD(this._getPlayer(i),n,o,r),()=>{};}command(i,e,n,r){if(n=="register"){this.register(i,r[0]);return;}if(n=="create"){let a=r[0]||{};this.create(i,e,a);return;}let o=this._getPlayer(i);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i);break;}}},gN="ng-animate-queued",tie=".ng-animate-queued",X1="ng-animate-disabled",nie=".ng-animate-disabled",iie="ng-star-inserted",rie=".ng-star-inserted",oie=[],AN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aie={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},po="__ng_removed",Km=class{namespaceId;value;options;get params(){return this.options.params;}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),r=n?i.value:i;if(this.value=lie(r),n){let o=i,{value:a}=o,s=g_(o,["value"]);this.options=s;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r]);});}}},Qm="void",J1=new Km(Qm),pD=class{id;hostElement;_engine;players=[];_triggers=new Map();_queue=[];_elementListeners=new Map();_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,jr(e,this._hostClassName);}listen(i,e,n,r){if(!this._triggers.has(e))throw bne(n,e);if(n==null||n.length==0)throw vne(e);if(!cie(n))throw yne(n,e);let o=br(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);let s=br(this._engine.statesByElement,i,new Map());return s.has(e)||(jr(i,X0),jr(i,X0+"-"+e),s.set(e,J1)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e);});};}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0);}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw xne(i);return e;}trigger(i,e,n,r=!0){let o=this._getTrigger(e),a=new Xm(this.id,e,i),s=this._engine.statesByElement.get(i);s||(jr(i,X0),jr(i,X0+"-"+e),this._engine.statesByElement.set(i,s=new Map()));let l=s.get(e),c=new Km(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=J1),!(c.value===Qm)&&l.value===c.value){if(!mie(l.params,c.params)){let I=[],A=o.matchStyles(l.value,l.params,I),$=o.matchStyles(c.value,c.params,I);I.length?this._engine.reportError(I):this._engine.afterFlush(()=>{Ll(i,A),la(i,$);});}return;}let _=br(this._engine.playersByElement,i,[]);_.forEach(I=>{I.namespaceId==this.id&&I.triggerName==e&&I.queued&&I.destroy();});let b=o.matchTransition(l.value,c.value,i,c.params),v=!1;if(!b){if(!r)return;b=o.fallbackTransition,v=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:b,fromState:l,toState:c,player:a,isFallbackTransition:v}),v||(jr(i,gN),a.onStart(()=>{Od(i,gN);})),a.onDone(()=>{let I=this.players.indexOf(a);I>=0&&this.players.splice(I,1);let A=this._engine.playersByElement.get(i);if(A){let $=A.indexOf(a);$>=0&&A.splice($,1);}}),this.players.push(a),_.push(a),a;}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i));});}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i));}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,i_,!0);n.forEach(r=>{if(r[po])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)));}triggerLeaveAnimation(i,e,n,r){let o=this._engine.statesByElement.get(i),a=new Map();if(o){let s=[];if(o.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let p=this.trigger(i,c,Qm,r);p&&s.push(p);}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&Fs(s).onDone(()=>this._engine.processLeaveNode(i)),!0;}return!1;}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let r=new Set();e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||J1,p=new Km(Qm),g=new Xm(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:c,toState:p,player:g,isFallbackTransition:!0});});}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break;}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{let o=i[po];(!o||o===AN)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e));}}insertNode(i,e){jr(i,this._hostClassName);}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=_D(o,n.triggerName,n.fromState.value,n.toState.value);l._data=i,gD(n.player,s.phase,l,s.callback);}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy();}):e.push(n);}),this._queue=[],e.sort((n,r)=>{let o=n.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1;});}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i);}},hD=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=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e);}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n;}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n);});}),i;}createNamespace(i,e){let n=new pD(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n;}_balanceNamespaceList(i,e){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=r.get(s);if(l){let c=n.indexOf(l);n.splice(c+1,0,i),a=!0;break;}s=this.driver.getParentElement(s);}a||n.unshift(i);}else n.push(i);return r.set(e,i),i;}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n;}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++;}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[i];}));}_fetchNamespace(i){return this._namespaceLookup[i];}fetchNamespacesByElement(i){let e=new Set(),n=this.statesByElement.get(i);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o);}}return e;}trigger(i,e,n,r){if(t_(e)){let o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0;}return!1;}insertNode(i,e,n,r){if(!t_(e))return;let o=e[po];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1);}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n);}r&&this.collectEnterElement(e);}collectEnterElement(i){this.collectedEnterElements.push(i);}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),jr(i,X1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Od(i,X1));}removeNode(i,e,n){if(t_(e)){let r=i?this._fetchNamespace(i):null;r?r.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,n);}else this._onRemovalComplete(e,n);}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[po]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o};}listen(i,e,n,r,o){return t_(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{};}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o);}destroyInnerAnimations(i){let e=this.driver.query(i,i_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,nD,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy();});}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Fs(this.players).onDone(()=>i());i();});}processLeaveNode(i){let e=i[po];if(e&&e.setForRemoval){if(i[po]=AN,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i);}this._onRemovalComplete(i,e.setForRemoval);}i.classList?.contains(X1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,nie,!0).forEach(n=>{this.markElementAsDisabled(n,!1);});}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];jr(r,iie);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,i);}finally{for(let r=0;r<n.length;r++)n[r]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?Fs(e).onDone(()=>{n.forEach(r=>r());}):n.forEach(r=>r());}}reportError(i){throw wne(i);}_flushAnimations(i,e){let n=new Zm(),r=[],o=new Map(),a=[],s=new Map(),l=new Map(),c=new Map(),p=new Set();this.disabledNodes.forEach(he=>{p.add(he);let we=this.driver.query(he,tie,!0);for(let Se=0;Se<we.length;Se++)p.add(we[Se]);});let g=this.bodyNode,_=Array.from(this.statesByElement.keys()),b=vN(_,this.collectedEnterElements),v=new Map(),I=0;b.forEach((he,we)=>{let Se=EN+I++;v.set(we,Se),he.forEach(ut=>jr(ut,Se));});let A=[],$=new Set(),Z=new Set();for(let he=0;he<this.collectedLeaveElements.length;he++){let we=this.collectedLeaveElements[he],Se=we[po];Se&&Se.setForRemoval&&(A.push(we),$.add(we),Se.hasAnimation?this.driver.query(we,rie,!0).forEach(ut=>$.add(ut)):Z.add(we));}let B=new Map(),ae=vN(_,Array.from($));ae.forEach((he,we)=>{let Se=tD+I++;B.set(we,Se),he.forEach(ut=>jr(ut,Se));}),i.push(()=>{b.forEach((he,we)=>{let Se=v.get(we);he.forEach(ut=>Od(ut,Se));}),ae.forEach((he,we)=>{let Se=B.get(we);he.forEach(ut=>Od(ut,Se));}),A.forEach(he=>{this.processLeaveNode(he);});});let _e=[],Ce=[];for(let he=this._namespaceList.length-1;he>=0;he--)this._namespaceList[he].drainQueuedTransitions(e).forEach(Se=>{let ut=Se.player,fn=Se.element;if(_e.push(ut),this.collectedEnterElements.length){let bi=fn[po];if(bi&&bi.setForMove){if(bi.previousTriggersValues&&bi.previousTriggersValues.has(Se.triggerName)){let Ns=bi.previousTriggersValues.get(Se.triggerName),vr=this.statesByElement.get(Se.element);if(vr&&vr.has(Se.triggerName)){let Jm=vr.get(Se.triggerName);Jm.value=Ns,vr.set(Se.triggerName,Jm);}}ut.destroy();return;}}let ho=!g||!this.driver.containsElement(g,fn),Xi=B.get(fn),Ua=v.get(fn),mn=this._buildInstruction(Se,n,Ua,Xi,ho);if(mn.errors&&mn.errors.length){Ce.push(mn);return;}if(ho){ut.onStart(()=>Ll(fn,mn.fromStyles)),ut.onDestroy(()=>la(fn,mn.toStyles)),r.push(ut);return;}if(Se.isFallbackTransition){ut.onStart(()=>Ll(fn,mn.fromStyles)),ut.onDestroy(()=>la(fn,mn.toStyles)),r.push(ut);return;}let CD=[];mn.timelines.forEach(bi=>{bi.stretchStartingKeyframe=!0,this.disabledNodes.has(bi.element)||CD.push(bi);}),mn.timelines=CD,n.append(fn,mn.timelines);let VN={instruction:mn,player:ut,element:fn};a.push(VN),mn.queriedElements.forEach(bi=>br(s,bi,[]).push(ut)),mn.preStyleProps.forEach((bi,Ns)=>{if(bi.size){let vr=l.get(Ns);vr||l.set(Ns,vr=new Set()),bi.forEach((Jm,h_)=>vr.add(h_));}}),mn.postStyleProps.forEach((bi,Ns)=>{let vr=c.get(Ns);vr||c.set(Ns,vr=new Set()),bi.forEach((Jm,h_)=>vr.add(h_));});});if(Ce.length){let he=[];Ce.forEach(we=>{he.push(Cne(we.triggerName,we.errors));}),_e.forEach(we=>we.destroy()),this.reportError(he);}let et=new Map(),xt=new Map();a.forEach(he=>{let we=he.element;n.has(we)&&(xt.set(we,we),this._beforeAnimationBuild(he.player.namespaceId,he.instruction,et));}),r.forEach(he=>{let we=he.element;this._getPreviousPlayers(we,!1,he.namespaceId,he.triggerName,null).forEach(ut=>{br(et,we,[]).push(ut),ut.destroy();});});let rn=A.filter(he=>yN(he,l,c)),xn=new Map();bN(xn,this.driver,Z,c,Lo).forEach(he=>{yN(he,l,c)&&rn.push(he);});let _i=new Map();b.forEach((he,we)=>{bN(_i,this.driver,new Set(he),l,gg);}),rn.forEach(he=>{let we=xn.get(he),Se=_i.get(he);xn.set(he,new Map([...(we?.entries()??[]),...(Se?.entries()??[])]));});let ti=[],zi=[],Nn={};a.forEach(he=>{let{element:we,player:Se,instruction:ut}=he;if(n.has(we)){if(p.has(we)){Se.onDestroy(()=>la(we,ut.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ut.totalTime),r.push(Se);return;}let fn=Nn;if(xt.size>1){let Xi=we,Ua=[];for(;Xi=Xi.parentNode;){let mn=xt.get(Xi);if(mn){fn=mn;break;}Ua.push(Xi);}Ua.forEach(mn=>xt.set(mn,fn));}let ho=this._buildAnimation(Se.namespaceId,ut,et,o,_i,xn);if(Se.setRealPlayer(ho),fn===Nn)ti.push(Se);else{let Xi=this.playersByElement.get(fn);Xi&&Xi.length&&(Se.parentPlayer=Fs(Xi)),r.push(Se);}}else Ll(we,ut.fromStyles),Se.onDestroy(()=>la(we,ut.toStyles)),zi.push(Se),p.has(we)&&r.push(Se);}),zi.forEach(he=>{let we=o.get(he.element);if(we&&we.length){let Se=Fs(we);he.setRealPlayer(Se);}}),r.forEach(he=>{he.parentPlayer?he.syncPlayerEvents(he.parentPlayer):he.destroy();});for(let he=0;he<A.length;he++){let we=A[he],Se=we[po];if(Od(we,tD),Se&&Se.hasAnimation)continue;let ut=[];if(s.size){let ho=s.get(we);ho&&ho.length&&ut.push(...ho);let Xi=this.driver.query(we,nD,!0);for(let Ua=0;Ua<Xi.length;Ua++){let mn=s.get(Xi[Ua]);mn&&mn.length&&ut.push(...mn);}}let fn=ut.filter(ho=>!ho.destroyed);fn.length?die(this,we,fn):this.processLeaveNode(we);}return A.length=0,ti.forEach(he=>{this.players.push(he),he.onDone(()=>{he.destroy();let we=this.players.indexOf(he);this.players.splice(we,1);}),he.play();}),ti;}afterFlush(i){this._flushFns.push(i);}afterFlushAnimationsDone(i){this._whenQuietFns.push(i);}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s);}else{let s=this.playersByElement.get(i);if(s){let l=!o||o==Qm;s.forEach(c=>{c.queued||!l&&c.triggerName!=r||a.push(c);});}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a;}_beforeAnimationBuild(i,e,n){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,p=c!==o,g=br(n,c,[]);this._getPreviousPlayers(c,p,a,s,e.toState).forEach(b=>{let v=b.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),b.destroy(),g.push(b);});}Ll(o,e.fromStyles);}_buildAnimation(i,e,n,r,o,a){let s=e.triggerName,l=e.element,c=[],p=new Set(),g=new Set(),_=e.timelines.map(v=>{let I=v.element;p.add(I);let A=I[po];if(A&&A.removedBeforeQueried)return new vs(v.duration,v.delay);let $=I!==l,Z=uie((n.get(I)||oie).map(et=>et.getRealPlayer())).filter(et=>{let xt=et;return xt.element?xt.element===I:!1;}),B=o.get(I),ae=a.get(I),_e=xN(this._normalizer,v.keyframes,B,ae),Ce=this._buildPlayer(v,_e,Z);if(v.subTimeline&&r&&g.add(I),$){let et=new Xm(i,s,I);et.setRealPlayer(Ce),c.push(et);}return Ce;});c.forEach(v=>{br(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>sie(this.playersByQueriedElement,v.element,v));}),p.forEach(v=>jr(v,dN));let b=Fs(_);return b.onDestroy(()=>{p.forEach(v=>Od(v,dN)),la(l,e.toStyles);}),g.forEach(v=>{br(r,v,[]).push(b);}),b;}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new vs(i.duration,i.delay);}},Xm=class{namespaceId;triggerName;element;_player=new vs();_containsRealPlayer=!1;_queuedCallbacks=new Map();destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n;}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>gD(i,n,void 0,r));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(i){this.totalTime=i;}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy());}_queueEvent(i,e){br(this._queuedCallbacks,i,[]).push(e);}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i);}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i);}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i);}init(){this._player.init();}hasStarted(){return this.queued?!1: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=!0,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(i){this.queued||this._player.setPosition(i);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i);}};function sie(t,i,e){let n=t.get(i);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1);}n.length==0&&t.delete(i);}return n;}function lie(t){return t??null;}function t_(t){return t&&t.nodeType===1;}function cie(t){return t=="start"||t=="done";}function _N(t,i){let e=t.style.display;return t.style.display=i??"none",e;}function bN(t,i,e,n,r){let o=[];e.forEach(l=>o.push(_N(l)));let a=[];n.forEach((l,c)=>{let p=new Map();l.forEach(g=>{let _=i.computeStyle(c,g,r);p.set(g,_),(!_||_.length==0)&&(c[po]=aie,a.push(c));}),t.set(c,p);});let s=0;return e.forEach(l=>_N(l,o[s++])),a;}function vN(t,i){let e=new Map();if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,r=new Set(i),o=new Map();function a(s){if(!s)return n;let l=o.get(s);if(l)return l;let c=s.parentNode;return e.has(c)?l=c:r.has(c)?l=n:l=a(c),o.set(s,l),l;}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s);}),e;}function jr(t,i){t.classList?.add(i);}function Od(t,i){t.classList?.remove(i);}function die(t,i,e){Fs(e).onDone(()=>t.processLeaveNode(i));}function uie(t){let i=[];return RN(t,i),i;}function RN(t,i){for(let e=0;e<t.length;e++){let n=t[e];n instanceof lm?RN(n.players,i):i.push(n);}}function mie(t,i){let e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!i.hasOwnProperty(o)||t[o]!==i[o])return!1;}return!0;}function yN(t,i,e){let n=e.get(t);if(!n)return!1;let r=i.get(t);return r?n.forEach(o=>r.add(o)):i.set(t,n),e.delete(t),!0;}var Pd=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new hD(i.body,e,n),this._timelineEngine=new mD(i.body,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o);}registerTrigger(i,e,n,r,o){let a=i+"-"+r,s=this._triggerCache[a];if(!s){let l=[],c=[],p=MN(this._driver,o,l,c);if(l.length)throw mne(r,l);s=Xne(r,p,this._normalizer),this._triggerCache[a]=s;}this._transitionEngine.registerTrigger(e,r,s);}register(i,e){this._transitionEngine.register(i,e);}destroy(i,e){this._transitionEngine.destroy(i,e);}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r);}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n);}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e);}process(i,e,n,r){if(n.charAt(0)=="@"){let[o,a]=lN(n),s=r;this._timelineEngine.command(o,e,a,s);}else this._transitionEngine.trigger(i,e,n,r);}listen(i,e,n,r,o){if(n.charAt(0)=="@"){let[a,s]=lN(n);return this._timelineEngine.listen(a,e,s,o);}return this._transitionEngine.listen(i,e,n,r,o);}flush(i=-1){this._transitionEngine.flush(i);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i);}};function pie(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=eD(i[0]),i.length>1&&(n=eD(i[i.length-1]))):i instanceof Map&&(e=eD(i)),e||n?new hie(t,e,n):null;}var hie=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap();_state=0;_initialStyles;constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map()),this._initialStyles=o;}start(){this._state<1&&(this._startStyles&&la(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(la(this._element,this._initialStyles),this._endStyles&&(la(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ll(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ll(this._element,this._endStyles),this._endStyles=null),la(this._element,this._initialStyles),this._state=3);}}return t;})();function eD(t){let i=null;return t.forEach((e,n)=>{fie(n)&&(i=i||new Map(),i.set(n,e));}),i;}function fie(t){return t==="display"||t==="position";}var d_=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map();constructor(i,e,n,r){this.element=i,this.keyframes=e,thi+ ��s.options=n,this._specialStyles=r,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[]);}init(){this._buildPlayer(),this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map();let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e);});}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause();}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n));}),e;}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n);}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i);}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i);}onDestroy(i){this._onDestroyFns.push(i);}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play();}pause(){this.init(),this.domPlayer.pause();}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish();}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started;}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[]);}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time;}getPosition(){return+(this.domPlayer.currentTime??0)/this.time;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let i=new Map();this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&i.set(r,this._finished?n:xD(this.element,r));}),this.currentSnapshot=i;}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},u_=class{validateStyleProperty(i){return!0;}validateAnimatableStyleProperty(i){return!0;}containsElement(i,e){return wN(i,e);}getParentElement(i){return bD(i);}query(i,e,n){return CN(i,e,n);}computeStyle(i,e,n){return xD(i,e);}animate(i,e,n,r,o,a=[]){let s=r==0?"both":"forwards",l={duration:n,delay:r,fill:s};o&&(l.easing=o);let c=new Map(),p=a.filter(b=>b instanceof d_);Pne(n,r)&&p.forEach(b=>{b.currentSnapshot.forEach((v,I)=>c.set(I,v));});let g=Ane(e).map(b=>new Map(b));g=Fne(i,g,c);let _=pie(i,g);return new d_(i,g,l,_);}};var n_="@",ON="@.disabled",m_=class{namespaceId;delegate;engine;_onDestroy;ɵtype=0;constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r;}get data(){return this.delegate.data;}destroyNode(i){this.delegate.destroyNode?.(i);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(i,e){return this.delegate.createElement(i,e);}createComment(i){return this.delegate.createComment(i);}createText(i){return this.delegate.createText(i);}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1);}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r);}removeChild(i,e,n){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate);}selectRootElement(i,e){return this.delegate.selectRootElement(i,e);}parentNode(i){return this.delegate.parentNode(i);}nextSibling(i){return this.delegate.nextSibling(i);}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r);}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n);}addClass(i,e){this.delegate.addClass(i,e);}removeClass(i,e){this.delegate.removeClass(i,e);}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r);}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n);}setProperty(i,e,n){e.charAt(0)==n_&&e==ON?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n);}setValue(i,e){this.delegate.setValue(i,e);}listen(i,e,n,r){return this.delegate.listen(i,e,n,r);}disableAnimations(i,e){this.engine.disableAnimations(i,e);}},fD=class extends m_{factory;constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e;}setProperty(i,e,n){e.charAt(0)==n_?e.charAt(1)=="."&&e==ON?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n);}listen(i,e,n,r){if(e.charAt(0)==n_){let o=gie(i),a=e.slice(1),s="";return a.charAt(0)!=n_&&([a,s]=_ie(a)),this.engine.listen(this.namespaceId,o,a,s,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);});}return this.delegate.listen(i,e,n,r);}};function gie(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t;}}function _ie(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n];}var p_=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map();_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r);};}createRenderer(i,e){let n="",r=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let c=this._rendererCache,p=c.get(r);if(!p){let g=()=>c.delete(r);p=new m_(n,r,this.engine,g),c.set(r,p);}return p;}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(o,a,i,c.name,c);};return e.data.animation.forEach(s),new fD(this,a,r,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(i,e,n){if(i>=0&&i<this._microtaskId){this._zone.run(()=>e(n));return;}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,s]=o;a(s);}),this._animationCallbacksBuffer=[];});}),r.push([e,n]);}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(i){this.engine.flush(),this.delegate.componentReplaced?.(i);}};var vie=(()=>{class t extends Pd{constructor(e,n,r){super(e,n,r);}ngOnDestroy(){this.flush();}static ɵfac=function(n){return new(n||t)(J(ve),J(Vl),J(zl));};static ɵprov=O({token:t,factory:t.ɵfac});}return t;})();function yie(){return new o_();}function xie(t,i,e){return new p_(t,i,e);}var PN=[{provide:zl,useFactory:yie},{provide:Pd,useClass:vie},{provide:Hi,useFactory:xie,deps:[Df,Pd,le]}],wie=[{provide:Vl,useFactory:()=>new u_()},{provide:mt,useValue:"BrowserAnimations"},...PN],eNe=[{provide:Vl,useClass:vD},{provide:mt,useValue:"NoopAnimations"},...PN];function FN(){return nr("NgEagerAnimations"),[...wie];}var NN=(()=>{class t{constructor(){this.cachedRoutes=te,this.storedRouteHandles=new Map();}shouldDetach(e){return e.data.key in this.cachedRoutes;}store(e,n){this.storedRouteHandles.set(e.data.key,n);}shouldAttach(e){return this.storedRouteHandles.has(e.data.key);}retrieve(e){return this.storedRouteHandles.get(e.data.key)||null;}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig;}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵprov=O({token:t,factory:t.ɵfac});}}return t;})();var LN={providers:[uv(Wy,Yt),{provide:Mx,useClass:NN},FS(NS()),FN(),FT(aN)]};Du.production&&(window.console.log=function(){},window.console.assert=function(){});Du.production&&(console.log=()=>{});qS(WA,LN).catch(t=>console.error(t));/**i18n:798afbc088e697c0446192796b89444cf769f82d64c658df7050c3bef0b57832*/N��

Youez - 2016 - github.com/yon3zu
LinuXploit