marketplacepos 5.44.1 → 5.45.0
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 +31 -31
- package/Marketplace/{chunk-IA6KOBDJ.js → chunk-2HNZ6XV3.js} +1 -1
- package/Marketplace/chunk-2I7ZZ3F2.js +1 -0
- package/Marketplace/chunk-2LK24YA5.js +1 -0
- package/Marketplace/chunk-2TN45S53.js +1 -0
- package/Marketplace/{chunk-2XV6YOOU.js → chunk-37L3YDKT.js} +1 -1
- package/Marketplace/chunk-3E7JHNVC.js +5 -0
- package/Marketplace/{chunk-F63CEOOT.js → chunk-3FPEQHTI.js} +1 -1
- package/Marketplace/{chunk-SJU6ZU2K.js → chunk-3LN6RMRN.js} +1 -1
- package/Marketplace/{chunk-5JQJRPL3.js → chunk-3TYYN7ZX.js} +1 -1
- package/Marketplace/{chunk-CUB2QFUO.js → chunk-3UN6FPMN.js} +1 -1
- package/Marketplace/{chunk-SYUFPF3D.js → chunk-3YP6ORBR.js} +1 -1
- package/Marketplace/chunk-42MFOGHP.js +5 -0
- package/Marketplace/{chunk-E4Z7OR75.js → chunk-4KHHGHFJ.js} +1 -1
- package/Marketplace/chunk-4Q5ZSKVO.js +1 -0
- package/Marketplace/{chunk-MS3ZBCON.js → chunk-4VITMSIA.js} +1 -1
- package/Marketplace/{chunk-VWNEJWLI.js → chunk-4ZQCJGTZ.js} +1 -1
- package/Marketplace/{chunk-IIZDEGGW.js → chunk-5LQRO4AI.js} +1 -1
- package/Marketplace/{chunk-6QYD6NIJ.js → chunk-5PS6ZS3N.js} +1 -1
- package/Marketplace/{chunk-35XX6SQT.js → chunk-6KBMGQMI.js} +1 -1
- package/Marketplace/{chunk-IL5JIRWJ.js → chunk-6L7TD5DW.js} +1 -1
- package/Marketplace/{chunk-SDVWA7KM.js → chunk-6NUQGKRV.js} +1 -1
- package/Marketplace/{chunk-PNITO7BE.js → chunk-6RLISMEX.js} +1 -1
- package/Marketplace/{chunk-EGFBMQKW.js → chunk-6V4LFY52.js} +1 -1
- package/Marketplace/chunk-6VDV7CA2.js +2 -0
- package/Marketplace/chunk-6VHVQEVM.js +3 -0
- package/Marketplace/chunk-6WCXK7FR.js +2 -0
- package/Marketplace/chunk-6ZOHSFR5.js +1 -0
- package/Marketplace/{chunk-G7R7LUW4.js → chunk-74ELVGDK.js} +1 -1
- package/Marketplace/{chunk-LZCEM2PC.js → chunk-7AE3725T.js} +1 -1
- package/Marketplace/{chunk-H3IVI3LN.js → chunk-A44LN77B.js} +1 -1
- package/Marketplace/{chunk-IMK2JGZA.js → chunk-A64VIOKR.js} +1 -1
- package/Marketplace/{chunk-L3FX4O3H.js → chunk-B67DSLBY.js} +1 -1
- package/Marketplace/chunk-B7JSVIVV.js +1 -0
- package/Marketplace/{chunk-PFIBU2IX.js → chunk-BBQGPXDH.js} +1 -1
- package/Marketplace/{chunk-E66C2WAS.js → chunk-BERZDE6Y.js} +1 -1
- package/Marketplace/{chunk-WVQIS27J.js → chunk-BFPMFJI7.js} +1 -1
- package/Marketplace/{chunk-EQIFZBRG.js → chunk-BJUPMCEP.js} +2 -2
- package/Marketplace/{chunk-DL66NZ2A.js → chunk-BQIB3N6V.js} +1 -1
- package/Marketplace/chunk-BYSLV4DQ.js +2 -0
- package/Marketplace/chunk-BZBQHO76.js +1 -0
- package/Marketplace/{chunk-LA6B2JGP.js → chunk-CHWXOJDB.js} +1 -1
- package/Marketplace/chunk-CNJDARBM.js +1 -0
- package/Marketplace/{chunk-SBZNADRN.js → chunk-D5YID4W4.js} +1 -1
- package/Marketplace/{chunk-KWX3WSCT.js → chunk-DDVDUCPY.js} +1 -1
- package/Marketplace/{chunk-SM3P57SO.js → chunk-DFGZ4L65.js} +1 -1
- package/Marketplace/chunk-DSQSL5VX.js +15 -0
- package/Marketplace/{chunk-YM4TJJMM.js → chunk-DZYBXWL2.js} +1 -1
- package/Marketplace/{chunk-RZZKFTCX.js → chunk-ELSSXU6Y.js} +1 -1
- package/Marketplace/{chunk-SWQXSJ7O.js → chunk-ERXVXBTU.js} +1 -1
- package/Marketplace/chunk-EVQLTXB7.js +1 -0
- package/Marketplace/{chunk-IM4DS3UA.js → chunk-FAMP5PPX.js} +1 -1
- package/Marketplace/{chunk-NOP5P5R5.js → chunk-FESS3PG3.js} +1 -1
- package/Marketplace/{chunk-WW22F76D.js → chunk-FFCWYWBW.js} +1 -1
- package/Marketplace/{chunk-J5OHT4GM.js → chunk-FJ455ZYZ.js} +1 -1
- package/Marketplace/{chunk-UGVEAL7H.js → chunk-FO7G4GMY.js} +1 -1
- package/Marketplace/{chunk-XMIUIAY2.js → chunk-FOFXARTB.js} +1 -1
- package/Marketplace/{chunk-OC2FBL33.js → chunk-FPYZBABH.js} +1 -1
- package/Marketplace/{chunk-Z5GRNGHJ.js → chunk-FVORY74O.js} +1 -1
- package/Marketplace/{chunk-M2FCTYGU.js → chunk-FXQKRJWU.js} +1 -1
- package/Marketplace/{chunk-B5VBBEEN.js → chunk-G7T42LFR.js} +1 -1
- package/Marketplace/{chunk-AJL3CYNX.js → chunk-GH5FTODR.js} +1 -1
- package/Marketplace/{chunk-JUL73DOX.js → chunk-GLVYOZA4.js} +1 -1
- package/Marketplace/chunk-H46SHHXR.js +1 -0
- package/Marketplace/{chunk-B5V5KFQU.js → chunk-HFCAD7GH.js} +1 -1
- package/Marketplace/{chunk-KIIVJXDR.js → chunk-HPFBJL3A.js} +1 -1
- package/Marketplace/{chunk-3LRWABHB.js → chunk-HVCIQI7B.js} +1 -1
- package/Marketplace/{chunk-GCDQNJQN.js → chunk-ID2YZPRH.js} +1 -1
- package/Marketplace/{chunk-6ZVBRMK4.js → chunk-IML3KYQE.js} +1 -1
- package/Marketplace/{chunk-CIAZIJGR.js → chunk-IQ4AFE6X.js} +1 -1
- package/Marketplace/{chunk-AEOSNAHH.js → chunk-J53BPEDH.js} +1 -1
- package/Marketplace/{chunk-F7QBIR6G.js → chunk-JBNND5FL.js} +1 -1
- package/Marketplace/chunk-JFS634DA.js +1 -0
- package/Marketplace/{chunk-JPYSXZZO.js → chunk-JJKMVDXR.js} +1 -1
- package/Marketplace/{chunk-CMTBBXR5.js → chunk-JVNHFIYT.js} +1 -1
- package/Marketplace/{chunk-6INFVQEU.js → chunk-KUUDZPGN.js} +1 -1
- package/Marketplace/{chunk-OAOQONOA.js → chunk-KXEADFBM.js} +1 -1
- package/Marketplace/{chunk-ZXQNMGQG.js → chunk-L7EQZACZ.js} +1 -1
- package/Marketplace/{chunk-4KKT6FMN.js → chunk-L7KCZLIM.js} +1 -1
- package/Marketplace/chunk-LBXSZJDS.js +1 -0
- package/Marketplace/{chunk-CSP6M3TO.js → chunk-LCRPUAWG.js} +1 -1
- package/Marketplace/{chunk-OLOIQI4D.js → chunk-LDD4NVMB.js} +1 -1
- package/Marketplace/{chunk-KALG6D6L.js → chunk-LDPDLCRL.js} +1 -1
- package/Marketplace/{chunk-HFKZOM4I.js → chunk-LF6HWNC2.js} +1 -1
- package/Marketplace/chunk-LHX4ZOLA.js +2 -0
- package/Marketplace/chunk-LK2PMDRL.js +1 -0
- package/Marketplace/chunk-LQ2NLQKV.js +1 -0
- package/Marketplace/{chunk-E3ROEHBW.js → chunk-LRUVI2Z3.js} +1 -1
- package/Marketplace/{chunk-SB7NWPDS.js → chunk-M7V7A7Z6.js} +1 -1
- package/Marketplace/{chunk-WHDFRUFN.js → chunk-MBBQZFI4.js} +1 -1
- package/Marketplace/{chunk-2SCXTEPT.js → chunk-MMUSTFHH.js} +1 -1
- package/Marketplace/chunk-MO53T3IK.js +1 -0
- package/Marketplace/chunk-MWTFYMKY.js +1 -0
- package/Marketplace/{chunk-PAEIUO2F.js → chunk-N2SPK2VI.js} +1 -1
- package/Marketplace/{chunk-IHNN4Q2N.js → chunk-NNRBGHXB.js} +1 -1
- package/Marketplace/{chunk-W6FZQ6XT.js → chunk-OFZOAEW5.js} +1 -1
- package/Marketplace/{chunk-B7KTCPKC.js → chunk-OJMQBH6T.js} +3 -3
- package/Marketplace/{chunk-K5GEJ2GZ.js → chunk-OK3LLCAK.js} +1 -1
- package/Marketplace/{chunk-EPVCMYCI.js → chunk-OLANEXLB.js} +1 -1
- package/Marketplace/{chunk-E2SXYIML.js → chunk-ORDCBJ4G.js} +1 -1
- package/Marketplace/{chunk-2ODVHD2K.js → chunk-PFXOFSJG.js} +1 -1
- package/Marketplace/{chunk-YPWHTELF.js → chunk-PPHTN2H6.js} +1 -1
- package/Marketplace/{chunk-YXGO35YT.js → chunk-PQGPOOCK.js} +1 -1
- package/Marketplace/{chunk-5JVEEL2T.js → chunk-PYXL7UF7.js} +1 -1
- package/Marketplace/{chunk-AYPY47VM.js → chunk-QBL6V7QF.js} +1 -1
- package/Marketplace/{chunk-4WI2DOJ7.js → chunk-QE3IIBDW.js} +1 -1
- package/Marketplace/{chunk-CCWNSX4Y.js → chunk-QHE3PKRD.js} +1 -1
- package/Marketplace/{chunk-AO46RPZ4.js → chunk-QK4BGDSS.js} +1 -1
- package/Marketplace/chunk-QP4C4R4W.js +1 -0
- package/Marketplace/{chunk-74IXJYWO.js → chunk-QS22J2SC.js} +1 -1
- package/Marketplace/chunk-QUKRHI5J.js +1 -0
- package/Marketplace/{chunk-OTDC2LYA.js → chunk-R7INAZCD.js} +1 -1
- package/Marketplace/{chunk-KMJM6UVY.js → chunk-RDRNWLJI.js} +1 -1
- package/Marketplace/chunk-RHF7TPRF.js +1 -0
- package/Marketplace/{chunk-M5XGP4SG.js → chunk-RHHHL4OR.js} +1 -1
- package/Marketplace/{chunk-6IYLH3EV.js → chunk-RLBTXXCD.js} +1 -1
- package/Marketplace/{chunk-6BIM4KEI.js → chunk-RNTPX24O.js} +1 -1
- package/Marketplace/{chunk-Z5OLAUH6.js → chunk-RQEQPIMI.js} +1 -1
- package/Marketplace/{chunk-M7NQID2Z.js → chunk-RTT3JVJM.js} +1 -1
- package/Marketplace/chunk-SHRLQGK3.js +1 -0
- package/Marketplace/{chunk-Y42GRQNF.js → chunk-TC4JRJQL.js} +1 -1
- package/Marketplace/{chunk-E4KNET2R.js → chunk-TH6VZX34.js} +1 -1
- package/Marketplace/{chunk-WUHNNJ2C.js → chunk-TYG67JH3.js} +1 -1
- package/Marketplace/{chunk-YZLHRAEO.js → chunk-TZEINVZY.js} +1 -1
- package/Marketplace/chunk-UHJEXTOG.js +1 -0
- package/Marketplace/{chunk-ECRWEMEV.js → chunk-UHTMVOX6.js} +1 -1
- package/Marketplace/{chunk-UEPQYAWE.js → chunk-UIFPDTMW.js} +1 -1
- package/Marketplace/{chunk-NXI7PMGL.js → chunk-UML74HNB.js} +1 -1
- package/Marketplace/{chunk-D6URDVES.js → chunk-UXPULNCR.js} +1 -1
- package/Marketplace/{chunk-SN4AOGQK.js → chunk-UYLSZYOD.js} +1 -1
- package/Marketplace/{chunk-ATZ475FN.js → chunk-V3USB3ZU.js} +1 -1
- package/Marketplace/{chunk-77JJJNRM.js → chunk-V5KHEF77.js} +1 -1
- package/Marketplace/chunk-VVX6LRMW.js +1 -0
- package/Marketplace/{chunk-5OHRA4AS.js → chunk-W3JTS22H.js} +1 -1
- package/Marketplace/{chunk-JXSBFTQM.js → chunk-W5L6FMO3.js} +1 -1
- package/Marketplace/{chunk-EH6HWI3G.js → chunk-WFT47MCY.js} +1 -1
- package/Marketplace/{chunk-NS46QSCM.js → chunk-WJAE4LW2.js} +1 -1
- package/Marketplace/{chunk-MH4SJTQX.js → chunk-WLRPCY65.js} +1 -1
- package/Marketplace/{chunk-VIMB2VWB.js → chunk-WPELZYFP.js} +1 -1
- package/Marketplace/{chunk-RECNBAEB.js → chunk-WWISWZF5.js} +1 -1
- package/Marketplace/{chunk-57UYCHCW.js → chunk-XNVULGQ3.js} +1 -1
- package/Marketplace/{chunk-OA5PCIIS.js → chunk-XP6R2ZYJ.js} +1 -1
- package/Marketplace/{chunk-5KS4WK6H.js → chunk-XXWBR6S5.js} +1 -1
- package/Marketplace/{chunk-ZQ5EGXEB.js → chunk-YIXZLIPA.js} +1 -1
- package/Marketplace/{chunk-KAQL5LN5.js → chunk-YNJPF4PB.js} +1 -1
- package/Marketplace/{chunk-QIALMLQK.js → chunk-YWSUS64O.js} +1 -1
- package/Marketplace/{chunk-QJJ2WFVX.js → chunk-Z3ZYINRX.js} +1 -1
- package/Marketplace/chunk-ZBKUZ4CN.js +1 -0
- package/Marketplace/{chunk-NZUPRMOX.js → chunk-ZKXPDUO4.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-AS37EDUH.js → main-ZZ76NVAH.js} +1 -1
- package/Marketplace/{styles-X3FXEB7T.css → styles-EW2SXTVD.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-3OIE7ARG.js +0 -1
- package/Marketplace/chunk-3ONIF6WO.js +0 -1
- package/Marketplace/chunk-4JS5MYC3.js +0 -1
- package/Marketplace/chunk-5TKBTQTA.js +0 -2
- package/Marketplace/chunk-6RKA4STM.js +0 -1
- package/Marketplace/chunk-7PSP3KRN.js +0 -1
- package/Marketplace/chunk-7T2AVFH5.js +0 -2
- package/Marketplace/chunk-AQTXFEBA.js +0 -1
- package/Marketplace/chunk-B5BDARIM.js +0 -1
- package/Marketplace/chunk-BOGJ2QV5.js +0 -4
- package/Marketplace/chunk-BU5LUO3S.js +0 -1
- package/Marketplace/chunk-C5JZPXEW.js +0 -1
- package/Marketplace/chunk-DAVYBR3Z.js +0 -5
- package/Marketplace/chunk-DHOJLUJI.js +0 -1
- package/Marketplace/chunk-DRTTCT2P.js +0 -1
- package/Marketplace/chunk-EJG33GYS.js +0 -15
- package/Marketplace/chunk-ETOKAGEB.js +0 -2
- package/Marketplace/chunk-EWYAB244.js +0 -1
- package/Marketplace/chunk-G6VH553U.js +0 -1
- package/Marketplace/chunk-GIRXMYNI.js +0 -1
- package/Marketplace/chunk-I6VSPSNT.js +0 -1
- package/Marketplace/chunk-K5VFEHP7.js +0 -1
- package/Marketplace/chunk-K77RTNG2.js +0 -1
- package/Marketplace/chunk-K7ZFPSOU.js +0 -1
- package/Marketplace/chunk-LDHQNVI5.js +0 -1
- package/Marketplace/chunk-MS4AQ6UA.js +0 -0
- package/Marketplace/chunk-MSQ7Z3W2.js +0 -1
- package/Marketplace/chunk-OPFENZ3W.js +0 -1
- package/Marketplace/chunk-OPYO4NH2.js +0 -5
- package/Marketplace/chunk-P7NATRFC.js +0 -1
- package/Marketplace/chunk-SLI26GUH.js +0 -1
- package/Marketplace/chunk-UBXKO4QI.js +0 -1
- package/Marketplace/chunk-V2SXQQLG.js +0 -1
- package/Marketplace/chunk-V5BKQSAT.js +0 -1
- package/Marketplace/chunk-WMYSG6O7.js +0 -1
- package/Marketplace/chunk-XHYJOIC5.js +0 -3
- package/Marketplace/chunk-YZKPQRLO.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h,o as je}from"./chunk-M2FCTYGU.js";import{$ as Me,Ea as N,G as Ie,Gb as ke,Hb as g,Ib as T,Ka as j,La as m,M as S,O as Ae,Pa as A,Q as Te,Qa as Q,Ra as Oe,Sa as q,Ua as B,Wa as we,Wb as Se,Ya as Fe,_ as x,a as pe,c as ge,ca as P,cb as Le,ea as Ce,ed as X,f as l,g as be,ja as c,ka as p,ma as _,od as J,pa as o,q as ve,sd as xe,td as Pe,ua as De,v as D,vb as Re,w as ye,xa as Ne,z as Ee}from"./chunk-B7KTCPKC.js";import{a as z}from"./chunk-66YHNWRR.js";function ee(t){return t.buttons===0||t.detail===0}function te(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var se;function Be(){if(se==null){let t=typeof document<"u"?document.head:null;se=!!(t&&(t.createShadowRoot||t.attachShadow))}return se}function ie(t){if(Be()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function ne(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}function O(t,i,e,s,n){let r=parseInt(X.major),a=parseInt(X.minor);return r>19||r===19&&a>0||r===0&&a===0?t.listen(i,e,s,n):(i.addEventListener(e,s,n),()=>{i.removeEventListener(e,s,n)})}var re;try{re=typeof Intl<"u"&&Intl.v8BreakIterator}catch{re=!1}var u=(()=>{class t{_platformId=o(we);isBrowser=this._platformId?je(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||re)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var w;function Ue(){if(w==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w=!0}))}finally{w=w||!1}return w}function oe(t){return Ue()?t:!!t.capture}function _t(t,i=0){return Ke(t)?Number(t):arguments.length===2?i:0}function Ke(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function F(t){return t instanceof A?t.nativeElement:t}var Ve=new _("cdk-input-modality-detector-options"),He={ignoreKeys:[18,17,224,91,16]},We=650,ae={passive:!0,capture:!0},Ge=(()=>{class t{_platform=o(u);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new be(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(s=>s===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=v(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<We||(this._modality.next(ee(e)?"keyboard":"mouse"),this._mostRecentTarget=v(e))};_onTouchstart=e=>{if(te(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=v(e)};constructor(){let e=o(m),s=o(h),n=o(Ve,{optional:!0});if(this._options=z(z({},He),n),this.modalityDetected=this._modality.pipe(x(1)),this.modalityChanged=this.modalityDetected.pipe(Te()),this._platform.isBrowser){let r=o(Re).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[O(r,s,"keydown",this._onKeydown,ae),O(r,s,"mousedown",this._onMousedown,ae),O(r,s,"touchstart",this._onTouchstart,ae)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),L=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(L||{}),Ze=new _("cdk-focus-monitor-default-options"),U=oe({passive:!0,capture:!0}),$e=(()=>{class t{_ngZone=o(m);_platform=o(u);_inputModalityDetector=o(Ge);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=o(h,{optional:!0});_stopInputModalityDetector=new l;constructor(){let e=o(Ze,{optional:!0});this._detectionMode=e?.detectionMode||L.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let s=v(e);for(let n=s;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,s=!1){let n=F(e);if(!this._platform.isBrowser||n.nodeType!==1)return ve();let r=ie(n)||this._getDocument(),a=this._elementInfo.get(n);if(a)return s&&(a.checkChildren=!0),a.subject;let d={checkChildren:s,subject:new l,rootNode:r};return this._elementInfo.set(n,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let s=F(e),n=this._elementInfo.get(s);n&&(n.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(n))}focusVia(e,s,n){let r=F(e),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([d,I])=>this._originChanged(d,s,I)):(this._setOrigin(s),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===L.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,s){e.classList.toggle("cdk-focused",!!s),e.classList.toggle("cdk-touch-focused",s==="touch"),e.classList.toggle("cdk-keyboard-focused",s==="keyboard"),e.classList.toggle("cdk-mouse-focused",s==="mouse"),e.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(e,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&s,this._detectionMode===L.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?We:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,s){let n=this._elementInfo.get(s),r=v(e);!n||!n.checkChildren&&s!==r||this._originChanged(s,this._getFocusOrigin(r),n)}_onBlur(e,s){let n=this._elementInfo.get(s);!n||n.checkChildren&&e.relatedTarget instanceof Node&&s.contains(e.relatedTarget)||(this._setClasses(s),this._emitOrigin(n,null))}_emitOrigin(e,s){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(s))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let s=e.rootNode,n=this._rootNodeFocusListenerCount.get(s)||0;n||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,U),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,U)}),this._rootNodeFocusListenerCount.set(s,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(P(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let s=e.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let n=this._rootNodeFocusListenerCount.get(s);n>1?this._rootNodeFocusListenerCount.set(s,n-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,U),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,U),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,s,n){this._setClasses(e,s),this._emitOrigin(n,s),this._lastFocusOrigin=s}_getClosestElementsInfo(e){let s=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&s.push([r,n])}),s}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:s,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!s||s===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(s))return!0}return!1}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mt=(()=>{class t{_elementRef=o(A);_focusMonitor=o($e);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var K=new WeakMap,R=(()=>{class t{_appRef;_injector=o(N);_environmentInjector=o(De);load(e){let s=this._appRef=this._appRef||this._injector.get(Se),n=K.get(s);n||(n={loaders:new Set,refs:[]},K.set(s,n),s.onDestroy(()=>{K.get(s)?.refs.forEach(r=>r.destroy()),K.delete(s)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(Pe(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var V=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275cmp=ke({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(s,n){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
|
|
2
|
-
`],encapsulation:2,changeDetection:0})}return t})();function ce(t){return Array.isArray(t)?t:[t]}var pt=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ye=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({providers:[pt]})}return t})();var ze=new Set,y,gt=(()=>{class t{_platform=o(u);_nonce=o(Fe,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bt(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bt(t,i){if(!ze.has(t))try{y||(y=document.createElement("style"),i&&y.setAttribute("nonce",i),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {body{ }}`,0),ze.add(t))}catch(e){console.error(e)}}function vt(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var qe=(()=>{class t{_mediaMatcher=o(gt);_zone=o(m);_queries=new Map;_destroySubject=new l;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Qe(ce(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Qe(ce(e)).map(a=>this._registerQuery(a).observable),r=ye(n);return r=Ee(r.pipe(Ae(1)),r.pipe(x(1),S(0))),r.pipe(D(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:I,query:ft})=>{d.matches=d.matches||I,d.breakpoints[ft]=I}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let s=this._mediaMatcher.matchMedia(e),r={observable:new ge(a=>{let d=I=>this._zone.run(()=>a.next(I));return s.addListener(d),()=>{s.removeListener(d)}}).pipe(Me(s),D(({matches:a})=>({query:e,matches:a})),P(this._destroySubject)),mql:s};return this._queries.set(e,r),r}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qe(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var tt=(()=>{class t{_platform=o(u);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Et(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let s=yt(Ot(e));if(s&&(Xe(s)===-1||!this.isVisible(s)))return!1;let n=e.nodeName.toLowerCase(),r=Xe(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Dt(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,s){return Nt(e)&&!this.isDisabled(e)&&(s?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yt(t){try{return t.frameElement}catch{return null}}function Et(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function It(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function At(t){return Mt(t)&&t.type=="hidden"}function Tt(t){return Ct(t)&&t.hasAttribute("href")}function Mt(t){return t.nodeName.toLowerCase()=="input"}function Ct(t){return t.nodeName.toLowerCase()=="a"}function st(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function Xe(t){if(!st(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Dt(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Nt(t){return At(t)?!1:It(t)||Tt(t)||t.hasAttribute("contenteditable")||st(t)}function Ot(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var H=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,s,n,r=!1,a){this._element=i,this._checker=e,this._ngZone=s,this._document=n,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let s=this._getFirstTabbableElement(e);return s?.focus(i),!!s}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=0;s<e.length;s++){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[s]):null;if(n)return n}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=e.length-1;s>=0;s--){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[s]):null;if(n)return n}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Le(i,{injector:this._injector}):setTimeout(i)}},it=(()=>{class t{_checker=o(tt);_ngZone=o(m);_document=o(h);_injector=o(N);constructor(){o(R).load(V)}create(e,s=!1){return new H(e,this._checker,this._ngZone,this._document,s,this._injector)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wt=(()=>{class t{_elementRef=o(A);_focusTrapFactory=o(it);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){o(u).isBrowser&&(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&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let s=e.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ne(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",J],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",J]},exportAs:["cdkTrapFocus"],features:[Ne]})}return t})(),nt=new _("liveAnnouncerElement",{providedIn:"root",factory:rt});function rt(){return null}var ot=new _("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ft=0,Lt=(()=>{class t{_ngZone=o(m);_defaultOptions=o(ot,{optional:!0});_liveElement;_document=o(h);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(nt,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...s){let n=this._defaultOptions,r,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[r,a]=s,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",s=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<s.length;r++)s[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${Ft++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<s.length;n++){let r=s[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var b=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(b||{}),Je="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",de="cdk-high-contrast-active",W=(()=>{class t{_platform=o(u);_hasCheckedHighContrastMode;_document=o(h);_breakpointSubscription;constructor(){this._breakpointSubscription=o(qe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let s=this._document.defaultView||window,n=s&&s.getComputedStyle?s.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(de,Je,et),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===b.BLACK_ON_WHITE?e.add(de,Je):s===b.WHITE_ON_BLACK&&e.add(de,et)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[Ye]})}return t})();var kt=new _("cdk-dir-doc",{providedIn:"root",factory:St});function St(){return o(h)}var xt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function at(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?xt.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Pt=(()=>{class t{value="ltr";change=new j;constructor(){let e=o(kt,{optional:!0});if(e){let s=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=at(s||n||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var k=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(k||{}),G,E;function Xs(){if(E==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{let t=Element.prototype.scrollTo;t?E=!/\{\s*\[native code\]\s*\}/.test(t.toString()):E=!1}}return E}function Js(){if(typeof document!="object"||!document)return k.NORMAL;if(G==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),s=e.style;s.width="2px",s.height="1px",t.appendChild(e),document.body.appendChild(t),G=k.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G=t.scrollLeft===0?k.NEGATED:k.INVERTED),t.remove()}return G}var ue=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({})}return t})();var le={},jt=(()=>{class t{_appId=o(B);getId(e){return this._appId!=="ng"&&(e+=this._appId),le.hasOwnProperty(e)||(le[e]=0),`${e}${le[e]++}`}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ct(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Bt(t){return t!=null&&`${t}`!="false"}function ui(t){return t==null?"":typeof t=="string"?t:`${t}px`}function hi(t,i=/\s+/){let e=[];if(t!=null){let s=Array.isArray(t)?t:`${t}`.split(i);for(let n of s){let r=`${n}`.trim();r&&e.push(r)}}return e}var Ut=200,Z=class{_letterKeyStream=new l;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new l;selectedItem=this._selectedItem;constructor(i,e){let s=typeof e?.debounceInterval=="number"?e.debounceInterval:Ut;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(s)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ce(e=>this._pressedLetters.push(e)),S(i),Ie(()=>this._pressedLetters.length>0),D(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let s=1;s<this._items.length+1;s++){let n=(this._selectedItemIndex+s)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var M=class{_items;_activeItemIndex=-1;_activeItem=Oe(null);_wrap=!1;_typeaheadSubscription=pe.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof q?this._itemChangesSubscription=i.changes.subscribe(s=>this._itemsChanged(s.toArray())):Q(i)&&(this._effectRef=xe(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new l;change=new l;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Z(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:s=>this._skipPredicateFn(s)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(s=>{this.setActiveItem(s)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||ct(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),s=typeof i=="number"?i:e.indexOf(i),n=e[s];this._activeItem.set(n??null),this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let s=1;s<=e.length;s++){let n=(this._activeItemIndex+i*s+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){let s=this._getItemsArray();if(s[i]){for(;this._skipPredicateFn(s[i]);)if(i+=e,!s[i])return;this.setActiveItem(i)}}_getItemsArray(){return Q(this._items)?this._items():this._items instanceof q?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let s=i.indexOf(e);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s))}}};var he=class extends M{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var fe=class extends M{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var ut=" ";function Kt(t,i,e){let s=Y(t,i);e=e.trim(),!s.some(n=>n.trim()===e)&&(s.push(e),t.setAttribute(i,s.join(ut)))}function Vt(t,i,e){let s=Y(t,i);e=e.trim();let n=s.filter(r=>r!==e);n.length?t.setAttribute(i,n.join(ut)):t.removeAttribute(i)}function Y(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lt="cdk-describedby-message",$="cdk-describedby-host",me=0,Qi=(()=>{class t{_platform=o(u);_document=o(h);_messageRegistry=new Map;_messagesContainer=null;_id=`${me++}`;constructor(){o(R).load(V),this._id=o(B)+"-"+me++}describe(e,s,n){if(!this._canBeDescribed(e,s))return;let r=_e(s,n);typeof s!="string"?(dt(s,this._id),this._messageRegistry.set(r,{messageElement:s,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(s,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,s,n){if(!s||!this._isElementNode(e))return;let r=_e(s,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof s=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$}="${this._id}"]`);for(let s=0;s<e.length;s++)this._removeCdkDescribedByReferenceIds(e[s]),e[s].removeAttribute($);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,s){let n=this._document.createElement("div");dt(n,this._id),n.textContent=e,s&&n.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(n),this._messageRegistry.set(_e(e,s),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<s.length;r++)s[r].remove();let n=this._document.createElement("div");n.style.visibility="hidden",n.classList.add(e),n.classList.add("cdk-visually-hidden"),this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._messagesContainer=n}_removeCdkDescribedByReferenceIds(e){let s=Y(e,"aria-describedby").filter(n=>n.indexOf(lt)!=0);e.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(e,s){let n=this._messageRegistry.get(s);Kt(e,"aria-describedby",n.messageElement.id),e.setAttribute($,this._id),n.referenceCount++}_removeMessageReference(e,s){let n=this._messageRegistry.get(s);n.referenceCount--,Vt(e,"aria-describedby",n.messageElement.id),e.removeAttribute($)}_isElementDescribedByMessage(e,s){let n=Y(e,"aria-describedby"),r=this._messageRegistry.get(s),a=r&&r.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,s){if(!this._isElementNode(e))return!1;if(s&&typeof s=="object")return!0;let n=s==null?"":`${s}`.trim(),r=e.getAttribute("aria-label");return n?!r||r.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _e(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function dt(t,i){t.id||(t.id=`${lt}-${i}-${me++}`)}var dn=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[ue,ue]})}return t})();function ln(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var C,ht=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fn(){if(C)return C;if(typeof document!="object"||!document)return C=new Set(ht),C;let t=document.createElement("input");return C=new Set(ht.filter(i=>(t.setAttribute("type",i),t.type===i))),C}export{ee as a,te as b,ie as c,ne as d,v as e,O as f,u as g,oe as h,_t as i,F as j,$e as k,mt as l,R as m,V as n,ce as o,Ye as p,tt as q,it as r,wt as s,Lt as t,Rt as u,ln as v,ui as w,Pt as x,k as y,Xs as z,Js as A,ue as B,jt as C,ct as D,Bt as E,hi as F,he as G,fe as H,Kt as I,Vt as J,Qi as K,dn as L,fn as M};
|
|
1
|
+
import{a as h,o as je}from"./chunk-FXQKRJWU.js";import{$ as Me,Ea as N,G as Ie,Gb as ke,Hb as g,Ib as T,Ka as j,La as m,M as S,O as Ae,Pa as A,Q as Te,Qa as Q,Ra as Oe,Sa as q,Ua as B,Wa as we,Wb as Se,Ya as Fe,_ as x,a as pe,c as ge,ca as P,cb as Le,ea as Ce,ed as X,f as l,g as be,ja as c,ka as p,ma as _,od as J,pa as o,q as ve,sd as xe,td as Pe,ua as De,v as D,vb as Re,w as ye,xa as Ne,z as Ee}from"./chunk-OJMQBH6T.js";import{a as z}from"./chunk-66YHNWRR.js";function ee(t){return t.buttons===0||t.detail===0}function te(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var se;function Be(){if(se==null){let t=typeof document<"u"?document.head:null;se=!!(t&&(t.createShadowRoot||t.attachShadow))}return se}function ie(t){if(Be()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function ne(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}function O(t,i,e,s,n){let r=parseInt(X.major),a=parseInt(X.minor);return r>19||r===19&&a>0||r===0&&a===0?t.listen(i,e,s,n):(i.addEventListener(e,s,n),()=>{i.removeEventListener(e,s,n)})}var re;try{re=typeof Intl<"u"&&Intl.v8BreakIterator}catch{re=!1}var u=(()=>{class t{_platformId=o(we);isBrowser=this._platformId?je(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||re)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var w;function Ue(){if(w==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w=!0}))}finally{w=w||!1}return w}function oe(t){return Ue()?t:!!t.capture}function _t(t,i=0){return Ke(t)?Number(t):arguments.length===2?i:0}function Ke(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function F(t){return t instanceof A?t.nativeElement:t}var Ve=new _("cdk-input-modality-detector-options"),He={ignoreKeys:[18,17,224,91,16]},We=650,ae={passive:!0,capture:!0},Ge=(()=>{class t{_platform=o(u);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new be(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(s=>s===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=v(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<We||(this._modality.next(ee(e)?"keyboard":"mouse"),this._mostRecentTarget=v(e))};_onTouchstart=e=>{if(te(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=v(e)};constructor(){let e=o(m),s=o(h),n=o(Ve,{optional:!0});if(this._options=z(z({},He),n),this.modalityDetected=this._modality.pipe(x(1)),this.modalityChanged=this.modalityDetected.pipe(Te()),this._platform.isBrowser){let r=o(Re).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[O(r,s,"keydown",this._onKeydown,ae),O(r,s,"mousedown",this._onMousedown,ae),O(r,s,"touchstart",this._onTouchstart,ae)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),L=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(L||{}),Ze=new _("cdk-focus-monitor-default-options"),U=oe({passive:!0,capture:!0}),$e=(()=>{class t{_ngZone=o(m);_platform=o(u);_inputModalityDetector=o(Ge);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=o(h,{optional:!0});_stopInputModalityDetector=new l;constructor(){let e=o(Ze,{optional:!0});this._detectionMode=e?.detectionMode||L.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let s=v(e);for(let n=s;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,s=!1){let n=F(e);if(!this._platform.isBrowser||n.nodeType!==1)return ve();let r=ie(n)||this._getDocument(),a=this._elementInfo.get(n);if(a)return s&&(a.checkChildren=!0),a.subject;let d={checkChildren:s,subject:new l,rootNode:r};return this._elementInfo.set(n,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let s=F(e),n=this._elementInfo.get(s);n&&(n.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(n))}focusVia(e,s,n){let r=F(e),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([d,I])=>this._originChanged(d,s,I)):(this._setOrigin(s),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===L.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,s){e.classList.toggle("cdk-focused",!!s),e.classList.toggle("cdk-touch-focused",s==="touch"),e.classList.toggle("cdk-keyboard-focused",s==="keyboard"),e.classList.toggle("cdk-mouse-focused",s==="mouse"),e.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(e,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&s,this._detectionMode===L.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?We:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,s){let n=this._elementInfo.get(s),r=v(e);!n||!n.checkChildren&&s!==r||this._originChanged(s,this._getFocusOrigin(r),n)}_onBlur(e,s){let n=this._elementInfo.get(s);!n||n.checkChildren&&e.relatedTarget instanceof Node&&s.contains(e.relatedTarget)||(this._setClasses(s),this._emitOrigin(n,null))}_emitOrigin(e,s){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(s))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let s=e.rootNode,n=this._rootNodeFocusListenerCount.get(s)||0;n||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,U),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,U)}),this._rootNodeFocusListenerCount.set(s,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(P(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let s=e.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let n=this._rootNodeFocusListenerCount.get(s);n>1?this._rootNodeFocusListenerCount.set(s,n-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,U),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,U),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,s,n){this._setClasses(e,s),this._emitOrigin(n,s),this._lastFocusOrigin=s}_getClosestElementsInfo(e){let s=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&s.push([r,n])}),s}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:s,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!s||s===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(s))return!0}return!1}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mt=(()=>{class t{_elementRef=o(A);_focusMonitor=o($e);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var K=new WeakMap,R=(()=>{class t{_appRef;_injector=o(N);_environmentInjector=o(De);load(e){let s=this._appRef=this._appRef||this._injector.get(Se),n=K.get(s);n||(n={loaders:new Set,refs:[]},K.set(s,n),s.onDestroy(()=>{K.get(s)?.refs.forEach(r=>r.destroy()),K.delete(s)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(Pe(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var V=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275cmp=ke({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(s,n){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return t})();function ce(t){return Array.isArray(t)?t:[t]}var pt=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ye=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({providers:[pt]})}return t})();var ze=new Set,y,gt=(()=>{class t{_platform=o(u);_nonce=o(Fe,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bt(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bt(t,i){if(!ze.has(t))try{y||(y=document.createElement("style"),i&&y.setAttribute("nonce",i),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {body{ }}`,0),ze.add(t))}catch(e){console.error(e)}}function vt(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var qe=(()=>{class t{_mediaMatcher=o(gt);_zone=o(m);_queries=new Map;_destroySubject=new l;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Qe(ce(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Qe(ce(e)).map(a=>this._registerQuery(a).observable),r=ye(n);return r=Ee(r.pipe(Ae(1)),r.pipe(x(1),S(0))),r.pipe(D(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:I,query:ft})=>{d.matches=d.matches||I,d.breakpoints[ft]=I}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let s=this._mediaMatcher.matchMedia(e),r={observable:new ge(a=>{let d=I=>this._zone.run(()=>a.next(I));return s.addListener(d),()=>{s.removeListener(d)}}).pipe(Me(s),D(({matches:a})=>({query:e,matches:a})),P(this._destroySubject)),mql:s};return this._queries.set(e,r),r}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qe(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var tt=(()=>{class t{_platform=o(u);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Et(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let s=yt(Ot(e));if(s&&(Xe(s)===-1||!this.isVisible(s)))return!1;let n=e.nodeName.toLowerCase(),r=Xe(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Dt(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,s){return Nt(e)&&!this.isDisabled(e)&&(s?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yt(t){try{return t.frameElement}catch{return null}}function Et(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function It(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function At(t){return Mt(t)&&t.type=="hidden"}function Tt(t){return Ct(t)&&t.hasAttribute("href")}function Mt(t){return t.nodeName.toLowerCase()=="input"}function Ct(t){return t.nodeName.toLowerCase()=="a"}function st(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function Xe(t){if(!st(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Dt(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Nt(t){return At(t)?!1:It(t)||Tt(t)||t.hasAttribute("contenteditable")||st(t)}function Ot(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var H=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,s,n,r=!1,a){this._element=i,this._checker=e,this._ngZone=s,this._document=n,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let s=this._getFirstTabbableElement(e);return s?.focus(i),!!s}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=0;s<e.length;s++){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[s]):null;if(n)return n}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let s=e.length-1;s>=0;s--){let n=e[s].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[s]):null;if(n)return n}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Le(i,{injector:this._injector}):setTimeout(i)}},it=(()=>{class t{_checker=o(tt);_ngZone=o(m);_document=o(h);_injector=o(N);constructor(){o(R).load(V)}create(e,s=!1){return new H(e,this._checker,this._ngZone,this._document,s,this._injector)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wt=(()=>{class t{_elementRef=o(A);_focusTrapFactory=o(it);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){o(u).isBrowser&&(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&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let s=e.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ne(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(s){return new(s||t)};static \u0275dir=T({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",J],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",J]},exportAs:["cdkTrapFocus"],features:[Ne]})}return t})(),nt=new _("liveAnnouncerElement",{providedIn:"root",factory:rt});function rt(){return null}var ot=new _("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ft=0,Lt=(()=>{class t{_ngZone=o(m);_defaultOptions=o(ot,{optional:!0});_liveElement;_document=o(h);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(nt,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...s){let n=this._defaultOptions,r,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[r,a]=s,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",s=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<s.length;r++)s[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${Ft++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<s.length;n++){let r=s[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var b=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(b||{}),Je="cdk-high-contrast-black-on-white",et="cdk-high-contrast-white-on-black",de="cdk-high-contrast-active",W=(()=>{class t{_platform=o(u);_hasCheckedHighContrastMode;_document=o(h);_breakpointSubscription;constructor(){this._breakpointSubscription=o(qe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let s=this._document.defaultView||window,n=s&&s.getComputedStyle?s.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(de,Je,et),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===b.BLACK_ON_WHITE?e.add(de,Je):s===b.WHITE_ON_BLACK&&e.add(de,et)}}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[Ye]})}return t})();var kt=new _("cdk-dir-doc",{providedIn:"root",factory:St});function St(){return o(h)}var xt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function at(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?xt.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Pt=(()=>{class t{value="ltr";change=new j;constructor(){let e=o(kt,{optional:!0});if(e){let s=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=at(s||n||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var k=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(k||{}),G,E;function Xs(){if(E==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{let t=Element.prototype.scrollTo;t?E=!/\{\s*\[native code\]\s*\}/.test(t.toString()):E=!1}}return E}function Js(){if(typeof document!="object"||!document)return k.NORMAL;if(G==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),s=e.style;s.width="2px",s.height="1px",t.appendChild(e),document.body.appendChild(t),G=k.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,G=t.scrollLeft===0?k.NEGATED:k.INVERTED),t.remove()}return G}var ue=(()=>{class t{static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({})}return t})();var le={},jt=(()=>{class t{_appId=o(B);getId(e){return this._appId!=="ng"&&(e+=this._appId),le.hasOwnProperty(e)||(le[e]=0),`${e}${le[e]++}`}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ct(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Bt(t){return t!=null&&`${t}`!="false"}function ui(t){return t==null?"":typeof t=="string"?t:`${t}px`}function hi(t,i=/\s+/){let e=[];if(t!=null){let s=Array.isArray(t)?t:`${t}`.split(i);for(let n of s){let r=`${n}`.trim();r&&e.push(r)}}return e}var Ut=200,Z=class{_letterKeyStream=new l;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new l;selectedItem=this._selectedItem;constructor(i,e){let s=typeof e?.debounceInterval=="number"?e.debounceInterval:Ut;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(s)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ce(e=>this._pressedLetters.push(e)),S(i),Ie(()=>this._pressedLetters.length>0),D(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let s=1;s<this._items.length+1;s++){let n=(this._selectedItemIndex+s)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var M=class{_items;_activeItemIndex=-1;_activeItem=Oe(null);_wrap=!1;_typeaheadSubscription=pe.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof q?this._itemChangesSubscription=i.changes.subscribe(s=>this._itemsChanged(s.toArray())):Q(i)&&(this._effectRef=xe(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new l;change=new l;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Z(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:s=>this._skipPredicateFn(s)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(s=>{this.setActiveItem(s)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||ct(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),s=typeof i=="number"?i:e.indexOf(i),n=e[s];this._activeItem.set(n??null),this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let s=1;s<=e.length;s++){let n=(this._activeItemIndex+i*s+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){let s=this._getItemsArray();if(s[i]){for(;this._skipPredicateFn(s[i]);)if(i+=e,!s[i])return;this.setActiveItem(i)}}_getItemsArray(){return Q(this._items)?this._items():this._items instanceof q?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let s=i.indexOf(e);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s,this._typeahead?.setCurrentSelectedItemIndex(s))}}};var he=class extends M{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var fe=class extends M{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var ut=" ";function Kt(t,i,e){let s=Y(t,i);e=e.trim(),!s.some(n=>n.trim()===e)&&(s.push(e),t.setAttribute(i,s.join(ut)))}function Vt(t,i,e){let s=Y(t,i);e=e.trim();let n=s.filter(r=>r!==e);n.length?t.setAttribute(i,n.join(ut)):t.removeAttribute(i)}function Y(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lt="cdk-describedby-message",$="cdk-describedby-host",me=0,Qi=(()=>{class t{_platform=o(u);_document=o(h);_messageRegistry=new Map;_messagesContainer=null;_id=`${me++}`;constructor(){o(R).load(V),this._id=o(B)+"-"+me++}describe(e,s,n){if(!this._canBeDescribed(e,s))return;let r=_e(s,n);typeof s!="string"?(dt(s,this._id),this._messageRegistry.set(r,{messageElement:s,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(s,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,s,n){if(!s||!this._isElementNode(e))return;let r=_e(s,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof s=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${$}="${this._id}"]`);for(let s=0;s<e.length;s++)this._removeCdkDescribedByReferenceIds(e[s]),e[s].removeAttribute($);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,s){let n=this._document.createElement("div");dt(n,this._id),n.textContent=e,s&&n.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(n),this._messageRegistry.set(_e(e,s),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<s.length;r++)s[r].remove();let n=this._document.createElement("div");n.style.visibility="hidden",n.classList.add(e),n.classList.add("cdk-visually-hidden"),this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._messagesContainer=n}_removeCdkDescribedByReferenceIds(e){let s=Y(e,"aria-describedby").filter(n=>n.indexOf(lt)!=0);e.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(e,s){let n=this._messageRegistry.get(s);Kt(e,"aria-describedby",n.messageElement.id),e.setAttribute($,this._id),n.referenceCount++}_removeMessageReference(e,s){let n=this._messageRegistry.get(s);n.referenceCount--,Vt(e,"aria-describedby",n.messageElement.id),e.removeAttribute($)}_isElementDescribedByMessage(e,s){let n=Y(e,"aria-describedby"),r=this._messageRegistry.get(s),a=r&&r.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,s){if(!this._isElementNode(e))return!1;if(s&&typeof s=="object")return!0;let n=s==null?"":`${s}`.trim(),r=e.getAttribute("aria-label");return n?!r||r.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(s){return new(s||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _e(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function dt(t,i){t.id||(t.id=`${lt}-${i}-${me++}`)}var dn=(()=>{class t{constructor(){o(W)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(s){return new(s||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[ue,ue]})}return t})();function ln(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var C,ht=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fn(){if(C)return C;if(typeof document!="object"||!document)return C=new Set(ht),C;let t=document.createElement("input");return C=new Set(ht.filter(i=>(t.setAttribute("type",i),t.type===i))),C}export{ee as a,te as b,ie as c,ne as d,v as e,O as f,u as g,oe as h,_t as i,F as j,$e as k,mt as l,R as m,V as n,ce as o,Ye as p,tt as q,it as r,wt as s,Lt as t,Rt as u,ln as v,ui as w,Pt as x,k as y,Xs as z,Js as A,ue as B,jt as C,ct as D,Bt as E,hi as F,fe as G,he as H,Kt as I,Vt as J,Qi as K,dn as L,fn as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ws,b as Ps}from"./chunk-
|
|
1
|
+
import{a as Ws,b as Ps}from"./chunk-B67DSLBY.js";import{ja as xs,ma as Ns,pa as bt}from"./chunk-OJMQBH6T.js";import{c as Ts,e as Fi,g as bs}from"./chunk-66YHNWRR.js";var Nt=Fi((xt,ye)=>{(function(W,l){typeof xt=="object"&&typeof ye<"u"?ye.exports=l():typeof define=="function"&&define.amd?define(l):W.moment=l()})(xt,function(){"use strict";var W;function l(){return W.apply(null,arguments)}function u(e){W=e}function c(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function T(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Me(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(y(e,t))return!1;return!0}function N(e){return e===void 0}function G(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function we(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wt(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function K(e,t){for(var s in t)y(t,s)&&(e[s]=t[s]);return y(t,"toString")&&(e.toString=t.toString),y(t,"valueOf")&&(e.valueOf=t.valueOf),e}function E(e,t,s,r){return as(e,t,s,r,!0).utc()}function Fs(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return e._pf==null&&(e._pf=Fs()),e._pf}var Je;Array.prototype.some?Je=Array.prototype.some:Je=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Qe(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=_(e),s=Je.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function xe(e){var t=E(NaN);return e!=null?K(_(t),e):_(t).userInvalidated=!0,t}var Pt=l.momentProperties=[],Xe=!1;function Ke(e,t){var s,r,a,n=Pt.length;if(N(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),N(t._i)||(e._i=t._i),N(t._f)||(e._f=t._f),N(t._l)||(e._l=t._l),N(t._strict)||(e._strict=t._strict),N(t._tzm)||(e._tzm=t._tzm),N(t._isUTC)||(e._isUTC=t._isUTC),N(t._offset)||(e._offset=t._offset),N(t._pf)||(e._pf=_(t)),N(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=Pt[s],a=t[r],N(a)||(e[r]=a);return e}function De(e){Ke(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xe===!1&&(Xe=!0,l.updateOffset(this),Xe=!1)}function L(e){return e instanceof De||e!=null&&e._isAMomentObject!=null}function Rt(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function R(e,t){var s=!0;return K(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),s){var r=[],a,n,i,d=arguments.length;for(n=0;n<d;n++){if(a="",typeof arguments[n]=="object"){a+=`
|
|
2
2
|
[`+n+"] ";for(i in arguments[0])y(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}Rt(e+`
|
|
3
3
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
4
4
|
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ft={};function It(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),Ft[e]||(Rt(t),Ft[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Is(e){var t,s;for(s in e)y(e,s)&&(t=e[s],U(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function et(e,t){var s=K({},e),r;for(r in t)y(t,r)&&(T(e[r])&&T(t[r])?(s[r]={},K(s[r],e[r]),K(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)y(e,r)&&!y(t,r)&&T(e[r])&&(s[r]=K({},s[r]));return s}function tt(e){e!=null&&this.set(e)}var st;Object.keys?st=Object.keys:st=function(e){var t,s=[];for(t in e)y(e,t)&&s.push(t);return s};var Ls={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Cs(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return U(r)?r.call(t,s):r}function H(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var rt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,at={},oe={};function f(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(oe[e]=a),t&&(oe[t[0]]=function(){return H(a.apply(this,arguments),t[1],t[2])}),s&&(oe[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function As(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Es(e){var t=e.match(rt),s,r;for(s=0,r=t.length;s<r;s++)oe[t[s]]?t[s]=oe[t[s]]:t[s]=As(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=U(t[i])?t[i].call(a,e):t[i];return n}}function We(e,t){return e.isValid()?(t=Lt(t,e.localeData()),at[t]=at[t]||Es(t),at[t](e)):e.localeData().invalidDate()}function Lt(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(Ne.lastIndex=0;s>=0&&Ne.test(e);)e=e.replace(Ne,r),Ne.lastIndex=0,s-=1;return e}var Us={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Hs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(rt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Vs="Invalid date";function Gs(){return this._invalidDate}var js="%d",zs=/\d{1,2}/;function $s(e){return this._ordinal.replace("%d",e)}var Zs={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qs(e,t,s,r){var a=this._relativeTime[s];return U(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Bs(e,t){var s=this._relativeTime[e>0?"future":"past"];return U(s)?s(t):s.replace(/%s/i,t)}var Ct={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return typeof e=="string"?Ct[e]||Ct[e.toLowerCase()]:void 0}function nt(e){var t={},s,r;for(r in e)y(e,r)&&(s=F(r),s&&(t[s]=e[r]));return t}var Js={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Qs(e){var t=[],s;for(s in e)y(e,s)&&t.push({unit:s,priority:Js[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var At=/\d/,P=/\d\d/,Et=/\d{3}/,it=/\d{4}/,Pe=/[+-]?\d{6}/,S=/\d\d?/,Ut=/\d\d\d\d?/,Ht=/\d\d\d\d\d\d?/,Re=/\d{1,3}/,ot=/\d{1,4}/,Fe=/[+-]?\d{1,6}/,le=/\d+/,Ie=/[+-]?\d+/,Xs=/Z|[+-]\d\d:?\d\d/gi,Le=/Z|[+-]\d\d(?::?\d\d)?/gi,Ks=/[+-]?\d+(\.\d{1,3})?/,ge=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue=/^[1-9]\d?/,lt=/^([1-9]\d|\d)/,Ce;Ce={};function h(e,t,s){Ce[e]=U(t)?t:function(r,a){return r&&s?s:t}}function er(e,t){return y(Ce,e)?Ce[e](t._strict,t._locale):new RegExp(tr(e))}function tr(e){return j(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function j(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function I(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=I(t)),s}var ut={};function k(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),G(t)&&(r=function(n,i){i[t]=M(n)}),a=e.length,s=0;s<a;s++)ut[e[s]]=r}function ke(e,t){k(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function sr(e,t,s){t!=null&&y(ut,e)&&ut[e](t,s._a,s,e)}function Ae(e){return e%4===0&&e%100!==0||e%400===0}var b=0,z=1,V=2,O=3,C=4,$=5,re=6,rr=7,ar=8;f("Y",0,0,function(){var e=this.year();return e<=9999?H(e,4):"+"+e}),f(0,["YY",2],0,function(){return this.year()%100}),f(0,["YYYY",4],0,"year"),f(0,["YYYYY",5],0,"year"),f(0,["YYYYYY",6,!0],0,"year"),h("Y",Ie),h("YY",S,P),h("YYYY",ot,it),h("YYYYY",Fe,Pe),h("YYYYYY",Fe,Pe),k(["YYYYY","YYYYYY"],b),k("YYYY",function(e,t){t[b]=e.length===2?l.parseTwoDigitYear(e):M(e)}),k("YY",function(e,t){t[b]=l.parseTwoDigitYear(e)}),k("Y",function(e,t){t[b]=parseInt(e,10)});function Se(e){return Ae(e)?366:365}l.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var Vt=de("FullYear",!0);function nr(){return Ae(this.year())}function de(e,t){return function(s){return s!=null?(Gt(this,e,s),l.updateOffset(this,t),this):pe(this,e)}}function pe(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Gt(e,t,s){var r,a,n,i,d;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),d=e.date(),d=d===29&&i===1&&!Ae(n)?28:d,a?r.setUTCFullYear(n,i,d):r.setFullYear(n,i,d)}}function ir(e){return e=F(e),U(this[e])?this[e]():this}function or(e,t){if(typeof e=="object"){e=nt(e);var s=Qs(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=F(e),U(this[e]))return this[e](t);return this}function lr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=lr(t,12);return e+=(t-s)/12,s===1?Ae(e)?29:28:31-s%7%2}f("M",["MM",2],"Mo",function(){return this.month()+1}),f("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),f("MMMM",0,0,function(e){return this.localeData().months(this,e)}),h("M",S,ue),h("MM",S,P),h("MMM",function(e,t){return t.monthsShortRegex(e)}),h("MMMM",function(e,t){return t.monthsRegex(e)}),k(["M","MM"],function(e,t){t[z]=M(e)-1}),k(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[z]=a:_(s).invalidMonth=e});var ur="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,dr=ge,hr=ge;function fr(e,t){return e?c(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||zt).test(t)?"format":"standalone"][e.month()]:c(this._months)?this._months:this._months.standalone}function cr(e,t){return e?c(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[zt.test(t)?"format":"standalone"][e.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function mr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=E([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=Y.call(this._shortMonthsParse,i),a!==-1?a:null):(a=Y.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=Y.call(this._shortMonthsParse,i),a!==-1?a:(a=Y.call(this._longMonthsParse,i),a!==-1?a:null)):(a=Y.call(this._longMonthsParse,i),a!==-1?a:(a=Y.call(this._shortMonthsParse,i),a!==-1?a:null))}function _r(e,t,s){var r,a,n;if(this._monthsParseExact)return mr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=E([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function $t(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!G(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,dt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function Zt(e){return e!=null?($t(this,e),l.updateOffset(this,!0),this):pe(this,"Month")}function yr(){return dt(this.year(),this.month())}function Mr(e){return this._monthsParseExact?(y(this,"_monthsRegex")||qt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,"_monthsShortRegex")||(this._monthsShortRegex=dr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function wr(e){return this._monthsParseExact?(y(this,"_monthsRegex")||qt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(y(this,"_monthsRegex")||(this._monthsRegex=hr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qt(){function e(m,w){return w.length-m.length}var t=[],s=[],r=[],a,n,i,d;for(a=0;a<12;a++)n=E([2e3,a]),i=j(this.monthsShort(n,"")),d=j(this.months(n,"")),t.push(i),s.push(d),r.push(d),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Dr(e,t,s,r,a,n,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,s,r,a,n,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,s,r,a,n,i),d}function ve(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,s){var r=7+t-s,a=(7+ve(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Bt(e,t,s,r,a){var n=(7+s-r)%7,i=Ee(e,r,a),d=1+7*(t-1)+n+i,m,w;return d<=0?(m=e-1,w=Se(m)+d):d>Se(e)?(m=e+1,w=d-Se(e)):(m=e,w=d),{year:m,dayOfYear:w}}function Ye(e,t,s){var r=Ee(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+Z(i,t,s)):a>Z(e.year(),t,s)?(n=a-Z(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Z(e,t,s){var r=Ee(e,t,s),a=Ee(e+1,t,s);return(Se(e)-r+a)/7}f("w",["ww",2],"wo","week"),f("W",["WW",2],"Wo","isoWeek"),h("w",S,ue),h("ww",S,P),h("W",S,ue),h("WW",S,P),ke(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=M(e)});function gr(e){return Ye(e,this._week.dow,this._week.doy).week}var kr={dow:0,doy:6};function Sr(){return this._week.dow}function pr(){return this._week.doy}function vr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yr(e){var t=Ye(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}f("d",0,"do","day"),f("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),f("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),f("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),f("e",0,0,"weekday"),f("E",0,0,"isoWeekday"),h("d",S),h("e",S),h("E",S),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:_(s).invalidWeekday=e}),ke(["d","e","E"],function(e,t,s,r){t[r]=M(e)});function Or(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var br="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nr=ge,Wr=ge,Pr=ge;function Rr(e,t){var s=c(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ht(s,this._week.dow):e?s[e.day()]:s}function Fr(e){return e===!0?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ir(e){return e===!0?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Lr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=E([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1||(a=Y.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=Y.call(this._minWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Cr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Lr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=E([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Ar(e){if(!this.isValid())return e!=null?this:NaN;var t=pe(this,"Day");return e!=null?(e=Or(e,this.localeData()),this.add(e-t,"d")):t}function Er(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ur(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Hr(e){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=Nr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vr(e){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gr(e){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ft(){function e(x,X){return X.length-x.length}var t=[],s=[],r=[],a=[],n,i,d,m,w;for(n=0;n<7;n++)i=E([2e3,1]).day(n),d=j(this.weekdaysMin(i,"")),m=j(this.weekdaysShort(i,"")),w=j(this.weekdays(i,"")),t.push(d),s.push(m),r.push(w),a.push(d),a.push(m),a.push(w);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ct(){return this.hours()%12||12}function jr(){return this.hours()||24}f("H",["HH",2],0,"hour"),f("h",["hh",2],0,ct),f("k",["kk",2],0,jr),f("hmm",0,0,function(){return""+ct.apply(this)+H(this.minutes(),2)}),f("hmmss",0,0,function(){return""+ct.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),f("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),f("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)});function Qt(e,t){f(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Qt("a",!0),Qt("A",!1);function Xt(e,t){return t._meridiemParse}h("a",Xt),h("A",Xt),h("H",S,lt),h("h",S,ue),h("k",S,ue),h("HH",S,P),h("hh",S,P),h("kk",S,P),h("hmm",Ut),h("hmmss",Ht),h("Hmm",Ut),h("Hmmss",Ht),k(["H","HH"],O),k(["k","kk"],function(e,t,s){var r=M(e);t[O]=r===24?0:r}),k(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),k(["h","hh"],function(e,t,s){t[O]=M(e),_(s).bigHour=!0}),k("hmm",function(e,t,s){var r=e.length-2;t[O]=M(e.substr(0,r)),t[C]=M(e.substr(r)),_(s).bigHour=!0}),k("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[O]=M(e.substr(0,r)),t[C]=M(e.substr(r,2)),t[$]=M(e.substr(a)),_(s).bigHour=!0}),k("Hmm",function(e,t,s){var r=e.length-2;t[O]=M(e.substr(0,r)),t[C]=M(e.substr(r))}),k("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[O]=M(e.substr(0,r)),t[C]=M(e.substr(r,2)),t[$]=M(e.substr(a))});function zr(e){return(e+"").toLowerCase().charAt(0)==="p"}var $r=/[ap]\.?m?\.?/i,Zr=de("Hours",!0);function qr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Kt={calendar:Ls,longDateFormat:Us,invalidDate:Vs,ordinal:js,dayOfMonthOrdinalParse:zs,relativeTime:Zs,months:ur,monthsShort:jt,week:kr,weekdays:br,weekdaysMin:xr,weekdaysShort:Jt,meridiemParse:$r},v={},Oe={},Te;function Br(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function es(e){return e&&e.toLowerCase().replace("_","-")}function Jr(e){for(var t=0,s,r,a,n;t<e.length;){for(n=es(e[t]).split("-"),s=n.length,r=es(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ue(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Br(n,r)>=s-1)break;s--}t++}return Te}function Qr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ue(e){var t=null,s;if(v[e]===void 0&&typeof ye<"u"&&ye&&ye.exports&&Qr(e))try{t=Te._abbr,s=Ts,s("./locale/"+e),ee(t)}catch{v[e]=null}return v[e]}function ee(e,t){var s;return e&&(N(t)?s=q(e):s=mt(e,t),s?Te=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Te._abbr}function mt(e,t){if(t!==null){var s,r=Kt;if(t.abbr=e,v[e]!=null)It("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=v[e]._config;else if(t.parentLocale!=null)if(v[t.parentLocale]!=null)r=v[t.parentLocale]._config;else if(s=Ue(t.parentLocale),s!=null)r=s._config;else return Oe[t.parentLocale]||(Oe[t.parentLocale]=[]),Oe[t.parentLocale].push({name:e,config:t}),null;return v[e]=new tt(et(r,t)),Oe[e]&&Oe[e].forEach(function(a){mt(a.name,a.config)}),ee(e),v[e]}else return delete v[e],null}function Xr(e,t){if(t!=null){var s,r,a=Kt;v[e]!=null&&v[e].parentLocale!=null?v[e].set(et(v[e]._config,t)):(r=Ue(e),r!=null&&(a=r._config),t=et(a,t),r==null&&(t.abbr=e),s=new tt(t),s.parentLocale=v[e],v[e]=s),ee(e)}else v[e]!=null&&(v[e].parentLocale!=null?(v[e]=v[e].parentLocale,e===ee()&&ee(e)):v[e]!=null&&delete v[e]);return v[e]}function q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Te;if(!c(e)){if(t=Ue(e),t)return t;e=[e]}return Jr(e)}function Kr(){return st(v)}function _t(e){var t,s=e._a;return s&&_(e).overflow===-2&&(t=s[z]<0||s[z]>11?z:s[V]<1||s[V]>dt(s[b],s[z])?V:s[O]<0||s[O]>24||s[O]===24&&(s[C]!==0||s[$]!==0||s[re]!==0)?O:s[C]<0||s[C]>59?C:s[$]<0||s[$]>59?$:s[re]<0||s[re]>999?re:-1,_(e)._overflowDayOfYear&&(t<b||t>V)&&(t=V),_(e)._overflowWeeks&&t===-1&&(t=rr),_(e)._overflowWeekday&&t===-1&&(t=ar),_(e).overflow=t),e}var ea=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ta=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sa=/Z|[+-]\d\d(?::?\d\d)?/,He=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ra=/^\/?Date\((-?\d+)/i,aa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,na={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ts(e){var t,s,r=e._i,a=ea.exec(r)||ta.exec(r),n,i,d,m,w=He.length,x=yt.length;if(a){for(_(e).iso=!0,t=0,s=w;t<s;t++)if(He[t][1].exec(a[1])){i=He[t][0],n=He[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=x;t<s;t++)if(yt[t][1].exec(a[3])){d=(a[2]||" ")+yt[t][0];break}if(d==null){e._isValid=!1;return}}if(!n&&d!=null){e._isValid=!1;return}if(a[4])if(sa.exec(a[4]))m="Z";else{e._isValid=!1;return}e._f=i+(d||"")+(m||""),wt(e)}else e._isValid=!1}function ia(e,t,s,r,a,n){var i=[oa(e),jt.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function oa(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function la(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ua(e,t,s){if(e){var r=Jt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return _(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function da(e,t,s){if(e)return na[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function ss(e){var t=aa.exec(la(e._i)),s;if(t){if(s=ia(t[4],t[3],t[2],t[5],t[6],t[7]),!ua(t[1],s,e))return;e._a=s,e._tzm=da(t[8],t[9],t[10]),e._d=ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function ha(e){var t=ra.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ts(e),e._isValid===!1)delete e._isValid;else return;if(ss(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function he(e,t,s){return e??t??s}function fa(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Mt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=fa(e),e._w&&e._a[V]==null&&e._a[z]==null&&ca(e),e._dayOfYear!=null&&(i=he(e._a[b],a[b]),(e._dayOfYear>Se(i)||e._dayOfYear===0)&&(_(e)._overflowDayOfYear=!0),s=ve(i,0,e._dayOfYear),e._a[z]=s.getUTCMonth(),e._a[V]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[C]===0&&e._a[$]===0&&e._a[re]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ve:Dr).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(_(e).weekdayMismatch=!0)}}function ca(e){var t,s,r,a,n,i,d,m,w;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=he(t.GG,e._a[b],Ye(p(),1,4).year),r=he(t.W,1),a=he(t.E,1),(a<1||a>7)&&(m=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,w=Ye(p(),n,i),s=he(t.gg,e._a[b],w.year),r=he(t.w,w.week),t.d!=null?(a=t.d,(a<0||a>6)&&(m=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(m=!0)):a=n),r<1||r>Z(s,n,i)?_(e)._overflowWeeks=!0:m!=null?_(e)._overflowWeekday=!0:(d=Bt(s,r,a,n,i),e._a[b]=d.year,e._dayOfYear=d.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function wt(e){if(e._f===l.ISO_8601){ts(e);return}if(e._f===l.RFC_2822){ss(e);return}e._a=[],_(e).empty=!0;var t=""+e._i,s,r,a,n,i,d=t.length,m=0,w,x;for(a=Lt(e._f,e._locale).match(rt)||[],x=a.length,s=0;s<x;s++)n=a[s],r=(t.match(er(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&_(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),m+=r.length),oe[n]?(r?_(e).empty=!1:_(e).unusedTokens.push(n),sr(n,r,e)):e._strict&&!r&&_(e).unusedTokens.push(n);_(e).charsLeftOver=d-m,t.length>0&&_(e).unusedInput.push(t),e._a[O]<=12&&_(e).bigHour===!0&&e._a[O]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[O]=ma(e._locale,e._a[O],e._meridiem),w=_(e).era,w!==null&&(e._a[b]=e._locale.erasConvertYear(w,e._a[b])),Mt(e),_t(e)}function ma(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function _a(e){var t,s,r,a,n,i,d=!1,m=e._f.length;if(m===0){_(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<m;a++)n=0,i=!1,t=Ke({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],wt(t),Qe(t)&&(i=!0),n+=_(t).charsLeftOver,n+=_(t).unusedTokens.length*10,_(t).score=n,d?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(d=!0));K(e,s||t)}function ya(e){if(!e._d){var t=nt(e._i),s=t.day===void 0?t.date:t.day;e._a=Wt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Mt(e)}}function Ma(e){var t=new De(_t(rs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function rs(e){var t=e._i,s=e._f;return e._locale=e._locale||q(e._l),t===null||s===void 0&&t===""?xe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),L(t)?new De(_t(t)):(we(t)?e._d=t:c(s)?_a(e):s?wt(e):wa(e),Qe(e)||(e._d=null),e))}function wa(e){var t=e._i;N(t)?e._d=new Date(l.now()):we(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ha(e):c(t)?(e._a=Wt(t.slice(0),function(s){return parseInt(s,10)}),Mt(e)):T(t)?ya(e):G(t)?e._d=new Date(t):l.createFromInputFallback(e)}function as(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(T(e)&&Me(e)||c(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,Ma(n)}function p(e,t,s,r){return as(e,t,s,r,!1)}var Da=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=p.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:xe()}),ga=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=p.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:xe()});function ns(e,t){var s,r;if(t.length===1&&c(t[0])&&(t=t[0]),!t.length)return p();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ka(){var e=[].slice.call(arguments,0);return ns("isBefore",e)}function Sa(){var e=[].slice.call(arguments,0);return ns("isAfter",e)}var pa=function(){return Date.now?Date.now():+new Date},be=["year","quarter","month","week","day","hour","minute","second","millisecond"];function va(e){var t,s=!1,r,a=be.length;for(t in e)if(y(e,t)&&!(Y.call(be,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[be[r]]){if(s)return!1;parseFloat(e[be[r]])!==M(e[be[r]])&&(s=!0)}return!0}function Ya(){return this._isValid}function Oa(){return A(NaN)}function Ve(e){var t=nt(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,d=t.hour||0,m=t.minute||0,w=t.second||0,x=t.millisecond||0;this._isValid=va(t),this._milliseconds=+x+w*1e3+m*6e4+d*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=q(),this._bubble()}function Ge(e){return e instanceof Ve}function Dt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ta(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&M(e[i])!==M(t[i]))&&n++;return n+a}function is(e,t){f(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+H(~~(s/60),2)+t+H(~~s%60,2)})}is("Z",":"),is("ZZ",""),h("Z",Le),h("ZZ",Le),k(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=gt(Le,e)});var ba=/([\+\-]|\d\d)/gi;function gt(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(ba)||["-",0,0],n=+(a[1]*60)+M(a[2]),n===0?0:a[0]==="+"?n:-n)}function kt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(L(e)||we(e)?e.valueOf():p(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),l.updateOffset(s,!1),s):p(e).local()}function St(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function xa(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=gt(Le,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=St(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?ds(this,A(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:St(this)}function Na(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wa(e){return this.utcOffset(0,e)}function Pa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(St(this),"m")),this}function Ra(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=gt(Xs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Fa(e){return this.isValid()?(e=e?p(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ia(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function La(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ke(e,this),e=rs(e),e._a?(t=e._isUTC?E(e._a):p(e._a),this._isDSTShifted=this.isValid()&&Ta(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ca(){return this.isValid()?!this._isUTC:!1}function Aa(){return this.isValid()?this._isUTC:!1}function os(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ea=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ua=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function A(e,t){var s=e,r=null,a,n,i;return Ge(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:G(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Ea.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:M(r[V])*a,h:M(r[O])*a,m:M(r[C])*a,s:M(r[$])*a,ms:M(Dt(r[re]*1e3))*a}):(r=Ua.exec(e))?(a=r[1]==="-"?-1:1,s={y:ae(r[2],a),M:ae(r[3],a),w:ae(r[4],a),d:ae(r[5],a),h:ae(r[6],a),m:ae(r[7],a),s:ae(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Ha(p(s.from),p(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ve(s),Ge(e)&&y(e,"_locale")&&(n._locale=e._locale),Ge(e)&&y(e,"_isValid")&&(n._isValid=e._isValid),n}A.fn=Ve.prototype,A.invalid=Oa;function ae(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function ls(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Ha(e,t){var s;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?s=ls(e,t):(s=ls(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function us(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(It(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=A(s,r),ds(this,a,e),this}}function ds(e,t,s,r){var a=t._milliseconds,n=Dt(t._days),i=Dt(t._months);e.isValid()&&(r=r??!0,i&&$t(e,pe(e,"Month")+i*s),n&&Gt(e,"Date",pe(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Va=us(1,"add"),Ga=us(-1,"subtract");function hs(e){return typeof e=="string"||e instanceof String}function ja(e){return L(e)||we(e)||hs(e)||G(e)||$a(e)||za(e)||e===null||e===void 0}function za(e){var t=T(e)&&!Me(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||y(e,n);return t&&s}function $a(e){var t=c(e),s=!1;return t&&(s=e.filter(function(r){return!G(r)&&hs(e)}).length===0),t&&s}function Za(e){var t=T(e)&&!Me(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||y(e,n);return t&&s}function qa(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ba(e,t){arguments.length===1&&(arguments[0]?ja(arguments[0])?(e=arguments[0],t=void 0):Za(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||p(),r=kt(s,this).startOf("day"),a=l.calendarFormat(this,r)||"sameElse",n=t&&(U(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,p(s)))}function Ja(){return new De(this)}function Qa(e,t){var s=L(e)?e:p(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Xa(e,t){var s=L(e)?e:p(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Ka(e,t,s,r){var a=L(e)?e:p(e),n=L(t)?t:p(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function en(e,t){var s=L(e)?e:p(e),r;return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function tn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function rn(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=kt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=F(t),t){case"year":n=je(this,r)/12;break;case"month":n=je(this,r);break;case"quarter":n=je(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:I(n)}function je(e,t){if(e.date()<t.date())return-je(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function an(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nn(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?We(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",We(s,"Z")):We(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function on(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function ln(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=We(this,e);return this.localeData().postformat(t)}function un(e,t){return this.isValid()&&(L(e)&&e.isValid()||p(e).isValid())?A({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.from(p(),e)}function hn(e,t){return this.isValid()&&(L(e)&&e.isValid()||p(e).isValid())?A({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(p(),e)}function fs(e){var t;return e===void 0?this._locale._abbr:(t=q(e),t!=null&&(this._locale=t),this)}var cs=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ms(){return this._locale}var ze=1e3,fe=60*ze,$e=60*fe,_s=(365*400+97)*24*$e;function ce(e,t){return(e%t+t)%t}function ys(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-_s:new Date(e,t,s).valueOf()}function Ms(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-_s:Date.UTC(e,t,s)}function cn(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ms:ys,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ce(t+(this._isUTC?0:this.utcOffset()*fe),$e);break;case"minute":t=this._d.valueOf(),t-=ce(t,fe);break;case"second":t=this._d.valueOf(),t-=ce(t,ze);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function mn(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ms:ys,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=$e-ce(t+(this._isUTC?0:this.utcOffset()*fe),$e)-1;break;case"minute":t=this._d.valueOf(),t+=fe-ce(t,fe)-1;break;case"second":t=this._d.valueOf(),t+=ze-ce(t,ze)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function _n(){return this._d.valueOf()-(this._offset||0)*6e4}function yn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function wn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Dn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function gn(){return this.isValid()?this.toISOString():null}function kn(){return Qe(this)}function Sn(){return K({},_(this))}function pn(){return _(this).overflow}function vn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}f("N",0,0,"eraAbbr"),f("NN",0,0,"eraAbbr"),f("NNN",0,0,"eraAbbr"),f("NNNN",0,0,"eraName"),f("NNNNN",0,0,"eraNarrow"),f("y",["y",1],"yo","eraYear"),f("y",["yy",2],0,"eraYear"),f("y",["yyy",3],0,"eraYear"),f("y",["yyyy",4],0,"eraYear"),h("N",pt),h("NN",pt),h("NNN",pt),h("NNNN",In),h("NNNNN",Ln),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?_(s).era=a:_(s).invalidEra=e}),h("y",le),h("yy",le),h("yyy",le),h("yyyy",le),h("yo",Cn),k(["y","yy","yyy","yyyy"],b),k(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[b]=s._locale.eraYearOrdinalParse(e,a):t[b]=parseInt(e,10)});function Yn(e,t){var s,r,a,n=this._eras||q("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=l(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=l(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function On(e,t,s){var r,a,n=this.eras(),i,d,m;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),d=n[r].abbr.toUpperCase(),m=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(d===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(m===e)return n[r];break}else if([i,d,m].indexOf(e)>=0)return n[r]}function Tn(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function bn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function xn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Nn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Wn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-l(a[e].since).year())*s+a[e].offset;return this.year()}function Pn(e){return y(this,"_erasNameRegex")||vt.call(this),e?this._erasNameRegex:this._erasRegex}function Rn(e){return y(this,"_erasAbbrRegex")||vt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fn(e){return y(this,"_erasNarrowRegex")||vt.call(this),e?this._erasNarrowRegex:this._erasRegex}function pt(e,t){return t.erasAbbrRegex(e)}function In(e,t){return t.erasNameRegex(e)}function Ln(e,t){return t.erasNarrowRegex(e)}function Cn(e,t){return t._eraYearOrdinalRegex||le}function vt(){var e=[],t=[],s=[],r=[],a,n,i,d,m,w=this.eras();for(a=0,n=w.length;a<n;++a)i=j(w[a].name),d=j(w[a].abbr),m=j(w[a].narrow),t.push(i),e.push(d),s.push(m),r.push(i),r.push(d),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ze(e,t){f(0,[e,e.length],0,t)}Ze("gggg","weekYear"),Ze("ggggg","weekYear"),Ze("GGGG","isoWeekYear"),Ze("GGGGG","isoWeekYear"),h("G",Ie),h("g",Ie),h("GG",S,P),h("gg",S,P),h("GGGG",ot,it),h("gggg",ot,it),h("GGGGG",Fe,Pe),h("ggggg",Fe,Pe),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=M(e)}),ke(["gg","GG"],function(e,t,s,r){t[r]=l.parseTwoDigitYear(e)});function An(e){return ws.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function En(e){return ws.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Un(){return Z(this.year(),1,4)}function Hn(){return Z(this.isoWeekYear(),1,4)}function Vn(){var e=this.localeData()._week;return Z(this.year(),e.dow,e.doy)}function Gn(){var e=this.localeData()._week;return Z(this.weekYear(),e.dow,e.doy)}function ws(e,t,s,r,a){var n;return e==null?Ye(this,r,a).year:(n=Z(e,r,a),t>n&&(t=n),jn.call(this,e,t,s,r,a))}function jn(e,t,s,r,a){var n=Bt(e,t,s,r,a),i=ve(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}f("Q",0,"Qo","quarter"),h("Q",At),k("Q",function(e,t){t[z]=(M(e)-1)*3});function zn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}f("D",["DD",2],"Do","date"),h("D",S,ue),h("DD",S,P),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],V),k("Do",function(e,t){t[V]=M(e.match(S)[0])});var Ds=de("Date",!0);f("DDD",["DDDD",3],"DDDo","dayOfYear"),h("DDD",Re),h("DDDD",Et),k(["DDD","DDDD"],function(e,t,s){s._dayOfYear=M(e)});function $n(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}f("m",["mm",2],0,"minute"),h("m",S,lt),h("mm",S,P),k(["m","mm"],C);var Zn=de("Minutes",!1);f("s",["ss",2],0,"second"),h("s",S,lt),h("ss",S,P),k(["s","ss"],$);var qn=de("Seconds",!1);f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return this.millisecond()*10}),f(0,["SSSSS",5],0,function(){return this.millisecond()*100}),f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),h("S",Re,At),h("SS",Re,P),h("SSS",Re,Et);var te,gs;for(te="SSSS";te.length<=9;te+="S")h(te,le);function Bn(e,t){t[re]=M(("0."+e)*1e3)}for(te="S";te.length<=9;te+="S")k(te,Bn);gs=de("Milliseconds",!1),f("z",0,0,"zoneAbbr"),f("zz",0,0,"zoneName");function Jn(){return this._isUTC?"UTC":""}function Qn(){return this._isUTC?"Coordinated Universal Time":""}var o=De.prototype;o.add=Va,o.calendar=Ba,o.clone=Ja,o.diff=rn,o.endOf=mn,o.format=ln,o.from=un,o.fromNow=dn,o.to=hn,o.toNow=fn,o.get=ir,o.invalidAt=pn,o.isAfter=Qa,o.isBefore=Xa,o.isBetween=Ka,o.isSame=en,o.isSameOrAfter=tn,o.isSameOrBefore=sn,o.isValid=kn,o.lang=cs,o.locale=fs,o.localeData=ms,o.max=ga,o.min=Da,o.parsingFlags=Sn,o.set=or,o.startOf=cn,o.subtract=Ga,o.toArray=wn,o.toObject=Dn,o.toDate=Mn,o.toISOString=nn,o.inspect=on,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=gn,o.toString=an,o.unix=yn,o.valueOf=_n,o.creationData=vn,o.eraName=bn,o.eraNarrow=xn,o.eraAbbr=Nn,o.eraYear=Wn,o.year=Vt,o.isLeapYear=nr,o.weekYear=An,o.isoWeekYear=En,o.quarter=o.quarters=zn,o.month=Zt,o.daysInMonth=yr,o.week=o.weeks=vr,o.isoWeek=o.isoWeeks=Yr,o.weeksInYear=Vn,o.weeksInWeekYear=Gn,o.isoWeeksInYear=Un,o.isoWeeksInISOWeekYear=Hn,o.date=Ds,o.day=o.days=Ar,o.weekday=Er,o.isoWeekday=Ur,o.dayOfYear=$n,o.hour=o.hours=Zr,o.minute=o.minutes=Zn,o.second=o.seconds=qn,o.millisecond=o.milliseconds=gs,o.utcOffset=xa,o.utc=Wa,o.local=Pa,o.parseZone=Ra,o.hasAlignedHourOffset=Fa,o.isDST=Ia,o.isLocal=Ca,o.isUtcOffset=Aa,o.isUtc=os,o.isUTC=os,o.zoneAbbr=Jn,o.zoneName=Qn,o.dates=R("dates accessor is deprecated. Use date instead.",Ds),o.months=R("months accessor is deprecated. Use month instead",Zt),o.years=R("years accessor is deprecated. Use year instead",Vt),o.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Na),o.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",La);function Xn(e){return p(e*1e3)}function Kn(){return p.apply(null,arguments).parseZone()}function ks(e){return e}var g=tt.prototype;g.calendar=Cs,g.longDateFormat=Hs,g.invalidDate=Gs,g.ordinal=$s,g.preparse=ks,g.postformat=ks,g.relativeTime=qs,g.pastFuture=Bs,g.set=Is,g.eras=Yn,g.erasParse=On,g.erasConvertYear=Tn,g.erasAbbrRegex=Rn,g.erasNameRegex=Pn,g.erasNarrowRegex=Fn,g.months=fr,g.monthsShort=cr,g.monthsParse=_r,g.monthsRegex=wr,g.monthsShortRegex=Mr,g.week=gr,g.firstDayOfYear=pr,g.firstDayOfWeek=Sr,g.weekdays=Rr,g.weekdaysMin=Ir,g.weekdaysShort=Fr,g.weekdaysParse=Cr,g.weekdaysRegex=Hr,g.weekdaysShortRegex=Vr,g.weekdaysMinRegex=Gr,g.isPM=zr,g.meridiem=qr;function qe(e,t,s,r){var a=q(),n=E().set(r,t);return a[s](n,e)}function Ss(e,t,s){if(G(e)&&(t=e,e=void 0),e=e||"",t!=null)return qe(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=qe(e,r,s,"month");return a}function Yt(e,t,s,r){typeof e=="boolean"?(G(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,G(t)&&(s=t,t=void 0),t=t||"");var a=q(),n=e?a._week.dow:0,i,d=[];if(s!=null)return qe(t,(s+n)%7,r,"day");for(i=0;i<7;i++)d[i]=qe(t,(i+n)%7,r,"day");return d}function ei(e,t){return Ss(e,t,"months")}function ti(e,t){return Ss(e,t,"monthsShort")}function si(e,t,s){return Yt(e,t,s,"weekdays")}function ri(e,t,s){return Yt(e,t,s,"weekdaysShort")}function ai(e,t,s){return Yt(e,t,s,"weekdaysMin")}ee("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=M(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=R("moment.lang is deprecated. Use moment.locale instead.",ee),l.langData=R("moment.langData is deprecated. Use moment.localeData instead.",q);var B=Math.abs;function ni(){var e=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),e.milliseconds=B(e.milliseconds),e.seconds=B(e.seconds),e.minutes=B(e.minutes),e.hours=B(e.hours),e.months=B(e.months),e.years=B(e.years),this}function ps(e,t,s,r){var a=A(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function ii(e,t){return ps(this,e,t,1)}function oi(e,t){return ps(this,e,t,-1)}function vs(e){return e<0?Math.floor(e):Math.ceil(e)}function li(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,d,m;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=vs(Ot(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=I(e/1e3),r.seconds=a%60,n=I(a/60),r.minutes=n%60,i=I(n/60),r.hours=i%24,t+=I(i/24),m=I(Ys(t)),s+=m,t-=vs(Ot(m)),d=I(s/12),s%=12,r.days=t,r.months=s,r.years=d,this}function Ys(e){return e*4800/146097}function Ot(e){return e*146097/4800}function ui(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=F(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Ys(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ot(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function J(e){return function(){return this.as(e)}}var Os=J("ms"),di=J("s"),hi=J("m"),fi=J("h"),ci=J("d"),mi=J("w"),_i=J("M"),yi=J("Q"),Mi=J("y"),wi=Os;function Di(){return A(this)}function gi(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var ki=ne("milliseconds"),Si=ne("seconds"),pi=ne("minutes"),vi=ne("hours"),Yi=ne("days"),Oi=ne("months"),Ti=ne("years");function bi(){return I(this.days()/7)}var Q=Math.round,me={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function Ni(e,t,s,r){var a=A(e).abs(),n=Q(a.as("s")),i=Q(a.as("m")),d=Q(a.as("h")),m=Q(a.as("d")),w=Q(a.as("M")),x=Q(a.as("w")),X=Q(a.as("y")),se=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||d<=1&&["h"]||d<s.h&&["hh",d]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(se=se||x<=1&&["w"]||x<s.w&&["ww",x]),se=se||w<=1&&["M"]||w<s.M&&["MM",w]||X<=1&&["y"]||["yy",X],se[2]=t,se[3]=+e>0,se[4]=r,xi.apply(null,se)}function Wi(e){return e===void 0?Q:typeof e=="function"?(Q=e,!0):!1}function Pi(e,t){return me[e]===void 0?!1:t===void 0?me[e]:(me[e]=t,e==="s"&&(me.ss=t-1),!0)}function Ri(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=me,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},me,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Ni(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var Tt=Math.abs;function _e(e){return(e>0)-(e<0)||+e}function Be(){if(!this.isValid())return this.localeData().invalidDate();var e=Tt(this._milliseconds)/1e3,t=Tt(this._days),s=Tt(this._months),r,a,n,i,d=this.asSeconds(),m,w,x,X;return d?(r=I(e/60),a=I(r/60),e%=60,r%=60,n=I(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=d<0?"-":"",w=_e(this._months)!==_e(d)?"-":"",x=_e(this._days)!==_e(d)?"-":"",X=_e(this._milliseconds)!==_e(d)?"-":"",m+"P"+(n?w+n+"Y":"")+(s?w+s+"M":"")+(t?x+t+"D":"")+(a||r||e?"T":"")+(a?X+a+"H":"")+(r?X+r+"M":"")+(e?X+i+"S":"")):"P0D"}var D=Ve.prototype;D.isValid=Ya,D.abs=ni,D.add=ii,D.subtract=oi,D.as=ui,D.asMilliseconds=Os,D.asSeconds=di,D.asMinutes=hi,D.asHours=fi,D.asDays=ci,D.asWeeks=mi,D.asMonths=_i,D.asQuarters=yi,D.asYears=Mi,D.valueOf=wi,D._bubble=li,D.clone=Di,D.get=gi,D.milliseconds=ki,D.seconds=Si,D.minutes=pi,D.hours=vi,D.days=Yi,D.weeks=bi,D.months=Oi,D.years=Ti,D.humanize=Ri,D.toISOString=Be,D.toString=Be,D.toJSON=Be,D.locale=fs,D.localeData=ms,D.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Be),D.lang=cs,f("X",0,0,"unix"),f("x",0,0,"valueOf"),h("x",Ie),h("X",Ks),k("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,s){s._d=new Date(M(e))});return l.version="2.30.1",u(p),l.fn=o,l.min=ka,l.max=Sa,l.now=pa,l.utc=E,l.unix=Xn,l.months=ei,l.isDate=we,l.locale=ee,l.invalid=xe,l.duration=A,l.isMoment=L,l.weekdays=si,l.parseZone=Kn,l.localeData=q,l.isDuration=Ge,l.monthsShort=ti,l.weekdaysMin=ai,l.defineLocale=mt,l.updateLocale=Xr,l.locales=Kr,l.weekdaysShort=ri,l.normalizeUnits=F,l.relativeTimeRounding=Wi,l.relativeTimeThreshold=Pi,l.calendarFormat=qa,l.prototype=o,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l})});var Ii=bs(Nt(),1),Rs=bs(Nt(),1),ie=Rs.default||Ii,Li=new Ns("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Ci});function Ci(){return{useUtc:!1}}function Ai(W,l){let u=Array(W);for(let c=0;c<W;c++)u[c]=l(c);return u}var qi=(()=>{class W extends Ps{_options=bt(Li,{optional:!0});_localeData;constructor(){super();let u=bt(Ws,{optional:!0});this.setLocale(u||ie.locale())}setLocale(u){super.setLocale(u);let c=ie.localeData(u);this._localeData={firstDayOfWeek:c.firstDayOfWeek(),longMonths:c.months(),shortMonths:c.monthsShort(),dates:Ai(31,T=>this.createDate(2017,0,T+1).format("D")),longDaysOfWeek:c.weekdays(),shortDaysOfWeek:c.weekdaysShort(),narrowDaysOfWeek:c.weekdaysMin()}}getYear(u){return this.clone(u).year()}getMonth(u){return this.clone(u).month()}getDate(u){return this.clone(u).date()}getDayOfWeek(u){return this.clone(u).day()}getMonthNames(u){return u=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(u){return u=="long"?this._localeData.longDaysOfWeek:u=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(u){return this.clone(u).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(u){return this.clone(u).daysInMonth()}clone(u){return u.clone().locale(this.locale)}createDate(u,c,T){let y=this._createMoment({year:u,month:c,date:T}).locale(this.locale);return y.isValid(),y}today(){return this._createMoment().locale(this.locale)}parse(u,c){return u&&typeof u=="string"?this._createMoment(u,c,this.locale):u?this._createMoment(u).locale(this.locale):null}format(u,c){return u=this.clone(u),this.isValid(u),u.format(c)}addCalendarYears(u,c){return this.clone(u).add({years:c})}addCalendarMonths(u,c){return this.clone(u).add({months:c})}addCalendarDays(u,c){return this.clone(u).add({days:c})}toIso8601(u){return this.clone(u).format()}deserialize(u){let c;if(u instanceof Date)c=this._createMoment(u).locale(this.locale);else if(this.isDateInstance(u))return this.clone(u);if(typeof u=="string"){if(!u)return null;c=this._createMoment(u,ie.ISO_8601).locale(this.locale)}return c&&this.isValid(c)?this._createMoment(c).locale(this.locale):super.deserialize(u)}isDateInstance(u){return ie.isMoment(u)}isValid(u){return this.clone(u).isValid()}invalid(){return ie.invalid()}setTime(u,c,T,y){return this.clone(u).set({hours:c,minutes:T,seconds:y,milliseconds:0})}getHours(u){return u.hours()}getMinutes(u){return u.minutes()}getSeconds(u){return u.seconds()}parseTime(u,c){return this.parse(u,c)}addSeconds(u,c){return this.clone(u).add({seconds:c})}_createMoment(u,c,T){let{strict:y,useUtc:Me}=this._options||{};return Me?ie.utc(u,c,T,y):ie(u,c,T,y)}static \u0275fac=function(c){return new(c||W)};static \u0275prov=xs({token:W,factory:W.\u0275fac})}return W})();export{qi as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as Pt}from"./chunk-Z3ZYINRX.js";import"./chunk-UIFPDTMW.js";import{a as Et}from"./chunk-BQIB3N6V.js";import{a as Te,b as gt,c as Ct,d as xe,e as Ie}from"./chunk-2TN45S53.js";import"./chunk-6KBMGQMI.js";import{a as ft,b as be,c as _t,d as ye,f as vt,g as Tt,h as Fe,i as xt,o as ae}from"./chunk-B67DSLBY.js";import{b as St}from"./chunk-74ELVGDK.js";import{a as bt}from"./chunk-QHE3PKRD.js";import"./chunk-6RLISMEX.js";import{b as yt,d as Se}from"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import{b as Ft}from"./chunk-FPYZBABH.js";import"./chunk-WJAE4LW2.js";import"./chunk-WFT47MCY.js";import"./chunk-LRUVI2Z3.js";import{a as At,b as kt}from"./chunk-DZYBXWL2.js";import"./chunk-LDD4NVMB.js";import"./chunk-2HNZ6XV3.js";import"./chunk-WWISWZF5.js";import"./chunk-UYLSZYOD.js";import"./chunk-M7V7A7Z6.js";import"./chunk-QBL6V7QF.js";import"./chunk-DFGZ4L65.js";import{a as It}from"./chunk-RHHHL4OR.js";import"./chunk-3FPEQHTI.js";import{a as ht,b as ve}from"./chunk-5LQRO4AI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3RK6DDJD.js";import{a as Ce}from"./chunk-3UN6FPMN.js";import{a as mt,b as dt,f as ut}from"./chunk-LDPDLCRL.js";import"./chunk-UMP6ZMEJ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-UHTMVOX6.js";import"./chunk-7AE3725T.js";import"./chunk-JVNHFIYT.js";import"./chunk-3YP6ORBR.js";import{a as st,b as pt}from"./chunk-RTT3JVJM.js";import"./chunk-FJ455ZYZ.js";import"./chunk-6VHVQEVM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import"./chunk-RDRNWLJI.js";import{b as ot,e as re}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{d as H,e as Y}from"./chunk-PYXL7UF7.js";import{b as De,c as h}from"./chunk-PW42BQIY.js";import{m as lt,n as ct}from"./chunk-FO7G4GMY.js";import{A as oe,B as G,a as Qe,c as ne,e as me,h as $,i as W,l as ge,m as Ze,n as X,q as K,r as et,s as J,t as tt,u as it,v as nt,z as q}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as rt,s as at}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{g as A,j as k,n as T}from"./chunk-FXQKRJWU.js";import{$ as Ye,$c as x,Fc as _e,Gb as v,Gc as f,Hb as fe,Hc as ie,Ic as Q,K as Ge,Ka as D,Kc as Ke,Lc as Je,M as He,Mb as _,Mc as qe,Na as je,Oa as Me,Qc as F,Rc as he,Xb as We,Yb as s,Z as te,Zb as Oe,ad as I,ca as pe,dc as S,ea as U,ec as L,f as de,g as $e,gc as B,hc as R,ic as p,ja as M,jc as a,jd as ze,ka as ue,kc as d,lc as N,mc as w,oc as E,pa as u,rb as c,tc as y,uc as l,v as V,xa as O,xb as j,xc as Xe,ya as C,za as b}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var z=function(t){return t[t.SINGLE_DROP_DOWN=1]="SINGLE_DROP_DOWN",t[t.SINGLE_COMBO_BOX=2]="SINGLE_COMBO_BOX",t[t.FREE_TEXT_FILED=3]="FREE_TEXT_FILED",t[t.MULTI_DROP_DOWN=4]="MULTI_DROP_DOWN",t[t.MULTI_COMBO_BOX=5]="MULTI_COMBO_BOX",t}(z||{});var le=function(t){return t[t.FORMAT_NORMAL=1]="FORMAT_NORMAL",t[t.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",t}(le||{});var ce=function(t){return t[t.VALIDATOR_NO_VALIDATE_TYPE=0]="VALIDATOR_NO_VALIDATE_TYPE",t[t.VALIDATOR_INT_TYPE=1]="VALIDATOR_INT_TYPE",t[t.VALIDATOR_STRING_TYPE=2]="VALIDATOR_STRING_TYPE",t[t.VALIDATOR_FLOAT_TYPE=3]="VALIDATOR_FLOAT_TYPE",t[t.VALIDATOR_DATE_TYPE=4]="VALIDATOR_DATE_TYPE",t}(ce||{});var Ne=class extends ge{setValue(m,e){if(m instanceof Date){let i=Math.floor(m.getTime()/1e3);super.setValue(i,e)}else super.setValue(m,e)}},we=(()=>{class t{constructor(){this.shopeeUploadService=u(Te),this.formBuilder=u(q)}getAttributes(e){return this.shopeeUploadService.getAttributes(e.channelId,e.categoryId).pipe(V(i=>this.setLabelToIndonesian(i)))}setLabelToIndonesian(e=[]){let i,n;return e=e.map(o=>(i=o?.multi_lang?.find(r=>r.language=="id"),o.attribute_value_list=o?.attribute_value_list?.map(r=>(n=r?.multi_lang?.find(g=>g.language=="id"),r.name=n?.value,r)),o.name=i?.value?i?.value:o.name,o)),e}createFormGroup(e){let i=this.formBuilder.group({}),n=[];return e.forEach(o=>{if(n=[],o.mandatory&&n.push(me.required),o?.attribute_info?.format_type==le.FORMAT_QUANTITATIVE_WITH_UNIT&&o?.attribute_info?.input_type==z.FREE_TEXT_FILED){let r=this.formBuilder.group({unit:new ge(null),value:new ge(null,n)});i.addControl(JSON.stringify(o.attribute_id),r)}else o?.attribute_info?.input_type==z.FREE_TEXT_FILED&&o?.attribute_info?.input_validation_type==ce.VALIDATOR_DATE_TYPE?i.addControl(JSON.stringify(o.attribute_id),new Ne(null,n)):i.addControl(JSON.stringify(o.attribute_id),this.formBuilder.control(null,n))}),i}getFilteredAttributes(e,i){let n=JSON.parse(JSON.stringify(e)),o=Object.keys(i),r=n.filter(g=>o.findIndex(Pe=>parseInt(Pe)==g.attribute_id||g.mandatory)!=-1);return r=this.filterSelectedAttributes(r,i),r}filterSelectedAttributes(e,i){return e.map(o=>{switch(o.attribute_info.input_type){case z.MULTI_COMBO_BOX:h.IsNotEmpty(i[o.attribute_id])?o.attribute_value_list=o.attribute_value_list.filter(r=>i[o.attribute_id]?.findIndex(g=>g==r.value_id)!=-1):o.attribute_value_list=[];break;case z.FREE_TEXT_FILED:o.attribute_info.format_type==le.FORMAT_QUANTITATIVE_WITH_UNIT?o.attribute_value_list=this.setSelectedQuantitativeAttr(i[o.attribute_id]?.value,i[o.attribute_id]?.unit):o.attribute_info.input_validation_type==ce.VALIDATOR_DATE_TYPE?o.attribute_value_list=this.setSelectedDateAttr(i[o.attribute_id]):o.attribute_value_list=this.setSelectedQuantitativeAttr(i[o.attribute_id]);break;default:o.attribute_value_list=o.attribute_value_list.filter(r=>r.value_id==i[o.attribute_id])}return o}).filter(o=>o?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(e,i){let n=[];if(h.IsNotEmpty(e)){let o={value_id:0,original_value_name:JSON.stringify(e)};h.IsNotEmpty(i)&&(o.value_unit=i),n=[o]}return n}setSelectedDateAttr(e){let i=[];return h.IsNotEmpty(e)&&(i=[{value_id:0,original_value_name:JSON.stringify(e)}]),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac})}}return t})();var Ae=(()=>{class t{constructor(){this._calendarHeaderConfig=new $e({hideBtnClear:!1,hideBtnToday:!1}),this.calendarConfig=this._calendarHeaderConfig.value}setHeaderConfig(e){this._calendarHeaderConfig.next(e)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gt=["class","component ts"];function Ht(t,m){if(t&1){let e=E();p(0,"button",3),y("click",function(){C(e);let n=l(2);return b(n.todayClicked())}),d(1,"i",4),a()}}function Yt(t,m){if(t&1){let e=E();p(0,"button",5),y("click",function(){C(e);let n=l(2);return b(n.clearClicked())}),d(1,"i",6),a()}}function jt(t,m){if(t&1&&(N(0),_(1,Ht,2,0,"button",1)(2,Yt,2,0,"button",2),w()),t&2){let e=m.ngIf;c(),s("ngIf",!e.hideBtnToday),c(),s("ngIf",!e.hideBtnClear)}}var Ot=(()=>{class t{constructor(e,i,n,o,r){this._datePicker=e,this._calendar=i,this._dateAdapter=n,this.calendarService=o,this._destroyed=new de,i.stateChanges.pipe(pe(this._destroyed)).subscribe(g=>r.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(e){this._calendar.ngOnChanges(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}static{this.\u0275fac=function(i){return new(i||t)(j(Fe),j(Tt),j(be),j(Ae),j(ze))}}static{this.\u0275cmp=v({type:t,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[O],attrs:Gt,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(i,n){i&1&&(p(0,"mat-calendar-header"),_(1,jt,3,2,"ng-container",0),x(2,"async"),a()),i&2&&(c(),s("ngIf",I(2,1,n.calendarConfig$)))},dependencies:[A,yt,vt,k],encapsulation:2})}}return t})(),Dt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=fe({type:t})}static{this.\u0275inj=ue({providers:[ae],imports:[T,Se,ye,ae,Ce,ve]})}}return t})();function Wt(t,m){if(t&1&&(p(0,"mat-label",7)(1,"span"),f(2),a()()),t&2){let e=l();s("show",e.placeholder),c(2),ie(e.placeholder)}}var Xt={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"dddd, D MMMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"dddd, D MMMM YYYY",monthYearA11yLabel:"MMMM YYYY"}},Nt=(()=>{class t{set hidelClearBtn(e){this.calendarService.setHeaderConfig({hideBtnClear:e,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}change(e){let i=null;e&&(i=e.toDate(),i.setHours(0,0,0,0)),this.onChange(i),this.dateChange.emit(i)}constructor(e){this.calendarService=e,this.headerComponent=Ot,this.appearance="outline",this.isFloatingLabel=!0,this.disabled=!1,this.readOnly=!1,this.dateChange=new D,this.minDate=h.MinDate,this.onChange=i=>{},this.displayToggle=!0}writeValue(e){this.date=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){this.disabled=e}onOpenDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="inside")}}onCloseDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}static{this.\u0275fac=function(i){return new(i||t)(j(Ae))}}static{this.\u0275cmp=v({type:t,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[F([{provide:be,useClass:Et,deps:[ft]},{provide:_t,useValue:Xt},{provide:Qe,multi:!0,useExisting:t}])],decls:7,vars:16,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","","aria-hidden","true",1,"datepicker-toggle-icon",3,"click"],[1,"fa-regular","fa-angle-down"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(i,n){if(i&1){let o=E();p(0,"mat-form-field",1),_(1,Wt,3,2,"mat-label",2),p(2,"input",3),y("dateChange",function(g){return C(o),b(n.change(g.value))})("click",function(){C(o);let g=_e(6);return b(g.open())}),a(),p(3,"span",4),y("click",function(){C(o);let g=_e(6);return b(g.open())}),d(4,"i",5),a(),p(5,"mat-datepicker",6,0),y("opened",function(){return C(o),b(n.onOpenDatepicker())})("closed",function(){return C(o),b(n.onCloseDatepicker())}),a()()}if(i&2){let o=_e(6);Oe("width",n.width||100,"%"),s("disabled",n.disabled)("appearance",n.appearance),c(),s("ngIf",n.isFloatingLabel&&n.placeholder),c(),Xe("placeholder",n.placeholder||""),s("matDatepicker",o)("min",n.minDateValidation)("max",n.maxDateValidation)("value",n.date==n.minDate?null:n.date)("disabled",n.disabled)("readonly",n.readOnly),We("data-cy",n.data_cy),c(),Oe("display",n.displayToggle?"unset":"none"),c(2),s("calendarHeaderComponent",n.headerComponent)}},dependencies:[A,Fe,xt,ut,mt,dt,ht],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:3px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}.datepicker .datepicker-toggle-icon{width:28px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-right:6px}.datepicker .datepicker-toggle-icon i{font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-weight:400;font-size:16px;line-height:1;color:#6b7280}
|
|
2
|
+
`],encapsulation:2})}}return t})(),wt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=fe({type:t})}static{this.\u0275inj=ue({providers:[ae],imports:[T,Se,ye,ae,Ce,ve,Dt,St]})}}return t})();var Ve=()=>[];function Jt(t,m){t&1&&(p(0,"span",5),f(1,"*"),a())}function qt(t,m){if(t&1&&d(0,"ng-select",6),t&2){let e=l().$implicit;s("multiple",!0)("formControlName",e.attribute_id)("items",e.attribute_value_list?e.attribute_value_list:he(4,Ve))("placeholder","Pilih "+(e==null?null:e.name))}}function zt(t,m){if(t&1&&d(0,"input",8),t&2){let e=l(2).$implicit;s("formControlName",e.attribute_id)("placeholder","Isi "+(e==null?null:e.name))}}function Qt(t,m){if(t&1&&(p(0,"option",15),f(1),a()),t&2){let e=m.$implicit;s("value",e),c(),ie(e)}}function Zt(t,m){if(t&1&&(p(0,"div",10),d(1,"input",12),p(2,"select",13)(3,"option",14),f(4,"Unit"),a(),B(5,Qt,2,2,"option",15,L),a()()),t&2){let e=l(3).$implicit;s("formGroupName",e.attribute_id),c(),s("placeholder","Isi "+(e==null?null:e.name)),c(2),s("value",null),c(2),R(e==null||e.attribute_info==null?null:e.attribute_info.attribute_unit_list)}}function ei(t,m){if(t&1&&d(0,"input",11),t&2){let e=l(3).$implicit;s("formControlName",e.attribute_id)("placeholder","Isi "+(e==null?null:e.name))}}function ti(t,m){if(t&1&&_(0,Zt,7,3,"div",10)(1,ei,1,2,"input",11),t&2){let e=l(2).$implicit,i=l(2);S((e==null||e.attribute_info==null?null:e.attribute_info.format_type)==i.formatType.FORMAT_QUANTITATIVE_WITH_UNIT?0:1)}}function ii(t,m){if(t&1&&d(0,"datepicker",9),t&2){let e=l(2).$implicit;s("formControlName",e.attribute_id)}}function ni(t,m){if(t&1&&_(0,zt,1,2,"input",8)(1,ti,2,1)(2,ii,1,1,"datepicker",9),t&2){let e,i=l().$implicit,n=l(2);S((e=i==null||i.attribute_info==null?null:i.attribute_info.input_validation_type)===n.validationType.VALIDATOR_STRING_TYPE?0:e===n.validationType.VALIDATOR_FLOAT_TYPE?1:e===n.validationType.VALIDATOR_DATE_TYPE?2:-1)}}function oi(t,m){if(t&1&&d(0,"ng-select",7),t&2){let e=l().$implicit;s("formControlName",e.attribute_id)("items",e.attribute_value_list?e.attribute_value_list:he(3,Ve))("placeholder","Pilih "+(e==null?null:e.name))}}function ri(t,m){if(t&1&&d(0,"ng-select",7),t&2){let e=l().$implicit;s("formControlName",e.attribute_id)("items",e.attribute_value_list?e.attribute_value_list:he(3,Ve))("placeholder","Pilih "+(e==null?null:e.name))}}function ai(t,m){if(t&1&&(p(0,"div",3)(1,"div",4),_(2,Jt,2,0,"span",5),p(3,"span"),f(4),a()(),_(5,qt,1,5,"ng-select",6)(6,ni,3,1)(7,oi,1,4,"ng-select",7)(8,ri,1,4,"ng-select",7),a()),t&2){let e,i=m.$implicit,n=l(2);c(2),S(i.mandatory?2:-1),c(2),Q(" ",i==null?null:i.name," "),c(),S((e=i==null||i.attribute_info==null?null:i.attribute_info.input_type)===n.inputType.MULTI_COMBO_BOX?5:e===n.inputType.FREE_TEXT_FILED?6:e===n.inputType.SINGLE_COMBO_BOX?7:8)}}function li(t,m){if(t&1&&(N(0),p(1,"form",1)(2,"div",2),B(3,ai,9,3,"div",3,L),a()(),w()),t&2){let e=m.ngIf,i=l();c(),s("formGroup",i.form),c(2),R(e)}}var Vt=(()=>{class t{constructor(){this.formCategoryService=u(we),this.attributesChanges=new D,this.inputType=z,this.formatType=le,this.validationType=ce}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.formCategoryService.getAttributes({categoryId:this.categoryId,channelId:this.channelId,channelType:this.channelType}).pipe(U(e=>{this.form=this.formCategoryService.createFormGroup(e),this.listenToFormChange(e)}),te(1)))}listenToFormChange(e){let i=[];this.formSubscription=this.form.valueChanges.subscribe(n=>{i=this.formCategoryService.getFilteredAttributes(e,n),this.attributesChanges.emit(i)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["shopee-attribute-form"]],inputs:{channelType:"channelType",categoryId:"categoryId",channelId:"channelId",channelProductUpload:"channelProductUpload"},outputs:{attributesChanges:"attributesChanges"},features:[F([we]),O],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],[1,"text-danger"],["bindLabel","name","bindValue","value_id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","value_id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"],[1,"attribute-datepicker",3,"formControlName"],[1,"d-flex","align-items-center",3,"formGroupName"],["type","text","autoNum","",1,"form-control",3,"formControlName","placeholder"],["formControlName","value","type","text","autoNum","",1,"form-control","me-1",2,"width","200px",3,"placeholder"],["name","unit","id","unit","formControlName","unit",1,"form-control"],["disabled","","selected","",3,"value"],[3,"value"]],template:function(i,n){i&1&&(_(0,li,5,1,"ng-container",0),x(1,"async")),i&2&&s("ngIf",I(1,1,n.attributes$))},dependencies:[T,A,k,Y,H,G,X,it,nt,ne,tt,$,W,K,J,et,It,wt,Nt],styles:["input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{height:36px;border-radius:4px} datepicker.attribute-datepicker>mat-form-field.mat-mdc-form-field>.mat-mdc-text-field-wrapper{height:36px} datepicker.attribute-datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:11px!important;padding-bottom:11px!important;height:36px;min-height:36px!important} datepicker.attribute-datepicker mat-datepicker-toggle>button.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 36px}"]})}}return t})();var ee=function(t){return t.TIKTOK_SHOP="TIKTOK_SHOP",t.TOKOPEDIA="TOKOPEDIA",t}(ee||{});var Ue=(()=>{class t{constructor(){this.httpService=u(re),this.formBuilder=u(q),this.uploadProductService=u(Ie)}getAttributes(e,i){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:e},{key:"CategoryID",value:i}]).pipe(Ge(o=>this.uploadProductService.selectedProduct$.pipe(V(r=>(o=this.mappingAttributeSalesProperty(o,r),o)))))}mappingAttributeSalesProperty(e,i){let n=0;return e.filter(o=>(o.type=="SALES_PROPERTY"&&(n+=1),n>1?(n=0,!1):!0)).map(o=>(o.type=="SALES_PROPERTY"&&(o.name="Jenis Variant",o.is_multiple_selection=!1,o.is_required=this.isProductHasMoreVariant(i),o.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),o))}isProductHasMoreVariant(e){let i=!1,n=[];return e.forEach(o=>{o.Variants&&n.push(o.Variants.length)}),i=n.some(o=>o>1),i}createFormGroup(e){let i=this.formBuilder.group({}),n=[];return e.forEach(o=>{n=[],o.is_required&&n.push(me.required),i.addControl(o.id,this.formBuilder.control(null,n))}),i.addControl("listingPlatform",this.formBuilder.control([ee.TIKTOK_SHOP,ee.TOKOPEDIA],[me.required])),i}getFilteredAttributes(e,i){let n=JSON.parse(JSON.stringify(e)),o=Object.keys(i),r=n.filter(g=>o.findIndex(Pe=>parseInt(Pe)==g.id)!=-1);return r=this.filterSelectedAttributes(r,i),r}filterSelectedAttributes(e,i){return e.map(o=>(h.IsNotEmpty(o.values)?o.is_multiple_selection?o.values=o.values.filter(r=>i[o.id]?.includes(r.id)):o.values=o.values.filter(r=>r.id==i[o.id]):i[o.id]&&(o.values=[{id:null,name:i[o.id]}]),o)).filter(o=>o?.values?.length>0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac})}}return t})();function ci(t,m){t&1&&(p(0,"small",6),f(1," Platform is required "),a())}function si(t,m){t&1&&(p(0,"span",6),f(1,"*"),a())}function pi(t,m){if(t&1&&d(0,"ng-select",7),t&2){let e=l().$implicit;s("multiple",!0)("formControlName",e.id)("items",e.values)("placeholder","Pilih "+(e==null?null:e.name))}}function mi(t,m){if(t&1&&d(0,"ng-select",8),t&2){let e=l().$implicit;s("formControlName",e.id)("items",e.values)("placeholder","Pilih "+(e==null?null:e.name))}}function di(t,m){if(t&1&&d(0,"input",9),t&2){let e=l().$implicit;s("formControlName",e.id)("placeholder",e==null?null:e.name)}}function ui(t,m){if(t&1&&(p(0,"small",6),f(1),a()),t&2){let e=l().$implicit;c(),Q(" ",e==null?null:e.name," is mandatory ")}}function fi(t,m){if(t&1&&(p(0,"div",3)(1,"div",4),_(2,si,2,0,"span",6),p(3,"span"),f(4),a()(),_(5,pi,1,4,"ng-select",7)(6,mi,1,3,"ng-select",8)(7,di,1,2,"input",9)(8,ui,2,1,"small",6),a()),t&2){let e=m.$implicit;c(2),S(e.is_required?2:-1),c(2),Q(" ",e==null?null:e.name," "),c(),S(e.is_multiple_selection?5:e.values!==null&&e.values.length>0?6:7),c(3),S(e.is_required?8:-1)}}function _i(t,m){if(t&1&&(N(0),p(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),f(6," Platform Options"),a()(),d(7,"ng-select",5),_(8,ci,2,0,"small",6),a(),B(9,fi,9,4,"div",3,L),a()(),w()),t&2){let e,i=m.ngIf,n=l();c(),s("formGroup",n.form),c(6),s("multiple",!0)("items",n.platformOptions)("clearable",!1),c(),S(!(n.form==null||(e=n.form.get("listingPlatform").errors)==null)&&e.required?8:-1),c(),R(i)}}var Ut=(()=>{class t{constructor(){this.tiktokAttributeFormService=u(Ue),this.platformChange=je({alias:"onPlatformChanges"}),this.formSubscription=new de,this.attributesChanges=new D,this.platformOptions=[{label:"TikTok Shop",value:ee.TIKTOK_SHOP},{label:"Tokopedia",value:ee.TOKOPEDIA}]}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(this.channelId,this.categoryId).pipe(V(e=>e.filter(i=>!(i.type=="PRODUCT_PROPERTY"&&(h.IsEmpty(i.values)||i.values?.length==0)&&i.is_customizable==!1))),U(e=>{this.form=this.tiktokAttributeFormService.createFormGroup(e),this.listenToFormChange(e)}),te(1)))}listenToFormChange(e){let i=[];this.form.valueChanges.pipe(pe(this.formSubscription)).subscribe(n=>{delete n.listingPlatform,i=this.tiktokAttributeFormService.getFilteredAttributes(e,n),this.attributesChanges.emit(i)}),this.form.get("listingPlatform").valueChanges.pipe(Ye(this.form.get("listingPlatform").value),pe(this.formSubscription)).subscribe(n=>{this.platformChange.emit(n)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["tiktok-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{platformChange:"onPlatformChanges",attributesChanges:"attributesChanges"},features:[F([Ue]),O],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","listingPlatform","bindLabel","label","bindValue","value","placeholder","Platform Options",3,"multiple","items","clearable"],[1,"text-danger"],["bindLabel","name","bindValue","id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"]],template:function(i,n){i&1&&(_(0,_i,11,5,"ng-container",0),x(1,"async")),i&2&&s("ngIf",I(1,1,n.attributes$))},dependencies:[T,A,k,Y,H,G,X,ne,$,W,K,J,oe],encapsulation:2})}}return t})();var Le=(()=>{class t{constructor(){this.woocommerceUploadService=u(xe)}getAttributes(e,i){return this.woocommerceUploadService.getAttributes(e,i).pipe(V(n=>n.map(o=>({key:o.name,label:o.name}))))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac})}}return t})();var Lt=(()=>{class t{constructor(){this.wooAttributeFormService=u(Le),this.channelId=Me(),this.categoryId=Me(),this.attributesChanges=new D}ngOnChanges(){h.IsNotEmpty(this.categoryId())&&h.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(e){this.attributesChanges.emit([e.key])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[F([Le]),O],decls:6,vars:3,consts:[[1,"row"],[1,"col-6"],[1,"mb-1"],["bindLabel","label","bindValue","id","placeholder","Pilih Atribut",3,"change","items"]],template:function(i,n){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),f(3,"Atribut"),a(),p(4,"ng-select",3),x(5,"async"),y("change",function(r){return n.onSelectAttribute(r)}),a()()()),i&2&&(c(4),s("items",I(5,1,n.attributes$)))},dependencies:[T,k,oe,Y,H,G],encapsulation:2})}}return t})();var Be=(()=>{class t{constructor(){this.httpService=u(re),this.formBuilder=u(q)}getAttributes(e,i){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:e},{key:"CategoryID",value:i}]).pipe(V(o=>o))}createFormGroup(e){let i=this.formBuilder.group({});return e.forEach(n=>{i.addControl(n.variant,this.formBuilder.control(null))}),i}convertAttributes(e={}){return Object.values(e).filter(n=>n!==null).map(n=>JSON.stringify(n))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac})}}return t})();function hi(t,m){if(t&1&&(p(0,"div",3)(1,"div",4),f(2),a(),d(3,"ng-select",5),a()),t&2){let e=m.$implicit;c(2),Q(" ",e==null?null:e.variant," "),c(),s("formControlName",e.variant)("items",e.values)("placeholder","Pilih "+(e==null?null:e.variant))}}function gi(t,m){if(t&1&&(N(0),p(1,"form",1)(2,"div",2),B(3,hi,4,4,"div",3,L),a()(),w()),t&2){let e=m.ngIf,i=l();c(),s("formGroup",i.form),c(2),R(e)}}var Bt=(()=>{class t{constructor(){this.tokpedAttrFormService=u(Be),this.attributesChanges=new D}ngOnInit(){}ngOnChanges(e){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(this.channelId,this.categoryId).pipe(U(i=>{this.form=this.tokpedAttrFormService.createFormGroup(i),this.listenToFormChange()})))}listenToFormChange(){let e=[];this.formSubscription=this.form.valueChanges.subscribe(i=>{e=this.tokpedAttrFormService.convertAttributes(i),this.attributesChanges.emit(e)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[F([Be]),O],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"]],template:function(i,n){i&1&&(_(0,gi,5,1,"ng-container",0),x(1,"async")),i&2&&s("ngIf",I(1,1,n.attributes$))},dependencies:[T,A,k,Y,H,G,X,$,W,K,J],encapsulation:2})}}return t})();var Re=(()=>{class t{constructor(){this.httpService=u(re),this.formBuilder=u(q)}getAttributes(e){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:e}]).pipe(U(n=>(n.Options.StatusOptions=n.Options.Status.map(o=>({id:o,name:o})),n)))}createFormGroup(e){let i=this.formBuilder.group({});return Object.keys(e.Attribute).forEach(o=>{i.addControl(o,this.formBuilder.control(null))}),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac})}}return t})();function Ci(t,m){if(t&1&&(N(0),p(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4),f(5," Brand "),a(),d(6,"input",5),a(),p(7,"div",6)(8,"div",4),f(9," Product Type "),a(),d(10,"input",7),a(),p(11,"div",6)(12,"div",4),f(13," Status "),a(),d(14,"ng-select",8),a()()(),w()),t&2){let e=m.ngIf,i=l();c(),s("formGroup",i.form),c(13),s("items",e.Options.StatusOptions)}}var Rt=(()=>{class t{constructor(){this.attributesChanges=new D,this.shopifyFormService=u(Re)}ngOnChanges(e){e.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId).pipe(U(i=>{this.form=this.shopifyFormService.createFormGroup(i),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(He(500)).subscribe(e=>{this.attributesChanges.emit([e])})}ngOnDestroy(){this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["shopify-attribute-form"]],inputs:{channelId:"channelId"},outputs:{attributesChanges:"attributesChanges"},features:[F([Re]),O],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","Brand","type","text","placeholder","brand",1,"form-control"],[1,"col-6"],["formControlName","ProductType","type","text","placeholder","Product Type",1,"form-control"],["formControlName","Status","bindLabel","name","bindValue","id","placeholder","Status",3,"items"]],template:function(i,n){i&1&&(_(0,Ci,15,2,"ng-container",0),x(1,"async")),i&2&&s("ngIf",I(1,1,n.attributes$))},dependencies:[T,A,k,G,X,ne,$,W,K,J,Y,H],encapsulation:2})}}return t})();function bi(t,m){if(t&1&&(p(0,"div",6),d(1,"app-product-card",9),a()),t&2){let e=m.$implicit;c(),s("productId",e==null?null:e.ID)("title",e==null?null:e.Name)("image",e==null?null:e.ThumbnailUrl)("description",(e==null||e.Variants==null?null:e.Variants.length)>1?(e==null||e.Variants==null?null:e.Variants.length)+" Variants":null)("imageForZoom",e==null?null:e.ImageUrl)("code",e==null||e.Variants[0]==null?null:e.Variants[0].Code)("showFooter",!1)}}function yi(t,m){if(t&1){let e=E();N(0),p(1,"mat-checkbox",21),qe("ngModelChange",function(n){C(e);let o=l().$implicit;return Je(o.selected,n)||(o.selected=n),b(n)}),y("ngModelChange",function(){let n=C(e).ngIf,o=l(),r=o.$implicit,g=o.$index,se=l();return b(se.onSelectChannel(r,g,n))}),a(),w()}if(t&2){let e=l().$implicit;c(),Ke("ngModel",e.selected)}}function vi(t,m){if(t&1&&(p(0,"div",18),d(1,"input",22),a()),t&2){let e=l().$implicit,i=l();s("matTooltip",e.type==i.channelType.Shopify?"Cannot change category, please change category in admin.shopify.com":e.type==i.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function Ti(t,m){if(t&1){let e=E();p(0,"app-channel-category-select",23),y("selectedCategory",function(n){C(e);let o=l().$index,r=l();return b(r.onCategoryChange(o,n))}),a()}if(t&2){let e=l().$implicit,i=l();s("disabled",!e.selected||e.selected&&e.type==i.channelType.Lazada)("channelId",e.id)("channelType",e.type)("categoryId",e.categoryId)}}function xi(t,m){if(t&1){let e=E();p(0,"shopee-attribute-form",27),y("attributesChanges",function(n){C(e);let o=l(2).$index,r=l();return b(r.onAttributesChange(o,n))}),a()}if(t&2){let e=l(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)("channelType",e.type)}}function Ii(t,m){if(t&1){let e=E();p(0,"tiktok-attribute-form",28),y("attributesChanges",function(n){C(e);let o=l(2).$index,r=l();return b(r.onAttributesChange(o,n))})("onPlatformChanges",function(n){C(e);let o=l(2).$index,r=l();return b(r.onPlatformChange(o,n))}),a()}if(t&2){let e=l(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)}}function Si(t,m){if(t&1){let e=E();p(0,"wooocommerce-attribute-form",29),y("attributesChanges",function(n){C(e);let o=l(2).$index,r=l();return b(r.onAttributesChange(o,n))}),a()}if(t&2){let e=l(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)}}function Fi(t,m){if(t&1){let e=E();p(0,"tokopedia-attribute-form",29),y("attributesChanges",function(n){C(e);let o=l(2).$index,r=l();return b(r.onAttributesChange(o,n))}),a()}if(t&2){let e=l(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)}}function Ai(t,m){if(t&1&&(p(0,"div",20)(1,"div",24),_(2,xi,1,3,"shopee-attribute-form",25)(3,Ii,1,2,"tiktok-attribute-form",26)(4,Si,1,2,"wooocommerce-attribute-form",26)(5,Fi,1,2,"tokopedia-attribute-form",26),a()()),t&2){let e,i=l().$implicit,n=l();c(2),S((e=i.type)===n.channelType.Shopee?2:e===n.channelType.Tiktok?3:e===n.channelType.WooCommerce?4:e===n.channelType.Tokopedia?5:-1)}}function ki(t,m){if(t&1){let e=E();p(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",30),y("attributesChanges",function(n){C(e);let o=l().$index,r=l();return b(r.onAttributesChange(o,n))}),a()()()}if(t&2){let e=l().$implicit;c(2),s("channelId",e.id)}}function Ei(t,m){if(t&1&&(p(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),_(6,yi,2,1,"ng-container",14),x(7,"async"),a(),p(8,"div"),d(9,"app-channel-logo",15),a(),p(10,"div",16)(11,"span"),f(12),a()()()(),p(13,"div",12)(14,"div",17),_(15,vi,2,1,"div",18)(16,Ti,1,4,"app-channel-category-select",19),a()()(),_(17,Ai,6,1,"div",20)(18,ki,3,1,"div",20),a()()),t&2){let e=m.$implicit,i=l();c(6),s("ngIf",I(7,8,i.defaultCategories$)),c(3),s("typeId",e.type)("showChannelName",!1),c(),s("matTooltip",e.name)("matTooltipShowDelay",2500),c(2),ie(e.name),c(3),S(e.type==i.channelType.Shopify||e.type==i.channelType.Plugo?15:16),c(2),S(e.categoryId&&i.channelType.Lazada!=e.type&&e.selected?17:i.channelType.Shopify==e.type&&e.selected?18:-1)}}var Er=(()=>{class t{constructor(){this.toastr=u(ot),this.uploadProductService=u(Ie),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=De,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(te(1))}onCategoryChange(e,i){this.channelProductUploads.update(n=>n.map((o,r)=>(r==e&&(o.categoryId=i,o.attributes=[]),o)))}onPlatformChange(e,i){this.channelProductUploads.update(n=>n.map((o,r)=>(r==e&&(o.listing_platforms=i),o)))}onAttributesChange(e,i){this.channelProductUploads.update(n=>n.map((o,r)=>(r==e&&(o.attributes=i),o)))}tiktokPlatformChanges(e,i){this.channelProductUploads.update(n=>n.map((o,r)=>(r==e&&(o.listing_platforms=i),o)))}onSelectChannel(e,i,n){this.channelProductUploads.update(o=>o.map((r,g)=>{if(g==i&&e.selected){let se=this.findCategoryByChannelId(e.id,n);r.categoryId=se?.DefaultCategoryID}return g==i&&!e.selected&&(r.categoryId=null),r}))}findCategoryByChannelId(e,i){return i.find(n=>n.ID===e)}onUploadProduct(){if(this.checkTiktokPlatform()==!1){this.toastr.error("Please select at least one platform for TikTok channel","Platform is Required");return}this.uploadProductService.onUploadProduct(this.channelProductUploads())}checkTiktokPlatform(){return this.channelProductUploads().every(i=>i.type==De.Tiktok&&h.IsNotEmpty(i?.categoryId)?i.listing_platforms.length>0:!0)}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["app-product-upload"]],features:[F([Te,gt,Ct,xe])],decls:17,vars:5,consts:[["headerTitle","Upload Product To Channel",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-upload"],[1,"container-fluid","mt-6"],[1,"ps-3","mt-8","pb-5","fw-medium"],[1,"row","mb-10","ps-3"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"ps-3","mb-8","border-bottom","pb-5","fw-medium"],[1,"row","mb-6"],[3,"productId","title","image","description","imageForZoom","code","showFooter"],[1,"col-12"],[1,"row"],[1,"col-3"],[1,"d-flex","align-items-center"],[4,"ngIf"],[3,"typeId","showChannelName"],[2,"overflow","hidden","text-overflow","ellipsis","white-space","nowrap",3,"matTooltip","matTooltipShowDelay"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip"],[3,"disabled","channelId","channelType","categoryId"],[1,"row","my-3"],["color","primary",1,"example-margin",3,"ngModelChange","ngModel"],["disabled","","type","text","placeholder","Category Unavailable",1,"form-control","rounded-1",2,"height","35px"],[3,"selectedCategory","disabled","channelId","channelType","categoryId"],[1,"col-12","ps-11"],[3,"categoryId","channelId","channelType"],[3,"categoryId","channelId"],[3,"attributesChanges","categoryId","channelId","channelType"],[3,"attributesChanges","onPlatformChanges","categoryId","channelId"],[3,"attributesChanges","categoryId","channelId"],[3,"attributesChanges","channelId"]],template:function(i,n){if(i&1&&(p(0,"mainpanel",0)(1,"actions")(2,"button",1),y("click",function(){return n.onUploadProduct()}),d(3,"i",2),f(4," Upload "),a()(),p(5,"content")(6,"div",3)(7,"h3",4),f(8,"Product To Upload"),a(),p(9,"div",5),B(10,bi,2,7,"div",6,L),x(12,"async"),a(),p(13,"h3",7),f(14,"Channel To Upload"),a(),B(15,Ei,19,10,"div",8,L),a()()()),i&2){let o;s("hideSearchBox",!0)("hideSearchDropdown",!0),c(2),s("disabled",((o=n.channelProductUploads())==null?null:o.length)==0),c(8),R(I(12,3,n.selectedProducts$)),c(5),R(n.channelProductUploads())}},dependencies:[T,A,k,Ft,ct,lt,kt,At,pt,st,oe,$,Ze,at,rt,Ut,Lt,Bt,Rt,bt,Pt,Vt],encapsulation:2})}}return t})();export{Er as ProductUploadComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-XP6R2ZYJ.js";import"./chunk-YERZ6W22.js";import{a as st}from"./chunk-FESS3PG3.js";import{a as pt}from"./chunk-UXPULNCR.js";import"./chunk-6VHVQEVM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import"./chunk-RDRNWLJI.js";import"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{e as lt}from"./chunk-PYXL7UF7.js";import"./chunk-PW42BQIY.js";import{m as mt,n as ct}from"./chunk-FO7G4GMY.js";import{A as rt,h as ot,m as at}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{H as it,J as nt,d as G,f as Q,g as X,j as Y,k as Z,m as tt,n as et}from"./chunk-FXQKRJWU.js";import{$c as f,Fc as O,Gb as w,Gc as a,Hc as u,Ic as N,Jc as A,Kc as $,Lc as H,Mb as _,Mc as W,Nc as q,Qc as j,Ra as D,Rc as z,Sc as J,Tc as K,Yb as p,Z as I,ad as y,bd as E,cd as U,dc as T,ec as F,gc as L,hc as k,ic as i,jc as n,kc as B,lc as C,mc as v,oc as R,pa as P,pb as M,rb as o,tc as h,uc as x,v as V,ya as s,za as d}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var dt=(e,m)=>({"bg-gradient-danger":e,"bg-gradient-warning":m}),ut=()=>["/menu/products/status/notification/detailV2"],ft=e=>({ID:e});function _t(e,m){if(e&1&&(i(0,"div"),a(1),f(2,"number"),n()),e&2){let t=m.$implicit;o(),A(" ",t.Key,": ",y(2,2,t.Value)," ")}}function gt(e,m){if(e&1&&(i(0,"div",19)(1,"div",18),a(2,"Status Product:"),n(),L(3,_t,3,4,"div",null,F),n()),e&2){let t=x().$implicit;o(3),k(t.ParsedStatus)}}function St(e,m){if(e&1&&(C(0),a(1),f(2,"number"),i(3,"span"),a(4,"s"),n(),v()),e&2){let t=x().$implicit;o(),N(" ",E(2,1,t.DurationInSecond,"1.1-1")," ")}}function Ct(e,m){e&1&&a(0," - ")}function vt(e,m){if(e&1&&(C(0),i(1,"tr",15)(2,"td")(3,"a",16),B(4,"img",17),i(5,"span"),a(6),n()()(),i(7,"td")(8,"div",18),a(9),n(),i(10,"div"),a(11),n(),_(12,gt,5,0,"div",19),n(),i(13,"td"),_(14,St,5,4,"ng-container",20)(15,Ct,1,0,"ng-template",null,0,U),n(),i(17,"td"),a(18),n(),i(19,"td"),a(20),f(21,"date"),n()(),v()),e&2){let t=m.$implicit,l=O(16);o(),p("ngClass",K(15,dt,t.Status==1,t.Status==0)),o(2),p("routerLink",z(18,ut))("queryParams",J(19,ft,t.ID)),o(),p("src",t.Img,M),o(2),u(t.ChannelName),o(3),u(t.ProcessLabel),o(2),u(t.ProcessDescription),o(),T(t!=null&&t.ParsedStatus&&(t==null||t.ParsedStatus==null?null:t.ParsedStatus.length)>0?12:-1),o(2),p("ngIf",t.DurationInSecond)("ngIfElse",l),o(4),u(t.StatusLabel),o(2),N(" ",E(21,12,t.Created,"dd MMM yyyy HH:mm")," ")}}var Rt=(()=>{class e{constructor(){this.notificationService=P(b),this.filter=D({RowCount:20,PageNumber:1,ChannelID:null}),this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(V(t=>(t.Data=t.Data.map(l=>(l.StatusProduct&&(l.ParsedStatus=JSON.parse(l.StatusProduct)),l)),t)),I(1))}onFilter(){this.initNotifications()}static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-notificationV2"]],features:[j([b])],decls:34,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"channelLogo-md","me-4",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"],[4,"ngIf","ngIfElse"]],template:function(l,c){if(l&1){let r=R();q(0),f(1,"async"),i(2,"mainpanel",1),h("onSubmit",function(){return s(r),d(c.onFilter())}),i(3,"actions")(4,"a",2),a(5," Back "),n()(),i(6,"filters")(7,"div")(8,"label",3),a(9,"Channel"),n(),i(10,"channel-select-options",4),W("ngModelChange",function(S){return s(r),H(c.filter().ChannelID,S)||(c.filter().ChannelID=S),d(S)}),n()()(),i(11,"content")(12,"div",5)(13,"div",6)(14,"div",7)(15,"div",8)(16,"table",9)(17,"thead",10)(18,"tr",11)(19,"th"),a(20,"Channel"),n(),i(21,"th"),a(22,"Process"),n(),i(23,"th"),a(24,"Duration"),n(),i(25,"th"),a(26,"Status"),n(),i(27,"th"),a(28,"Created"),n()()(),i(29,"tbody"),_(30,vt,22,21,"ng-container",12),n()()()()(),i(31,"div",6)(32,"div",13)(33,"app-custom-paginator",14),h("next",function(){return s(r),d(c.initNotifications())})("previous",function(){return s(r),d(c.initNotifications())}),n()()()()()()}if(l&2){let r=y(1,7,c.notifications$);o(2),p("hideSearchBox",!0),o(8),$("ngModel",c.filter().ChannelID),o(20),p("ngForOf",r==null?null:r.Data),o(3),p("filter",c.filter())("totaldata",r==null||r.Data==null?null:r.Data.length)("paginationTotal",r==null?null:r.Count)("hasClicked",!0)}},dependencies:[et,G,Q,X,Y,tt,Z,rt,ot,at,ct,mt,pt,lt,nt,it,st],encapsulation:2})}}return e})();export{Rt as NotificationV2Component};
|