marketplacepos 3.5.1 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +5 -5
- package/Marketplace/{chunk-5ZN2BVWB.js → chunk-2RLPLX7Y.js} +1 -1
- package/Marketplace/{chunk-ZP6L6END.js → chunk-3BUKJ3GE.js} +1 -1
- package/Marketplace/chunk-3HICANYR.js +1 -0
- package/Marketplace/chunk-3IPEE6XU.js +1 -0
- package/Marketplace/{chunk-RWRP376T.js → chunk-3TYJJ4PH.js} +7 -7
- package/Marketplace/chunk-4CWATSUN.js +1 -0
- package/Marketplace/{chunk-BZKS3OOQ.js → chunk-57VLIKXW.js} +1 -1
- package/Marketplace/chunk-5UQ6DL4O.js +2 -0
- package/Marketplace/chunk-5YXFGJWF.js +1 -0
- package/Marketplace/chunk-62X5EPZO.js +1 -0
- package/Marketplace/{chunk-QKOBK5RO.js → chunk-65GLFXG6.js} +1 -1
- package/Marketplace/chunk-6HV56KCT.js +1 -0
- package/Marketplace/chunk-7ECA4R7M.js +2 -0
- package/Marketplace/{chunk-GSRXSBIM.js → chunk-BM333QLQ.js} +1 -1
- package/Marketplace/{chunk-HI7WYFPY.js → chunk-CB4N4KBQ.js} +1 -1
- package/Marketplace/{chunk-PFX4CZVM.js → chunk-CN572N3D.js} +1 -1
- package/Marketplace/{chunk-DLMJHJC2.js → chunk-DIKDR4YZ.js} +1 -1
- package/Marketplace/{chunk-LWKBNKVO.js → chunk-DIZIHPEZ.js} +1 -1
- package/Marketplace/chunk-DM4BNQ56.js +1 -0
- package/Marketplace/chunk-DOLAZVBK.js +2 -0
- package/Marketplace/{chunk-L5URITG7.js → chunk-E2YL3IRQ.js} +1 -1
- package/Marketplace/chunk-EBCG45QS.js +1 -0
- package/Marketplace/chunk-EM7B4QFY.js +1 -0
- package/Marketplace/chunk-ESASEBJL.js +2 -0
- package/Marketplace/{chunk-H6D6Q2L2.js → chunk-F6CH4W4K.js} +1 -1
- package/Marketplace/chunk-FBFTM65H.js +5 -0
- package/Marketplace/chunk-FTADFHBJ.js +1 -0
- package/Marketplace/{chunk-OYMJWISR.js → chunk-ID64YY33.js} +1 -1
- package/Marketplace/{chunk-KRXW5FTG.js → chunk-IFNRKVC7.js} +1 -1
- package/Marketplace/chunk-IQE4BJBW.js +1 -0
- package/Marketplace/{chunk-475WOA53.js → chunk-IWJP53WS.js} +1 -1
- package/Marketplace/chunk-IZUH3SMQ.js +1 -0
- package/Marketplace/chunk-JHMIIA36.js +1 -0
- package/Marketplace/{chunk-IHM35ILL.js → chunk-JVBBWG5A.js} +2 -2
- package/Marketplace/chunk-JWHHOF7N.js +1 -0
- package/Marketplace/{chunk-URBKK5K6.js → chunk-K3FE6RKY.js} +1 -1
- package/Marketplace/chunk-KH5TJAAO.js +1 -0
- package/Marketplace/{chunk-XEVR4BVC.js → chunk-MH5CTSJJ.js} +2 -2
- package/Marketplace/chunk-MQ5HS343.js +1 -0
- package/Marketplace/{chunk-OULCNSCZ.js → chunk-NR7MA7GM.js} +1 -1
- package/Marketplace/chunk-OJCFIUAX.js +1 -0
- package/Marketplace/chunk-OPU2YPBG.js +1 -0
- package/Marketplace/{chunk-NB75ACST.js → chunk-PB2YK3UZ.js} +1 -1
- package/Marketplace/{chunk-LDVARU5U.js → chunk-PBKWYSXQ.js} +1 -1
- package/Marketplace/{chunk-5ANLTFUN.js → chunk-PSCYH4CH.js} +1 -1
- package/Marketplace/chunk-PX3OVSRI.js +1 -0
- package/Marketplace/chunk-Q3NI4SVW.js +3 -0
- package/Marketplace/{chunk-AG7HK2U3.js → chunk-RNJKRELB.js} +1 -1
- package/Marketplace/chunk-S3Y5M733.js +1 -0
- package/Marketplace/chunk-SLBDXT7U.js +1 -0
- package/Marketplace/{chunk-RPMRAFUY.js → chunk-SS2IUYMS.js} +11 -11
- package/Marketplace/{chunk-TP2HONHJ.js → chunk-TVWXXVHW.js} +1 -1
- package/Marketplace/{chunk-APUQGD5I.js → chunk-TWJIQ2V4.js} +1 -1
- package/Marketplace/chunk-TZXECYID.js +1 -0
- package/Marketplace/{chunk-Q5ZWBTZ2.js → chunk-UI3GOMJ2.js} +1 -1
- package/Marketplace/chunk-UX7T6RMC.js +1 -0
- package/Marketplace/chunk-V3FRKQJE.js +1 -0
- package/Marketplace/chunk-VQDYKADM.js +1 -0
- package/Marketplace/{chunk-GYBKA75Z.js → chunk-VZVPXWTV.js} +1 -1
- package/Marketplace/chunk-WQRVB6GT.js +1 -0
- package/Marketplace/chunk-X5D5XIEG.js +1 -0
- package/Marketplace/chunk-XC47PR7D.js +5 -0
- package/Marketplace/chunk-YXUQSGJI.js +1 -0
- package/Marketplace/chunk-ZBHZ3ASR.js +1 -0
- package/Marketplace/chunk-ZJLKBG2A.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-I4YQBPAL.js +1 -0
- package/Marketplace/{styles-ISUUHHCL.css → styles-WYF4ASPA.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4KXF5ZA2.js +0 -1
- package/Marketplace/chunk-4PT4476L.js +0 -1
- package/Marketplace/chunk-4TMYOD6O.js +0 -1
- package/Marketplace/chunk-5XDVKUH7.js +0 -2
- package/Marketplace/chunk-7K45EX2D.js +0 -1
- package/Marketplace/chunk-AFXFMUBY.js +0 -1
- package/Marketplace/chunk-BHYFVY4A.js +0 -1
- package/Marketplace/chunk-E6VM4GK2.js +0 -1
- package/Marketplace/chunk-EI6G5GIB.js +0 -1
- package/Marketplace/chunk-HUCFUCCO.js +0 -1
- package/Marketplace/chunk-IEBL2FLF.js +0 -1
- package/Marketplace/chunk-IM76S6ZZ.js +0 -1
- package/Marketplace/chunk-IMXSLLAA.js +0 -1
- package/Marketplace/chunk-IU6HPLQ3.js +0 -1
- package/Marketplace/chunk-J6UEWWQX.js +0 -2
- package/Marketplace/chunk-JF3MRSX7.js +0 -1
- package/Marketplace/chunk-KKKJRBXL.js +0 -2
- package/Marketplace/chunk-LBMDUJHZ.js +0 -1
- package/Marketplace/chunk-MGOWDXUM.js +0 -1
- package/Marketplace/chunk-MZEDRDUX.js +0 -1
- package/Marketplace/chunk-NLTXIY5M.js +0 -1
- package/Marketplace/chunk-NWCS6OKR.js +0 -1
- package/Marketplace/chunk-NXHVARCF.js +0 -1
- package/Marketplace/chunk-OVPZBBEC.js +0 -2
- package/Marketplace/chunk-RKNA2RX4.js +0 -5
- package/Marketplace/chunk-RWEMXJWP.js +0 -1
- package/Marketplace/chunk-TRRI6HFB.js +0 -3
- package/Marketplace/chunk-UCSWGVFE.js +0 -1
- package/Marketplace/chunk-UFNZF4K5.js +0 -1
- package/Marketplace/chunk-USCL6HQE.js +0 -1
- package/Marketplace/chunk-WB4KZY2I.js +0 -1
- package/Marketplace/chunk-XTLLDXB7.js +0 -1
- package/Marketplace/chunk-Y2IG7JAU.js +0 -1
- package/Marketplace/chunk-YIPITET7.js +0 -1
- package/Marketplace/chunk-YN7U2IRK.js +0 -5
- package/Marketplace/chunk-ZJHL6VDX.js +0 -1
- package/Marketplace/chunk-ZPR2KAKZ.js +0 -1
- package/Marketplace/main-WKNVNRPA.js +0 -1
- /package/Marketplace/{chunk-F7MYTDP3.js → chunk-FRY56U37.js} +0 -0
- /package/Marketplace/{chunk-OKO7WTOG.js → chunk-GLK7UGZJ.js} +0 -0
- /package/Marketplace/{chunk-KSBVZVMH.js → chunk-KIP3CH3J.js} +0 -0
- /package/Marketplace/{chunk-GV43X5PS.js → chunk-NFCTGNSM.js} +0 -0
- /package/Marketplace/{polyfills-STQSWRUI.js → polyfills-FX2Y3WMH.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as w,$a as Ze,B as ji,Ba as H,Ca as qi,Cc as ve,Dc as Pt,Ec as Je,Fa as ke,Fb as Ot,Ga as M,H as $e,Hb as Ji,I as We,Ia as Hi,Ib as es,Ja as be,K as Bi,Ka as j,Kb as ts,Ma as Ce,Na as Dt,Oa as Qe,Pb as is,Qa as Ge,Qb as ss,R as qe,S as Ui,Sb as Ne,Ua as Mt,V as He,Va as Ye,Vb as L,X as zi,Za as kt,_ as E,_a as Ct,a as Ri,aa as C,b as Ve,ba as x,c as q,ca as y,d as Pi,da as U,ea as It,eb as Qi,fa as N,ga as ce,gc as ns,hb as Gi,ia as Ki,jb as Xe,kb as Yi,lb as Nt,mc as rs,n as Fi,oc as os,pb as Zi,q as Me,r as Li,rb as Xi,rc as Z,ta as Vi,u as xi,ua as $i,va as ie,vc as as,wa as Wi,wc as Rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";import{a as R,b as Oi}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-GLK7UGZJ.js";var Lt;try{Lt=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Lt=!1}var $=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?ns(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Lt)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(s){return new(s||e)(y($i))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ee,ls=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wa(){if(Ee)return Ee;if(typeof document!="object"||!document)return Ee=new Set(ls),Ee;let n=document.createElement("input");return Ee=new Set(ls.filter(e=>(n.setAttribute("type",e),n.type===e))),Ee}var Oe;function gn(){if(Oe==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oe=!0}))}finally{Oe=Oe||!1}return Oe}function Te(n){return gn()?n:!!n.capture}var de;function Sa(){if(de==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return de=!1,de;if("scrollBehavior"in document.documentElement.style)de=!0;else{let n=Element.prototype.scrollTo;n?de=!/\{\s*\[native code\]\s*\}/.test(n.toString()):de=!1}}return de}var Ft;function _n(){if(Ft==null){let n=typeof document<"u"?document.head:null;Ft=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ft}function cs(n){if(_n()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ds(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function re(n){return n.composedPath?n.composedPath()[0]:n.target}function hs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function et(n,...e){return e.length?e.some(i=>n[i]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function jt(n){return n!=null&&`${n}`!="false"}function us(n,e=0){return yn(n)?Number(n):e}function yn(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Bt(n){return Array.isArray(n)?n:[n]}function Da(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ue(n){return n instanceof H?n.nativeElement:n}function Ma(n,e=/\s+/){let i=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(e);for(let s of t){let r=`${s}`.trim();r&&i.push(r)}}return i}var bn=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ms=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[bn]});let n=e;return n})();var fs=new Set,me,vn=(()=>{let e=class e{constructor(t,s){this._platform=t,this._nonce=s,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tn}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&En(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(s){return new(s||e)(y($),y(Wi,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function En(n,e){if(!fs.has(n))try{me||(me=document.createElement("style"),e&&(me.nonce=e),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${n} {body{ }}`,0),fs.add(n))}catch(i){console.error(i)}}function Tn(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var gs=(()=>{let e=class e{constructor(t,s){this._mediaMatcher=t,this._zone=s,this._queries=new Map,this._destroySubject=new q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ps(Bt(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let r=ps(Bt(t)).map(a=>this._registerQuery(a).observable),o=Li(r);return o=xi(o.pipe(We(1)),o.pipe(qe(1),$e(0))),o.pipe(Me(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let s=this._mediaMatcher.matchMedia(t),o={observable:new Ve(a=>{let l=c=>this._zone.run(()=>a.next(c));return s.addListener(l),()=>{s.removeListener(l)}}).pipe(Ui(s),Me(({matches:a})=>({query:t,matches:a})),He(this._destroySubject)),mql:s};return this._queries.set(t,o),o}};e.\u0275fac=function(s){return new(s||e)(y(vn),y(j))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ps(n){return n.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var ws=" ";function zn(n,e,i){let t=st(n,e);t.some(s=>s.trim()==i.trim())||(t.push(i.trim()),n.setAttribute(e,t.join(ws)))}function Kn(n,e,i){let s=st(n,e).filter(r=>r!=i.trim());s.length?n.setAttribute(e,s.join(ws)):n.removeAttribute(e)}function st(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}var Ss="cdk-describedby-message",tt="cdk-describedby-host",Kt=0,il=(()=>{let e=class e{constructor(t,s){this._platform=s,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Kt++}`,this._document=t,this._id=U(Vi)+"-"+Kt++}describe(t,s,r){if(!this._canBeDescribed(t,s))return;let o=Ut(s,r);typeof s!="string"?(_s(s,this._id),this._messageRegistry.set(o,{messageElement:s,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(s,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,s,r){if(!s||!this._isElementNode(t))return;let o=Ut(s,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),typeof s=="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 t=this._document.querySelectorAll(`[${tt}="${this._id}"]`);for(let s=0;s<t.length;s++)this._removeCdkDescribedByReferenceIds(t[s]),t[s].removeAttribute(tt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,s){let r=this._document.createElement("div");_s(r,this._id),r.textContent=t,s&&r.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Ut(t,s),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let o=0;o<s.length;o++)s[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){let s=st(t,"aria-describedby").filter(r=>r.indexOf(Ss)!=0);t.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(t,s){let r=this._messageRegistry.get(s);zn(t,"aria-describedby",r.messageElement.id),t.setAttribute(tt,this._id),r.referenceCount++}_removeMessageReference(t,s){let r=this._messageRegistry.get(s);r.referenceCount--,Kn(t,"aria-describedby",r.messageElement.id),t.removeAttribute(tt)}_isElementDescribedByMessage(t,s){let r=st(t,"aria-describedby"),o=this._messageRegistry.get(s),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(t,s){if(!this._isElementNode(t))return!1;if(s&&typeof s=="object")return!0;let r=s==null?"":`${s}`.trim(),o=t.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(s){return new(s||e)(y(L),y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ut(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function _s(n,e){n.id||(n.id=`${Ss}-${e}-${Kt++}`)}var nt=class{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new q,this._typeaheadSubscription=Ri.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new q,this.change=new q,e instanceof Ot&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){let s=i.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(i=>this._pressedLetters.push(i)),$e(e),ji(()=>this._pressedLetters.length>0),Me(()=>this._pressedLetters.join(""))).subscribe(i=>{let t=this._getItemsArray();for(let s=1;s<t.length+1;s++){let r=(this._activeItemIndex+s)%t.length,o=t[r];if(!this._skipPredicateFn(o)&&o.getLabel().toUpperCase().trim().indexOf(i)===0){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,i=10){return this._pageUpAndDown={enabled:e,delta:i},this}setActiveItem(e){let i=this._activeItem;this.updateActiveItem(e),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(e){let i=e.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(s||et(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),t=typeof e=="number"?e:i.indexOf(e),s=i[t];this._activeItem=s??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let t=1;t<=i.length;t++){let s=(this._activeItemIndex+e*t+i.length)%i.length,r=i[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=i,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ot?this._items.toArray():this._items}},ys=class extends nt{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},bs=class extends nt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Vn=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Wn(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let s=$n(Jn(t));if(s&&(vs(s)===-1||!this.isVisible(s)))return!1;let r=t.nodeName.toLowerCase(),o=vs(t);return t.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Zn(t)?!1:r==="audio"?t.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,s){return Xn(t)&&!this.isDisabled(t)&&(s?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(s){return new(s||e)(y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $n(n){try{return n.frameElement}catch{return null}}function Wn(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function qn(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Hn(n){return Gn(n)&&n.type=="hidden"}function Qn(n){return Yn(n)&&n.hasAttribute("href")}function Gn(n){return n.nodeName.toLowerCase()=="input"}function Yn(n){return n.nodeName.toLowerCase()=="a"}function As(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function vs(n){if(!As(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Zn(n){let e=n.nodeName.toLowerCase(),i=e==="input"&&n.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function Xn(n){return Hn(n)?!1:qn(n)||Qn(n)||n.hasAttribute("contenteditable")||As(n)}function Jn(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Vt=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,t,s,r=!1){this._element=e,this._checker=i,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.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(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let t=this._getFirstTabbableElement(i);return t?.focus(e),!!t}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=0;t<i.length;t++){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[t]):null;if(s)return s}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=i.length-1;t>=0;t--){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[t]):null;if(s)return s}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(We(1)).subscribe(e)}},er=(()=>{let e=class e{constructor(t,s,r){this._checker=t,this._ngZone=s,this._document=r}create(t,s=!1){return new Vt(t,this._checker,this._ngZone,this._document,s)}};e.\u0275fac=function(s){return new(s||e)(y(Vn),y(j),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),sl=(()=>{let e=class e{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=t}constructor(t,s,r){this._elementRef=t,this._focusTrapFactory=s,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){let s=t.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ds(),this.focusTrap.focusInitialElementWhenReady()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(er),M(L))},e.\u0275dir=ce({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled",Ne],autoCapture:["cdkTrapFocusAutoCapture","autoCapture",Ne]},exportAs:["cdkTrapFocus"],features:[Ce,Ki]});let n=e;return n})();function $t(n){return n.buttons===0||n.detail===0}function Wt(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var tr=new x("cdk-input-modality-detector-options"),ir={ignoreKeys:[18,17,224,91,16]},Is=650,we=Te({passive:!0,capture:!0}),sr=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,s,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Pi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=re(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<Is||(this._modality.next($t(a)?"keyboard":"mouse"),this._mostRecentTarget=re(a))},this._onTouchstart=a=>{if(Wt(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=re(a)},this._options=R(R({},ir),o),this.modalityDetected=this._modality.pipe(qe(1)),this.modalityChanged=this.modalityDetected.pipe(Bi()),t.isBrowser&&s.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,we),r.addEventListener("mousedown",this._onMousedown,we),r.addEventListener("touchstart",this._onTouchstart,we)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,we),document.removeEventListener("mousedown",this._onMousedown,we),document.removeEventListener("touchstart",this._onTouchstart,we))}};e.\u0275fac=function(s){return new(s||e)(y($),y(j),y(L),y(tr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),nr=new x("liveAnnouncerElement",{providedIn:"root",factory:rr});function rr(){return null}var or=new x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ar=0,nl=(()=>{let e=class e{constructor(t,s,r,o){this._ngZone=s,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...s){let r=this._defaultOptions,o,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[o,a]=s,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(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,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 t="cdk-live-announcer-element",s=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o<s.length;o++)s[o].remove();return r.classList.add(t),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${ar++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(t){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<s.length;r++){let o=s[r],a=o.getAttribute("aria-owns");a?a.indexOf(t)===-1&&o.setAttribute("aria-owns",a+" "+t):o.setAttribute("aria-owns",t)}}};e.\u0275fac=function(s){return new(s||e)(y(nr,8),y(j),y(L),y(or,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var lr=new x("cdk-focus-monitor-default-options"),it=Te({passive:!0,capture:!0}),cr=(()=>{let e=class e{constructor(t,s,r,o,a){this._ngZone=t,this._platform=s,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new q,this._rootNodeFocusAndBlurListener=l=>{let c=re(l);for(let d=c;d;d=d.parentElement)l.type==="focus"?this._onFocus(l,d):this._onBlur(l,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,s=!1){let r=ue(t);if(!this._platform.isBrowser||r.nodeType!==1)return Fi();let o=cs(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return s&&(a.checkChildren=!0),a.subject;let l={checkChildren:s,subject:new q,rootNode:o};return this._elementInfo.set(r,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let s=ue(t),r=this._elementInfo.get(s);r&&(r.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(r))}focusVia(t,s,r){let o=ue(t),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,s,c)):(this._setOrigin(s),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===1||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,s){t.classList.toggle("cdk-focused",!!s),t.classList.toggle("cdk-touch-focused",s==="touch"),t.classList.toggle("cdk-keyboard-focused",s==="keyboard"),t.classList.toggle("cdk-mouse-focused",s==="mouse"),t.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(t,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&s,this._detectionMode===0){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Is:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(t,s){let r=this._elementInfo.get(s),o=re(t);!r||!r.checkChildren&&s!==o||this._originChanged(s,this._getFocusOrigin(o),r)}_onBlur(t,s){let r=this._elementInfo.get(s);!r||r.checkChildren&&t.relatedTarget instanceof Node&&s.contains(t.relatedTarget)||(this._setClasses(s),this._emitOrigin(r,null))}_emitOrigin(t,s){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(s))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let s=t.rootNode,r=this._rootNodeFocusListenerCount.get(s)||0;r||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,it)}),this._rootNodeFocusListenerCount.set(s,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(He(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){let s=t.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let r=this._rootNodeFocusListenerCount.get(s);r>1?this._rootNodeFocusListenerCount.set(s,r-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,it),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,s,r){this._setClasses(t,s),this._emitOrigin(r,s),this._lastFocusOrigin=s}_getClosestElementsInfo(t){let s=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&s.push([o,r])}),s}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:s,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!s||s===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let o=t.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(s))return!0}return!1}};e.\u0275fac=function(s){return new(s||e)(y(j),y($),y(sr),y(L,8),y(lr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),rl=(()=>{let e=class e{constructor(t,s){this._elementRef=t,this._focusMonitor=s,this._focusOrigin=null,this.cdkFocusChange=new be}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(cr))},e.\u0275dir=ce({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});let n=e;return n})(),Es="cdk-high-contrast-black-on-white",Ts="cdk-high-contrast-white-on-black",zt="cdk-high-contrast-active",qt=(()=>{let e=class e{constructor(t,s){this._platform=t,this._document=s,this._breakpointSubscription=U(gs).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let s=this._document.defaultView||window,r=s&&s.getComputedStyle?s.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(zt,Es,Ts),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===1?t.add(zt,Es):s===2&&t.add(zt,Ts)}}};e.\u0275fac=function(s){return new(s||e)(y($),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ol=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(s){return new(s||e)(y(qt))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ms]});let n=e;return n})();var ur=new x("cdk-dir-doc",{providedIn:"root",factory:mr});function mr(){return U(L)}var fr=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function pr(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?fr.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var _l=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new be,t){let s=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=pr(s||r||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(s){return new(s||e)(y(ur,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({});let n=e;return n})();function Ds(n){return new E(3e3,!1)}function gr(){return new E(3100,!1)}function _r(){return new E(3101,!1)}function yr(n){return new E(3001,!1)}function br(n){return new E(3003,!1)}function vr(n){return new E(3004,!1)}function Er(n,e){return new E(3005,!1)}function Tr(){return new E(3006,!1)}function wr(){return new E(3007,!1)}function Sr(n,e){return new E(3008,!1)}function Ar(n){return new E(3002,!1)}function Ir(n,e,i,t,s){return new E(3010,!1)}function Dr(){return new E(3011,!1)}function Mr(){return new E(3012,!1)}function kr(){return new E(3200,!1)}function Cr(){return new E(3202,!1)}function Nr(){return new E(3013,!1)}function Or(n){return new E(3014,!1)}function Rr(n){return new E(3015,!1)}function Pr(n){return new E(3016,!1)}function Fr(n,e){return new E(3404,!1)}function Lr(n){return new E(3502,!1)}function xr(n){return new E(3503,!1)}function jr(){return new E(3300,!1)}function Br(n){return new E(3504,!1)}function Ur(n){return new E(3301,!1)}function zr(n,e){return new E(3302,!1)}function Kr(n){return new E(3303,!1)}function Vr(n,e){return new E(3400,!1)}function $r(n){return new E(3401,!1)}function Wr(n){return new E(3402,!1)}function qr(n,e){return new E(3505,!1)}function oe(n){switch(n.length){case 0:return new ve;case 1:return n[0];default:return new Pt(n)}}function zs(n,e,i=new Map,t=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((b,_)=>{let m=_,f=b;if(_!=="offset")switch(m=n.normalizePropertyName(m,s),f){case Je:f=i.get(_);break;case Z:f=t.get(_);break;default:f=n.normalizeStyleValue(_,m,f,s);break}h.set(m,f)}),d||r.push(h),a=h,o=c}),s.length)throw Lr(s);return r}function pi(n,e,i,t){switch(e){case"start":n.onStart(()=>t(i&&Qt(i,"start",n)));break;case"done":n.onDone(()=>t(i&&Qt(i,"done",n)));break;case"destroy":n.onDestroy(()=>t(i&&Qt(i,"destroy",n)));break}}function Qt(n,e,i){let t=i.totalTime,s=!!i.disabled,r=gi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function gi(n,e,i,t,s="",r=0,o){return{element:n,triggerName:e,fromState:i,toState:t,phaseName:s,totalTime:r,disabled:!!o}}function K(n,e,i){let t=n.get(e);return t||n.set(e,t=i),t}function Ms(n){let e=n.indexOf(":"),i=n.substring(1,e),t=n.slice(e+1);return[i,t]}var Hr=(()=>typeof document>"u"?null:document.documentElement)();function _i(n){let e=n.parentNode||n.host||null;return e===Hr?null:e}function Qr(n){return n.substring(1,6)=="ebkit"}var fe=null,ks=!1;function Gr(n){fe||(fe=Yr()||{},ks=fe.style?"WebkitAppearance"in fe.style:!1);let e=!0;return fe.style&&!Qr(n)&&(e=n in fe.style,!e&&ks&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in fe.style)),e}function Yr(){return typeof document<"u"?document.body:null}function Ks(n,e){for(;e;){if(e===n)return!0;e=_i(e)}return!1}function Vs(n,e,i){if(i)return Array.from(n.querySelectorAll(e));let t=n.querySelector(e);return t?[t]:[]}var yi=(()=>{let e=class e{validateStyleProperty(t){return Gr(t)}matchesElement(t,s){return!1}containsElement(t,s){return Ks(t,s)}getParentElement(t){return _i(t)}query(t,s,r){return Vs(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,o,a,l=[],c){return new ve(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Be=(()=>{let e=class e{};e.NOOP=new yi;let n=e;return n})(),_e=class{};var Zr=1e3,$s="{{",Xr="}}",Ws="ng-enter",ei="ng-leave",rt="ng-trigger",dt=".ng-trigger",Cs="ng-animating",ti=".ng-animating";function se(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ii(parseFloat(e[1]),e[2])}function ii(n,e){switch(e){case"s":return n*Zr;default:return n}}function ht(n,e,i){return n.hasOwnProperty("duration")?n:Jr(n,e,i)}function Jr(n,e,i){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(t);if(a===null)return e.push(Ds(n)),{duration:0,delay:0,easing:""};s=ii(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ii(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=e.length;s<0&&(e.push(gr()),a=!0),r<0&&(e.push(_r()),a=!0),a&&e.splice(l,0,Ds(n))}return{duration:s,delay:r,easing:o}}function Ue(n,e={}){return Object.keys(n).forEach(i=>{e[i]=n[i]}),e}function qs(n){let e=new Map;return Object.keys(n).forEach(i=>{let t=n[i];e.set(i,t)}),e}function eo(n){return n.length?n[0]instanceof Map?n:n.map(e=>qs(e)):[]}function Ae(n,e=new Map,i){if(i)for(let[t,s]of i)e.set(t,s);for(let[t,s]of n)e.set(t,s);return e}function X(n,e,i){e.forEach((t,s)=>{let r=bi(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=t})}function ge(n,e){e.forEach((i,t)=>{let s=bi(t);n.style[s]=""})}function Re(n){return Array.isArray(n)?n.length==1?n[0]:as(n):n}function to(n,e,i){let t=e.params||{},s=Hs(n);s.length&&s.forEach(r=>{t.hasOwnProperty(r)||i.push(yr(r))})}var si=new RegExp(`${$s}\\s*(.+?)\\s*${Xr}`,"g");function Hs(n){let e=[];if(typeof n=="string"){let i;for(;i=si.exec(n);)e.push(i[1]);si.lastIndex=0}return e}function Fe(n,e,i){let t=n.toString(),s=t.replace(si,(r,o)=>{let a=e[o];return a==null&&(i.push(br(o)),a=""),a.toString()});return s==t?n:s}function ut(n){let e=[],i=n.next();for(;!i.done;)e.push(i.value),i=n.next();return e}var io=/-+([a-z0-9])/g;function bi(n){return n.replace(io,(...e)=>e[1].toUpperCase())}function so(n,e){return n===0||e===0}function no(n,e,i){if(i.size&&e.length){let t=e[0],s=[];if(i.forEach((r,o)=>{t.has(o)||s.push(o),t.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Qs(n,a)))}}return e}function z(n,e,i){switch(e.type){case 7:return n.visitTrigger(e,i);case 0:return n.visitState(e,i);case 1:return n.visitTransition(e,i);case 2:return n.visitSequence(e,i);case 3:return n.visitGroup(e,i);case 4:return n.visitAnimate(e,i);case 5:return n.visitKeyframes(e,i);case 6:return n.visitStyle(e,i);case 8:return n.visitReference(e,i);case 9:return n.visitAnimateChild(e,i);case 10:return n.visitAnimateRef(e,i);case 11:return n.visitQuery(e,i);case 12:return n.visitStagger(e,i);default:throw vr(e.type)}}function Qs(n,e){return window.getComputedStyle(n)[e]}var ro=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"]),mt=class extends _e{normalizePropertyName(e,i){return bi(e)}normalizeStyleValue(e,i,t,s){let r="",o=t.toString().trim();if(ro.has(i)&&t!==0&&t!=="0")if(typeof t=="number")r="px";else{let a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(Er(e,t))}return o+r}};var ft="*";function oo(n,e){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>ao(t,i,e)):i.push(n),i}function ao(n,e,i){if(n[0]==":"){let l=lo(n,i);if(typeof l=="function"){e.push(l);return}n=l}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return i.push(Rr(n)),e;let s=t[1],r=t[2],o=t[3];e.push(Ns(s,o));let a=s==ft&&o==ft;r[0]=="<"&&!a&&e.push(Ns(o,s))}function lo(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,t)=>parseFloat(t)>parseFloat(i);case":decrement":return(i,t)=>parseFloat(t)<parseFloat(i);default:return e.push(Pr(n)),"* => *"}}var ot=new Set(["true","1"]),at=new Set(["false","0"]);function Ns(n,e){let i=ot.has(n)||at.has(n),t=ot.has(e)||at.has(e);return(s,r)=>{let o=n==ft||n==s,a=e==ft||e==r;return!o&&i&&typeof s=="boolean"&&(o=s?ot.has(n):at.has(n)),!a&&t&&typeof r=="boolean"&&(a=r?ot.has(e):at.has(e)),o&&a}}var Gs=":self",co=new RegExp(`s*${Gs}s*,?`,"g");function Ys(n,e,i,t){return new ni(n).build(e,i,t)}var Os="",ni=class{constructor(e){this._driver=e}build(e,i,t){let s=new ri(i);return this._resetContextStyleTimingState(s),z(this,Re(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Os,e.collectedStyles=new Map,e.collectedStyles.set(Os,new Map),e.currentTime=0}visitTrigger(e,i){let t=i.queryCount=0,s=i.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Tr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==0){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==1){let l=this.visitTransition(a,i);t+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(wr())}),{type:7,name:e.name,states:r,transitions:o,queryCount:t,depCount:s,options:null}}visitState(e,i){let t=this.visitStyle(e.styles,i),s=e.options&&e.options.params||null;if(t.containsDynamicStyles){let r=new Set,o=s||{};if(t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Hs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size){let a=ut(r.values());i.errors.push(Sr(e.name,a))}}return{type:0,name:e.name,style:t,options:s?{params:s}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let t=z(this,Re(e.animation),i);return{type:1,matchers:oo(e.expr,i.errors),animation:t,queryCount:i.queryCount,depCount:i.depCount,options:pe(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(t=>z(this,t,i)),options:pe(e.options)}}visitGroup(e,i){let t=i.currentTime,s=0,r=e.steps.map(o=>{i.currentTime=t;let a=z(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:3,steps:r,options:pe(e.options)}}visitAnimate(e,i){let t=fo(e.timings,i.errors);i.currentAnimateTimings=t;let s,r=e.styles?e.styles:Rt({});if(r.type==5)s=this.visitKeyframes(r,i);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};t.easing&&(c.easing=t.easing),o=Rt(c)}i.currentTime+=t.duration+t.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(e,i){let t=this._makeStyleAst(e,i);return this._validateStyleAst(t,i),t}_makeStyleAst(e,i){let t=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?t.push(a):i.errors.push(Ar(a)):t.push(qs(a));let r=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf($s)>=0){r=!0;break}}}),{type:6,styles:t,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,i){let t=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;t&&r>0&&(r-=t.duration+t.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(i.errors.push(Ir(l,d.startTime,d.endTime,r,s)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:s}),i.options&&to(a,i.options,i.errors)})})}visitKeyframes(e,i){let t={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Dr()),t;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(A=>{let I=this._makeStyleAst(A,i),P=I.offset!=null?I.offset:mo(I.styles),k=0;return P!=null&&(r++,k=I.offset=P),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),I});l&&i.errors.push(Mr()),a&&i.errors.push(kr());let h=e.steps.length,b=0;r>0&&r<h?i.errors.push(Cr()):r==0&&(b=s/(h-1));let _=h-1,m=i.currentTime,f=i.currentAnimateTimings,T=f.duration;return d.forEach((A,I)=>{let P=b>0?I==_?1:b*I:o[I],k=P*T;i.currentTime=m+f.delay+k,f.duration=k,this._validateStyleAst(A,i),A.offset=P,t.styles.push(A)}),t}visitReference(e,i){return{type:8,animation:z(this,Re(e.animation),i),options:pe(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:pe(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:pe(e.options)}}visitQuery(e,i){let t=i.currentQuerySelector,s=e.options||{};i.queryCount++,i.currentQuery=e;let[r,o]=ho(e.selector);i.currentQuerySelector=t.length?t+" "+r:r,K(i.collectedStyles,i.currentQuerySelector,new Map);let a=z(this,Re(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=t,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:pe(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(Nr());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ht(e.timings,i.errors,!0);return{type:12,animation:z(this,Re(e.animation),i),timings:t,options:null}}};function ho(n){let e=!!n.split(/\s*,\s*/).find(i=>i==Gs);return e&&(n=n.replace(co,"")),n=n.replace(/@\*/g,dt).replace(/@\w+/g,i=>dt+"-"+i.slice(1)).replace(/:animating/g,ti),[n,e]}function uo(n){return n?Ue(n):null}var ri=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function mo(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function fo(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ht(n,e).duration;return Gt(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Gt(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=ht(i,e);return Gt(s.duration,s.delay,s.easing)}function pe(n){return n?(n=Ue(n),n.params&&(n.params=uo(n.params))):n={},n}function Gt(n,e,i){return{duration:n,delay:e,easing:i}}function vi(n,e,i,t,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:i,postStyleProps:t,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var Le=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},po=1,go=":enter",_o=new RegExp(go,"g"),yo=":leave",bo=new RegExp(yo,"g");function Zs(n,e,i,t,s,r=new Map,o=new Map,a,l,c=[]){return new oi().buildKeyframes(n,e,i,t,s,r,o,a,l,c)}var oi=class{buildKeyframes(e,i,t,s,r,o,a,l,c,d=[]){c=c||new Le;let h=new ai(e,i,c,s,r,d,[]);h.options=l;let b=l.delay?se(l.delay):0;h.currentTimeline.delayNextStep(b),h.currentTimeline.setStyles([o],null,h.errors,l),z(this,t,h);let _=h.timelines.filter(m=>m.containsAnimation());if(_.length&&a.size){let m;for(let f=_.length-1;f>=0;f--){let T=_[f];if(T.element===i){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[vi(i,[],[],[],0,b,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let t=i.subInstructions.get(i.element);if(t){let s=i.createSubContext(e.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(t,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let t=i.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,t),this.visitReference(e.animation,t),i.transformIntoNewTimeline(t.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,t){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:se(Fe(r,s?.params??{},i.errors));t.delayNextStep(o)}}}_visitSubInstructions(e,i,t){let r=i.currentTimeline.currentTime,o=t.duration!=null?se(t.duration):null,a=t.delay!=null?se(t.delay):null;return o!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,i){i.updateOptions(e.options,!0),z(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let t=i.subContextCount,s=i,r=e.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==6&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=pt);let o=se(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>z(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let t=[],s=i.currentTimeline.currentTime,r=e.options&&e.options.delay?se(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);r&&a.delayNextStep(r),z(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let t=e.strValue,s=i.params?Fe(t,i.params,i.errors):t;return ht(s,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let t=i.currentAnimateTimings=this._visitTiming(e.timings,i),s=i.currentTimeline;t.delay&&(i.incrementTime(t.delay),s.snapshotCurrentStyles());let r=e.style;r.type==5?this.visitKeyframes(r,i):(i.incrementTime(t.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let t=i.currentTimeline,s=i.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(r):t.setStyles(e.styles,r,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let t=i.currentAnimateTimings,s=i.currentTimeline.duration,r=t.duration,a=i.createSubContext().currentTimeline;a.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=e}visitQuery(e,i){let t=i.currentTimeline.currentTime,s=e.options||{},r=s.delay?se(s.delay):0;r&&(i.previousNode.type===6||t==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pt);let o=t,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;let h=i.createSubContext(e.options,c);r&&h.delayNextStep(r),c===i.element&&(l=h.currentTimeline),z(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let b=h.currentTimeline.currentTime;o=Math.max(o,b)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let t=i.parentContext,s=i.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime;break}let d=i.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;z(this,e.animation,i),i.previousNode=e,t.currentStaggerTime=s.currentTime-h+(s.startTime-t.currentTimeline.startTime)}},pt={},ai=class n{constructor(e,i,t,s,r,o,a,l){this._driver=e,this.element=i,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new gt(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let t=e,s=this.options;t.duration!=null&&(s.duration=se(t.duration)),t.delay!=null&&(s.delay=se(t.delay));let r=t.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=Fe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let t=e.params={};Object.keys(i).forEach(s=>{t[s]=i[s]})}}return e}createSubContext(e=null,i,t){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=pt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,t){let s={duration:i??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},r=new li(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,t,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(_o,"."+this._enterClassName),e=e.replace(bo,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c)}return!r&&a.length==0&&o.push(Or(i)),a}},gt=class n{constructor(e,i,t,s){this._driver=e,this.element=i,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||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+=po,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,t]of this._globalTimelineStyles)this._backFill.set(i,t||Z),this._currentKeyframe.set(i,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,t,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=vo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Fe(l,r,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,t)=>{let s=this._styleSummary.get(t);(!s||i.time>s.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,t=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=Ae(a,new Map,this._backFill);c.forEach((d,h)=>{d===Je?e.add(h):d===Z&&i.add(h)}),t||c.set("offset",l/this.duration),s.push(c)});let r=e.size?ut(e.values()):[],o=i.size?ut(i.values()):[];if(t){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return vi(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},li=class extends gt{constructor(e,i,t,s,r,o,a=!1){super(e,i,o.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=t+i,a=i/o,l=Ae(e[0]);l.set("offset",0),r.push(l);let c=Ae(e[0]);c.set("offset",Rs(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let b=Ae(e[h]),_=b.get("offset"),m=i+_*t;b.set("offset",Rs(m/o)),r.push(b)}t=o,i=0,s="",e=r}return vi(this.element,e,this.preStyleProps,this.postStyleProps,t,i,s,!0)}};function Rs(n,e=3){let i=Math.pow(10,e-1);return Math.round(n*i)/i}function vo(n,e){let i=new Map,t;return n.forEach(s=>{if(s==="*"){t=t||e.keys();for(let r of t)i.set(r,Z)}else Ae(s,i)}),i}function Ps(n,e,i,t,s,r,o,a,l,c,d,h,b){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:b}}var Yt={},_t=class{constructor(e,i,t){this._triggerName=e,this.ast=i,this._stateStyles=t}match(e,i,t,s){return Eo(this.ast.matchers,e,i,t,s)}buildStyles(e,i,t){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(i,t):new Map}build(e,i,t,s,r,o,a,l,c,d){let h=[],b=this.ast.options&&this.ast.options.params||Yt,_=a&&a.params||Yt,m=this.buildStyles(t,_,h),f=l&&l.params||Yt,T=this.buildStyles(s,f,h),A=new Set,I=new Map,P=new Map,k=s==="void",ye={params:To(f,b),delay:this.ast.options?.delay},G=d?[]:Zs(e,i,this.ast.animation,r,o,m,T,ye,c,h),F=0;if(G.forEach(ee=>{F=Math.max(ee.duration+ee.delay,F)}),h.length)return Ps(i,this._triggerName,t,s,k,m,T,[],[],I,P,F,h);G.forEach(ee=>{let te=ee.element,Mi=K(I,te,new Set);ee.preStyleProps.forEach(ae=>Mi.add(ae));let De=K(P,te,new Set);ee.postStyleProps.forEach(ae=>De.add(ae)),te!==i&&A.add(te)});let J=ut(A.values());return Ps(i,this._triggerName,t,s,k,m,T,G,J,I,P,F)}};function Eo(n,e,i,t,s){return n.some(r=>r(e,i,t,s))}function To(n,e){let i=Ue(e);for(let t in n)n.hasOwnProperty(t)&&n[t]!=null&&(i[t]=n[t]);return i}var ci=class{constructor(e,i,t){this.styles=e,this.defaultParams=i,this.normalizer=t}buildStyles(e,i){let t=new Map,s=Ue(this.defaultParams);return Object.keys(e).forEach(r=>{let o=e[r];o!==null&&(s[r]=o)}),this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Fe(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),t.set(a,o)})}),t}};function wo(n,e,i){return new di(n,e,i)}var di=class{constructor(e,i,t){this.name=e,this.ast=i,this._normalizer=t,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new ci(s.style,r,t))}),Fs(this.states,"true","1"),Fs(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new _t(e,s,this.states))}),this.fallbackTransition=So(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,t,s){return this.transitionFactories.find(o=>o.match(e,i,t,s))||null}matchStyles(e,i,t){return this.fallbackTransition.buildStyles(e,i,t)}};function So(n,e,i){let r={type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0};return new _t(n,r,e)}function Fs(n,e,i){n.has(e)?n.has(i)||n.set(i,n.get(e)):n.has(i)&&n.set(e,n.get(i))}var Ao=new Le,hi=class{constructor(e,i,t){this.bodyNode=e,this._driver=i,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let t=[],s=[],r=Ys(this._driver,i,t,s);if(t.length)throw xr(t);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,i,t){let s=e.element,r=zs(this._normalizer,e.keyframes,i,t);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,i,t={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Zs(this._driver,i,r,Ws,ei,new Map,new Map,t,Ao,s),o.forEach(d=>{let h=K(a,d.element,new Map);d.postStyleProps.forEach(b=>h.set(b,null))})):(s.push(jr()),o=[]),s.length)throw Br(s);a.forEach((d,h)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(h,_,Z))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=oe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Ur(e);return i}listen(e,i,t,s){let r=gi(i,"","","");return pi(this._getPlayer(e),t,r,s),()=>{}}command(e,i,t,s){if(t=="register"){this.register(e,s[0]);return}if(t=="create"){let o=s[0]||{};this.create(e,i,o);return}let r=this._getPlayer(e);switch(t){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Io=".ng-animate-queued",Zt="ng-animate-disabled",Do=".ng-animate-disabled",Mo="ng-star-inserted",ko=".ng-star-inserted",Co=[],Xs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},No={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",xe=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let t=e&&e.hasOwnProperty("value"),s=t?e.value:e;if(this.value=Ro(s),t){let r=Ue(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let t=this.options.params;Object.keys(i).forEach(s=>{t[s]==null&&(t[s]=i[s])})}}},Pe="void",Xt=new xe(Pe),ui=class{constructor(e,i,t){this.id=e,this.hostElement=i,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,W(i,this._hostClassName)}listen(e,i,t,s){if(!this._triggers.has(i))throw zr(t,i);if(t==null||t.length==0)throw Kr(i);if(!Po(t))throw Vr(t,i);let r=K(this._elementListeners,e,[]),o={name:i,phase:t,callback:s};r.push(o);let a=K(this._engine.statesByElement,e,new Map);return a.has(i)||(W(e,rt),W(e,rt+"-"+i),a.set(i,Xt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw $r(e);return i}trigger(e,i,t,s=!0){let r=this._getTrigger(i),o=new je(this.id,i,e),a=this._engine.statesByElement.get(e);a||(W(e,rt),W(e,rt+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new xe(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Xt),!(c.value===Pe)&&l.value===c.value){if(!xo(l.params,c.params)){let f=[],T=r.matchStyles(l.value,l.params,f),A=r.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{ge(e,T),X(e,A)})}return}let b=K(this._engine.playersByElement,e,[]);b.forEach(f=>{f.namespaceId==this.id&&f.triggerName==i&&f.queued&&f.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!_){if(!s)return;_=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(W(e,Ls),o.onStart(()=>{Se(e,Ls)})),o.onDone(()=>{let f=this.players.indexOf(o);f>=0&&this.players.splice(f,1);let T=this._engine.playersByElement.get(e);if(T){let A=T.indexOf(o);A>=0&&T.splice(A,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,t)=>{this._elementListeners.set(t,i.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let t=this._engine.driver.query(e,dt,!0);t.forEach(s=>{if(s[Q])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,i,t,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Pe,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),t&&oe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(i&&t){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=t.get(o)||Xt,d=new xe(Pe),h=new je(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,i){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let s=!1;if(t.totalAnimations){let r=t.players.length?t.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(t.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)t.markElementAsRemoved(this.id,e,!1,i);else{let r=e[Q];(!r||r===Xs)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,i))}}insertNode(e,i){W(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(t=>{let s=t.player;if(s.destroyed)return;let r=t.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==t.triggerName){let l=gi(r,t.triggerName,t.fromState.value,t.toState.value);l._data=e,pi(t.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(t)}),this._queue=[],i.sort((t,s)=>{let r=t.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mi=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,t){this.bodyNode=e,this.driver=i,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,i){let t=new ui(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(t,i):(this.newHostElements.set(i,t),this.collectEnterElement(i)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,i){let t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||t.unshift(e)}else t.push(e);return s.set(i,e),e}register(e,i){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,i)),t}registerTrigger(e,i,t){let s=this._namespaceLookup[e];s&&s.register(i,t)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1),t.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,t=this.statesByElement.get(e);if(t){for(let s of t.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(e,i,t,s){if(lt(i)){let r=this._fetchNamespace(e);if(r)return r.trigger(i,t,s),!0}return!1}insertNode(e,i,t,s){if(!lt(i))return;let r=i[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,t)}s&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,Zt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Se(e,Zt))}removeNode(e,i,t){if(lt(i)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(i,t):this.markElementAsRemoved(e,i,!1,t);let r=this.namespacesByHostElement.get(i);r&&r.id!==e&&r.removeNode(i,t)}else this._onRemovalComplete(i,t)}markElementAsRemoved(e,i,t,s,r){this.collectedLeaveElements.push(i),i[Q]={namespaceId:e,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,i,t,s,r){return lt(i)?this._fetchNamespace(e).listen(i,t,s,r):()=>{}}_buildInstruction(e,i,t,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,s,e.fromState.options,e.toState.options,i,r)}destroyInnerAnimations(e){let i=this.driver.query(e,dt,!0);i.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,ti,!0),i.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Q];if(i&&i.setForRemoval){if(e[Q]=Xs,i.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Zt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Do,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let s=this.collectedEnterElements[t];W(s,Mo)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{i=this._flushAnimations(t,e)}finally{for(let s=0;s<t.length;s++)t[s]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let s=this.collectedLeaveElements[t];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],i.length?oe(i).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(e){throw Wr(e)}_flushAnimations(e,i){let t=new Le,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Io,!0);for(let g=0;g<p.length;g++)d.add(p[g])});let h=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=Bs(b,this.collectedEnterElements),m=new Map,f=0;_.forEach((u,p)=>{let g=Ws+f++;m.set(p,g),u.forEach(v=>W(v,g))});let T=[],A=new Set,I=new Set;for(let u=0;u<this.collectedLeaveElements.length;u++){let p=this.collectedLeaveElements[u],g=p[Q];g&&g.setForRemoval&&(T.push(p),A.add(p),g.hasAnimation?this.driver.query(p,ko,!0).forEach(v=>A.add(v)):I.add(p))}let P=new Map,k=Bs(b,Array.from(A));k.forEach((u,p)=>{let g=ei+f++;P.set(p,g),u.forEach(v=>W(v,g))}),e.push(()=>{_.forEach((u,p)=>{let g=m.get(p);u.forEach(v=>Se(v,g))}),k.forEach((u,p)=>{let g=P.get(p);u.forEach(v=>Se(v,g))}),T.forEach(u=>{this.processLeaveNode(u)})});let ye=[],G=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(i).forEach(g=>{let v=g.player,D=g.element;if(ye.push(v),this.collectedEnterElements.length){let O=D[Q];if(O&&O.setForMove){if(O.previousTriggersValues&&O.previousTriggersValues.has(g.triggerName)){let le=O.previousTriggersValues.get(g.triggerName),V=this.statesByElement.get(g.element);if(V&&V.has(g.triggerName)){let Ke=V.get(g.triggerName);Ke.value=le,V.set(g.triggerName,Ke)}}v.destroy();return}}let Y=!h||!this.driver.containsElement(h,D),B=P.get(D),ne=m.get(D),S=this._buildInstruction(g,t,ne,B,Y);if(S.errors&&S.errors.length){G.push(S);return}if(Y){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}if(g.isFallbackTransition){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}let Ni=[];S.timelines.forEach(O=>{O.stretchStartingKeyframe=!0,this.disabledNodes.has(O.element)||Ni.push(O)}),S.timelines=Ni,t.append(D,S.timelines);let pn={instruction:S,player:v,element:D};o.push(pn),S.queriedElements.forEach(O=>K(a,O,[]).push(v)),S.preStyleProps.forEach((O,le)=>{if(O.size){let V=l.get(le);V||l.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))}}),S.postStyleProps.forEach((O,le)=>{let V=c.get(le);V||c.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))})});if(G.length){let u=[];G.forEach(p=>{u.push(qr(p.triggerName,p.errors))}),ye.forEach(p=>p.destroy()),this.reportError(u)}let F=new Map,J=new Map;o.forEach(u=>{let p=u.element;t.has(p)&&(J.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,F))}),s.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(v=>{K(F,p,[]).push(v),v.destroy()})});let ee=T.filter(u=>Us(u,l,c)),te=new Map;js(te,this.driver,I,c,Z).forEach(u=>{Us(u,l,c)&&ee.push(u)});let De=new Map;_.forEach((u,p)=>{js(De,this.driver,new Set(u),l,Je)}),ee.forEach(u=>{let p=te.get(u),g=De.get(u);te.set(u,new Map([...p?.entries()??[],...g?.entries()??[]]))});let ae=[],ki=[],Ci={};o.forEach(u=>{let{element:p,player:g,instruction:v}=u;if(t.has(p)){if(d.has(p)){g.onDestroy(()=>X(p,v.toStyles)),g.disabled=!0,g.overrideTotalTime(v.totalTime),s.push(g);return}let D=Ci;if(J.size>1){let B=p,ne=[];for(;B=B.parentNode;){let S=J.get(B);if(S){D=S;break}ne.push(B)}ne.forEach(S=>J.set(S,D))}let Y=this._buildAnimation(g.namespaceId,v,F,r,De,te);if(g.setRealPlayer(Y),D===Ci)ae.push(g);else{let B=this.playersByElement.get(D);B&&B.length&&(g.parentPlayer=oe(B)),s.push(g)}}else ge(p,v.fromStyles),g.onDestroy(()=>X(p,v.toStyles)),ki.push(g),d.has(p)&&s.push(g)}),ki.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let g=oe(p);u.setRealPlayer(g)}}),s.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u<T.length;u++){let p=T[u],g=p[Q];if(Se(p,ei),g&&g.hasAnimation)continue;let v=[];if(a.size){let Y=a.get(p);Y&&Y.length&&v.push(...Y);let B=this.driver.query(p,ti,!0);for(let ne=0;ne<B.length;ne++){let S=a.get(B[ne]);S&&S.length&&v.push(...S)}}let D=v.filter(Y=>!Y.destroyed);D.length?Fo(this,p,D):this.processLeaveNode(p)}return T.length=0,ae.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,t,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Pe;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(t||s)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,i,t){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,d=c!==r,h=K(t,c,[]);this._getPreviousPlayers(c,d,o,a,i.toState).forEach(_=>{let m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),h.push(_)})}ge(r,i.fromStyles)}_buildAnimation(e,i,t,s,r,o){let a=i.triggerName,l=i.element,c=[],d=new Set,h=new Set,b=i.timelines.map(m=>{let f=m.element;d.add(f);let T=f[Q];if(T&&T.removedBeforeQueried)return new ve(m.duration,m.delay);let A=f!==l,I=Lo((t.get(f)||Co).map(F=>F.getRealPlayer())).filter(F=>{let J=F;return J.element?J.element===f:!1}),P=r.get(f),k=o.get(f),ye=zs(this._normalizer,m.keyframes,P,k),G=this._buildPlayer(m,ye,I);if(m.subTimeline&&s&&h.add(f),A){let F=new je(e,a,f);F.setRealPlayer(G),c.push(F)}return G});c.forEach(m=>{K(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Oo(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>W(m,Cs));let _=oe(b);return _.onDestroy(()=>{d.forEach(m=>Se(m,Cs)),X(l,i.toStyles)}),h.forEach(m=>{K(s,m,[]).push(_)}),_}_buildPlayer(e,i,t){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,t):new ve(e.duration,e.delay)}},je=class{constructor(e,i,t){this.namespaceId=e,this.triggerName=i,this.element=t,this._player=new ve,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,t)=>{i.forEach(s=>pi(e,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){K(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function Oo(n,e,i){let t=n.get(e);if(t){if(t.length){let s=t.indexOf(i);t.splice(s,1)}t.length==0&&n.delete(e)}return t}function Ro(n){return n??null}function lt(n){return n&&n.nodeType===1}function Po(n){return n=="start"||n=="done"}function xs(n,e){let i=n.style.display;return n.style.display=e??"none",i}function js(n,e,i,t,s){let r=[];i.forEach(l=>r.push(xs(l)));let o=[];t.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let b=e.computeStyle(c,h,s);d.set(h,b),(!b||b.length==0)&&(c[Q]=No,o.push(c))}),n.set(c,d)});let a=0;return i.forEach(l=>xs(l,r[a++])),o}function Bs(n,e){let i=new Map;if(n.forEach(a=>i.set(a,[])),e.length==0)return i;let t=1,s=new Set(e),r=new Map;function o(a){if(!a)return t;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=t:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==t&&i.get(l).push(a)}),i}function W(n,e){n.classList?.add(e)}function Se(n,e){n.classList?.remove(e)}function Fo(n,e,i){oe(i).onDone(()=>n.processLeaveNode(e))}function Lo(n){let e=[];return Js(n,e),e}function Js(n,e){for(let i=0;i<n.length;i++){let t=n[i];t instanceof Pt?Js(t.players,e):e.push(t)}}function xo(n,e){let i=Object.keys(n),t=Object.keys(e);if(i.length!=t.length)return!1;for(let s=0;s<i.length;s++){let r=i[s];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Us(n,e,i){let t=i.get(n);if(!t)return!1;let s=e.get(n);return s?t.forEach(r=>s.add(r)):e.set(n,t),i.delete(n),!0}var Ie=class{constructor(e,i,t){this._driver=i,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new mi(e.body,i,t),this._timelineEngine=new hi(e.body,i,t),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,i,t,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Ys(this._driver,r,l,c);if(l.length)throw Fr(s,l);c.length&&void 0,a=wo(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,t,s){this._transitionEngine.insertNode(e,i,t,s)}onRemove(e,i,t){this._transitionEngine.removeNode(e,i,t)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,t,s){if(t.charAt(0)=="@"){let[r,o]=Ms(t),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(e,i,t,s)}listen(e,i,t,s,r){if(t.charAt(0)=="@"){let[o,a]=Ms(t);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(e,i,t,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function jo(n,e){let i=null,t=null;return Array.isArray(e)&&e.length?(i=Jt(e[0]),e.length>1&&(t=Jt(e[e.length-1]))):e instanceof Map&&(i=Jt(e)),i||t?new Bo(n,i,t):null}var Bo=(()=>{let e=class e{constructor(t,s,r){this._element=t,this._startStyles=s,this._endStyles=r,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&X(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(X(this._element,this._initialStyles),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ge(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),X(this._element,this._initialStyles),this._state=3)}};e.initialStylesByElement=new WeakMap;let n=e;return n})();function Jt(n){let e=null;return n.forEach((i,t)=>{Uo(t)&&(e=e||new Map,e.set(t,i))}),e}function Uo(n){return n==="display"||n==="position"}var yt=class{constructor(e,i,t,s){this.element=e,this.keyframes=i,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(t=>{i.push(Object.fromEntries(t))}),i}_triggerWebAnimation(e,i,t){return e.animate(this._convertKeyframesToObject(i),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{s!=="offset"&&e.set(s,this._finished?t:Qs(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},bt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return Ks(e,i)}getParentElement(e){return _i(e)}query(e,i,t){return Vs(e,i,t)}computeStyle(e,i,t){return window.getComputedStyle(e)[i]}animate(e,i,t,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:t,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof yt);so(t,s)&&d.forEach(_=>{_.currentSnapshot.forEach((m,f)=>c.set(f,m))});let h=eo(i).map(_=>Ae(_));h=no(e,h,c);let b=jo(e,h);return new yt(e,h,l,b)}};var ct="@",en="@.disabled",vt=class{constructor(e,i,t,s){this.namespaceId=e,this.delegate=i,this.engine=t,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,t,s=!0){this.delegate.insertBefore(e,i,t),this.engine.onInsert(this.namespaceId,i,e,s)}removeChild(e,i,t){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,t,s){this.delegate.setAttribute(e,i,t,s)}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,t,s){this.delegate.setStyle(e,i,t,s)}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t)}setProperty(e,i,t){i.charAt(0)==ct&&i==en?this.disableAnimations(e,!!t):this.delegate.setProperty(e,i,t)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,t){return this.delegate.listen(e,i,t)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},fi=class extends vt{constructor(e,i,t,s,r){super(i,t,s,r),this.factory=e,this.namespaceId=i}setProperty(e,i,t){i.charAt(0)==ct?i.charAt(1)=="."&&i==en?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,i.slice(1),t):this.delegate.setProperty(e,i,t)}listen(e,i,t){if(i.charAt(0)==ct){let s=zo(e),r=i.slice(1),o="";return r.charAt(0)!=ct&&([r,o]=Ko(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,t,a)})}return this.delegate.listen(e,i,t)}};function zo(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ko(n){let e=n.indexOf("."),i=n.substring(0,e),t=n.slice(e+1);return[i,t]}var Et=class{constructor(e,i,t){this.delegate=e,this.engine=i,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,i){let t="",s=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let h=()=>c.delete(s);d=new vt(t,s,this.engine,h),c.set(s,d)}return d}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return i.data.animation.forEach(a),new fi(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,t){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(t));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([i,t])}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()}};var $o=(()=>{let e=class e extends Ie{constructor(t,s,r,o){super(t,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(y(L),y(Be),y(_e),y(is))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})();function Wo(){return new mt}function qo(n,e,i){return new Et(n,e,i)}var sn=[{provide:_e,useFactory:Wo},{provide:Ie,useClass:$o},{provide:qi,useFactory:qo,deps:[rs,Ie,j]}],tn=[{provide:Be,useFactory:()=>new bt},{provide:ie,useValue:"BrowserAnimations"},...sn],Ho=[{provide:Be,useClass:yi},{provide:ie,useValue:"NoopAnimations"},...sn],kl=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?Ho:tn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:tn,imports:[os]});let n=e;return n})();var Yo=["text"];function Zo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",6),n&2){let i=Xe();Qe("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function Xo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",7),n&2){let i=Xe();Qe("disabled",i.disabled)}}function Jo(n,e){if(n&1&&(kt(0,"span",8),Zi(1),Ct()),n&2){let i=Xe();ke(1),Xi("(",i.group.label,")")}}var ea=[[["mat-icon"]],"*"],ta=["mat-icon","*"];var Jl=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),ec=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function ia(){return!0}var sa=new x("mat-sanity-checks",{providedIn:"root",factory:ia}),wt=(()=>{let e=class e{constructor(t,s,r){this._sanityChecks=s,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return hs()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(s){return new(s||e)(y(qt),y(sa,8),y(L))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[Ht,Ht]});let n=e;return n})();function tc(n){return class extends n{get disabled(){return this._disabled}set disabled(e){this._disabled=jt(e)}constructor(...e){super(...e),this._disabled=!1}}}function ic(n,e){return class extends n{get color(){return this._color}set color(i){let t=i||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function sc(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=jt(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function nc(n,e=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=i!=null?us(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}function rc(n){return class extends n{updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,t=this.errorStateMatcher||this._defaultErrorStateMatcher,s=this.ngControl?this.ngControl.control:null,r=t.isErrorState(s,i);r!==e&&(this.errorState=r,this.stateChanges.next())}constructor(...e){super(...e),this.errorState=!1}}}function oc(n){return class extends n{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ve(i=>{this._isInitialized?this._notifySubscriber(i):this._pendingSubscribers.push(i)})}_markInitialized(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}var nn=new x("MAT_DATE_LOCALE",{providedIn:"root",factory:na});function na(){return U(ss)}var St=class{constructor(){this._localeChanges=new q,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,i){return this.getYear(e)-this.getYear(i)||this.getMonth(e)-this.getMonth(i)||this.getDate(e)-this.getDate(i)}sameDate(e,i){if(e&&i){let t=this.isValid(e),s=this.isValid(i);return t&&s?!this.compareDate(e,i):t==s}return e==i}clampDate(e,i,t){return i&&this.compareDate(e,i)<0?i:t&&this.compareDate(e,t)>0?t:e}},ra=new x("mat-date-formats"),oa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ei(n,e){let i=Array(n);for(let t=0;t<n;t++)i[t]=e(t);return i}var aa=(()=>{let e=class e extends St{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=U(nn,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let s=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Ei(12,r=>this._format(s,new Date(2017,r,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ei(31,s=>this._format(t,new Date(2017,0,s+1)))}getDayOfWeekNames(t){let s=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Ei(7,r=>this._format(s,new Date(2017,0,r+1)))}getYearName(t){let s=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(s,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,s,r){let o=this._createDateWithOverflow(t,s,r);return o.getMonth()!=s,o}today(){return new Date}parse(t,s){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,s){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Oi(R({},s),{timeZone:"utc"}));return this._format(r,t)}addCalendarYears(t,s){return this.addCalendarMonths(t,s*12)}addCalendarMonths(t,s){let r=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+s,this.getDate(t));return this.getMonth(r)!=((this.getMonth(t)+s)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(t,s){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+s)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(oa.test(t)){let s=new Date(t);if(this.isValid(s))return s}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,s,r){let o=new Date;return o.setFullYear(t,s,r),o.setHours(0,0,0,0),o}_2digit(t){return("00"+t).slice(-2)}_format(t,s){let r=new Date;return r.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),r.setUTCHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t.format(r)}};e.\u0275fac=function(s){return new(s||e)(y(nn,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),la={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ca=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:St,useClass:aa}]});let n=e;return n})(),ac=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:ra,useValue:la}],imports:[ca]});let n=e;return n})();var lc=(()=>{let e=class e{isErrorState(t,s){return!!(t&&t.invalid&&(t.touched||s&&s.submitted))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Si=class{constructor(e,i,t,s=!1){this._renderer=e,this.element=i,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}},rn=Te({passive:!0,capture:!0}),Ai=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=re(e);i&&this._events.get(e.type)?.forEach((t,s)=>{(s===i||s.contains(i))&&t.forEach(r=>r.handleEvent(e))})}}addHandler(e,i,t,s){let r=this._events.get(i);if(r){let o=r.get(t);o?o.add(s):r.set(t,new Set([s]))}else this._events.set(i,new Map([[t,new Set([s])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,rn)})}removeHandler(e,i,t){let s=this._events.get(e);if(!s)return;let r=s.get(i);r&&(r.delete(t),r.size===0&&s.delete(i),s.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,rn)))}},on={enterDuration:225,exitDuration:150},da=800,an=Te({passive:!0,capture:!0}),ln=["mousedown","touchstart"],cn=["mouseup","mouseleave","touchend","touchcancel"],ze=class ze{constructor(e,i,t,s){this._target=e,this._ngZone=i,this._platform=s,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ue(t))}fadeInRipple(e,i,t={}){let s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=R(R({},on),t.animation);t.centered&&(e=s.left+s.width/2,i=s.top+s.height/2);let o=t.radius||ha(e,i,s),a=e-s.left,l=i-s.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-o}px`,d.style.top=`${l-o}px`,d.style.height=`${o*2}px`,d.style.width=`${o*2}px`,t.color!=null&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let h=window.getComputedStyle(d),b=h.transitionProperty,_=h.transitionDuration,m=b==="none"||_==="0s"||_==="0s, 0s"||s.width===0&&s.height===0,f=new Si(this,d,t,m);d.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let T=null;return!m&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let A=()=>this._finishRippleTransition(f),I=()=>this._destroyRipple(f);d.addEventListener("transitionend",A),d.addEventListener("transitioncancel",I),T={onTransitionEnd:A,onTransitionCancel:I}}),this._activeRipples.set(f,T),(m||!c)&&this._finishRippleTransition(f),f}fadeOutRipple(e){if(e.state===2||e.state===3)return;let i=e.element,t=R(R({},on),e.config.animation);i.style.transitionDuration=`${t.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=ue(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,ln.forEach(t=>{ze._eventManager.addHandler(this._ngZone,t,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{cn.forEach(i=>{this._triggerElement.addEventListener(i,this,an)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===0?this._startFadeOutTransition(e):e.state===2&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=1,!t&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=$t(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+da;!this._target.rippleDisabled&&!i&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Wt(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let i=e.changedTouches;if(i)for(let t=0;t<i.length;t++)this.fadeInRipple(i[t].clientX,i[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let i=e.state===1||e.config.terminateOnPointerUp&&e.state===0;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ln.forEach(i=>ze._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&cn.forEach(i=>e.removeEventListener(i,this,an)))}};ze._eventManager=new Ai;var Ii=ze;function ha(n,e,i){let t=Math.max(Math.abs(n-i.left),Math.abs(n-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(t*t+s*s)}var mn=new x("mat-ripple-global-options"),fn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,s,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ii(this,s,t,r)}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:R(R(R({},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(t,s=0,r){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,s,R(R({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,R(R({},this.rippleConfig),t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(j),M($),M(mn,8),M(ie,8))},e.\u0275dir=ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(s,r){s&2&&Ge("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});let n=e;return n})(),ua=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt,wt]});let n=e;return n})(),ma=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(s){return new(s||e)(M(ie,8))},e.\u0275cmp=It({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(s,r){s&2&&Ge("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(s,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)}.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)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);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)}.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);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)}.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)}.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)}.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});let n=e;return n})(),fa=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt]});let n=e;return n})(),pa=new x("MAT_OPTION_PARENT_COMPONENT");var ga=new x("MatOptgroup");var _a=0,Di=class{constructor(e,i=!1){this.source=e,this.isUserInput=i}},cc=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,s,r,o){this._element=t,this._changeDetectorRef=s,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${_a++}`,this.onSelectionChange=new be,this._stateChanges=new q}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,s){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(s)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!et(t)&&(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Di(this,t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(Hi),M(pa,8),M(ga,8))},e.\u0275cmp=It({type:e,selectors:[["mat-option"]],viewQuery:function(s,r){if(s&1&&es(Yo,7),s&2){let o;Ji(o=ts())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(s,r){s&1&&Gi("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),s&2&&(Qi("id",r.id),Dt("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ge("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:["disabled","disabled",Ne]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Ce],ngContentSelectors:ta,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(s,r){s&1&&(Yi(ea),Mt(0,Zo,1,2,"mat-pseudo-checkbox",0),Nt(1),kt(2,"span",1,2),Nt(4,1),Ct(),Mt(5,Xo,1,1,"mat-pseudo-checkbox",3)(6,Jo,2,1,"span",4),Ze(7,"div",5)),s&2&&(Ye(0,r.multiple?0:-1),ke(5),Ye(5,!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),ke(1),Ye(6,r.group&&r.group._inert?6:-1),ke(1),Qe("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[fn,ma],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.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)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.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)}.mat-mdc-option.mdc-list-item{align-items:center}.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}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function dc(n,e,i){if(i.length){let t=e.toArray(),s=i.toArray(),r=0;for(let o=0;o<n+1;o++)t[o].group&&t[o].group===s[r]&&r++;return r}return 0}function hc(n,e,i,t){return n<i?n:n+e>i+t?Math.max(0,n-t+e):i}var uc=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ua,wt,fa]});let n=e;return n})(),dn={capture:!0},hn=["focus","click","mouseenter","touchstart"],Ti="mat-ripple-loader-uninitialized",wi="mat-ripple-loader-class-name",un="mat-ripple-loader-centered",Tt="mat-ripple-loader-disabled",mc=(()=>{let e=class e{constructor(){this._document=U(L,{optional:!0}),this._animationMode=U(ie,{optional:!0}),this._globalRippleOptions=U(mn,{optional:!0}),this._platform=U($),this._ngZone=U(j),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;let r=t.target.closest(`[${Ti}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let t of hn)this._document?.addEventListener(t,this._onInteraction,dn)})}ngOnDestroy(){let t=this._hosts.keys();for(let s of t)this.destroyRipple(s);for(let s of hn)this._document?.removeEventListener(s,this._onInteraction,dn)}configureRipple(t,s){t.setAttribute(Ti,""),(s.className||!t.hasAttribute(wi))&&t.setAttribute(wi,s.className||""),s.centered&&t.setAttribute(un,""),s.disabled&&t.setAttribute(Tt,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,s){let r=this._hosts.get(t);if(r){r.disabled=s;return}s?t.setAttribute(Tt,""):t.removeAttribute(Tt)}_createRipple(t){if(!this._document)return;let s=this._hosts.get(t);if(s)return s;t.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(wi)),t.append(r);let o=new fn(new H(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(un),o.disabled=t.hasAttribute(Tt),this.attachRipple(t,o),o}attachRipple(t,s){t.removeAttribute(Ti),this._hosts.set(t,s)}destroyRipple(t){let s=this._hosts.get(t);s&&(s.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();export{jt as a,us as b,Bt as c,Da as d,ue as e,Ma as f,et as g,$ as h,wa as i,Te as j,Sa as k,cs as l,ds as m,re as n,hs as o,kl as p,ms as q,zn as r,Kn as s,il as t,ys as u,bs as v,Vn as w,er as x,sl as y,$t as z,Wt as A,nl as B,cr as C,rl as D,ol as E,_l as F,Ht as G,Jl as H,ec as I,wt as J,tc as K,ic as L,sc as M,nc as N,rc as O,oc as P,nn as Q,St as R,ra as S,ac as T,lc as U,mn as V,fn as W,ua as X,pa as Y,ga as Z,cc as _,dc as $,hc as aa,uc as ba,mc as ca};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as be,E as Ce,F as Q,G as q,J as Ft,a as It,b as dt,c as Mt,d as _,e as ge,g as pt,h as I,j as ve,k as ye,n as At,o as Lt,t as we}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-EM7B4QFY.js";import{c as ce,h as de,i as pe,j as fe,k as ue,l as _e,u as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-PX3OVSRI.js";import{$ as b,$a as F,A as Jt,Aa as at,B as it,Ba as S,D as wt,Fa as T,Ga as f,Gb as ht,Hb as Dt,I as st,Ia as Ct,Ib as Pt,Ja as E,Ka as D,Kb as Tt,La as xt,Lc as he,Ma as St,Oa as V,Pa as Et,Pb as ne,Qa as lt,Sb as N,Ta as j,Ua as Rt,V as x,Vb as C,W as te,Wb as re,Xb as ae,Za as g,_a as v,_b as le,a as A,aa as R,ab as ee,b as Qt,ba as Z,bb as ie,c as w,ca as c,d as qt,da as ot,db as kt,ea as U,fa as k,fc as ct,ga as L,hb as B,ia as bt,ja as H,jb as z,ka as X,kb as Ot,lb as $,n as yt,pb as G,qb as se,rb as oe,sa as nt,va as rt,x as Kt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";import{a as P,b as Gt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-GLK7UGZJ.js";var xe=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,o,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new w,o&&o.length&&(t?o.forEach(s=>this._markSelected(s)):this._markSelected(o[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}setSelection(...t){this._verifyValueAssignment(t);let o=this.selected,e=new Set(t);t.forEach(s=>this._markSelected(s)),o.filter(s=>!e.has(s)).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let o=this._hasQueuedChanges();return t&&this._emitChangeEvent(),o}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let o of this._selection)if(this.compareWith(t,o))return o;return t}else return t}};var Ri=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ze=20,K=(()=>{let t=class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new w,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Ze){return this._platform.isBrowser?new Qt(i=>{this._globalSubscription||this._addGlobalListener();let s=e>0?this._scrolled.pipe(wt(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):yt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(it(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=ge(i),r=e.getElementRef().nativeElement;do if(s==r)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Kt(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(D),c(I),c(C,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ue=20,ut=(()=>{let t=class t{constructor(e,i,s){this._platform=e,this._change=new w,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}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:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,l=-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:a,left:l}}change(e=Ue){return e>0?this._change.pipe(wt(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}}};t.\u0275fac=function(i){return new(i||t)(c(I),c(D),c(C,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ft=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=R({});let n=t;return n})(),Bt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=R({imports:[q,ft,q,ft]});let n=t;return n})();var J=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},tt=class extends J{constructor(t,o,e,i,s){super(),this.component=t,this.viewContainerRef=o,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=s}},et=class extends J{constructor(t,o,e,i){super(),this.templateRef=t,this.viewContainerRef=o,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,o=this.context){return this.context=o,super.attach(t)}detach(){return this.context=void 0,super.detach()}},Vt=class extends J{constructor(t){super(),this.element=t instanceof S?t.nativeElement:t}},_t=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof tt)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof et)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof Vt)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var mt=class extends _t{constructor(t,o,e,i,s){super(),this.outletElement=t,this._componentFactoryResolver=o,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||nt.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let o=t.viewContainerRef,e=o.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=o.indexOf(e);i!==-1&&o.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Gi=(()=>{let t=class t extends _t{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new E,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let l=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}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)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(f(at),f(j),f(C))},t.\u0275dir=L({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[xt]});let n=t;return n})();var Ee=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=R({});let n=t;return n})();var Re=ye(),jt=class{constructor(t,o){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_(-this._previousScrollPosition.left),t.style.top=_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,o=this._document.body,e=t.style,i=o.style,s=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Re&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Re&&(e.scrollBehavior=s,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let o=this._document.body,e=this._viewportRuler.getViewportSize();return o.scrollHeight>e.height||o.scrollWidth>e.width}};var zt=class{constructor(t,o,e,i){this._scrollDispatcher=t,this._ngZone=o,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(it(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},gt=class{enable(){}disable(){}attach(){}};function Nt(n,t){return t.some(o=>{let e=n.bottom<o.top,i=n.top>o.bottom,s=n.right<o.left,r=n.left>o.right;return e||i||s||r})}function ke(n,t){return t.some(o=>{let e=n.top<o.top,i=n.bottom>o.bottom,s=n.left<o.left,r=n.right>o.right;return e||i||s||r})}var Yt=class{constructor(t,o,e,i){this._scrollDispatcher=t,this._viewportRuler=o,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Nt(o,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Qe=(()=>{let t=class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new gt,this.close=a=>new zt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new jt(this._viewportRuler,this._document),this.reposition=a=>new Yt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(c(K),c(ut),c(D),c(C))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),vt=class{constructor(t){if(this.scrollStrategy=new gt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let o=Object.keys(t);for(let e of o)t[e]!==void 0&&(this[e]=t[e])}}};var Ht=class{constructor(t,o){this.connectionPair=t,this.scrollableViewProperties=o}};var Me=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(C))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),qe=(()=>{let t=class t extends Me{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=s=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let l=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(D,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ke=(()=>{let t=class t extends Me{constructor(e,i,s){super(e),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=At(r)},this._clickListener=r=>{let a=At(r),l=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){let p=d[h];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(l))break;let y=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>y.next(r)):y.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(I),c(D,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ae=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Lt()){let s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<s.length;r++)s[r].remove()}let i=this._document.createElement("div");i.classList.add(e),Lt()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}};t.\u0275fac=function(i){return new(i||t)(c(C),c(I))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xt=class{constructor(t,o,e,i,s,r,a,l,d,h=!1){this._portalOutlet=t,this._host=o,this._pane=e,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._backdropElement=null,this._backdropClick=new w,this._attachments=new w,this._detachments=new w,this._locationChanges=A.EMPTY,this._backdropClickHandler=p=>this._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new w,this._outsidePointerEvents=new w,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let o=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(st(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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 o?.onDestroy=="function"&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=P(P({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Gt(P({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=_(this._config.width),t.height=_(this._config.height),t.minWidth=_(this._config.minWidth),t.minHeight=_(this._config.minHeight),t.maxWidth=_(this._config.maxWidth),t.maxHeight=_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,o,e){let i=Mt(o||[]).filter(s=>!!s);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let t=this._ngZone.onStable.pipe(x(Jt(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()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Oe="cdk-overlay-connected-position-bounding-box",Je=/([A-Za-z%]+)$/,Wt=class{get positions(){return this._preferredPositions}constructor(t,o,e,i,s){this._viewportRuler=o,this._document=e,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w,this._resizeSubscription=A.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Oe),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,o=this._overlayRect,e=this._viewportRect,i=this._containerRect,s=[],r;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(l,o,a),h=this._getOverlayFit(d,o,e,a);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(h,d,e)){s.push({position:a,origin:l,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:d,originPoint:l,position:a,overlayRect:o})}if(s.length){let a=null,l=-1;for(let d of s){let h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>l&&(l=h,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Y(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Oe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let o=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,o)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,o,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}o.left<0&&(i-=o.left);let s;return e.originY=="center"?s=t.top+t.height/2:s=e.originY=="top"?t.top:t.bottom,o.top<0&&(s-=o.top),{x:i,y:s}}_getOverlayPoint(t,o,e){let i;e.overlayX=="center"?i=-o.width/2:e.overlayX==="start"?i=this._isRtl()?-o.width:0:i=this._isRtl()?0:-o.width;let s;return e.overlayY=="center"?s=-o.height/2:s=e.overlayY=="top"?0:-o.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,o,e,i){let s=Pe(o),{x:r,y:a}=t,l=this._getOffset(i,"x"),d=this._getOffset(i,"y");l&&(r+=l),d&&(a+=d);let h=0-r,p=r+s.width-e.width,y=0-a,u=a+s.height-e.height,m=this._subtractOverflows(s.width,h,p),O=this._subtractOverflows(s.height,y,u),$t=m*O;return{visibleArea:$t,isCompletelyWithinViewport:s.width*s.height===$t,fitsInViewportVertically:O===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(t,o,e){if(this._hasFlexibleDimensions){let i=e.bottom-o.y,s=e.right-o.x,r=De(this._overlayRef.getConfig().minHeight),a=De(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||r!=null&&r<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=s;return l&&d}return!1}_pushOverlayOnScreen(t,o,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=Pe(o),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),a=Math.max(t.y+i.height-s.height,0),l=Math.max(s.top-e.top-t.y,0),d=Math.max(s.left-e.left-t.x,0),h=0,p=0;return i.width<=s.width?h=d||-r:h=t.x<this._viewportMargin?s.left-e.left-t.x:0,i.height<=s.height?p=l||-a:p=t.y<this._viewportMargin?s.top-e.top-t.y:0,this._previousPushAmount={x:h,y:p},{x:t.x+h,y:t.y+p}}_applyPosition(t,o){if(this._setTransformOrigin(t),this._setOverlayElementStyles(o,t),this._setBoundingBoxStyles(o,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){let e=this._getScrollVisibility(),i=new Ht(t,e);this._positionChanges.next(i)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let o=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,i=t.overlayY;t.overlayX==="center"?e="center":this._isRtl()?e=t.overlayX==="start"?"right":"left":e=t.overlayX==="start"?"left":"right";for(let s=0;s<o.length;s++)o[s].style.transformOrigin=`${e} ${i}`}_calculateBoundingBoxRect(t,o){let e=this._viewportRect,i=this._isRtl(),s,r,a;if(o.overlayY==="top")r=t.y,s=e.height-r+this._viewportMargin;else if(o.overlayY==="bottom")a=e.height-t.y+this._viewportMargin*2,s=e.height-a+this._viewportMargin;else{let u=Math.min(e.bottom-t.y+e.top,t.y),m=this._lastBoundingBoxSize.height;s=u*2,r=t.y-u,s>m&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-m/2)}let l=o.overlayX==="start"&&!i||o.overlayX==="end"&&i,d=o.overlayX==="end"&&!i||o.overlayX==="start"&&i,h,p,y;if(d)y=e.width-t.x+this._viewportMargin,h=t.x-this._viewportMargin;else if(l)p=t.x,h=e.right-t.x;else{let u=Math.min(e.right-t.x+e.left,t.x),m=this._lastBoundingBoxSize.width;h=u*2,p=t.x-u,h>m&&!this._isInitialRender&&!this._growAfterOpen&&(p=t.x-m/2)}return{top:r,left:p,bottom:a,right:y,width:h,height:s}}_setBoundingBoxStyles(t,o){let e=this._calculateBoundingBoxRect(t,o);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=_(e.height),i.top=_(e.top),i.bottom=_(e.bottom),i.width=_(e.width),i.left=_(e.left),i.right=_(e.right),o.overlayX==="center"?i.alignItems="center":i.alignItems=o.overlayX==="end"?"flex-end":"flex-start",o.overlayY==="center"?i.justifyContent="center":i.justifyContent=o.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=_(s)),r&&(i.maxWidth=_(r))}this._lastBoundingBoxSize=e,Y(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Y(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Y(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,o){let e={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let h=this._viewportRuler.getViewportScrollPosition();Y(e,this._getExactOverlayY(o,t,h)),Y(e,this._getExactOverlayX(o,t,h))}else e.position="static";let a="",l=this._getOffset(o,"x"),d=this._getOffset(o,"y");l&&(a+=`translateX(${l}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=_(r.maxHeight):s&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=_(r.maxWidth):s&&(e.maxWidth="")),Y(this._pane.style,e)}_getExactOverlayY(t,o,e){let i={top:"",bottom:""},s=this._getOverlayPoint(o,this._overlayRect,t);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(s.y+this._overlayRect.height)}px`}else i.top=_(s.y);return i}_getExactOverlayX(t,o,e){let i={left:"",right:""},s=this._getOverlayPoint(o,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(s.x+this._overlayRect.width)}px`}else i.left=_(s.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),o=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ke(t,e),isOriginOutsideView:Nt(t,e),isOverlayClipped:ke(o,e),isOverlayOutsideView:Nt(o,e)}}_subtractOverflows(t,...o){return o.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+o-this._viewportMargin,width:t-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,o){return o==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Mt(t).forEach(o=>{o!==""&&this._appliedPanelClasses.indexOf(o)===-1&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof S)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let o=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+o,height:e,width:o}}};function Y(n,t){for(let o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}function De(n){if(typeof n!="number"&&n!=null){let[t,o]=n.split(Je);return!o||o==="px"?parseFloat(t):null}return n||null}function Pe(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}var Te="cdk-global-overlay-wrapper",Zt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let o=t.getConfig();this._overlayRef=t,this._width&&!o.width&&t.updateSize({width:this._width}),this._height&&!o.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Te),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:a}=e,l=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,p=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",u="",m="",O="";l?O="flex-start":h==="center"?(O="center",y?m=p:u=p):y?h==="left"||h==="end"?(O="flex-end",u=p):(h==="right"||h==="start")&&(O="flex-start",m=p):h==="left"||h==="start"?(O="flex-start",u=p):(h==="right"||h==="end")&&(O="flex-end",m=p),t.position=this._cssPosition,t.marginLeft=l?"0":u,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":m,o.justifyContent=O,o.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,e=o.style;o.classList.remove(Te),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},ti=(()=>{let t=class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new Zt}flexibleConnectedTo(e){return new Wt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c(ut),c(C),c(I),c(Ae))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ei=0,M=(()=>{let t=class t{constructor(e,i,s,r,a,l,d,h,p,y,u,m){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=l,this._ngZone=d,this._document=h,this._directionality=p,this._location=y,this._outsideClickDispatcher=u,this._animationsModuleType=m}create(e){let i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),a=new vt(e);return a.direction=a.direction||this._directionality.value,new Xt(r,i,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${ei++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ne)),new mt(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(Qe),c(Ae),c(at),c(ti),c(qe),c(nt),c(D),c(C),c(Q),c(re),c(Ke),c(rt,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ii=[{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"}],Le=new Z("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=ot(M);return()=>n.scrollStrategies.reposition()}}),si=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(f(S))},t.\u0275dir=L({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let n=t;return n})(),_s=(()=>{let t=class t{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)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,s,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=A.EMPTY,this._attachSubscription=A.EMPTY,this._detachSubscription=A.EMPTY,this._positionSubscription=A.EMPTY,this._disposeOnNavigation=!1,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new E,this.positionChange=new E,this.attach=new E,this.detach=new E,this.overlayKeydown=new E,this.overlayOutsideClick=new E,this._templatePortal=new et(i,s),this._scrollStrategyFactory=r,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=ii);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(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!pt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new vt({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).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._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof si?this.origin.elementRef:this.origin}_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(te(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(f(M),f(ht),f(j),f(Le),f(Q,8))},t.\u0275dir=L({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop",N],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition",N],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",N],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen",N],push:["cdkConnectedOverlayPush","push",N],disposeOnNavigation:["cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",N]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[St,bt]});let n=t;return n})();function oi(n){return()=>n.scrollStrategies.reposition()}var ni={provide:Le,deps:[M],useFactory:oi},Fe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=R({providers:[M,ni],imports:[q,Ee,Bt,Bt]});let n=t;return n})();var ai=["tooltip"],je=20;var ze=new Z("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=ot(M);return()=>n.scrollStrategies.reposition({scrollThrottle:je})}});function li(n){return()=>n.scrollStrategies.reposition({scrollThrottle:je})}var hi={provide:ze,deps:[M],useFactory:li};function ci(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var di=new Z("mat-tooltip-default-options",{providedIn:"root",factory:ci});var Be="tooltip-panel",Ve=ve({passive:!0}),pi=500,fi=8,ui=8,_i=24,mi=200,Ne=(()=>{let t=class t{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=It(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=It(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=dt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=dt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,s,r,a,l,d,h,p,y,u,m){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=r,this._ngZone=a,this._platform=l,this._ariaDescriber=d,this._focusMonitor=h,this._dir=y,this._defaultOptions=u,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=gi,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new w,this._scrollStrategy=p,this._document=m,u&&(this._showDelay=u.showDelay,this._hideDelay=u.hideDelay,u.position&&(this.position=u.position),u.positionAtOrigin&&(this.positionAtOrigin=u.positionAtOrigin),u.touchGestures&&(this.touchGestures=u.touchGestures)),y.change.pipe(x(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=fi}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(x(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,Ve)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let s=this._createOverlay(i);this._detach(),this._portal=this._portal||new tt(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=s.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof S)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return s.positionChanges.pipe(x(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${Be}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(x(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(x(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&r.keyCode===27&&!pt(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,s=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(P(P({},s.main),r.main)),this._addOffset(P(P({},s.fallback),r.fallback))])}_addOffset(e){let i=ui,s=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=s?-i:i:e.originX==="end"&&(e.offsetX=s?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,s;i=="above"||i=="below"?s={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?s={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(s={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,s;i=="above"?s={overlayX:"center",overlayY:"bottom"}:i=="below"?s={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?s={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(s={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(st(1),x(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:s,originY:r}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=s==="end"?"left":"right":a=s==="start"?"left":"right":a=i==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let l=this._overlayRef;if(l){let d=`${this._cssClassPrefix}-${Be}-`;l.removePanelClass(d+this._currentPosition),l.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],s=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),pi)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let s=i.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,Ve)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,s=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),(e==="on"||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}};t.\u0275fac=function(i){return new(i||t)(f(M),f(S),f(K),f(j),f(D),f(I),f(we),f(be),f(ze),f(Q),f(di,8),f(C))},t.\u0275dir=L({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,s){i&2&<("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]});let n=t;return n})(),gi=(()=>{let t=class t{constructor(e,i,s){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new w,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=s==="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>_i&&e.width>=mi}_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 i=this._tooltip.nativeElement,s=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:s),i.classList.add(e?s:r),this._isVisible=e,e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}};t.\u0275fac=function(i){return new(i||t)(f(Ct),f(S),f(rt,8))},t.\u0275cmp=U({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,s){if(i&1&&Pt(ai,7),i&2){let r;Dt(r=Tt())&&(s._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,s){i&1&&B("mouseleave",function(a){return s._handleMouseLeave(a)}),i&2&&Et("zoom",s.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,s){i&1&&(g(0,"div",0,1),B("animationend",function(a){return s._handleAnimationEnd(a)}),g(2,"div",2),G(3),v()()),i&2&&(lt("mdc-tooltip--multiline",s._isMultiline),V("ngClass",s.tooltipClass),T(3),se(s.message))},dependencies:[ae],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.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}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{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);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.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-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});let n=t;return n})();var Ye=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=R({providers:[hi],imports:[Ce,ct,Fe,Ft,Ft,ft]});let n=t;return n})();var He=(()=>{let t=class t{toggleSidebar(){this._toggleState.next(!this._toggleState.value)}constructor(){this._toggleState=new qt(!1),this.toggleState$=this._toggleState.asObservable()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function wi(n,t){if(n&1){let o=kt();ee(0),g(1,"div",18)(2,"input",19),B("ngModelChange",function(i){H(o);let s=z();return X(s.text=i)})("keyup",function(){H(o);let i=z();return X(i.onTextChange())})("keyup.enter",function(){H(o);let i=z();return X(i.submit())}),v(),g(3,"div")(4,"button",20),B("click",function(){H(o);let i=z();return X(i.submit())}),F(5,"i",21),v()()(),ie()}if(n&2){let o=z();T(2),V("ngModel",o.text)("placeholder",o.searchBoxPlaceHolder)}}function bi(n,t){if(n&1){let o=kt();g(0,"div",22)(1,"a",23)(2,"i",24),F(3,"i",25),v()(),g(4,"form",26),$(5,2),g(6,"button",27),B("click",function(){H(o);let i=z();return X(i.submit())}),F(7,"i",28),G(8,"Search "),v()()()}}var Ci=[[["actions"]],[["content"]],[["filters"]]],xi=["actions","content","filters"],eo=(()=>{let t=class t{constructor(e){this.sidebarService=e,this.onSubmit=new E,this.textChange=new E,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(e){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(e)}toggledropdown(e){e.stopPropagation()}getMenuNameByUrl(e){var i=e.split("#");if(i.length>1){var s=i[1],r=s.split("/");return r[0]!=""?r[0]:r[1]}return e}toggleMenu(){this.sidebarService.toggleSidebar()}};t.\u0275fac=function(i){return new(i||t)(f(He))},t.\u0275cmp=U({type:t,selectors:[["mainpanel"]],inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside",description:"description"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:xi,decls:26,vars:4,consts:[[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",2,"margin-right","0px !important",3,"matTooltip"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0","ms-5",2,"padding-left","0px"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","dropdown text-secondary ps-5",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content","d-block","d-print-none"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModel","placeholder","ngModelChange","keyup","keyup.enter"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"dropdown","text-secondary","ps-5"],["id","dropdown-filter","role","button","data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"text-muted","h5"],[1,"fa","fa-filter"],[1,"fa-solid","fa-caret-down"],[1,"dropdown-menu",2,"left","auto !important"],["title","Click to filter!",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search","pointer","me-1"]],template:function(i,s){i&1&&(Ot(Ci),g(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),G(4),v()(),g(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),Rt(10,wi,6,2,"ng-container",7),v()(),Rt(11,bi,9,0,"div",8),v()()(),g(12,"div",9)(13,"button",10),F(14,"i",11),v(),g(15,"button",12),F(16,"i",13),v(),g(17,"button",14),B("click",function(){return s.toggleMenu()}),F(18,"span",15)(19,"span",15)(20,"span",15),v()(),g(21,"div",16),$(22),v()()(),g(23,"div",17)(24,"div"),$(25,1),v()()),i&2&&(T(3),V("matTooltip",s.description?s.description:""),T(1),oe(" ",s.headerTitle," "),T(6),V("ngIf",!s.hideSearchBox),T(1),V("ngIf",!s.hideSearchDropdown))},dependencies:[le,_e,ce,de,pe,ue,fe,Ne],styles:[`.dropdown .dropdown-menu.show{top:100%!important;transform:none!important;z-index:10000;cursor:pointer}.search-box .dropdown-menu{border-radius:4px!important;margin:-5px 0 0!important;padding:10px}.search-box .dropdown-menu div.d-flex>div:not(:last-child){margin-right:10px}.search-box .dropdown-menu div[container]{width:200px}.search-box .dropdown-menu div[container]>div{margin:0 0 12px}.search-box .dropdown-menu div[container]>div>h6{margin-bottom:5px}.search-box .dropdown-menu div[container]>div>input,.search-box .dropdown-menu div[container]>div>select{width:100%;padding:7px 5px 6px;border:solid 1px #ddd}.search-box .dropdown-menu div[container]>div>input[datepicker]{width:95px}.search-box .dropdown-menu div[container]>div radioyesnob ul{margin:10px 0 0}.search-box .dropdown-menu .more{background-color:#fff;position:absolute;bottom:-15px;width:5rem}.search-box .dropdown-menu div[container]>div>h6{font-size:12px}.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}
|
|
2
|
+
`],encapsulation:2});let n=t;return n})(),io=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=R({imports:[ct,me,he,Ye]});let n=t;return n})();export{He as a,xe as b,Ri as c,K as d,ut as e,ft as f,tt as g,et as h,_t as i,Gi as j,Ee as k,vt as l,Ae as m,Xt as n,Wt as o,M as p,si as q,_s as r,Fe as s,Ne as t,Ye as u,eo as v,io as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as D,e as H,f as B,g as K}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.
|
|
1
|
+
import{d as D,e as H,f as B,g as K}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-TZXECYID.js";import{$a as M,Fa as a,Ja as b,Oa as r,Pa as O,Sa as v,Ua as _,Xb as V,Za as l,_a as c,_b as F,db as u,ea as w,fc as j,hb as f,ja as p,jb as s,ka as g,kb as P,lb as h,pb as C,qb as T,rb as I,ub as S,wb as E,xb as y,ya as k}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";var m=function(t){return t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error",t}(m||{});var x=class{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=m.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}};function L(t,n){if(t&1){let e=u();l(0,"div",9),f("click",function(){p(e);let i=s();return g(i.onBack.emit())}),l(1,"a",10),M(2,"i",11),c()()}}function W(t,n){if(t&1){let e=u();l(0,"div",12)(1,"a",13),f("click",function(){p(e);let i=s();return g(i.onCancel.emit())}),M(2,"i",14),c()()}}function A(t,n){t&1&&h(0,2,["*ngIf","more"])}function z(t,n){if(t&1){let e=u();l(0,"a",19),f("click",function(){p(e);let i=s(2);return g(i.more=!i.more)}),C(1,"More"),c()}}function q(t,n){if(t&1){let e=u();l(0,"button",20),f("click",function(){p(e);let i=s(2);return g(i.onCancel.emit())}),C(1),c()}if(t&2){let e=s(2);a(1),I(" ",e.config.cancelText?e.config.cancelText:"CANCEL","")}}function G(t,n){if(t&1){let e=u();l(0,"button",21),f("click",function(){p(e);let i=s(2);return g(i.onOk.emit())})("keyup.F2",function(){p(e);let i=s(2);return g(i.onOk.emit())}),c()}if(t&2){let e=s(2);r("disabled",!e.config.validated||!e.dynamicValidated)("innerHTML",e.config.okText?e.config.okText:"OK",k)}}function J(t,n){if(t&1&&(l(0,"mat-dialog-actions",15),_(1,z,2,0,"a",16),h(2,3),_(3,q,2,1,"button",17)(4,G,1,2,"button",18),c()),t&2){let e=s();a(1),r("ngIf",e.config.showMoreButton),a(2),r("ngIf",!e.config.hideCancel),a(1),r("ngIf",!e.config.hideOk)}}var Q=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],R=(t,n)=>({bodyScrollable:t,hideScrollbar:n}),U=t=>({"mx-auto":t}),X=(t,n)=>({"show-footer":t,"p-0":n}),Y=["[header]","[content]","[more-content]","[footer]"],gt=(()=>{let n=class n{constructor(){this.dynamicValidated=!0,this.onOk=new b,this.onCancel=new b,this.onClose=new b,this.onBack=new b,this.term="",this.more=!1}ngOnInit(){switch(this.config==null&&(this.config=new x),this.config.headerType){case m.Success:this.background="bg-success";break;case m.Warning:this.background="bg-warning";break;case m.Info:this.background="bg-warning";break;case m.Error:this.background="bg-danger";break;default:this.background="";break}}onKeyup(d){this.config.disableKeyup||(d.code=="F2"&&this.onOk.emit("F2"),(d.code=="Enter"||d.code=="NumpadEnter")&&this.onOk.emit("Enter"))}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=w({type:n,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},standalone:!0,features:[S],ngContentSelectors:Y,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer d-print-none",3,"click",4,"ngIf"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal","text-white"],["class","ps-3",4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],[4,"ngIf"],["class","w-100 mt-10 py-7 border-top d-flex justify-content-end d-print-none",4,"ngIf"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"ps-3"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"w-100","mt-10","py-7","border-top","d-flex","justify-content-end","d-print-none"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3 py-8",3,"click",4,"ngIf"],["style","width: 70px;","class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3 py-8","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3","py-8",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",2,"width","70px",3,"disabled","innerHTML","click","keyup.F2"]],template:function(i,o){i&1&&(P(Q),l(0,"div",0),f("keyup",function(N){return o.onKeyup(N)}),l(1,"div",1),_(2,L,3,0,"div",2),l(3,"div",3)(4,"h3",4),C(5),c(),h(6),c(),_(7,W,3,0,"div",5),c(),l(8,"mat-dialog-content",6),h(9,1),_(10,A,1,0,"ng-content",7),c(),_(11,J,5,3,"mat-dialog-actions",8),c()),i&2&&(O("width",o.config.customWidth),r("ngClass",y(13,R,o.config.bodyScrollable,o.config.hideScrollbar)),a(1),v("d-flex w-100 justify-content-between modal-header position-relative ",o.background,""),a(1),r("ngIf",o.config.eMoney),a(1),r("ngClass",E(16,U,o.config.eMoney)),a(2),T(o.config.title),a(2),r("ngIf",!o.config.hideClose),a(1),r("ngClass",y(18,X,!o.config.hideFooter,o.config.noPadding)),a(2),r("ngIf",o.more),a(1),r("ngIf",!o.config.hideFooter))},dependencies:[j,V,F,K,D,B,H],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]});let t=n;return t})();export{m as a,x as b,gt as c};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as ee,b as ne,c as ie,d as oe,e as re,f as ae}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-DM4BNQ56.js";import{b as te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-ZJLKBG2A.js";import{c as q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-MH5CTSJJ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-RNJKRELB.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-E2YL3IRQ.js";import{a as Y,b as Z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-OJCFIUAX.js";import{e as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-OPU2YPBG.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3IPEE6XU.js";import{a as J}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-VZVPXWTV.js";import{v as Q,w as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-ESASEBJL.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-EM7B4QFY.js";import{c as W,h as z,k as G,u as K}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-PX3OVSRI.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-NFCTGNSM.js";import{$ as T,$a as d,$b as P,Fa as l,Ga as E,Hc as H,Ja as O,Jc as j,Lc as $,Oa as p,Ua as c,Za as o,Zb as w,_a as a,_b as R,aa as N,ab as u,bb as f,ca as U,db as y,ea as h,fa as k,fc as A,hb as _,ja as S,jb as g,ka as v,ob as C,pb as m,qb as F,rb as L,tb as B,wb as b,ya as M}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-GLK7UGZJ.js";var de=e=>[e];function ue(e,t){if(e&1&&(u(0),o(1,"a",9),m(2),a(),f()),e&2){let s=t.$implicit;l(1),p("routerLink",b(2,de,s.url)),l(1),L(" ",s.title,"")}}var pe=(()=>{let t=class t{constructor(){this.tabs=[{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}],this.moreMenu=[{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=h({type:t,selectors:[["app-download"]],decls:12,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[4,"ngFor","ngForOf"],[1,"dropdown-item",3,"routerLink"]],template:function(i,r){i&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),d(3,"nav-tab",2),a()(),o(4,"div")(5,"div",3)(6,"a",4),d(7,"i",5),a(),o(8,"div",6)(9,"div",7),c(10,ue,3,4,"ng-container",8),a()()()()(),d(11,"router-outlet")),i&2&&(l(3),p("Tabs",r.tabs),l(7),p("ngForOf",r.moreMenu))},dependencies:[w,Y,H,j]});let e=t;return e})();var I=(()=>{let t=class t{constructor(n){this.httpService=n}download(n){let i="/api/Product/downloadurl";return this.httpService.post(i,n)}};t.\u0275fac=function(i){return new(i||t)(U(V))},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ge(e,t){if(e&1&&(o(0,"th"),m(1),a()),e&2){let s=t.$implicit;l(1),F(s.column)}}function _e(e,t){if(e&1&&(u(0),o(1,"td"),d(2,"span",6),a(),f()),e&2){let s=t.$implicit,n=g().$implicit;l(2),p("innerHTML",n[s.prop],M)}}var he=e=>({"background-color":e});function Se(e,t){if(e&1&&(o(0,"tr",5),c(1,_e,3,1,"ng-container",3),a()),e&2){let s=t.$implicit,n=g();p("ngStyle",b(2,he,s.Status>200?"#F4D6D5":"#DEE9C9")),l(1),p("ngForOf",n.configs)}}var se=(()=>{let t=class t{constructor(){this.eventClose=new O}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=h({type:t,selectors:[["app-response-api-list"]],inputs:{configs:"configs",data:"data",status:"status"},outputs:{eventClose:"onClose"},decls:7,vars:2,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"innerHTML"]],template:function(i,r){i&1&&(o(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),c(4,ge,2,1,"th",3),a()(),o(5,"tbody"),c(6,Se,2,4,"tr",4),a()()()),i&2&&(l(4),p("ngForOf",r.configs),l(2),p("ngForOf",r.data))},dependencies:[w,P]});let e=t;return e})();function ye(e,t){if(e&1){let s=y();u(0),o(1,"button",23),_("click",function(){S(s);let i=g(),r=C(11);return v(i.onNewStepperState(r))}),d(2,"i",24),m(3," New "),a(),f()}}function Ce(e,t){if(e&1){let s=y();u(0),o(1,"button",23),_("click",function(){S(s),g();let i=C(11);return v(i.previous())}),m(2," Back "),a(),f()}}function be(e,t){if(e&1){let s=y();u(0),o(1,"button",25),_("click",function(){S(s);let i=g(),r=C(11);return v(i.onStepperNext(r))}),m(2," Next "),a(),f()}}function we(e,t){if(e&1){let s=y();u(0),o(1,"button",26),_("click",function(){S(s);let i=g(),r=C(11);return v(i.onSubmit(r))}),m(2,"Download"),a(),f()}if(e&2){let s=g();l(1),p("disabled",!s.urls)}}function xe(e,t){e&1&&m(0,"Instruction")}function Ie(e,t){e&1&&m(0,"Download")}function De(e,t){e&1&&m(0,"Finish")}function Ee(e,t){e&1&&d(0,"i",27)}function Te(e,t){e&1&&d(0,"i",28)}function Ne(e,t){e&1&&d(0,"i",29)}var me=(()=>{let t=class t{constructor(n,i){this.downloadService=n,this.authService=i,this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
|
|
2
|
+
https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=this.authService.getDomain()}onStepperChange(n){this.stepperState=n.selectedStep.state}onSubmit(n){let i=this.urls.split(/\r?\n/);this.downloadService.download(i).subscribe(r=>{this.downloadResponses=r,this.mappingLinkToProduct(),this.onStepperNext(n)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(n=>(n.Name=n?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${n.ID}" target="_blank">
|
|
3
|
+
${n?.Name}
|
|
4
|
+
</a>`:"-",n))}onNewStepperState(n){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",n.reset(),this.onStepperNext(n)}onStepperNext(n){n.selected.completed=!0,n.next()}};t.\u0275fac=function(i){return new(i||t)(E(I),E(q))},t.\u0275cmp=h({type:t,selectors:[["app-by-url"]],features:[B([{provide:ee,useValue:{displayDefaultIndicatorType:!1}}])],decls:41,vars:15,consts:[["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["labelPosition","bottom","linear","",1,"stepper-downloadByUrl",3,"selectedIndex","selectionChange"],["stepper",""],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],["state","DOWNLOAD",3,"editable","completed"],["name","url","cols","30","rows","25",1,"form-control",3,"placeholder","ngModel","ngModelChange"],["state","FINISH"],["status","error",3,"data","configs"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"disabled","click"],[1,"fa-solid","fa-info"],[1,"fa-solid","fa-download"],[1,"fa-sharp","fa-solid","fa-flag"]],template:function(i,r){i&1&&(o(0,"mainpanel",0)(1,"actions"),c(2,ye,4,0,"ng-container",1)(3,Ce,3,0,"ng-container",1)(4,be,3,0,"ng-container",1)(5,we,3,1,"ng-container",1),a(),o(6,"content")(7,"div",2)(8,"div",3)(9,"div",4)(10,"mat-stepper",5,6),_("selectionChange",function(D){return r.onStepperChange(D)}),o(12,"mat-step",7),c(13,xe,1,0,"ng-template",8),o(14,"div",9)(15,"div",10)(16,"div",11)(17,"h4",12),m(18,"Note"),a()(),o(19,"div",13)(20,"ol",14)(21,"li"),m(22," Use this form to Download Products from Tokopedia using product URL "),a(),o(23,"li"),m(24," Copy Product URL from "),o(25,"a",15),m(26,"https://seller.tokopedia.com/ "),a(),m(27," and paste in this form "),a(),o(28,"li"),m(29," Use New Line when you want to input several product URLs "),a()()()()()(),o(30,"mat-step",16),c(31,Ie,1,0,"ng-template",8),o(32,"div",9)(33,"textarea",17),_("ngModelChange",function(D){return r.urls=D}),a()()(),o(34,"mat-step",18),c(35,De,1,0,"ng-template",8),o(36,"div",9),d(37,"app-response-api-list",19),a()(),c(38,Ee,1,0,"ng-template",20)(39,Te,1,0,"ng-template",21)(40,Ne,1,0,"ng-template",22),a()()()()()()),i&2&&(p("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),p("ngIf",r.stepperState=="FINISH"),l(1),p("ngIf",r.stepperState=="DOWNLOAD"),l(1),p("ngIf",r.stepperState=="GUIDE"),l(1),p("ngIf",r.stepperState=="DOWNLOAD"),l(5),p("selectedIndex",1),l(2),p("editable",r.stepperState!="FINISH")("completed",!0),l(18),p("editable",r.stepperState!="FINISH")("completed",!1),l(3),p("placeholder",r.urlPlaceholder)("ngModel",r.urls),l(4),p("data",r.downloadResponses)("configs",r.configs))},dependencies:[R,W,z,G,Q,oe,ne,re,ie,se],styles:[`.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container mat-step-header>div.mat-step-label{padding-top:8px}
|
|
5
|
+
`],encapsulation:2});let e=t;return e})();var Ue=[{path:"",component:pe,children:[{path:"by-url",component:me,data:{title:"Download Product By Url"},canActivate:[J]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}],ot=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=N({providers:[I],imports:[A,K,Z,X,ae,te,$.forChild(Ue)]});let e=t;return e})();export{ot as DownloadModule};
|