????

Your IP : 216.73.216.35


Current Path : C:/inetpub/vhost/kiemkegpmb.gdtsolutions.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/kiemkegpmb.gdtsolutions.vn/www/assets/Notify-96f21d15.js

import{P as T,R as H,X as ju,j as p,K as Ji,T as Ie,m as ct,i as Nn,d as le,r as at,a as Mu,L as Nr,v as Zi,Y as Ri,l as Eu}from"./index-66f9303d.js";import{t as _r,a as cn,D as Xi,g as ur,m as ft,_ as Ue,P as Cu,o as Iu,B as Pu}from"./Button-ce73291a.js";import{B as Yu}from"./Badge-00399d5f.js";import{P as Ru}from"./Popper-9c013c43.js";import{F as fn}from"./Fade-a7ee5075.js";import{F as Et}from"./FontAwesome4-bd80a3fc.js";import{E as Au}from"./Empty-030ec17f.js";import{c as Qi}from"./_commonjs-dynamic-modules-302442b1.js";import{C as Vu}from"./DialogCustomize-662f79ab.js";import"./InputNumber-0eedadf8.js";import"./InputTime-18a21ec5.js";import{T as Fu}from"./TextArea-52e09ac6.js";import{H as U,T as er}from"./const-0478bc07.js";function cr(n){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},cr(n)}var Lu=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function fr(){return fr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},fr.apply(this,arguments)}function Ai(n){return Bu(n)||Uu(n)||Hu(n)||Wu()}function Wu(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hu(n,r){if(n){if(typeof n=="string")return dr(n,r);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return dr(n,r)}}function Uu(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Bu(n){if(Array.isArray(n))return dr(n)}function dr(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,s=new Array(r);i<r;i++)s[i]=n[i];return s}function $u(n,r){if(n==null)return{};var i=Gu(n,r),s,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(a=0;a<u.length;a++)s=u[a],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(i[s]=n[s])}return i}function Gu(n,r){if(n==null)return{};var i={},s=Object.keys(n),a,u;for(u=0;u<s.length;u++)a=s[u],!(r.indexOf(a)>=0)&&(i[a]=n[a]);return i}function zu(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function Vi(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}function qu(n,r,i){return r&&Vi(n.prototype,r),i&&Vi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function Ku(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&hr(n,r)}function hr(n,r){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},hr(n,r)}function Ju(n){var r=Xu();return function(){var s=dn(n),a;if(r){var u=dn(this).constructor;a=Reflect.construct(s,arguments,u)}else a=s.apply(this,arguments);return Zu(this,a)}}function Zu(n,r){if(r&&(cr(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jt(n)}function jt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Xu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dn(n){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},dn(n)}function Fi(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);r&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),i.push.apply(i,s)}return i}function ln(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Fi(Object(i),!0).forEach(function(s){Qu(n,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Fi(Object(i)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(i,s))})}return n}function Qu(n,r,i){return r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function ec(){}var tc={children:T.oneOfType([T.node,T.func]).isRequired,popperClassName:T.string,placement:T.string,placementPrefix:T.string,arrowClassName:T.string,hideArrow:T.bool,tag:_r,isOpen:T.bool,cssModule:T.object,offset:T.arrayOf(T.number),fallbackPlacements:T.array,flip:T.bool,container:cn,target:cn.isRequired,modifiers:T.array,strategy:T.string,boundariesElement:T.oneOfType([T.string,Xi]),onClosed:T.func,fade:T.bool,transition:T.shape(fn.propTypes)},nc={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:ec,fade:!0,transition:ln({},fn.defaultProps)},Tr=function(n){Ku(i,n);var r=Ju(i);function i(s){var a;return zu(this,i),a=r.call(this,s),a.setTargetNode=a.setTargetNode.bind(jt(a)),a.getTargetNode=a.getTargetNode.bind(jt(a)),a.getRef=a.getRef.bind(jt(a)),a.onClosed=a.onClosed.bind(jt(a)),a.state={isOpen:s.isOpen},a}return qu(i,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return ur(this.props.container)}},{key:"getRef",value:function(a){this._element=a}},{key:"setTargetNode",value:function(a){this.targetNode=typeof a=="string"?ur(a):a}},{key:"renderChildren",value:function(){var a=this.props,u=a.cssModule,d=a.children,h=a.isOpen,v=a.flip;a.target;var g=a.offset,b=a.fallbackPlacements,E=a.placementPrefix,S=a.arrowClassName,k=a.hideArrow,M=a.popperClassName,G=a.tag;a.container;var _=a.modifiers,Z=a.strategy,z=a.boundariesElement;a.onClosed;var q=a.fade,he=a.transition,Ye=a.placement,Re=$u(a,Lu),ue=ft(Ue("arrow",S),u),te=ft(Ue(M,E?"".concat(E,"-auto"):""),this.props.cssModule),Ke=_.map(function(B){return B.name}),X=[{name:"offset",options:{offset:g}},{name:"flip",enabled:v,options:{fallbackPlacements:b}},{name:"preventOverflow",options:{boundary:z}}].filter(function(B){return!Ke.includes(B.name)}),Je=[].concat(Ai(X),Ai(_)),Ze=ln(ln(ln({},fn.defaultProps),he),{},{baseClass:q?he.baseClass:"",timeout:q?he.timeout:0});return H.createElement(fn,fr({},Ze,Re,{in:h,onExited:this.onClosed,tag:G}),H.createElement(Ru,{referenceElement:this.targetNode,modifiers:Je,placement:Ye,strategy:Z},function(B){var On=B.ref,vt=B.style,yt=B.placement,bt=B.isReferenceHidden,Lt=B.arrowProps,xn=B.update;return H.createElement("div",{ref:On,style:vt,className:te,"data-popper-placement":yt,"data-popper-reference-hidden":bt?"true":void 0},typeof d=="function"?d({update:xn}):d,!k&&H.createElement("span",{ref:Lt.ref,className:ue,style:Lt.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():ju.createPortal(H.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(a,u){return a.isOpen&&!u.isOpen?{isOpen:a.isOpen}:null}}]),i}(H.Component);Tr.propTypes=tc;Tr.defaultProps=nc;const rc=Tr;function mr(){return mr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},mr.apply(this,arguments)}function Ct(n){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ct(n)}function ic(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function Li(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}function sc(n,r,i){return r&&Li(n.prototype,r),i&&Li(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function oc(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&pr(n,r)}function pr(n,r){return pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},pr(n,r)}function ac(n){var r=uc();return function(){var s=hn(n),a;if(r){var u=hn(this).constructor;a=Reflect.construct(s,arguments,u)}else a=s.apply(this,arguments);return lc(this,a)}}function lc(n,r){if(r&&(Ct(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(n)}function se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function uc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hn(n){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},hn(n)}var Dr={children:T.oneOfType([T.node,T.func]),placement:T.oneOf(Cu),target:cn.isRequired,container:cn,isOpen:T.bool,disabled:T.bool,hideArrow:T.bool,boundariesElement:T.oneOfType([T.string,Xi]),className:T.string,innerClassName:T.string,arrowClassName:T.string,popperClassName:T.string,cssModule:T.object,toggle:T.func,autohide:T.bool,placementPrefix:T.string,delay:T.oneOfType([T.shape({show:T.number,hide:T.number}),T.number]),modifiers:T.array,strategy:T.string,offset:T.arrayOf(T.number),innerRef:T.oneOfType([T.func,T.string,T.object]),trigger:T.string,fade:T.bool,flip:T.bool},es={show:0,hide:50},cc={isOpen:!1,hideArrow:!1,autohide:!1,delay:es,toggle:function(){},trigger:"click",fade:!0};function ts(n,r){return r&&(n===r||r.contains(n))}function Wi(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r&&r.length&&r.filter(function(i){return ts(n,i)})[0]}var Sr=function(n){oc(i,n);var r=ac(i);function i(s){var a;return ic(this,i),a=r.call(this,s),a._targets=[],a.currentTargetElement=null,a.addTargetEvents=a.addTargetEvents.bind(se(a)),a.handleDocumentClick=a.handleDocumentClick.bind(se(a)),a.removeTargetEvents=a.removeTargetEvents.bind(se(a)),a.toggle=a.toggle.bind(se(a)),a.showWithDelay=a.showWithDelay.bind(se(a)),a.hideWithDelay=a.hideWithDelay.bind(se(a)),a.onMouseOverTooltipContent=a.onMouseOverTooltipContent.bind(se(a)),a.onMouseLeaveTooltipContent=a.onMouseLeaveTooltipContent.bind(se(a)),a.show=a.show.bind(se(a)),a.hide=a.hide.bind(se(a)),a.onEscKeyDown=a.onEscKeyDown.bind(se(a)),a.getRef=a.getRef.bind(se(a)),a.state={isOpen:s.isOpen},a._isMounted=!1,a}return sc(i,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(a){var u=this.props.trigger.split(" ");u.indexOf("legacy")>-1&&(this.props.isOpen||Wi(a.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!ts(a.target,this._popover)?this.hideWithDelay(a):this.props.isOpen||this.showWithDelay(a)):u.indexOf("click")>-1&&Wi(a.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(a):this.showWithDelay(a))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(a){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),a.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,a),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(a){a.key==="Escape"&&this.hide(a)}},{key:"getRef",value:function(a){var u=this.props.innerRef;u&&(typeof u=="function"?u(a):Ct(u)==="object"&&(u.current=a)),this._popover=a}},{key:"getDelay",value:function(a){var u=this.props.delay;return Ct(u)==="object"?isNaN(u[a])?es[a]:u[a]:u}},{key:"getCurrentTarget",value:function(a){if(!a)return null;var u=this._targets.indexOf(a);return u>=0?this._targets[u]:this.getCurrentTarget(a.parentElement)}},{key:"show",value:function(a){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=a?a.currentTarget||this.getCurrentTarget(a.target):null,a&&a.composedPath&&typeof a.composedPath=="function"){var u=a.composedPath();this.currentTargetElement=u&&u[0]||this.currentTargetElement}this.toggle(a)}}},{key:"showWithDelay",value:function(a){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,a),this.getDelay("show"))}},{key:"hide",value:function(a){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(a))}},{key:"hideWithDelay",value:function(a){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,a),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(a,u,d){this._targets.forEach(function(h){h.addEventListener(a,u,d)})}},{key:"removeEventOnTargets",value:function(a,u,d){this._targets.forEach(function(h){h.removeEventListener(a,u,d)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var a=this.props.trigger.split(" ");a.indexOf("manual")===-1&&((a.indexOf("click")>-1||a.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(a.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),a.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var a=ur(this.props.target,!0);a!==this._targets&&(this.removeTargetEvents(),this._targets=a?Array.from(a):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(a){return this.props.disabled||!this._isMounted?a&&a.preventDefault():this.props.toggle(a)}},{key:"render",value:function(){var a=this;this.props.isOpen&&this.updateTarget();var u=this.currentTargetElement||this._targets[0];if(!u)return null;var d=this.props,h=d.className,v=d.cssModule,g=d.innerClassName,b=d.isOpen,E=d.hideArrow,S=d.boundariesElement,k=d.placement,M=d.placementPrefix,G=d.arrowClassName,_=d.popperClassName,Z=d.container,z=d.modifiers,q=d.strategy,he=d.offset,Ye=d.fade,Re=d.flip,ue=d.children,te=Iu(this.props,Object.keys(Dr)),Ke=ft(_,v),X=ft(g,v);return H.createElement(rc,{className:h,target:u,isOpen:b,hideArrow:E,boundariesElement:S,placement:k,placementPrefix:M,arrowClassName:G,popperClassName:Ke,container:Z,modifiers:z,strategy:q,offset:he,cssModule:v,fade:Ye,flip:Re},function(Je){var Ze=Je.update;return H.createElement("div",mr({},te,{ref:a.getRef,className:X,role:"tooltip",onMouseOver:a.onMouseOverTooltipContent,onMouseLeave:a.onMouseLeaveTooltipContent,onKeyDown:a.onEscKeyDown}),typeof ue=="function"?ue({update:Ze}):ue)})}}],[{key:"getDerivedStateFromProps",value:function(a,u){return a.isOpen&&!u.isOpen?{isOpen:a.isOpen}:null}}]),i}(H.Component);Sr.propTypes=Dr;Sr.defaultProps=cc;const fc=Sr;function gr(){return gr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},gr.apply(this,arguments)}var dc={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Or(n){var r=Ue("popover-arrow",n.arrowClassName),i=Ue("popover","show",n.popperClassName),s=Ue("popover-inner",n.innerClassName);return H.createElement(fc,gr({},n,{arrowClassName:r,popperClassName:i,innerClassName:s}))}Or.propTypes=Dr;Or.defaultProps=dc;var hc=["className","cssModule","tag"];function vr(){return vr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},vr.apply(this,arguments)}function mc(n,r){if(n==null)return{};var i=pc(n,r),s,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(a=0;a<u.length;a++)s=u[a],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(i[s]=n[s])}return i}function pc(n,r){if(n==null)return{};var i={},s=Object.keys(n),a,u;for(u=0;u<s.length;u++)a=s[u],!(r.indexOf(a)>=0)&&(i[a]=n[a]);return i}var gc={tag:_r,className:T.string,cssModule:T.object};function ns(n){var r=n.className,i=n.cssModule,s=n.tag,a=s===void 0?"h3":s,u=mc(n,hc),d=ft(Ue(r,"popover-header"),i);return H.createElement(a,vr({},u,{className:d}))}ns.propTypes=gc;var vc=["className","cssModule","tag"];function yr(){return yr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},yr.apply(this,arguments)}function yc(n,r){if(n==null)return{};var i=bc(n,r),s,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(a=0;a<u.length;a++)s=u[a],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(i[s]=n[s])}return i}function bc(n,r){if(n==null)return{};var i={},s=Object.keys(n),a,u;for(u=0;u<s.length;u++)a=s[u],!(r.indexOf(a)>=0)&&(i[a]=n[a]);return i}var kc={tag:_r,className:T.string,cssModule:T.object};function rs(n){var r=n.className,i=n.cssModule,s=n.tag,a=s===void 0?"div":s,u=yc(n,vc),d=ft(Ue(r,"popover-body"),i);return H.createElement(a,yr({},u,{className:d}))}rs.propTypes=kc;const Th=[{field:"Id",dataID:!0,type:"guid",hidden:!0},{title:"Ngày tạo",field:"Created_Date",type:"datetime",defaultSort:"desc",cellStyle:{width:200}},{title:"Nội dung thông báo",field:"NoiDung",type:"string",dataCheck:!0,searchable:!0,render:n=>p.jsxDEV(xr,{item:n},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:25,columnNumber:23},globalThis)},{title:"Đã xem báo cáo",field:"DaXemThongBao",type:"boolean",hidden:!0},{title:"Target Id",field:"Target_Id",type:"boolean",hidden:!0},{title:"Targer Module",field:"Targer_Module",type:"boolean",hidden:!0},{title:"Hành động",field:"HanhDong",type:"boolean",hidden:!0},{title:"Đã xem thông báo",field:"DaXemThongBao",type:"boolean",hidden:!0},{title:"Đơn vị gửi",field:"SYS_DonVi.*",dataRef:["DonViGui_Id"],type:"boolean",hidden:!0},{title:"Đơn vị nhận",field:"SYS_DonVi1.*",dataRef:["DonViNhan_Id"],type:"boolean",hidden:!0}],xr=({item:n})=>{var a,u,d,h,v,g,b,E,S,k;let r="",i="",s="";switch(n.HanhDong){case U.TinNhanTuDonVi:i=p.jsxDEV("b",{className:"text-primary",children:"gửi"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:79,columnNumber:19},globalThis),r=(a=n==null?void 0:n.SYS_DonVi)==null?void 0:a.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i," 1 tin nhắn thông báo."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:81,columnNumber:17},globalThis);break;case U.DaTrinhKy:i=p.jsxDEV("b",{className:"text-primary",children:"trình ký"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:84,columnNumber:19},globalThis),r=(u=n.SYS_DonVi1)==null?void 0:u.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:88,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:87,columnNumber:9},globalThis);break;case U.TuChoiTrinhKy:i=p.jsxDEV("b",{className:"text-danger",children:"từ chối trình ký"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:93,columnNumber:19},globalThis),r=(d=n.SYS_DonVi1)==null?void 0:d.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:97,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:96,columnNumber:9},globalThis);break;case U.TiepNhanTrinhKy:i=p.jsxDEV("b",{className:"text-success",children:"tiếp nhận trình ký"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:102,columnNumber:19},globalThis),r=(h=n.SYS_DonVi1)==null?void 0:h.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:106,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:105,columnNumber:9},globalThis);break;case U.DaKySo:i=p.jsxDEV("b",{className:"text-primary",children:"ký số"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:111,columnNumber:19},globalThis),r=(v=n.SYS_DonVi)==null?void 0:v.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:115,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:114,columnNumber:9},globalThis);break;case U.GuiBaoCao:i=p.jsxDEV("b",{className:"text-primary",children:"gửi"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:120,columnNumber:19},globalThis),r=(g=n==null?void 0:n.SYS_DonVi)==null?void 0:g.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:124,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:123,columnNumber:9},globalThis);break;case U.DuyetBaoCao:i=p.jsxDEV("b",{className:"text-success",children:"tiếp nhận"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:129,columnNumber:19},globalThis),r=(b=n==null?void 0:n.SYS_DonVi)==null?void 0:b.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:133,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:132,columnNumber:9},globalThis);break;case U.TuChoiBaoCao:i=p.jsxDEV("b",{className:"text-danger",children:"từ chối"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:138,columnNumber:19},globalThis),r=(E=n==null?void 0:n.SYS_DonVi)==null?void 0:E.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:142,columnNumber:27},globalThis),'"']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:141,columnNumber:9},globalThis);break;case U.ChinhSuaBaoCao:i=p.jsxDEV("b",{className:"text-info",children:"yêu cầu chỉnh sửa"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:147,columnNumber:19},globalThis),r=(S=n.SYS_DonVi1)==null?void 0:S.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:151,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:150,columnNumber:9},globalThis);break;case U.HuyKySo:i=p.jsxDEV("b",{className:"text-danger",children:"hủy ký số"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:156,columnNumber:19},globalThis),r=(k=n.SYS_DonVi)==null?void 0:k.TenDonVi,s=p.jsxDEV(H.Fragment,{children:["đã ",i,' "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:160,columnNumber:27},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:159,columnNumber:9},globalThis);break;case U.TinNhanTuHeThong:r="Hệ thống",s=p.jsxDEV(H.Fragment,{children:['thông báo sắp đến hạn "',p.jsxDEV("b",{children:n.NoiDung},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:168,columnNumber:34},globalThis),'".']},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:167,columnNumber:9},globalThis);break}return p.jsxDEV("span",{children:[p.jsxDEV("b",{children:r},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:177,columnNumber:7},globalThis)," ",s]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/ThongBao/JsonColumns.jsx",lineNumber:176,columnNumber:5},globalThis)};var tr={exports:{}},Hi;function wc(){return Hi||(Hi=1,function(n,r){(function(i,s){n.exports=s()})(Ji,function(){var i;function s(){return i.apply(null,arguments)}function a(e){i=e}function u(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function d(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(h(e,t))return!1;return!0}function g(e){return e===void 0}function b(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function E(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function S(e,t){var o=[],l,c=e.length;for(l=0;l<c;++l)o.push(t(e[l],l));return o}function k(e,t){for(var o in t)h(t,o)&&(e[o]=t[o]);return h(t,"toString")&&(e.toString=t.toString),h(t,"valueOf")&&(e.valueOf=t.valueOf),e}function M(e,t,o,l){return hi(e,t,o,l,!0).utc()}function G(){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=G()),e._pf}var Z;Array.prototype.some?Z=Array.prototype.some:Z=function(e){var t=Object(this),o=t.length>>>0,l;for(l=0;l<o;l++)if(l in t&&e.call(this,t[l],l,t))return!0;return!1};function z(e){var t=null,o=!1,l=e._d&&!isNaN(e._d.getTime());if(l&&(t=_(e),o=Z.call(t.parsedDateParts,function(c){return c!=null}),l=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o),e._strict&&(l=l&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=l;else return l;return e._isValid}function q(e){var t=M(NaN);return e!=null?k(_(t),e):_(t).userInvalidated=!0,t}var he=s.momentProperties=[],Ye=!1;function Re(e,t){var o,l,c,f=he.length;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=_(t)),g(t._locale)||(e._locale=t._locale),f>0)for(o=0;o<f;o++)l=he[o],c=t[l],g(c)||(e[l]=c);return e}function ue(e){Re(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ye===!1&&(Ye=!0,s.updateOffset(this),Ye=!1)}function te(e){return e instanceof ue||e!=null&&e._isAMomentObject!=null}function Ke(e){s.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function X(e,t){var o=!0;return k(function(){if(s.deprecationHandler!=null&&s.deprecationHandler(null,e),o){var l=[],c,f,m,w=arguments.length;for(f=0;f<w;f++){if(c="",typeof arguments[f]=="object"){c+=`
[`+f+"] ";for(m in arguments[0])h(arguments[0],m)&&(c+=m+": "+arguments[0][m]+", ");c=c.slice(0,-2)}else c=arguments[f];l.push(c)}Ke(e+`
Arguments: `+Array.prototype.slice.call(l).join("")+`
`+new Error().stack),o=!1}return t.apply(this,arguments)},t)}var Je={};function Ze(e,t){s.deprecationHandler!=null&&s.deprecationHandler(e,t),Je[e]||(Ke(t),Je[e]=!0)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null;function B(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function On(e){var t,o;for(o in e)h(e,o)&&(t=e[o],B(t)?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function vt(e,t){var o=k({},e),l;for(l in t)h(t,l)&&(d(e[l])&&d(t[l])?(o[l]={},k(o[l],e[l]),k(o[l],t[l])):t[l]!=null?o[l]=t[l]:delete o[l]);for(l in e)h(e,l)&&!h(t,l)&&d(e[l])&&(o[l]=k({},o[l]));return o}function yt(e){e!=null&&this.set(e)}var bt;Object.keys?bt=Object.keys:bt=function(e){var t,o=[];for(t in e)h(e,t)&&o.push(t);return o};var Lt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function xn(e,t,o){var l=this._calendar[e]||this._calendar.sameElse;return B(l)?l.call(t,o):l}function me(e,t,o){var l=""+Math.abs(e),c=t-l.length,f=e>=0;return(f?o?"+":"":"-")+Math.pow(10,Math.max(0,c)).toString().substr(1)+l}var jn=/(\[[^\[]*\])|(\\)?([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,Wt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Mn={},Xe={};function D(e,t,o,l){var c=l;typeof l=="string"&&(c=function(){return this[l]()}),e&&(Xe[e]=c),t&&(Xe[t[0]]=function(){return me(c.apply(this,arguments),t[1],t[2])}),o&&(Xe[o]=function(){return this.localeData().ordinal(c.apply(this,arguments),e)})}function Is(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ps(e){var t=e.match(jn),o,l;for(o=0,l=t.length;o<l;o++)Xe[t[o]]?t[o]=Xe[t[o]]:t[o]=Is(t[o]);return function(c){var f="",m;for(m=0;m<l;m++)f+=B(t[m])?t[m].call(c,e):t[m];return f}}function Ht(e,t){return e.isValid()?(t=$r(t,e.localeData()),Mn[t]=Mn[t]||Ps(t),Mn[t](e)):e.localeData().invalidDate()}function $r(e,t){var o=5;function l(c){return t.longDateFormat(c)||c}for(Wt.lastIndex=0;o>=0&&Wt.test(e);)e=e.replace(Wt,l),Wt.lastIndex=0,o-=1;return e}var Ys={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 Rs(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(jn).map(function(l){return l==="MMMM"||l==="MM"||l==="DD"||l==="dddd"?l.slice(1):l}).join(""),this._longDateFormat[e])}var As="Invalid date";function Vs(){return this._invalidDate}var Fs="%d",Ls=/\d{1,2}/;function Ws(e){return this._ordinal.replace("%d",e)}var Hs={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 Us(e,t,o,l){var c=this._relativeTime[o];return B(c)?c(e,t,o,l):c.replace(/%d/i,e)}function Bs(e,t){var o=this._relativeTime[e>0?"future":"past"];return B(o)?o(t):o.replace(/%s/i,t)}var Gr={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 oe(e){return typeof e=="string"?Gr[e]||Gr[e.toLowerCase()]:void 0}function En(e){var t={},o,l;for(l in e)h(e,l)&&(o=oe(l),o&&(t[o]=e[l]));return t}var $s={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 Gs(e){var t=[],o;for(o in e)h(e,o)&&t.push({unit:o,priority:$s[o]});return t.sort(function(l,c){return l.priority-c.priority}),t}var zr=/\d/,ie=/\d\d/,qr=/\d{3}/,Cn=/\d{4}/,Ut=/[+-]?\d{6}/,F=/\d\d?/,Kr=/\d\d\d\d?/,Jr=/\d\d\d\d\d\d?/,Bt=/\d{1,3}/,In=/\d{1,4}/,$t=/[+-]?\d{1,6}/,Qe=/\d+/,Gt=/[+-]?\d+/,zs=/Z|[+-]\d\d:?\d\d/gi,zt=/Z|[+-]\d\d(?::?\d\d)?/gi,qs=/[+-]?\d+(\.\d{1,3})?/,kt=/[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,et=/^[1-9]\d?/,Pn=/^([1-9]\d|\d)/,qt;qt={};function N(e,t,o){qt[e]=B(t)?t:function(l,c){return l&&o?o:t}}function Ks(e,t){return h(qt,e)?qt[e](t._strict,t._locale):new RegExp(Js(e))}function Js(e){return ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,o,l,c,f){return o||l||c||f}))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ae(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,o=0;return t!==0&&isFinite(t)&&(o=ae(t)),o}var Yn={};function A(e,t){var o,l=t,c;for(typeof e=="string"&&(e=[e]),b(t)&&(l=function(f,m){m[t]=C(f)}),c=e.length,o=0;o<c;o++)Yn[e[o]]=l}function wt(e,t){A(e,function(o,l,c,f){c._w=c._w||{},t(o,c._w,c,f)})}function Zs(e,t,o){t!=null&&h(Yn,e)&&Yn[e](t,o._a,o,e)}function Kt(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,ye=1,pe=2,K=3,ce=4,be=5,Ae=6,Xs=7,Qs=8;D("Y",0,0,function(){var e=this.year();return e<=9999?me(e,4):"+"+e}),D(0,["YY",2],0,function(){return this.year()%100}),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),N("Y",Gt),N("YY",F,ie),N("YYYY",In,Cn),N("YYYYY",$t,Ut),N("YYYYYY",$t,Ut),A(["YYYYY","YYYYYY"],Q),A("YYYY",function(e,t){t[Q]=e.length===2?s.parseTwoDigitYear(e):C(e)}),A("YY",function(e,t){t[Q]=s.parseTwoDigitYear(e)}),A("Y",function(e,t){t[Q]=parseInt(e,10)});function Nt(e){return Kt(e)?366:365}s.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var Zr=tt("FullYear",!0);function eo(){return Kt(this.year())}function tt(e,t){return function(o){return o!=null?(Xr(this,e,o),s.updateOffset(this,t),this):_t(this,e)}}function _t(e,t){if(!e.isValid())return NaN;var o=e._d,l=e._isUTC;switch(t){case"Milliseconds":return l?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return l?o.getUTCSeconds():o.getSeconds();case"Minutes":return l?o.getUTCMinutes():o.getMinutes();case"Hours":return l?o.getUTCHours():o.getHours();case"Date":return l?o.getUTCDate():o.getDate();case"Day":return l?o.getUTCDay():o.getDay();case"Month":return l?o.getUTCMonth():o.getMonth();case"FullYear":return l?o.getUTCFullYear():o.getFullYear();default:return NaN}}function Xr(e,t,o){var l,c,f,m,w;if(!(!e.isValid()||isNaN(o))){switch(l=e._d,c=e._isUTC,t){case"Milliseconds":return void(c?l.setUTCMilliseconds(o):l.setMilliseconds(o));case"Seconds":return void(c?l.setUTCSeconds(o):l.setSeconds(o));case"Minutes":return void(c?l.setUTCMinutes(o):l.setMinutes(o));case"Hours":return void(c?l.setUTCHours(o):l.setHours(o));case"Date":return void(c?l.setUTCDate(o):l.setDate(o));case"FullYear":break;default:return}f=o,m=e.month(),w=e.date(),w=w===29&&m===1&&!Kt(f)?28:w,c?l.setUTCFullYear(f,m,w):l.setFullYear(f,m,w)}}function to(e){return e=oe(e),B(this[e])?this[e]():this}function no(e,t){if(typeof e=="object"){e=En(e);var o=Gs(e),l,c=o.length;for(l=0;l<c;l++)this[o[l].unit](e[o[l].unit])}else if(e=oe(e),B(this[e]))return this[e](t);return this}function ro(e,t){return(e%t+t)%t}var $;Array.prototype.indexOf?$=Array.prototype.indexOf:$=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Rn(e,t){if(isNaN(e)||isNaN(t))return NaN;var o=ro(t,12);return e+=(t-o)/12,o===1?Kt(e)?29:28:31-o%7%2}D("M",["MM",2],"Mo",function(){return this.month()+1}),D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),D("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("M",F,et),N("MM",F,ie),N("MMM",function(e,t){return t.monthsShortRegex(e)}),N("MMMM",function(e,t){return t.monthsRegex(e)}),A(["M","MM"],function(e,t){t[ye]=C(e)-1}),A(["MMM","MMMM"],function(e,t,o,l){var c=o._locale.monthsParse(e,l,o._strict);c!=null?t[ye]=c:_(o).invalidMonth=e});var io="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Qr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ei=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,so=kt,oo=kt;function ao(e,t){return e?u(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ei).test(t)?"format":"standalone"][e.month()]:u(this._months)?this._months:this._months.standalone}function lo(e,t){return e?u(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ei.test(t)?"format":"standalone"][e.month()]:u(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function uo(e,t,o){var l,c,f,m=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],l=0;l<12;++l)f=M([2e3,l]),this._shortMonthsParse[l]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[l]=this.months(f,"").toLocaleLowerCase();return o?t==="MMM"?(c=$.call(this._shortMonthsParse,m),c!==-1?c:null):(c=$.call(this._longMonthsParse,m),c!==-1?c:null):t==="MMM"?(c=$.call(this._shortMonthsParse,m),c!==-1?c:(c=$.call(this._longMonthsParse,m),c!==-1?c:null)):(c=$.call(this._longMonthsParse,m),c!==-1?c:(c=$.call(this._shortMonthsParse,m),c!==-1?c:null))}function co(e,t,o){var l,c,f;if(this._monthsParseExact)return uo.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),l=0;l<12;l++){if(c=M([2e3,l]),o&&!this._longMonthsParse[l]&&(this._longMonthsParse[l]=new RegExp("^"+this.months(c,"").replace(".","")+"$","i"),this._shortMonthsParse[l]=new RegExp("^"+this.monthsShort(c,"").replace(".","")+"$","i")),!o&&!this._monthsParse[l]&&(f="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[l]=new RegExp(f.replace(".",""),"i")),o&&t==="MMMM"&&this._longMonthsParse[l].test(e))return l;if(o&&t==="MMM"&&this._shortMonthsParse[l].test(e))return l;if(!o&&this._monthsParse[l].test(e))return l}}function ti(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=C(t);else if(t=e.localeData().monthsParse(t),!b(t))return e}var o=t,l=e.date();return l=l<29?l:Math.min(l,Rn(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,l):e._d.setMonth(o,l),e}function ni(e){return e!=null?(ti(this,e),s.updateOffset(this,!0),this):_t(this,"Month")}function fo(){return Rn(this.year(),this.month())}function ho(e){return this._monthsParseExact?(h(this,"_monthsRegex")||ri.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=so),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mo(e){return this._monthsParseExact?(h(this,"_monthsRegex")||ri.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=oo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ri(){function e(O,I){return I.length-O.length}var t=[],o=[],l=[],c,f,m,w;for(c=0;c<12;c++)f=M([2e3,c]),m=ve(this.monthsShort(f,"")),w=ve(this.months(f,"")),t.push(m),o.push(w),l.push(w),l.push(m);t.sort(e),o.sort(e),l.sort(e),this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function po(e,t,o,l,c,f,m){var w;return e<100&&e>=0?(w=new Date(e+400,t,o,l,c,f,m),isFinite(w.getFullYear())&&w.setFullYear(e)):w=new Date(e,t,o,l,c,f,m),w}function Tt(e){var t,o;return e<100&&e>=0?(o=Array.prototype.slice.call(arguments),o[0]=e+400,t=new Date(Date.UTC.apply(null,o)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Jt(e,t,o){var l=7+t-o,c=(7+Tt(e,0,l).getUTCDay()-t)%7;return-c+l-1}function ii(e,t,o,l,c){var f=(7+o-l)%7,m=Jt(e,l,c),w=1+7*(t-1)+f+m,O,I;return w<=0?(O=e-1,I=Nt(O)+w):w>Nt(e)?(O=e+1,I=w-Nt(e)):(O=e,I=w),{year:O,dayOfYear:I}}function Dt(e,t,o){var l=Jt(e.year(),t,o),c=Math.floor((e.dayOfYear()-l-1)/7)+1,f,m;return c<1?(m=e.year()-1,f=c+ke(m,t,o)):c>ke(e.year(),t,o)?(f=c-ke(e.year(),t,o),m=e.year()+1):(m=e.year(),f=c),{week:f,year:m}}function ke(e,t,o){var l=Jt(e,t,o),c=Jt(e+1,t,o);return(Nt(e)-l+c)/7}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),N("w",F,et),N("ww",F,ie),N("W",F,et),N("WW",F,ie),wt(["w","ww","W","WW"],function(e,t,o,l){t[l.substr(0,1)]=C(e)});function go(e){return Dt(e,this._week.dow,this._week.doy).week}var vo={dow:0,doy:6};function yo(){return this._week.dow}function bo(){return this._week.doy}function ko(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function wo(e){var t=Dt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}D("d",0,"do","day"),D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),N("d",F),N("e",F),N("E",F),N("dd",function(e,t){return t.weekdaysMinRegex(e)}),N("ddd",function(e,t){return t.weekdaysShortRegex(e)}),N("dddd",function(e,t){return t.weekdaysRegex(e)}),wt(["dd","ddd","dddd"],function(e,t,o,l){var c=o._locale.weekdaysParse(e,l,o._strict);c!=null?t.d=c:_(o).invalidWeekday=e}),wt(["d","e","E"],function(e,t,o,l){t[l]=C(e)});function No(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _o(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function An(e,t){return e.slice(t,7).concat(e.slice(0,t))}var To="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),si="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Do="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),So=kt,Oo=kt,xo=kt;function jo(e,t){var o=u(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?An(o,this._week.dow):e?o[e.day()]:o}function Mo(e){return e===!0?An(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Eo(e){return e===!0?An(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Co(e,t,o){var l,c,f,m=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],l=0;l<7;++l)f=M([2e3,1]).day(l),this._minWeekdaysParse[l]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[l]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[l]=this.weekdays(f,"").toLocaleLowerCase();return o?t==="dddd"?(c=$.call(this._weekdaysParse,m),c!==-1?c:null):t==="ddd"?(c=$.call(this._shortWeekdaysParse,m),c!==-1?c:null):(c=$.call(this._minWeekdaysParse,m),c!==-1?c:null):t==="dddd"?(c=$.call(this._weekdaysParse,m),c!==-1||(c=$.call(this._shortWeekdaysParse,m),c!==-1)?c:(c=$.call(this._minWeekdaysParse,m),c!==-1?c:null)):t==="ddd"?(c=$.call(this._shortWeekdaysParse,m),c!==-1||(c=$.call(this._weekdaysParse,m),c!==-1)?c:(c=$.call(this._minWeekdaysParse,m),c!==-1?c:null)):(c=$.call(this._minWeekdaysParse,m),c!==-1||(c=$.call(this._weekdaysParse,m),c!==-1)?c:(c=$.call(this._shortWeekdaysParse,m),c!==-1?c:null))}function Io(e,t,o){var l,c,f;if(this._weekdaysParseExact)return Co.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),l=0;l<7;l++){if(c=M([2e3,1]).day(l),o&&!this._fullWeekdaysParse[l]&&(this._fullWeekdaysParse[l]=new RegExp("^"+this.weekdays(c,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[l]=new RegExp("^"+this.weekdaysShort(c,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[l]=new RegExp("^"+this.weekdaysMin(c,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[l]||(f="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[l]=new RegExp(f.replace(".",""),"i")),o&&t==="dddd"&&this._fullWeekdaysParse[l].test(e))return l;if(o&&t==="ddd"&&this._shortWeekdaysParse[l].test(e))return l;if(o&&t==="dd"&&this._minWeekdaysParse[l].test(e))return l;if(!o&&this._weekdaysParse[l].test(e))return l}}function Po(e){if(!this.isValid())return e!=null?this:NaN;var t=_t(this,"Day");return e!=null?(e=No(e,this.localeData()),this.add(e-t,"d")):t}function Yo(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 Ro(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_o(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ao(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=So),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vo(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fo(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vn(){function e(ne,De){return De.length-ne.length}var t=[],o=[],l=[],c=[],f,m,w,O,I;for(f=0;f<7;f++)m=M([2e3,1]).day(f),w=ve(this.weekdaysMin(m,"")),O=ve(this.weekdaysShort(m,"")),I=ve(this.weekdays(m,"")),t.push(w),o.push(O),l.push(I),c.push(w),c.push(O),c.push(I);t.sort(e),o.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fn(){return this.hours()%12||12}function Lo(){return this.hours()||24}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,Fn),D("k",["kk",2],0,Lo),D("hmm",0,0,function(){return""+Fn.apply(this)+me(this.minutes(),2)}),D("hmmss",0,0,function(){return""+Fn.apply(this)+me(this.minutes(),2)+me(this.seconds(),2)}),D("Hmm",0,0,function(){return""+this.hours()+me(this.minutes(),2)}),D("Hmmss",0,0,function(){return""+this.hours()+me(this.minutes(),2)+me(this.seconds(),2)});function oi(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}oi("a",!0),oi("A",!1);function ai(e,t){return t._meridiemParse}N("a",ai),N("A",ai),N("H",F,Pn),N("h",F,et),N("k",F,et),N("HH",F,ie),N("hh",F,ie),N("kk",F,ie),N("hmm",Kr),N("hmmss",Jr),N("Hmm",Kr),N("Hmmss",Jr),A(["H","HH"],K),A(["k","kk"],function(e,t,o){var l=C(e);t[K]=l===24?0:l}),A(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),A(["h","hh"],function(e,t,o){t[K]=C(e),_(o).bigHour=!0}),A("hmm",function(e,t,o){var l=e.length-2;t[K]=C(e.substr(0,l)),t[ce]=C(e.substr(l)),_(o).bigHour=!0}),A("hmmss",function(e,t,o){var l=e.length-4,c=e.length-2;t[K]=C(e.substr(0,l)),t[ce]=C(e.substr(l,2)),t[be]=C(e.substr(c)),_(o).bigHour=!0}),A("Hmm",function(e,t,o){var l=e.length-2;t[K]=C(e.substr(0,l)),t[ce]=C(e.substr(l))}),A("Hmmss",function(e,t,o){var l=e.length-4,c=e.length-2;t[K]=C(e.substr(0,l)),t[ce]=C(e.substr(l,2)),t[be]=C(e.substr(c))});function Wo(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ho=/[ap]\.?m?\.?/i,Uo=tt("Hours",!0);function Bo(e,t,o){return e>11?o?"pm":"PM":o?"am":"AM"}var li={calendar:Lt,longDateFormat:Ys,invalidDate:As,ordinal:Fs,dayOfMonthOrdinalParse:Ls,relativeTime:Hs,months:io,monthsShort:Qr,week:vo,weekdays:To,weekdaysMin:Do,weekdaysShort:si,meridiemParse:Ho},W={},St={},Ot;function $o(e,t){var o,l=Math.min(e.length,t.length);for(o=0;o<l;o+=1)if(e[o]!==t[o])return o;return l}function ui(e){return e&&e.toLowerCase().replace("_","-")}function Go(e){for(var t=0,o,l,c,f;t<e.length;){for(f=ui(e[t]).split("-"),o=f.length,l=ui(e[t+1]),l=l?l.split("-"):null;o>0;){if(c=Zt(f.slice(0,o).join("-")),c)return c;if(l&&l.length>=o&&$o(f,l)>=o-1)break;o--}t++}return Ot}function zo(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zt(e){var t=null,o;if(W[e]===void 0&&n&&n.exports&&zo(e))try{t=Ot._abbr,o=Qi,o("./locale/"+e),xe(t)}catch{W[e]=null}return W[e]}function xe(e,t){var o;return e&&(g(t)?o=we(e):o=Ln(e,t),o?Ot=o:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ot._abbr}function Ln(e,t){if(t!==null){var o,l=li;if(t.abbr=e,W[e]!=null)Ze("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."),l=W[e]._config;else if(t.parentLocale!=null)if(W[t.parentLocale]!=null)l=W[t.parentLocale]._config;else if(o=Zt(t.parentLocale),o!=null)l=o._config;else return St[t.parentLocale]||(St[t.parentLocale]=[]),St[t.parentLocale].push({name:e,config:t}),null;return W[e]=new yt(vt(l,t)),St[e]&&St[e].forEach(function(c){Ln(c.name,c.config)}),xe(e),W[e]}else return delete W[e],null}function qo(e,t){if(t!=null){var o,l,c=li;W[e]!=null&&W[e].parentLocale!=null?W[e].set(vt(W[e]._config,t)):(l=Zt(e),l!=null&&(c=l._config),t=vt(c,t),l==null&&(t.abbr=e),o=new yt(t),o.parentLocale=W[e],W[e]=o),xe(e)}else W[e]!=null&&(W[e].parentLocale!=null?(W[e]=W[e].parentLocale,e===xe()&&xe(e)):W[e]!=null&&delete W[e]);return W[e]}function we(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ot;if(!u(e)){if(t=Zt(e),t)return t;e=[e]}return Go(e)}function Ko(){return bt(W)}function Wn(e){var t,o=e._a;return o&&_(e).overflow===-2&&(t=o[ye]<0||o[ye]>11?ye:o[pe]<1||o[pe]>Rn(o[Q],o[ye])?pe:o[K]<0||o[K]>24||o[K]===24&&(o[ce]!==0||o[be]!==0||o[Ae]!==0)?K:o[ce]<0||o[ce]>59?ce:o[be]<0||o[be]>59?be:o[Ae]<0||o[Ae]>999?Ae:-1,_(e)._overflowDayOfYear&&(t<Q||t>pe)&&(t=pe),_(e)._overflowWeeks&&t===-1&&(t=Xs),_(e)._overflowWeekday&&t===-1&&(t=Qs),_(e).overflow=t),e}var Jo=/^\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)?)?$/,Zo=/^\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)?)?$/,Xo=/Z|[+-]\d\d(?::?\d\d)?/,Xt=[["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]],Hn=[["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/]],Qo=/^\/?Date\((-?\d+)/i,ea=/^(?:(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}))$/,ta={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 ci(e){var t,o,l=e._i,c=Jo.exec(l)||Zo.exec(l),f,m,w,O,I=Xt.length,ne=Hn.length;if(c){for(_(e).iso=!0,t=0,o=I;t<o;t++)if(Xt[t][1].exec(c[1])){m=Xt[t][0],f=Xt[t][2]!==!1;break}if(m==null){e._isValid=!1;return}if(c[3]){for(t=0,o=ne;t<o;t++)if(Hn[t][1].exec(c[3])){w=(c[2]||" ")+Hn[t][0];break}if(w==null){e._isValid=!1;return}}if(!f&&w!=null){e._isValid=!1;return}if(c[4])if(Xo.exec(c[4]))O="Z";else{e._isValid=!1;return}e._f=m+(w||"")+(O||""),Bn(e)}else e._isValid=!1}function na(e,t,o,l,c,f){var m=[ra(e),Qr.indexOf(t),parseInt(o,10),parseInt(l,10),parseInt(c,10)];return f&&m.push(parseInt(f,10)),m}function ra(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ia(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sa(e,t,o){if(e){var l=si.indexOf(e),c=new Date(t[0],t[1],t[2]).getDay();if(l!==c)return _(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function oa(e,t,o){if(e)return ta[e];if(t)return 0;var l=parseInt(o,10),c=l%100,f=(l-c)/100;return f*60+c}function fi(e){var t=ea.exec(ia(e._i)),o;if(t){if(o=na(t[4],t[3],t[2],t[5],t[6],t[7]),!sa(t[1],o,e))return;e._a=o,e._tzm=oa(t[8],t[9],t[10]),e._d=Tt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function aa(e){var t=Qo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ci(e),e._isValid===!1)delete e._isValid;else return;if(fi(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:s.createFromInputFallback(e)}s.createFromInputFallback=X("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 nt(e,t,o){return e??t??o}function la(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Un(e){var t,o,l=[],c,f,m;if(!e._d){for(c=la(e),e._w&&e._a[pe]==null&&e._a[ye]==null&&ua(e),e._dayOfYear!=null&&(m=nt(e._a[Q],c[Q]),(e._dayOfYear>Nt(m)||e._dayOfYear===0)&&(_(e)._overflowDayOfYear=!0),o=Tt(m,0,e._dayOfYear),e._a[ye]=o.getUTCMonth(),e._a[pe]=o.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=l[t]=c[t];for(;t<7;t++)e._a[t]=l[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[K]===24&&e._a[ce]===0&&e._a[be]===0&&e._a[Ae]===0&&(e._nextDay=!0,e._a[K]=0),e._d=(e._useUTC?Tt:po).apply(null,l),f=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[K]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==f&&(_(e).weekdayMismatch=!0)}}function ua(e){var t,o,l,c,f,m,w,O,I;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(f=1,m=4,o=nt(t.GG,e._a[Q],Dt(L(),1,4).year),l=nt(t.W,1),c=nt(t.E,1),(c<1||c>7)&&(O=!0)):(f=e._locale._week.dow,m=e._locale._week.doy,I=Dt(L(),f,m),o=nt(t.gg,e._a[Q],I.year),l=nt(t.w,I.week),t.d!=null?(c=t.d,(c<0||c>6)&&(O=!0)):t.e!=null?(c=t.e+f,(t.e<0||t.e>6)&&(O=!0)):c=f),l<1||l>ke(o,f,m)?_(e)._overflowWeeks=!0:O!=null?_(e)._overflowWeekday=!0:(w=ii(o,l,c,f,m),e._a[Q]=w.year,e._dayOfYear=w.dayOfYear)}s.ISO_8601=function(){},s.RFC_2822=function(){};function Bn(e){if(e._f===s.ISO_8601){ci(e);return}if(e._f===s.RFC_2822){fi(e);return}e._a=[],_(e).empty=!0;var t=""+e._i,o,l,c,f,m,w=t.length,O=0,I,ne;for(c=$r(e._f,e._locale).match(jn)||[],ne=c.length,o=0;o<ne;o++)f=c[o],l=(t.match(Ks(f,e))||[])[0],l&&(m=t.substr(0,t.indexOf(l)),m.length>0&&_(e).unusedInput.push(m),t=t.slice(t.indexOf(l)+l.length),O+=l.length),Xe[f]?(l?_(e).empty=!1:_(e).unusedTokens.push(f),Zs(f,l,e)):e._strict&&!l&&_(e).unusedTokens.push(f);_(e).charsLeftOver=w-O,t.length>0&&_(e).unusedInput.push(t),e._a[K]<=12&&_(e).bigHour===!0&&e._a[K]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[K]=ca(e._locale,e._a[K],e._meridiem),I=_(e).era,I!==null&&(e._a[Q]=e._locale.erasConvertYear(I,e._a[Q])),Un(e),Wn(e)}function ca(e,t,o){var l;return o==null?t:e.meridiemHour!=null?e.meridiemHour(t,o):(e.isPM!=null&&(l=e.isPM(o),l&&t<12&&(t+=12),!l&&t===12&&(t=0)),t)}function fa(e){var t,o,l,c,f,m,w=!1,O=e._f.length;if(O===0){_(e).invalidFormat=!0,e._d=new Date(NaN);return}for(c=0;c<O;c++)f=0,m=!1,t=Re({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[c],Bn(t),z(t)&&(m=!0),f+=_(t).charsLeftOver,f+=_(t).unusedTokens.length*10,_(t).score=f,w?f<l&&(l=f,o=t):(l==null||f<l||m)&&(l=f,o=t,m&&(w=!0));k(e,o||t)}function da(e){if(!e._d){var t=En(e._i),o=t.day===void 0?t.date:t.day;e._a=S([t.year,t.month,o,t.hour,t.minute,t.second,t.millisecond],function(l){return l&&parseInt(l,10)}),Un(e)}}function ha(e){var t=new ue(Wn(di(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function di(e){var t=e._i,o=e._f;return e._locale=e._locale||we(e._l),t===null||o===void 0&&t===""?q({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),te(t)?new ue(Wn(t)):(E(t)?e._d=t:u(o)?fa(e):o?Bn(e):ma(e),z(e)||(e._d=null),e))}function ma(e){var t=e._i;g(t)?e._d=new Date(s.now()):E(t)?e._d=new Date(t.valueOf()):typeof t=="string"?aa(e):u(t)?(e._a=S(t.slice(0),function(o){return parseInt(o,10)}),Un(e)):d(t)?da(e):b(t)?e._d=new Date(t):s.createFromInputFallback(e)}function hi(e,t,o,l,c){var f={};return(t===!0||t===!1)&&(l=t,t=void 0),(o===!0||o===!1)&&(l=o,o=void 0),(d(e)&&v(e)||u(e)&&e.length===0)&&(e=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=c,f._l=o,f._i=e,f._f=t,f._strict=l,ha(f)}function L(e,t,o,l){return hi(e,t,o,l,!1)}var pa=X("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:q()}),ga=X("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:q()});function mi(e,t){var o,l;if(t.length===1&&u(t[0])&&(t=t[0]),!t.length)return L();for(o=t[0],l=1;l<t.length;++l)(!t[l].isValid()||t[l][e](o))&&(o=t[l]);return o}function va(){var e=[].slice.call(arguments,0);return mi("isBefore",e)}function ya(){var e=[].slice.call(arguments,0);return mi("isAfter",e)}var ba=function(){return Date.now?Date.now():+new Date},xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ka(e){var t,o=!1,l,c=xt.length;for(t in e)if(h(e,t)&&!($.call(xt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(l=0;l<c;++l)if(e[xt[l]]){if(o)return!1;parseFloat(e[xt[l]])!==C(e[xt[l]])&&(o=!0)}return!0}function wa(){return this._isValid}function Na(){return fe(NaN)}function Qt(e){var t=En(e),o=t.year||0,l=t.quarter||0,c=t.month||0,f=t.week||t.isoWeek||0,m=t.day||0,w=t.hour||0,O=t.minute||0,I=t.second||0,ne=t.millisecond||0;this._isValid=ka(t),this._milliseconds=+ne+I*1e3+O*6e4+w*1e3*60*60,this._days=+m+f*7,this._months=+c+l*3+o*12,this._data={},this._locale=we(),this._bubble()}function en(e){return e instanceof Qt}function $n(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _a(e,t,o){var l=Math.min(e.length,t.length),c=Math.abs(e.length-t.length),f=0,m;for(m=0;m<l;m++)(o&&e[m]!==t[m]||!o&&C(e[m])!==C(t[m]))&&f++;return f+c}function pi(e,t){D(e,0,0,function(){var o=this.utcOffset(),l="+";return o<0&&(o=-o,l="-"),l+me(~~(o/60),2)+t+me(~~o%60,2)})}pi("Z",":"),pi("ZZ",""),N("Z",zt),N("ZZ",zt),A(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=Gn(zt,e)});var Ta=/([\+\-]|\d\d)/gi;function Gn(e,t){var o=(t||"").match(e),l,c,f;return o===null?null:(l=o[o.length-1]||[],c=(l+"").match(Ta)||["-",0,0],f=+(c[1]*60)+C(c[2]),f===0?0:c[0]==="+"?f:-f)}function zn(e,t){var o,l;return t._isUTC?(o=t.clone(),l=(te(e)||E(e)?e.valueOf():L(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+l),s.updateOffset(o,!1),o):L(e).local()}function qn(e){return-Math.round(e._d.getTimezoneOffset())}s.updateOffset=function(){};function Da(e,t,o){var l=this._offset||0,c;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Gn(zt,e),e===null)return this}else Math.abs(e)<16&&!o&&(e=e*60);return!this._isUTC&&t&&(c=qn(this)),this._offset=e,this._isUTC=!0,c!=null&&this.add(c,"m"),l!==e&&(!t||this._changeInProgress?bi(this,fe(e-l,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?l:qn(this)}function Sa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Oa(e){return this.utcOffset(0,e)}function xa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qn(this),"m")),this}function ja(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Gn(zs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ma(e){return this.isValid()?(e=e?L(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ea(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ca(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Re(e,this),e=di(e),e._a?(t=e._isUTC?M(e._a):L(e._a),this._isDSTShifted=this.isValid()&&_a(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ia(){return this.isValid()?!this._isUTC:!1}function Pa(){return this.isValid()?this._isUTC:!1}function gi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ya=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ra=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function fe(e,t){var o=e,l=null,c,f,m;return en(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:b(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(l=Ya.exec(e))?(c=l[1]==="-"?-1:1,o={y:0,d:C(l[pe])*c,h:C(l[K])*c,m:C(l[ce])*c,s:C(l[be])*c,ms:C($n(l[Ae]*1e3))*c}):(l=Ra.exec(e))?(c=l[1]==="-"?-1:1,o={y:Ve(l[2],c),M:Ve(l[3],c),w:Ve(l[4],c),d:Ve(l[5],c),h:Ve(l[6],c),m:Ve(l[7],c),s:Ve(l[8],c)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(m=Aa(L(o.from),L(o.to)),o={},o.ms=m.milliseconds,o.M=m.months),f=new Qt(o),en(e)&&h(e,"_locale")&&(f._locale=e._locale),en(e)&&h(e,"_isValid")&&(f._isValid=e._isValid),f}fe.fn=Qt.prototype,fe.invalid=Na;function Ve(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function vi(e,t){var o={};return o.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function Aa(e,t){var o;return e.isValid()&&t.isValid()?(t=zn(t,e),e.isBefore(t)?o=vi(e,t):(o=vi(t,e),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function yi(e,t){return function(o,l){var c,f;return l!==null&&!isNaN(+l)&&(Ze(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."),f=o,o=l,l=f),c=fe(o,l),bi(this,c,e),this}}function bi(e,t,o,l){var c=t._milliseconds,f=$n(t._days),m=$n(t._months);e.isValid()&&(l=l??!0,m&&ti(e,_t(e,"Month")+m*o),f&&Xr(e,"Date",_t(e,"Date")+f*o),c&&e._d.setTime(e._d.valueOf()+c*o),l&&s.updateOffset(e,f||m))}var Va=yi(1,"add"),Fa=yi(-1,"subtract");function ki(e){return typeof e=="string"||e instanceof String}function La(e){return te(e)||E(e)||ki(e)||b(e)||Ha(e)||Wa(e)||e===null||e===void 0}function Wa(e){var t=d(e)&&!v(e),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c,f,m=l.length;for(c=0;c<m;c+=1)f=l[c],o=o||h(e,f);return t&&o}function Ha(e){var t=u(e),o=!1;return t&&(o=e.filter(function(l){return!b(l)&&ki(e)}).length===0),t&&o}function Ua(e){var t=d(e)&&!v(e),o=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],c,f;for(c=0;c<l.length;c+=1)f=l[c],o=o||h(e,f);return t&&o}function Ba(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function $a(e,t){arguments.length===1&&(arguments[0]?La(arguments[0])?(e=arguments[0],t=void 0):Ua(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var o=e||L(),l=zn(o,this).startOf("day"),c=s.calendarFormat(this,l)||"sameElse",f=t&&(B(t[c])?t[c].call(this,o):t[c]);return this.format(f||this.localeData().calendar(c,this,L(o)))}function Ga(){return new ue(this)}function za(e,t){var o=te(e)?e:L(e);return this.isValid()&&o.isValid()?(t=oe(t)||"millisecond",t==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf()):!1}function qa(e,t){var o=te(e)?e:L(e);return this.isValid()&&o.isValid()?(t=oe(t)||"millisecond",t==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf()):!1}function Ka(e,t,o,l){var c=te(e)?e:L(e),f=te(t)?t:L(t);return this.isValid()&&c.isValid()&&f.isValid()?(l=l||"()",(l[0]==="("?this.isAfter(c,o):!this.isBefore(c,o))&&(l[1]===")"?this.isBefore(f,o):!this.isAfter(f,o))):!1}function Ja(e,t){var o=te(e)?e:L(e),l;return this.isValid()&&o.isValid()?(t=oe(t)||"millisecond",t==="millisecond"?this.valueOf()===o.valueOf():(l=o.valueOf(),this.clone().startOf(t).valueOf()<=l&&l<=this.clone().endOf(t).valueOf())):!1}function Za(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qa(e,t,o){var l,c,f;if(!this.isValid())return NaN;if(l=zn(e,this),!l.isValid())return NaN;switch(c=(l.utcOffset()-this.utcOffset())*6e4,t=oe(t),t){case"year":f=tn(this,l)/12;break;case"month":f=tn(this,l);break;case"quarter":f=tn(this,l)/3;break;case"second":f=(this-l)/1e3;break;case"minute":f=(this-l)/6e4;break;case"hour":f=(this-l)/36e5;break;case"day":f=(this-l-c)/864e5;break;case"week":f=(this-l-c)/6048e5;break;default:f=this-l}return o?f:ae(f)}function tn(e,t){if(e.date()<t.date())return-tn(t,e);var o=(t.year()-e.year())*12+(t.month()-e.month()),l=e.clone().add(o,"months"),c,f;return t-l<0?(c=e.clone().add(o-1,"months"),f=(t-l)/(l-c)):(c=e.clone().add(o+1,"months"),f=(t-l)/(c-l)),-(o+f)||0}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function el(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function tl(e){if(!this.isValid())return null;var t=e!==!0,o=t?this.clone().utc():this;return o.year()<0||o.year()>9999?Ht(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):B(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ht(o,"Z")):Ht(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",o,l,c,f;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),o="["+e+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",c="-MM-DD[T]HH:mm:ss.SSS",f=t+'[")]',this.format(o+l+c+f)}function rl(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=Ht(this,e);return this.localeData().postformat(t)}function il(e,t){return this.isValid()&&(te(e)&&e.isValid()||L(e).isValid())?fe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sl(e){return this.from(L(),e)}function ol(e,t){return this.isValid()&&(te(e)&&e.isValid()||L(e).isValid())?fe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function al(e){return this.to(L(),e)}function wi(e){var t;return e===void 0?this._locale._abbr:(t=we(e),t!=null&&(this._locale=t),this)}var Ni=X("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 _i(){return this._locale}var nn=1e3,rt=60*nn,rn=60*rt,Ti=(365*400+97)*24*rn;function it(e,t){return(e%t+t)%t}function Di(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-Ti:new Date(e,t,o).valueOf()}function Si(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-Ti:Date.UTC(e,t,o)}function ll(e){var t,o;if(e=oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?Si:Di,e){case"year":t=o(this.year(),0,1);break;case"quarter":t=o(this.year(),this.month()-this.month()%3,1);break;case"month":t=o(this.year(),this.month(),1);break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=o(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=it(t+(this._isUTC?0:this.utcOffset()*rt),rn);break;case"minute":t=this._d.valueOf(),t-=it(t,rt);break;case"second":t=this._d.valueOf(),t-=it(t,nn);break}return this._d.setTime(t),s.updateOffset(this,!0),this}function ul(e){var t,o;if(e=oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?Si:Di,e){case"year":t=o(this.year()+1,0,1)-1;break;case"quarter":t=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=o(this.year(),this.month()+1,1)-1;break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rn-it(t+(this._isUTC?0:this.utcOffset()*rt),rn)-1;break;case"minute":t=this._d.valueOf(),t+=rt-it(t,rt)-1;break;case"second":t=this._d.valueOf(),t+=nn-it(t,nn)-1;break}return this._d.setTime(t),s.updateOffset(this,!0),this}function cl(){return this._d.valueOf()-(this._offset||0)*6e4}function fl(){return Math.floor(this.valueOf()/1e3)}function dl(){return new Date(this.valueOf())}function hl(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ml(){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 pl(){return this.isValid()?this.toISOString():null}function gl(){return z(this)}function vl(){return k({},_(this))}function yl(){return _(this).overflow}function bl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),N("N",Kn),N("NN",Kn),N("NNN",Kn),N("NNNN",Ml),N("NNNNN",El),A(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,l){var c=o._locale.erasParse(e,l,o._strict);c?_(o).era=c:_(o).invalidEra=e}),N("y",Qe),N("yy",Qe),N("yyy",Qe),N("yyyy",Qe),N("yo",Cl),A(["y","yy","yyy","yyyy"],Q),A(["yo"],function(e,t,o,l){var c;o._locale._eraYearOrdinalRegex&&(c=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[Q]=o._locale.eraYearOrdinalParse(e,c):t[Q]=parseInt(e,10)});function kl(e,t){var o,l,c,f=this._eras||we("en")._eras;for(o=0,l=f.length;o<l;++o){switch(typeof f[o].since){case"string":c=s(f[o].since).startOf("day"),f[o].since=c.valueOf();break}switch(typeof f[o].until){case"undefined":f[o].until=1/0;break;case"string":c=s(f[o].until).startOf("day").valueOf(),f[o].until=c.valueOf();break}}return f}function wl(e,t,o){var l,c,f=this.eras(),m,w,O;for(e=e.toUpperCase(),l=0,c=f.length;l<c;++l)if(m=f[l].name.toUpperCase(),w=f[l].abbr.toUpperCase(),O=f[l].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(w===e)return f[l];break;case"NNNN":if(m===e)return f[l];break;case"NNNNN":if(O===e)return f[l];break}else if([m,w,O].indexOf(e)>=0)return f[l]}function Nl(e,t){var o=e.since<=e.until?1:-1;return t===void 0?s(e.since).year():s(e.since).year()+(t-e.offset)*o}function _l(){var e,t,o,l=this.localeData().eras();for(e=0,t=l.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),l[e].since<=o&&o<=l[e].until||l[e].until<=o&&o<=l[e].since)return l[e].name;return""}function Tl(){var e,t,o,l=this.localeData().eras();for(e=0,t=l.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),l[e].since<=o&&o<=l[e].until||l[e].until<=o&&o<=l[e].since)return l[e].narrow;return""}function Dl(){var e,t,o,l=this.localeData().eras();for(e=0,t=l.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),l[e].since<=o&&o<=l[e].until||l[e].until<=o&&o<=l[e].since)return l[e].abbr;return""}function Sl(){var e,t,o,l,c=this.localeData().eras();for(e=0,t=c.length;e<t;++e)if(o=c[e].since<=c[e].until?1:-1,l=this.clone().startOf("day").valueOf(),c[e].since<=l&&l<=c[e].until||c[e].until<=l&&l<=c[e].since)return(this.year()-s(c[e].since).year())*o+c[e].offset;return this.year()}function Ol(e){return h(this,"_erasNameRegex")||Jn.call(this),e?this._erasNameRegex:this._erasRegex}function xl(e){return h(this,"_erasAbbrRegex")||Jn.call(this),e?this._erasAbbrRegex:this._erasRegex}function jl(e){return h(this,"_erasNarrowRegex")||Jn.call(this),e?this._erasNarrowRegex:this._erasRegex}function Kn(e,t){return t.erasAbbrRegex(e)}function Ml(e,t){return t.erasNameRegex(e)}function El(e,t){return t.erasNarrowRegex(e)}function Cl(e,t){return t._eraYearOrdinalRegex||Qe}function Jn(){var e=[],t=[],o=[],l=[],c,f,m,w,O,I=this.eras();for(c=0,f=I.length;c<f;++c)m=ve(I[c].name),w=ve(I[c].abbr),O=ve(I[c].narrow),t.push(m),e.push(w),o.push(O),l.push(m),l.push(w),l.push(O);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100});function sn(e,t){D(0,[e,e.length],0,t)}sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),N("G",Gt),N("g",Gt),N("GG",F,ie),N("gg",F,ie),N("GGGG",In,Cn),N("gggg",In,Cn),N("GGGGG",$t,Ut),N("ggggg",$t,Ut),wt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,l){t[l.substr(0,2)]=C(e)}),wt(["gg","GG"],function(e,t,o,l){t[l]=s.parseTwoDigitYear(e)});function Il(e){return Oi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Pl(e){return Oi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yl(){return ke(this.year(),1,4)}function Rl(){return ke(this.isoWeekYear(),1,4)}function Al(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Vl(){var e=this.localeData()._week;return ke(this.weekYear(),e.dow,e.doy)}function Oi(e,t,o,l,c){var f;return e==null?Dt(this,l,c).year:(f=ke(e,l,c),t>f&&(t=f),Fl.call(this,e,t,o,l,c))}function Fl(e,t,o,l,c){var f=ii(e,t,o,l,c),m=Tt(f.year,0,f.dayOfYear);return this.year(m.getUTCFullYear()),this.month(m.getUTCMonth()),this.date(m.getUTCDate()),this}D("Q",0,"Qo","quarter"),N("Q",zr),A("Q",function(e,t){t[ye]=(C(e)-1)*3});function Ll(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}D("D",["DD",2],"Do","date"),N("D",F,et),N("DD",F,ie),N("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),A(["D","DD"],pe),A("Do",function(e,t){t[pe]=C(e.match(F)[0])});var xi=tt("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),N("DDD",Bt),N("DDDD",qr),A(["DDD","DDDD"],function(e,t,o){o._dayOfYear=C(e)});function Wl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}D("m",["mm",2],0,"minute"),N("m",F,Pn),N("mm",F,ie),A(["m","mm"],ce);var Hl=tt("Minutes",!1);D("s",["ss",2],0,"second"),N("s",F,Pn),N("ss",F,ie),A(["s","ss"],be);var Ul=tt("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return this.millisecond()*10}),D(0,["SSSSS",5],0,function(){return this.millisecond()*100}),D(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),D(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),D(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),D(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),N("S",Bt,zr),N("SS",Bt,ie),N("SSS",Bt,qr);var je,ji;for(je="SSSS";je.length<=9;je+="S")N(je,Qe);function Bl(e,t){t[Ae]=C(("0."+e)*1e3)}for(je="S";je.length<=9;je+="S")A(je,Bl);ji=tt("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");function $l(){return this._isUTC?"UTC":""}function Gl(){return this._isUTC?"Coordinated Universal Time":""}var y=ue.prototype;y.add=Va,y.calendar=$a,y.clone=Ga,y.diff=Qa,y.endOf=ul,y.format=rl,y.from=il,y.fromNow=sl,y.to=ol,y.toNow=al,y.get=to,y.invalidAt=yl,y.isAfter=za,y.isBefore=qa,y.isBetween=Ka,y.isSame=Ja,y.isSameOrAfter=Za,y.isSameOrBefore=Xa,y.isValid=gl,y.lang=Ni,y.locale=wi,y.localeData=_i,y.max=ga,y.min=pa,y.parsingFlags=vl,y.set=no,y.startOf=ll,y.subtract=Fa,y.toArray=hl,y.toObject=ml,y.toDate=dl,y.toISOString=tl,y.inspect=nl,typeof Symbol<"u"&&Symbol.for!=null&&(y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),y.toJSON=pl,y.toString=el,y.unix=fl,y.valueOf=cl,y.creationData=bl,y.eraName=_l,y.eraNarrow=Tl,y.eraAbbr=Dl,y.eraYear=Sl,y.year=Zr,y.isLeapYear=eo,y.weekYear=Il,y.isoWeekYear=Pl,y.quarter=y.quarters=Ll,y.month=ni,y.daysInMonth=fo,y.week=y.weeks=ko,y.isoWeek=y.isoWeeks=wo,y.weeksInYear=Al,y.weeksInWeekYear=Vl,y.isoWeeksInYear=Yl,y.isoWeeksInISOWeekYear=Rl,y.date=xi,y.day=y.days=Po,y.weekday=Yo,y.isoWeekday=Ro,y.dayOfYear=Wl,y.hour=y.hours=Uo,y.minute=y.minutes=Hl,y.second=y.seconds=Ul,y.millisecond=y.milliseconds=ji,y.utcOffset=Da,y.utc=Oa,y.local=xa,y.parseZone=ja,y.hasAlignedHourOffset=Ma,y.isDST=Ea,y.isLocal=Ia,y.isUtcOffset=Pa,y.isUtc=gi,y.isUTC=gi,y.zoneAbbr=$l,y.zoneName=Gl,y.dates=X("dates accessor is deprecated. Use date instead.",xi),y.months=X("months accessor is deprecated. Use month instead",ni),y.years=X("years accessor is deprecated. Use year instead",Zr),y.zone=X("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Sa),y.isDSTShifted=X("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ca);function zl(e){return L(e*1e3)}function ql(){return L.apply(null,arguments).parseZone()}function Mi(e){return e}var Y=yt.prototype;Y.calendar=xn,Y.longDateFormat=Rs,Y.invalidDate=Vs,Y.ordinal=Ws,Y.preparse=Mi,Y.postformat=Mi,Y.relativeTime=Us,Y.pastFuture=Bs,Y.set=On,Y.eras=kl,Y.erasParse=wl,Y.erasConvertYear=Nl,Y.erasAbbrRegex=xl,Y.erasNameRegex=Ol,Y.erasNarrowRegex=jl,Y.months=ao,Y.monthsShort=lo,Y.monthsParse=co,Y.monthsRegex=mo,Y.monthsShortRegex=ho,Y.week=go,Y.firstDayOfYear=bo,Y.firstDayOfWeek=yo,Y.weekdays=jo,Y.weekdaysMin=Eo,Y.weekdaysShort=Mo,Y.weekdaysParse=Io,Y.weekdaysRegex=Ao,Y.weekdaysShortRegex=Vo,Y.weekdaysMinRegex=Fo,Y.isPM=Wo,Y.meridiem=Bo;function on(e,t,o,l){var c=we(),f=M().set(l,t);return c[o](f,e)}function Ei(e,t,o){if(b(e)&&(t=e,e=void 0),e=e||"",t!=null)return on(e,t,o,"month");var l,c=[];for(l=0;l<12;l++)c[l]=on(e,l,o,"month");return c}function Zn(e,t,o,l){typeof e=="boolean"?(b(t)&&(o=t,t=void 0),t=t||""):(t=e,o=t,e=!1,b(t)&&(o=t,t=void 0),t=t||"");var c=we(),f=e?c._week.dow:0,m,w=[];if(o!=null)return on(t,(o+f)%7,l,"day");for(m=0;m<7;m++)w[m]=on(t,(m+f)%7,l,"day");return w}function Kl(e,t){return Ei(e,t,"months")}function Jl(e,t){return Ei(e,t,"monthsShort")}function Zl(e,t,o){return Zn(e,t,o,"weekdays")}function Xl(e,t,o){return Zn(e,t,o,"weekdaysShort")}function Ql(e,t,o){return Zn(e,t,o,"weekdaysMin")}xe("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,o=C(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+o}}),s.lang=X("moment.lang is deprecated. Use moment.locale instead.",xe),s.langData=X("moment.langData is deprecated. Use moment.localeData instead.",we);var Ne=Math.abs;function eu(){var e=this._data;return this._milliseconds=Ne(this._milliseconds),this._days=Ne(this._days),this._months=Ne(this._months),e.milliseconds=Ne(e.milliseconds),e.seconds=Ne(e.seconds),e.minutes=Ne(e.minutes),e.hours=Ne(e.hours),e.months=Ne(e.months),e.years=Ne(e.years),this}function Ci(e,t,o,l){var c=fe(t,o);return e._milliseconds+=l*c._milliseconds,e._days+=l*c._days,e._months+=l*c._months,e._bubble()}function tu(e,t){return Ci(this,e,t,1)}function nu(e,t){return Ci(this,e,t,-1)}function Ii(e){return e<0?Math.floor(e):Math.ceil(e)}function ru(){var e=this._milliseconds,t=this._days,o=this._months,l=this._data,c,f,m,w,O;return e>=0&&t>=0&&o>=0||e<=0&&t<=0&&o<=0||(e+=Ii(Xn(o)+t)*864e5,t=0,o=0),l.milliseconds=e%1e3,c=ae(e/1e3),l.seconds=c%60,f=ae(c/60),l.minutes=f%60,m=ae(f/60),l.hours=m%24,t+=ae(m/24),O=ae(Pi(t)),o+=O,t-=Ii(Xn(O)),w=ae(o/12),o%=12,l.days=t,l.months=o,l.years=w,this}function Pi(e){return e*4800/146097}function Xn(e){return e*146097/4800}function iu(e){if(!this.isValid())return NaN;var t,o,l=this._milliseconds;if(e=oe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+l/864e5,o=this._months+Pi(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(Xn(this._months)),e){case"week":return t/7+l/6048e5;case"day":return t+l/864e5;case"hour":return t*24+l/36e5;case"minute":return t*1440+l/6e4;case"second":return t*86400+l/1e3;case"millisecond":return Math.floor(t*864e5)+l;default:throw new Error("Unknown unit "+e)}}function _e(e){return function(){return this.as(e)}}var Yi=_e("ms"),su=_e("s"),ou=_e("m"),au=_e("h"),lu=_e("d"),uu=_e("w"),cu=_e("M"),fu=_e("Q"),du=_e("y"),hu=Yi;function mu(){return fe(this)}function pu(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Fe(e){return function(){return this.isValid()?this._data[e]:NaN}}var gu=Fe("milliseconds"),vu=Fe("seconds"),yu=Fe("minutes"),bu=Fe("hours"),ku=Fe("days"),wu=Fe("months"),Nu=Fe("years");function _u(){return ae(this.days()/7)}var Te=Math.round,st={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tu(e,t,o,l,c){return c.relativeTime(t||1,!!o,e,l)}function Du(e,t,o,l){var c=fe(e).abs(),f=Te(c.as("s")),m=Te(c.as("m")),w=Te(c.as("h")),O=Te(c.as("d")),I=Te(c.as("M")),ne=Te(c.as("w")),De=Te(c.as("y")),Me=f<=o.ss&&["s",f]||f<o.s&&["ss",f]||m<=1&&["m"]||m<o.m&&["mm",m]||w<=1&&["h"]||w<o.h&&["hh",w]||O<=1&&["d"]||O<o.d&&["dd",O];return o.w!=null&&(Me=Me||ne<=1&&["w"]||ne<o.w&&["ww",ne]),Me=Me||I<=1&&["M"]||I<o.M&&["MM",I]||De<=1&&["y"]||["yy",De],Me[2]=t,Me[3]=+e>0,Me[4]=l,Tu.apply(null,Me)}function Su(e){return e===void 0?Te:typeof e=="function"?(Te=e,!0):!1}function Ou(e,t){return st[e]===void 0?!1:t===void 0?st[e]:(st[e]=t,e==="s"&&(st.ss=t-1),!0)}function xu(e,t){if(!this.isValid())return this.localeData().invalidDate();var o=!1,l=st,c,f;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(o=e),typeof t=="object"&&(l=Object.assign({},st,t),t.s!=null&&t.ss==null&&(l.ss=t.s-1)),c=this.localeData(),f=Du(this,!o,l,c),o&&(f=c.pastFuture(+this,f)),c.postformat(f)}var Qn=Math.abs;function ot(e){return(e>0)-(e<0)||+e}function an(){if(!this.isValid())return this.localeData().invalidDate();var e=Qn(this._milliseconds)/1e3,t=Qn(this._days),o=Qn(this._months),l,c,f,m,w=this.asSeconds(),O,I,ne,De;return w?(l=ae(e/60),c=ae(l/60),e%=60,l%=60,f=ae(o/12),o%=12,m=e?e.toFixed(3).replace(/\.?0+$/,""):"",O=w<0?"-":"",I=ot(this._months)!==ot(w)?"-":"",ne=ot(this._days)!==ot(w)?"-":"",De=ot(this._milliseconds)!==ot(w)?"-":"",O+"P"+(f?I+f+"Y":"")+(o?I+o+"M":"")+(t?ne+t+"D":"")+(c||l||e?"T":"")+(c?De+c+"H":"")+(l?De+l+"M":"")+(e?De+m+"S":"")):"P0D"}var P=Qt.prototype;P.isValid=wa,P.abs=eu,P.add=tu,P.subtract=nu,P.as=iu,P.asMilliseconds=Yi,P.asSeconds=su,P.asMinutes=ou,P.asHours=au,P.asDays=lu,P.asWeeks=uu,P.asMonths=cu,P.asQuarters=fu,P.asYears=du,P.valueOf=hu,P._bubble=ru,P.clone=mu,P.get=pu,P.milliseconds=gu,P.seconds=vu,P.minutes=yu,P.hours=bu,P.days=ku,P.weeks=_u,P.months=wu,P.years=Nu,P.humanize=xu,P.toISOString=an,P.toString=an,P.toJSON=an,P.locale=wi,P.localeData=_i,P.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",an),P.lang=Ni,D("X",0,0,"unix"),D("x",0,0,"valueOf"),N("x",Gt),N("X",qs),A("X",function(e,t,o){o._d=new Date(parseFloat(e)*1e3)}),A("x",function(e,t,o){o._d=new Date(C(e))});//! moment.js
return s.version="2.30.1",a(L),s.fn=y,s.min=va,s.max=ya,s.now=ba,s.utc=M,s.unix=zl,s.months=Kl,s.isDate=E,s.locale=xe,s.invalid=q,s.duration=fe,s.isMoment=te,s.weekdays=Zl,s.parseZone=ql,s.localeData=we,s.isDuration=en,s.monthsShort=Jl,s.weekdaysMin=Ql,s.defineLocale=Ln,s.updateLocale=qo,s.locales=Ko,s.weekdaysShort=Xl,s.normalizeUnits=oe,s.relativeTimeRounding=Su,s.relativeTimeThreshold=Ou,s.calendarFormat=Ba,s.prototype=y,s.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"},s})}(tr)),tr.exports}(function(n,r){(function(i,s){s(typeof Qi=="function"?wc():i.moment)})(Ji,function(i){//! moment.js locale configuration
var s=i.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(a){return/^ch$/i.test(a)},meridiem:function(a,u,d){return a<12?d?"sa":"SA":d?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(a){return a},week:{dow:1,doy:4}});return s})})();var br=function(n,r){return br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])},br(n,r)};function Nc(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");br(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var re=function(){return re=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},re.apply(this,arguments)};function x(n,r,i,s){function a(u){return u instanceof i?u:new i(function(d){d(u)})}return new(i||(i=Promise))(function(u,d){function h(b){try{g(s.next(b))}catch(E){d(E)}}function v(b){try{g(s.throw(b))}catch(E){d(E)}}function g(b){b.done?u(b.value):a(b.value).then(h,v)}g((s=s.apply(n,r||[])).next())})}function j(n,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=h(0),d.throw=h(1),d.return=h(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(g){return function(b){return v([g,b])}}function v(g){if(s)throw new TypeError("Generator is already executing.");for(;d&&(d=0,g[0]&&(i=0)),i;)try{if(s=1,a&&(u=g[0]&2?a.return:g[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,g[1])).done)return u;switch(a=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return i.label++,{value:g[1],done:!1};case 5:i.label++,a=g[1],g=[0];continue;case 7:g=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){i=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){i.label=g[1];break}if(g[0]===6&&i.label<u[1]){i.label=u[1],u=g;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(g);break}u[2]&&i.ops.pop(),i.trys.pop();continue}g=r.call(n,i)}catch(b){g=[6,b],a=0}finally{s=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}}function Pe(n){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&n[r],s=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(n,r){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,u=[],d;try{for(;(r===void 0||r-- >0)&&!(a=s.next()).done;)u.push(a.value)}catch(h){d={error:h}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(d)throw d.error}}return u}function mn(n,r,i){if(i||arguments.length===2)for(var s=0,a=r.length,u;s<a;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _c(n){return It(void 0,n)}function It(n,r){if(!(r instanceof Object))return r;switch(r.constructor){case Date:var i=r;return new Date(i.getTime());case Object:n===void 0&&(n={});break;case Array:n=[];break;default:return r}for(var s in r)!r.hasOwnProperty(s)||!Tc(s)||(n[s]=It(n[s],r[s]));return n}function Tc(n){return n!=="__proto__"}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Dc=function(){function n(){var r=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(i,s){r.resolve=i,r.reject=s})}return n.prototype.wrapCallback=function(r){var i=this;return function(s,a){s?i.reject(s):i.resolve(a),typeof r=="function"&&(i.promise.catch(function(){}),r.length===1?r(s):r(s,a))}},n}();function Sc(){try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function Oc(){return typeof self=="object"&&self.self===self}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var xc="FirebaseError",is=function(n){Nc(r,n);function r(i,s,a){var u=n.call(this,s)||this;return u.code=i,u.customData=a,u.name=xc,Object.setPrototypeOf(u,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(u,Rt.prototype.create),u}return r}(Error),Rt=function(){function n(r,i,s){this.service=r,this.serviceName=i,this.errors=s}return n.prototype.create=function(r){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var a=i[0]||{},u=this.service+"/"+r,d=this.errors[r],h=d?jc(d,a):"Error",v=this.serviceName+": "+h+" ("+u+").",g=new is(u,v,a);return g},n}();function jc(n,r){return n.replace(Mc,function(i,s){var a=r[s];return a!=null?String(a):"<"+s+"?>"})}var Mc=/\{\$([^}]+)}/g;/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ui(n,r){return Object.prototype.hasOwnProperty.call(n,r)}function Ec(n,r){var i=new Cc(n,r);return i.subscribe.bind(i)}var Cc=function(){function n(r,i){var s=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=i,this.task.then(function(){r(s)}).catch(function(a){s.error(a)})}return n.prototype.next=function(r){this.forEachObserver(function(i){i.next(r)})},n.prototype.error=function(r){this.forEachObserver(function(i){i.error(r)}),this.close(r)},n.prototype.complete=function(){this.forEachObserver(function(r){r.complete()}),this.close()},n.prototype.subscribe=function(r,i,s){var a=this,u;if(r===void 0&&i===void 0&&s===void 0)throw new Error("Missing Observer.");Ic(r,["next","error","complete"])?u=r:u={next:r,error:i,complete:s},u.next===void 0&&(u.next=nr),u.error===void 0&&(u.error=nr),u.complete===void 0&&(u.complete=nr);var d=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{a.finalError?u.error(a.finalError):u.complete()}catch{}}),this.observers.push(u),d},n.prototype.unsubscribeOne=function(r){this.observers===void 0||this.observers[r]===void 0||(delete this.observers[r],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))},n.prototype.forEachObserver=function(r){if(!this.finalized)for(var i=0;i<this.observers.length;i++)this.sendOne(i,r)},n.prototype.sendOne=function(r,i){var s=this;this.task.then(function(){if(s.observers!==void 0&&s.observers[r]!==void 0)try{i(s.observers[r])}catch(a){typeof console<"u"&&console.error&&console.error(a)}})},n.prototype.close=function(r){var i=this;this.finalized||(this.finalized=!0,r!==void 0&&(this.finalError=r),this.task.then(function(){i.observers=void 0,i.onNoObservers=void 0}))},n}();function Ic(n,r){if(typeof n!="object"||n===null)return!1;for(var i=0,s=r;i<s.length;i++){var a=s[i];if(a in n&&typeof n[a]=="function")return!0}return!1}function nr(){}var At=function(){function n(r,i,s){this.name=r,this.instanceFactory=i,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return n.prototype.setInstantiationMode=function(r){return this.instantiationMode=r,this},n.prototype.setMultipleInstances=function(r){return this.multipleInstances=r,this},n.prototype.setServiceProps=function(r){return this.serviceProps=r,this},n.prototype.setInstanceCreatedCallback=function(r){return this.onInstanceCreated=r,this},n}();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var We="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Pc=function(){function n(r,i){this.name=r,this.container=i,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return n.prototype.get=function(r){var i=this.normalizeInstanceIdentifier(r);if(!this.instancesDeferred.has(i)){var s=new Dc;if(this.instancesDeferred.set(i,s),this.isInitialized(i)||this.shouldAutoInitialize())try{var a=this.getOrInitializeService({instanceIdentifier:i});a&&s.resolve(a)}catch{}}return this.instancesDeferred.get(i).promise},n.prototype.getImmediate=function(r){var i,s=this.normalizeInstanceIdentifier(r==null?void 0:r.identifier),a=(i=r==null?void 0:r.optional)!==null&&i!==void 0?i:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(u){if(a)return null;throw u}else{if(a)return null;throw Error("Service "+this.name+" is not available")}},n.prototype.getComponent=function(){return this.component},n.prototype.setComponent=function(r){var i,s;if(r.name!==this.name)throw Error("Mismatching Component "+r.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=r,!!this.shouldAutoInitialize()){if(Rc(r))try{this.getOrInitializeService({instanceIdentifier:We})}catch{}try{for(var a=Pe(this.instancesDeferred.entries()),u=a.next();!u.done;u=a.next()){var d=ut(u.value,2),h=d[0],v=d[1],g=this.normalizeInstanceIdentifier(h);try{var b=this.getOrInitializeService({instanceIdentifier:g});v.resolve(b)}catch{}}}catch(E){i={error:E}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}},n.prototype.clearInstance=function(r){r===void 0&&(r=We),this.instancesDeferred.delete(r),this.instancesOptions.delete(r),this.instances.delete(r)},n.prototype.delete=function(){return x(this,void 0,void 0,function(){var r;return j(this,function(i){switch(i.label){case 0:return r=Array.from(this.instances.values()),[4,Promise.all(mn(mn([],ut(r.filter(function(s){return"INTERNAL"in s}).map(function(s){return s.INTERNAL.delete()}))),ut(r.filter(function(s){return"_delete"in s}).map(function(s){return s._delete()}))))];case 1:return i.sent(),[2]}})})},n.prototype.isComponentSet=function(){return this.component!=null},n.prototype.isInitialized=function(r){return r===void 0&&(r=We),this.instances.has(r)},n.prototype.getOptions=function(r){return r===void 0&&(r=We),this.instancesOptions.get(r)||{}},n.prototype.initialize=function(r){var i,s;r===void 0&&(r={});var a=r.options,u=a===void 0?{}:a,d=this.normalizeInstanceIdentifier(r.instanceIdentifier);if(this.isInitialized(d))throw Error(this.name+"("+d+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var h=this.getOrInitializeService({instanceIdentifier:d,options:u});try{for(var v=Pe(this.instancesDeferred.entries()),g=v.next();!g.done;g=v.next()){var b=ut(g.value,2),E=b[0],S=b[1],k=this.normalizeInstanceIdentifier(E);d===k&&S.resolve(h)}}catch(M){i={error:M}}finally{try{g&&!g.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return h},n.prototype.onInit=function(r,i){var s,a=this.normalizeInstanceIdentifier(i),u=(s=this.onInitCallbacks.get(a))!==null&&s!==void 0?s:new Set;u.add(r),this.onInitCallbacks.set(a,u);var d=this.instances.get(a);return d&&r(d,a),function(){u.delete(r)}},n.prototype.invokeOnInitCallbacks=function(r,i){var s,a,u=this.onInitCallbacks.get(i);if(u)try{for(var d=Pe(u),h=d.next();!h.done;h=d.next()){var v=h.value;try{v(r,i)}catch{}}}catch(g){s={error:g}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(s)throw s.error}}},n.prototype.getOrInitializeService=function(r){var i=r.instanceIdentifier,s=r.options,a=s===void 0?{}:s,u=this.instances.get(i);if(!u&&this.component&&(u=this.component.instanceFactory(this.container,{instanceIdentifier:Yc(i),options:a}),this.instances.set(i,u),this.instancesOptions.set(i,a),this.invokeOnInitCallbacks(u,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,i,u)}catch{}return u||null},n.prototype.normalizeInstanceIdentifier=function(r){return r===void 0&&(r=We),this.component?this.component.multipleInstances?r:We:r},n.prototype.shouldAutoInitialize=function(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"},n}();function Yc(n){return n===We?void 0:n}function Rc(n){return n.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ac=function(){function n(r){this.name=r,this.providers=new Map}return n.prototype.addComponent=function(r){var i=this.getProvider(r.name);if(i.isComponentSet())throw new Error("Component "+r.name+" has already been registered with "+this.name);i.setComponent(r)},n.prototype.addOrOverwriteComponent=function(r){var i=this.getProvider(r.name);i.isComponentSet()&&this.providers.delete(r.name),this.addComponent(r)},n.prototype.getProvider=function(r){if(this.providers.has(r))return this.providers.get(r);var i=new Pc(r,this);return this.providers.set(r,i),i},n.prototype.getProviders=function(){return Array.from(this.providers.values())},n}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function de(){for(var n=0,r=0,i=arguments.length;r<i;r++)n+=arguments[r].length;for(var s=Array(n),a=0,r=0;r<i;r++)for(var u=arguments[r],d=0,h=u.length;d<h;d++,a++)s[a]=u[d];return s}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Le,jr=[],V;(function(n){n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT"})(V||(V={}));var ss={debug:V.DEBUG,verbose:V.VERBOSE,info:V.INFO,warn:V.WARN,error:V.ERROR,silent:V.SILENT},Vc=V.INFO,Fc=(Le={},Le[V.DEBUG]="log",Le[V.VERBOSE]="log",Le[V.INFO]="info",Le[V.WARN]="warn",Le[V.ERROR]="error",Le),Lc=function(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];if(!(r<n.logLevel)){var a=new Date().toISOString(),u=Fc[r];if(u)console[u].apply(console,de(["["+a+"]  "+n.name+":"],i));else throw new Error("Attempted to log a message with an invalid logType (value: "+r+")")}},Wc=function(){function n(r){this.name=r,this._logLevel=Vc,this._logHandler=Lc,this._userLogHandler=null,jr.push(this)}return Object.defineProperty(n.prototype,"logLevel",{get:function(){return this._logLevel},set:function(r){if(!(r in V))throw new TypeError('Invalid value "'+r+'" assigned to `logLevel`');this._logLevel=r},enumerable:!1,configurable:!0}),n.prototype.setLogLevel=function(r){this._logLevel=typeof r=="string"?ss[r]:r},Object.defineProperty(n.prototype,"logHandler",{get:function(){return this._logHandler},set:function(r){if(typeof r!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=r},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(r){this._userLogHandler=r},enumerable:!1,configurable:!0}),n.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,V.DEBUG],r)),this._logHandler.apply(this,de([this,V.DEBUG],r))},n.prototype.log=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,V.VERBOSE],r)),this._logHandler.apply(this,de([this,V.VERBOSE],r))},n.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,V.INFO],r)),this._logHandler.apply(this,de([this,V.INFO],r))},n.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,V.WARN],r)),this._logHandler.apply(this,de([this,V.WARN],r))},n.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,V.ERROR],r)),this._logHandler.apply(this,de([this,V.ERROR],r))},n}();function Hc(n){jr.forEach(function(r){r.setLogLevel(n)})}function Uc(n,r){for(var i=function(d){var h=null;r&&r.level&&(h=ss[r.level]),n===null?d.userLogHandler=null:d.userLogHandler=function(v,g){for(var b=[],E=2;E<arguments.length;E++)b[E-2]=arguments[E];var S=b.map(function(k){if(k==null)return null;if(typeof k=="string")return k;if(typeof k=="number"||typeof k=="boolean")return k.toString();if(k instanceof Error)return k.message;try{return JSON.stringify(k)}catch{return null}}).filter(function(k){return k}).join(" ");g>=(h??v.logLevel)&&n({level:V[g].toLowerCase(),message:S,args:b,type:v.name})}},s=0,a=jr;s<a.length;s++){var u=a[s];i(u)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ee,Bc=(Ee={},Ee["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",Ee["bad-app-name"]="Illegal App name: '{$appName}",Ee["duplicate-app"]="Firebase App named '{$appName}' already exists",Ee["app-deleted"]="Firebase App named '{$appName}' already deleted",Ee["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",Ee["invalid-log-argument"]="First argument to `onLog` must be null or a function.",Ee),lt=new Rt("app","Firebase",Bc),os="@firebase/app",$c="0.6.30",Gc="@firebase/analytics",zc="@firebase/app-check",qc="@firebase/auth",Kc="@firebase/database",Jc="@firebase/functions",Zc="@firebase/installations",Xc="@firebase/messaging",Qc="@firebase/performance",ef="@firebase/remote-config",tf="@firebase/storage",nf="@firebase/firestore",rf="firebase-wrapper";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ee,pn="[DEFAULT]",sf=(ee={},ee[os]="fire-core",ee[Gc]="fire-analytics",ee[zc]="fire-app-check",ee[qc]="fire-auth",ee[Kc]="fire-rtdb",ee[Jc]="fire-fn",ee[Zc]="fire-iid",ee[Xc]="fire-fcm",ee[Qc]="fire-perf",ee[ef]="fire-rc",ee[tf]="fire-gcs",ee[nf]="fire-fst",ee["fire-js"]="fire-js",ee[rf]="fire-js-all",ee);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var dt=new Wc("@firebase/app");/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var un=function(){function n(r,i,s){var a=this;this.firebase_=s,this.isDeleted_=!1,this.name_=i.name,this.automaticDataCollectionEnabled_=i.automaticDataCollectionEnabled||!1,this.options_=_c(r),this.container=new Ac(i.name),this._addComponent(new At("app",function(){return a},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(u){return a._addComponent(u)})}return Object.defineProperty(n.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(r){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=r},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),n.prototype.delete=function(){var r=this;return new Promise(function(i){r.checkDestroyed_(),i()}).then(function(){return r.firebase_.INTERNAL.removeApp(r.name_),Promise.all(r.container.getProviders().map(function(i){return i.delete()}))}).then(function(){r.isDeleted_=!0})},n.prototype._getService=function(r,i){var s;i===void 0&&(i=pn),this.checkDestroyed_();var a=this.container.getProvider(r);return!a.isInitialized()&&((s=a.getComponent())===null||s===void 0?void 0:s.instantiationMode)==="EXPLICIT"&&a.initialize(),a.getImmediate({identifier:i})},n.prototype._removeServiceInstance=function(r,i){i===void 0&&(i=pn),this.container.getProvider(r).clearInstance(i)},n.prototype._addComponent=function(r){try{this.container.addComponent(r)}catch(i){dt.debug("Component "+r.name+" failed to register with FirebaseApp "+this.name,i)}},n.prototype._addOrOverwriteComponent=function(r){this.container.addOrOverwriteComponent(r)},n.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},n.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw lt.create("app-deleted",{appName:this.name_})},n}();un.prototype.name&&un.prototype.options||un.prototype.delete||console.log("dc");var of="8.10.0";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function af(n){var r={},i=new Map,s={__esModule:!0,initializeApp:d,app:u,registerVersion:g,setLogLevel:Hc,onLog:b,apps:null,SDK_VERSION:of,INTERNAL:{registerComponent:v,removeApp:a,components:i,useAsService:E}};s.default=s,Object.defineProperty(s,"apps",{get:h});function a(S){delete r[S]}function u(S){if(S=S||pn,!Ui(r,S))throw lt.create("no-app",{appName:S});return r[S]}u.App=n;function d(S,k){if(k===void 0&&(k={}),typeof k!="object"||k===null){var M=k;k={name:M}}var G=k;G.name===void 0&&(G.name=pn);var _=G.name;if(typeof _!="string"||!_)throw lt.create("bad-app-name",{appName:String(_)});if(Ui(r,_))throw lt.create("duplicate-app",{appName:_});var Z=new n(S,G,s);return r[_]=Z,Z}function h(){return Object.keys(r).map(function(S){return r[S]})}function v(S){var k=S.name;if(i.has(k))return dt.debug("There were multiple attempts to register component "+k+"."),S.type==="PUBLIC"?s[k]:null;if(i.set(k,S),S.type==="PUBLIC"){var M=function(z){if(z===void 0&&(z=u()),typeof z[k]!="function")throw lt.create("invalid-app-argument",{appName:k});return z[k]()};S.serviceProps!==void 0&&It(M,S.serviceProps),s[k]=M,n.prototype[k]=function(){for(var z=[],q=0;q<arguments.length;q++)z[q]=arguments[q];var he=this._getService.bind(this,k);return he.apply(this,S.multipleInstances?z:[])}}for(var G=0,_=Object.keys(r);G<_.length;G++){var Z=_[G];r[Z]._addComponent(S)}return S.type==="PUBLIC"?s[k]:null}function g(S,k,M){var G,_=(G=sf[S])!==null&&G!==void 0?G:S;M&&(_+="-"+M);var Z=_.match(/\s|\//),z=k.match(/\s|\//);if(Z||z){var q=['Unable to register library "'+_+'" with version "'+k+'":'];Z&&q.push('library name "'+_+'" contains illegal characters (whitespace or "/")'),Z&&z&&q.push("and"),z&&q.push('version name "'+k+'" contains illegal characters (whitespace or "/")'),dt.warn(q.join(" "));return}v(new At(_+"-version",function(){return{library:_,version:k}},"VERSION"))}function b(S,k){if(S!==null&&typeof S!="function")throw lt.create("invalid-log-argument");Uc(S,k)}function E(S,k){if(k==="serverAuth")return null;var M=k;return M}return s}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function as(){var n=af(un);n.INTERNAL=re(re({},n.INTERNAL),{createFirebaseNamespace:as,extendNamespace:r,createSubscribe:Ec,ErrorFactory:Rt,deepExtend:It});function r(i){It(n,i)}return n}var Mr=as();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var lf=function(){function n(r){this.container=r}return n.prototype.getPlatformInfoString=function(){var r=this.container.getProviders();return r.map(function(i){if(uf(i)){var s=i.getImmediate();return s.library+"/"+s.version}else return null}).filter(function(i){return i}).join(" ")},n}();function uf(n){var r=n.getComponent();return(r==null?void 0:r.type)==="VERSION"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function cf(n,r){n.INTERNAL.registerComponent(new At("platform-logger",function(i){return new lf(i)},"PRIVATE")),n.registerVersion(os,$c,r),n.registerVersion("fire-js","")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */if(Oc()&&self.firebase!==void 0){dt.warn(`
    Warning: Firebase is already defined in the global scope. Please make sure
    Firebase library is only loaded once.
  `);var Bi=self.firebase.SDK_VERSION;Bi&&Bi.indexOf("LITE")>=0&&dt.warn(`
    Warning: You are trying to load Firebase while using Firebase Performance standalone script.
    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.
    `)}var ff=Mr.initializeApp;Mr.initializeApp=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Sc()&&dt.warn(`
      Warning: This is a browser-targeted Firebase bundle but it appears it is being
      run in a Node environment.  If running in a Node environment, make sure you
      are using the bundle specified by the "main" field in package.json.
      
      If you are using Webpack, you can specify "main" as the first item in
      "resolve.mainFields":
      https://webpack.js.org/configuration/resolve/#resolvemainfields
      
      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"
      as the first item in "mainFields", e.g. ['main', 'module'].
      https://github.com/rollup/@rollup/plugin-node-resolve
      `),ff.apply(void 0,n)};var ze=Mr;cf(ze);var df="firebase",ls="8.10.1";/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */ze.registerVersion(df,ls,"app");ze.SDK_VERSION=ls;function hf(n){return Array.prototype.slice.call(n)}function us(n){return new Promise(function(r,i){n.onsuccess=function(){r(n.result)},n.onerror=function(){i(n.error)}})}function _n(n,r,i){var s,a=new Promise(function(u,d){s=n[r].apply(n,i),us(s).then(u,d)});return a.request=s,a}function mf(n,r,i){var s=_n(n,r,i);return s.then(function(a){if(a)return new Pt(a,s.request)})}function pt(n,r,i){i.forEach(function(s){Object.defineProperty(n.prototype,s,{get:function(){return this[r][s]},set:function(a){this[r][s]=a}})})}function Er(n,r,i,s){s.forEach(function(a){a in i.prototype&&(n.prototype[a]=function(){return _n(this[r],a,arguments)})})}function Tn(n,r,i,s){s.forEach(function(a){a in i.prototype&&(n.prototype[a]=function(){return this[r][a].apply(this[r],arguments)})})}function cs(n,r,i,s){s.forEach(function(a){a in i.prototype&&(n.prototype[a]=function(){return mf(this[r],a,arguments)})})}function qe(n){this._index=n}pt(qe,"_index",["name","keyPath","multiEntry","unique"]);Er(qe,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]);cs(qe,"_index",IDBIndex,["openCursor","openKeyCursor"]);function Pt(n,r){this._cursor=n,this._request=r}pt(Pt,"_cursor",["direction","key","primaryKey","value"]);Er(Pt,"_cursor",IDBCursor,["update","delete"]);["advance","continue","continuePrimaryKey"].forEach(function(n){n in IDBCursor.prototype&&(Pt.prototype[n]=function(){var r=this,i=arguments;return Promise.resolve().then(function(){return r._cursor[n].apply(r._cursor,i),us(r._request).then(function(s){if(s)return new Pt(s,r._request)})})})});function ge(n){this._store=n}ge.prototype.createIndex=function(){return new qe(this._store.createIndex.apply(this._store,arguments))};ge.prototype.index=function(){return new qe(this._store.index.apply(this._store,arguments))};pt(ge,"_store",["name","keyPath","indexNames","autoIncrement"]);Er(ge,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]);cs(ge,"_store",IDBObjectStore,["openCursor","openKeyCursor"]);Tn(ge,"_store",IDBObjectStore,["deleteIndex"]);function Vt(n){this._tx=n,this.complete=new Promise(function(r,i){n.oncomplete=function(){r()},n.onerror=function(){i(n.error)},n.onabort=function(){i(n.error)}})}Vt.prototype.objectStore=function(){return new ge(this._tx.objectStore.apply(this._tx,arguments))};pt(Vt,"_tx",["objectStoreNames","mode"]);Tn(Vt,"_tx",IDBTransaction,["abort"]);function Dn(n,r,i){this._db=n,this.oldVersion=r,this.transaction=new Vt(i)}Dn.prototype.createObjectStore=function(){return new ge(this._db.createObjectStore.apply(this._db,arguments))};pt(Dn,"_db",["name","version","objectStoreNames"]);Tn(Dn,"_db",IDBDatabase,["deleteObjectStore","close"]);function Sn(n){this._db=n}Sn.prototype.transaction=function(){return new Vt(this._db.transaction.apply(this._db,arguments))};pt(Sn,"_db",["name","version","objectStoreNames"]);Tn(Sn,"_db",IDBDatabase,["close"]);["openCursor","openKeyCursor"].forEach(function(n){[ge,qe].forEach(function(r){n in r.prototype&&(r.prototype[n.replace("open","iterate")]=function(){var i=hf(arguments),s=i[i.length-1],a=this._store||this._index,u=a[n].apply(a,i.slice(0,-1));u.onsuccess=function(){s(u.result)}})})});[qe,ge].forEach(function(n){n.prototype.getAll||(n.prototype.getAll=function(r,i){var s=this,a=[];return new Promise(function(u){s.iterateCursor(r,function(d){if(!d){u(a);return}if(a.push(d.value),i!==void 0&&a.length==i){u(a);return}d.continue()})})})});function Cr(n,r,i){var s=_n(indexedDB,"open",[n,r]),a=s.request;return a&&(a.onupgradeneeded=function(u){i&&i(new Dn(a.result,u.oldVersion,a.transaction))}),s.then(function(u){return new Sn(u)})}function rr(n){return _n(indexedDB,"deleteDatabase",[n])}var pf="@firebase/installations",fs="0.4.32";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ds=1e4,hs="w:"+fs,ms="FIS_v2",gf="https://firebaseinstallations.googleapis.com/v1",vf=60*60*1e3,yf="installations",bf="Installations";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ce,kf=(Ce={},Ce["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',Ce["not-registered"]="Firebase Installation is not registered.",Ce["installation-not-found"]="Firebase Installation not found.",Ce["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',Ce["app-offline"]="Could not process request. Application offline.",Ce["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",Ce),Oe=new Rt(yf,bf,kf);function ps(n){return n instanceof is&&n.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ir(n){var r=n.projectId;return gf+"/projects/"+r+"/installations"}function gs(n){return{token:n.token,requestStatus:2,expiresIn:wf(n.expiresIn),creationTime:Date.now()}}function Pr(n,r){return x(this,void 0,void 0,function(){var i,s;return j(this,function(a){switch(a.label){case 0:return[4,r.json()];case 1:return i=a.sent(),s=i.error,[2,Oe.create("request-failed",{requestName:n,serverCode:s.code,serverMessage:s.message,serverStatus:s.status})]}})})}function vs(n){var r=n.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r})}function ys(n,r){var i=r.refreshToken,s=vs(n);return s.append("Authorization",Nf(i)),s}function Yr(n){return x(this,void 0,void 0,function(){var r;return j(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return r=i.sent(),r.status>=500&&r.status<600?[2,n()]:[2,r]}})})}function wf(n){return Number(n.replace("s","000"))}function Nf(n){return ms+" "+n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function _f(n,r){var i=r.fid;return x(this,void 0,void 0,function(){var s,a,u,d,h,v,g;return j(this,function(b){switch(b.label){case 0:return s=Ir(n),a=vs(n),u={fid:i,authVersion:ms,appId:n.appId,sdkVersion:hs},d={method:"POST",headers:a,body:JSON.stringify(u)},[4,Yr(function(){return fetch(s,d)})];case 1:return h=b.sent(),h.ok?[4,h.json()]:[3,3];case 2:return v=b.sent(),g={fid:v.fid||i,registrationStatus:2,refreshToken:v.refreshToken,authToken:gs(v.authToken)},[2,g];case 3:return[4,Pr("Create Installation",h)];case 4:throw b.sent()}})})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function bs(n){return new Promise(function(r){setTimeout(r,n)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Tf(n){var r=btoa(String.fromCharCode.apply(String,mn([],ut(n))));return r.replace(/\+/g,"-").replace(/\//g,"_")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Df=/^[cdef][\w-]{21}$/,kr="";function Sf(){try{var n=new Uint8Array(17),r=self.crypto||self.msCrypto;r.getRandomValues(n),n[0]=112+n[0]%16;var i=Of(n);return Df.test(i)?i:kr}catch{return kr}}function Of(n){var r=Tf(n);return r.substr(0,22)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function gt(n){return n.appName+"!"+n.appId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ht=new Map;function ks(n,r){var i=gt(n);ws(i,r),Mf(i,r)}function xf(n,r){Ns();var i=gt(n),s=ht.get(i);s||(s=new Set,ht.set(i,s)),s.add(r)}function jf(n,r){var i=gt(n),s=ht.get(i);s&&(s.delete(r),s.size===0&&ht.delete(i),_s())}function ws(n,r){var i,s,a=ht.get(n);if(a)try{for(var u=Pe(a),d=u.next();!d.done;d=u.next()){var h=d.value;h(r)}}catch(v){i={error:v}}finally{try{d&&!d.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}}function Mf(n,r){var i=Ns();i&&i.postMessage({key:n,fid:r}),_s()}var He=null;function Ns(){return!He&&"BroadcastChannel"in self&&(He=new BroadcastChannel("[Firebase] FID Change"),He.onmessage=function(n){ws(n.data.key,n.data.fid)}),He}function _s(){ht.size===0&&He&&(He.close(),He=null)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ef="firebase-installations-database",Cf=1,Be="firebase-installations-store",ir=null;function Rr(){return ir||(ir=Cr(Ef,Cf,function(n){switch(n.oldVersion){case 0:n.createObjectStore(Be)}})),ir}function gn(n,r){return x(this,void 0,void 0,function(){var i,s,a,u,d;return j(this,function(h){switch(h.label){case 0:return i=gt(n),[4,Rr()];case 1:return s=h.sent(),a=s.transaction(Be,"readwrite"),u=a.objectStore(Be),[4,u.get(i)];case 2:return d=h.sent(),[4,u.put(r,i)];case 3:return h.sent(),[4,a.complete];case 4:return h.sent(),(!d||d.fid!==r.fid)&&ks(n,r.fid),[2,r]}})})}function Ar(n){return x(this,void 0,void 0,function(){var r,i,s;return j(this,function(a){switch(a.label){case 0:return r=gt(n),[4,Rr()];case 1:return i=a.sent(),s=i.transaction(Be,"readwrite"),[4,s.objectStore(Be).delete(r)];case 2:return a.sent(),[4,s.complete];case 3:return a.sent(),[2]}})})}function Ft(n,r){return x(this,void 0,void 0,function(){var i,s,a,u,d,h;return j(this,function(v){switch(v.label){case 0:return i=gt(n),[4,Rr()];case 1:return s=v.sent(),a=s.transaction(Be,"readwrite"),u=a.objectStore(Be),[4,u.get(i)];case 2:return d=v.sent(),h=r(d),h!==void 0?[3,4]:[4,u.delete(i)];case 3:return v.sent(),[3,6];case 4:return[4,u.put(h,i)];case 5:v.sent(),v.label=6;case 6:return[4,a.complete];case 7:return v.sent(),h&&(!d||d.fid!==h.fid)&&ks(n,h.fid),[2,h]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Vr(n){return x(this,void 0,void 0,function(){var r,i,s;return j(this,function(a){switch(a.label){case 0:return[4,Ft(n,function(u){var d=If(u),h=Pf(n,d);return r=h.registrationPromise,h.installationEntry})];case 1:return i=a.sent(),i.fid!==kr?[3,3]:(s={},[4,r]);case 2:return[2,(s.installationEntry=a.sent(),s)];case 3:return[2,{installationEntry:i,registrationPromise:r}]}})})}function If(n){var r=n||{fid:Sf(),registrationStatus:0};return Ts(r)}function Pf(n,r){if(r.registrationStatus===0){if(!navigator.onLine){var i=Promise.reject(Oe.create("app-offline"));return{installationEntry:r,registrationPromise:i}}var s={fid:r.fid,registrationStatus:1,registrationTime:Date.now()},a=Yf(n,s);return{installationEntry:s,registrationPromise:a}}else return r.registrationStatus===1?{installationEntry:r,registrationPromise:Rf(n)}:{installationEntry:r}}function Yf(n,r){return x(this,void 0,void 0,function(){var i,s;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,7]),[4,_f(n,r)];case 1:return i=a.sent(),[2,gn(n,i)];case 2:return s=a.sent(),ps(s)&&s.customData.serverCode===409?[4,Ar(n)]:[3,4];case 3:return a.sent(),[3,6];case 4:return[4,gn(n,{fid:r.fid,registrationStatus:0})];case 5:a.sent(),a.label=6;case 6:throw s;case 7:return[2]}})})}function Rf(n){return x(this,void 0,void 0,function(){var r,i,s,a;return j(this,function(u){switch(u.label){case 0:return[4,$i(n)];case 1:r=u.sent(),u.label=2;case 2:return r.registrationStatus!==1?[3,5]:[4,bs(100)];case 3:return u.sent(),[4,$i(n)];case 4:return r=u.sent(),[3,2];case 5:return r.registrationStatus!==0?[3,7]:[4,Vr(n)];case 6:return i=u.sent(),s=i.installationEntry,a=i.registrationPromise,a?[2,a]:[2,s];case 7:return[2,r]}})})}function $i(n){return Ft(n,function(r){if(!r)throw Oe.create("installation-not-found");return Ts(r)})}function Ts(n){return Af(n)?{fid:n.fid,registrationStatus:0}:n}function Af(n){return n.registrationStatus===1&&n.registrationTime+ds<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Vf(n,r){var i=n.appConfig,s=n.platformLoggerProvider;return x(this,void 0,void 0,function(){var a,u,d,h,v,g,b,E;return j(this,function(S){switch(S.label){case 0:return a=Ff(i,r),u=ys(i,r),d=s.getImmediate({optional:!0}),d&&u.append("x-firebase-client",d.getPlatformInfoString()),h={installation:{sdkVersion:hs}},v={method:"POST",headers:u,body:JSON.stringify(h)},[4,Yr(function(){return fetch(a,v)})];case 1:return g=S.sent(),g.ok?[4,g.json()]:[3,3];case 2:return b=S.sent(),E=gs(b),[2,E];case 3:return[4,Pr("Generate Auth Token",g)];case 4:throw S.sent()}})})}function Ff(n,r){var i=r.fid;return Ir(n)+"/"+i+"/authTokens:generate"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Fr(n,r){return r===void 0&&(r=!1),x(this,void 0,void 0,function(){var i,s,a,u;return j(this,function(d){switch(d.label){case 0:return[4,Ft(n.appConfig,function(h){if(!Ds(h))throw Oe.create("not-registered");var v=h.authToken;if(!r&&Hf(v))return h;if(v.requestStatus===1)return i=Lf(n,r),h;if(!navigator.onLine)throw Oe.create("app-offline");var g=Bf(h);return i=Wf(n,g),g})];case 1:return s=d.sent(),i?[4,i]:[3,3];case 2:return u=d.sent(),[3,4];case 3:u=s.authToken,d.label=4;case 4:return a=u,[2,a]}})})}function Lf(n,r){return x(this,void 0,void 0,function(){var i,s;return j(this,function(a){switch(a.label){case 0:return[4,Gi(n.appConfig)];case 1:i=a.sent(),a.label=2;case 2:return i.authToken.requestStatus!==1?[3,5]:[4,bs(100)];case 3:return a.sent(),[4,Gi(n.appConfig)];case 4:return i=a.sent(),[3,2];case 5:return s=i.authToken,s.requestStatus===0?[2,Fr(n,r)]:[2,s]}})})}function Gi(n){return Ft(n,function(r){if(!Ds(r))throw Oe.create("not-registered");var i=r.authToken;return $f(i)?re(re({},r),{authToken:{requestStatus:0}}):r})}function Wf(n,r){return x(this,void 0,void 0,function(){var i,a,s,a;return j(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,8]),[4,Vf(n,r)];case 1:return i=u.sent(),a=re(re({},r),{authToken:i}),[4,gn(n.appConfig,a)];case 2:return u.sent(),[2,i];case 3:return s=u.sent(),ps(s)&&(s.customData.serverCode===401||s.customData.serverCode===404)?[4,Ar(n.appConfig)]:[3,5];case 4:return u.sent(),[3,7];case 5:return a=re(re({},r),{authToken:{requestStatus:0}}),[4,gn(n.appConfig,a)];case 6:u.sent(),u.label=7;case 7:throw s;case 8:return[2]}})})}function Ds(n){return n!==void 0&&n.registrationStatus===2}function Hf(n){return n.requestStatus===2&&!Uf(n)}function Uf(n){var r=Date.now();return r<n.creationTime||n.creationTime+n.expiresIn<r+vf}function Bf(n){var r={requestStatus:1,requestTime:Date.now()};return re(re({},n),{authToken:r})}function $f(n){return n.requestStatus===1&&n.requestTime+ds<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Gf(n){return x(this,void 0,void 0,function(){var r,i,s;return j(this,function(a){switch(a.label){case 0:return[4,Vr(n.appConfig)];case 1:return r=a.sent(),i=r.installationEntry,s=r.registrationPromise,s?s.catch(console.error):Fr(n).catch(console.error),[2,i.fid]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zf(n,r){return r===void 0&&(r=!1),x(this,void 0,void 0,function(){var i;return j(this,function(s){switch(s.label){case 0:return[4,qf(n.appConfig)];case 1:return s.sent(),[4,Fr(n,r)];case 2:return i=s.sent(),[2,i.token]}})})}function qf(n){return x(this,void 0,void 0,function(){var r;return j(this,function(i){switch(i.label){case 0:return[4,Vr(n)];case 1:return r=i.sent().registrationPromise,r?[4,r]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Kf(n,r){return x(this,void 0,void 0,function(){var i,s,a,u;return j(this,function(d){switch(d.label){case 0:return i=Jf(n,r),s=ys(n,r),a={method:"DELETE",headers:s},[4,Yr(function(){return fetch(i,a)})];case 1:return u=d.sent(),u.ok?[3,3]:[4,Pr("Delete Installation",u)];case 2:throw d.sent();case 3:return[2]}})})}function Jf(n,r){var i=r.fid;return Ir(n)+"/"+i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Zf(n){return x(this,void 0,void 0,function(){var r,i;return j(this,function(s){switch(s.label){case 0:return r=n.appConfig,[4,Ft(r,function(a){if(!(a&&a.registrationStatus===0))return a})];case 1:if(i=s.sent(),!i)return[3,6];if(i.registrationStatus!==1)return[3,2];throw Oe.create("delete-pending-registration");case 2:if(i.registrationStatus!==2)return[3,6];if(navigator.onLine)return[3,3];throw Oe.create("app-offline");case 3:return[4,Kf(r,i)];case 4:return s.sent(),[4,Ar(r)];case 5:s.sent(),s.label=6;case 6:return[2]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Xf(n,r){var i=n.appConfig;return xf(i,r),function(){jf(i,r)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Qf(n){var r,i;if(!n||!n.options)throw sr("App Configuration");if(!n.name)throw sr("App Name");var s=["projectId","apiKey","appId"];try{for(var a=Pe(s),u=a.next();!u.done;u=a.next()){var d=u.value;if(!n.options[d])throw sr(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return{appName:n.name,projectId:n.options.projectId,apiKey:n.options.apiKey,appId:n.options.appId}}function sr(n){return Oe.create("missing-app-config-values",{valueName:n})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ed(n){var r="installations";n.INTERNAL.registerComponent(new At(r,function(i){var s=i.getProvider("app").getImmediate(),a=Qf(s),u=i.getProvider("platform-logger"),d={appConfig:a,platformLoggerProvider:u},h={app:s,getId:function(){return Gf(d)},getToken:function(v){return zf(d,v)},delete:function(){return Zf(d)},onIdChange:function(v){return Xf(d,v)}};return h},"PUBLIC")),n.registerVersion(pf,fs)}ed(ze);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var J,td=(J={},J["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',J["only-available-in-window"]="This method is available in a Window context.",J["only-available-in-sw"]="This method is available in a service worker context.",J["permission-default"]="The notification permission was not granted and dismissed instead.",J["permission-blocked"]="The notification permission was not granted and blocked instead.",J["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",J["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",J["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",J["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",J["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",J["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",J["token-update-no-token"]="FCM returned no token when updating the user to push.",J["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",J["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",J["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",J["invalid-vapid-key"]="The public VAPID key must be a string.",J["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",J),R=new Rt("messaging","Messaging",td);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var nd="/firebase-messaging-sw.js",rd="/firebase-cloud-messaging-push-scope",vn="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",id="https://fcmregistrations.googleapis.com/v1",Ss="FCM_MSG",sd="FirebaseMessaging: ",od="google.c.a.e",Os="google.c.a.c_id",ad="google.c.a.ts",ld="google.c.a.c_l",ud=1e3,cd=3e3;/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */var $e;(function(n){n.PUSH_RECEIVED="push-received",n.NOTIFICATION_CLICKED="notification-clicked"})($e||($e={}));/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Se(n){var r=new Uint8Array(n),i=btoa(String.fromCharCode.apply(String,mn([],ut(r))));return i.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function fd(n){for(var r="=".repeat((4-n.length%4)%4),i=(n+r).replace(/\-/g,"+").replace(/_/g,"/"),s=atob(i),a=new Uint8Array(s.length),u=0;u<s.length;++u)a[u]=s.charCodeAt(u);return a}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var or="fcm_token_details_db",dd=5,zi="fcm_token_object_Store";function hd(n){return x(this,void 0,void 0,function(){var r,i,s,a,u=this;return j(this,function(d){switch(d.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(r=d.sent(),i=r.map(function(h){return h.name}),!i.includes(or))return[2,null];d.label=2;case 2:return s=null,[4,Cr(or,dd,function(h){return x(u,void 0,void 0,function(){var v,g,b,b,b,E;return j(this,function(S){switch(S.label){case 0:return h.oldVersion<2?[2]:h.objectStoreNames.contains(zi)?(v=h.transaction.objectStore(zi),[4,v.index("fcmSenderId").get(n)]):[2];case 1:return g=S.sent(),[4,v.clear()];case 2:if(S.sent(),!g)return[2];if(h.oldVersion===2){if(b=g,!b.auth||!b.p256dh||!b.endpoint)return[2];s={token:b.fcmToken,createTime:(E=b.createTime)!==null&&E!==void 0?E:Date.now(),subscriptionOptions:{auth:b.auth,p256dh:b.p256dh,endpoint:b.endpoint,swScope:b.swScope,vapidKey:typeof b.vapidKey=="string"?b.vapidKey:Se(b.vapidKey)}}}else h.oldVersion===3?(b=g,s={token:b.fcmToken,createTime:b.createTime,subscriptionOptions:{auth:Se(b.auth),p256dh:Se(b.p256dh),endpoint:b.endpoint,swScope:b.swScope,vapidKey:Se(b.vapidKey)}}):h.oldVersion===4&&(b=g,s={token:b.fcmToken,createTime:b.createTime,subscriptionOptions:{auth:Se(b.auth),p256dh:Se(b.p256dh),endpoint:b.endpoint,swScope:b.swScope,vapidKey:Se(b.vapidKey)}});return[2]}})})})];case 3:return a=d.sent(),a.close(),[4,rr(or)];case 4:return d.sent(),[4,rr("fcm_vapid_details_db")];case 5:return d.sent(),[4,rr("undefined")];case 6:return d.sent(),[2,md(s)?s:null]}})})}function md(n){if(!n||!n.subscriptionOptions)return!1;var r=n.subscriptionOptions;return typeof n.createTime=="number"&&n.createTime>0&&typeof n.token=="string"&&n.token.length>0&&typeof r.auth=="string"&&r.auth.length>0&&typeof r.p256dh=="string"&&r.p256dh.length>0&&typeof r.endpoint=="string"&&r.endpoint.length>0&&typeof r.swScope=="string"&&r.swScope.length>0&&typeof r.vapidKey=="string"&&r.vapidKey.length>0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var pd="firebase-messaging-database",gd=1,Ge="firebase-messaging-store",ar=null;function Lr(){return ar||(ar=Cr(pd,gd,function(n){switch(n.oldVersion){case 0:n.createObjectStore(Ge)}})),ar}function yn(n){return x(this,void 0,void 0,function(){var r,i,s,a;return j(this,function(u){switch(u.label){case 0:return r=Hr(n),[4,Lr()];case 1:return i=u.sent(),[4,i.transaction(Ge).objectStore(Ge).get(r)];case 2:return s=u.sent(),s?[2,s]:[3,3];case 3:return[4,hd(n.appConfig.senderId)];case 4:return a=u.sent(),a?[4,Wr(n,a)]:[3,6];case 5:return u.sent(),[2,a];case 6:return[2]}})})}function Wr(n,r){return x(this,void 0,void 0,function(){var i,s,a;return j(this,function(u){switch(u.label){case 0:return i=Hr(n),[4,Lr()];case 1:return s=u.sent(),a=s.transaction(Ge,"readwrite"),[4,a.objectStore(Ge).put(r,i)];case 2:return u.sent(),[4,a.complete];case 3:return u.sent(),[2,r]}})})}function vd(n){return x(this,void 0,void 0,function(){var r,i,s;return j(this,function(a){switch(a.label){case 0:return r=Hr(n),[4,Lr()];case 1:return i=a.sent(),s=i.transaction(Ge,"readwrite"),[4,s.objectStore(Ge).delete(r)];case 2:return a.sent(),[4,s.complete];case 3:return a.sent(),[2]}})})}function Hr(n){var r=n.appConfig;return r.appId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function yd(n,r){return x(this,void 0,void 0,function(){var i,s,a,u,d,h,v;return j(this,function(g){switch(g.label){case 0:return[4,Br(n)];case 1:i=g.sent(),s=js(r),a={method:"POST",headers:i,body:JSON.stringify(s)},g.label=2;case 2:return g.trys.push([2,5,,6]),[4,fetch(Ur(n.appConfig),a)];case 3:return d=g.sent(),[4,d.json()];case 4:return u=g.sent(),[3,6];case 5:throw h=g.sent(),R.create("token-subscribe-failed",{errorInfo:h});case 6:if(u.error)throw v=u.error.message,R.create("token-subscribe-failed",{errorInfo:v});if(!u.token)throw R.create("token-subscribe-no-token");return[2,u.token]}})})}function bd(n,r){return x(this,void 0,void 0,function(){var i,s,a,u,d,h,v;return j(this,function(g){switch(g.label){case 0:return[4,Br(n)];case 1:i=g.sent(),s=js(r.subscriptionOptions),a={method:"PATCH",headers:i,body:JSON.stringify(s)},g.label=2;case 2:return g.trys.push([2,5,,6]),[4,fetch(Ur(n.appConfig)+"/"+r.token,a)];case 3:return d=g.sent(),[4,d.json()];case 4:return u=g.sent(),[3,6];case 5:throw h=g.sent(),R.create("token-update-failed",{errorInfo:h});case 6:if(u.error)throw v=u.error.message,R.create("token-update-failed",{errorInfo:v});if(!u.token)throw R.create("token-update-no-token");return[2,u.token]}})})}function xs(n,r){return x(this,void 0,void 0,function(){var i,s,a,u,d,h;return j(this,function(v){switch(v.label){case 0:return[4,Br(n)];case 1:i=v.sent(),s={method:"DELETE",headers:i},v.label=2;case 2:return v.trys.push([2,5,,6]),[4,fetch(Ur(n.appConfig)+"/"+r,s)];case 3:return a=v.sent(),[4,a.json()];case 4:if(u=v.sent(),u.error)throw d=u.error.message,R.create("token-unsubscribe-failed",{errorInfo:d});return[3,6];case 5:throw h=v.sent(),R.create("token-unsubscribe-failed",{errorInfo:h});case 6:return[2]}})})}function Ur(n){var r=n.projectId;return id+"/projects/"+r+"/registrations"}function Br(n){var r=n.appConfig,i=n.installations;return x(this,void 0,void 0,function(){var s;return j(this,function(a){switch(a.label){case 0:return[4,i.getToken()];case 1:return s=a.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r.apiKey,"x-goog-firebase-installations-auth":"FIS "+s})]}})})}function js(n){var r=n.p256dh,i=n.auth,s=n.endpoint,a=n.vapidKey,u={web:{endpoint:s,auth:i,p256dh:r}};return a!==vn&&(u.web.applicationPubKey=a),u}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var kd=7*24*60*60*1e3;function wr(n,r,i){return x(this,void 0,void 0,function(){var s,a,u,d;return j(this,function(h){switch(h.label){case 0:if(Notification.permission!=="granted")throw R.create("permission-blocked");return[4,Nd(r,i)];case 1:return s=h.sent(),[4,yn(n)];case 2:return a=h.sent(),u={vapidKey:i,swScope:r.scope,endpoint:s.endpoint,auth:Se(s.getKey("auth")),p256dh:Se(s.getKey("p256dh"))},a?[3,3]:[2,qi(n,u)];case 3:if(_d(a.subscriptionOptions,u))return[3,8];h.label=4;case 4:return h.trys.push([4,6,,7]),[4,xs(n,a.token)];case 5:return h.sent(),[3,7];case 6:return d=h.sent(),console.warn(d),[3,7];case 7:return[2,qi(n,u)];case 8:return Date.now()>=a.createTime+kd?[2,wd({token:a.token,createTime:Date.now(),subscriptionOptions:u},n,r)]:[2,a.token];case 9:return[2]}})})}function Mt(n,r){return x(this,void 0,void 0,function(){var i,s;return j(this,function(a){switch(a.label){case 0:return[4,yn(n)];case 1:return i=a.sent(),i?[4,xs(n,i.token)]:[3,4];case 2:return a.sent(),[4,vd(n)];case 3:a.sent(),a.label=4;case 4:return[4,r.pushManager.getSubscription()];case 5:return s=a.sent(),s?[2,s.unsubscribe()]:[2,!0]}})})}function wd(n,r,i){return x(this,void 0,void 0,function(){var s,a,u;return j(this,function(d){switch(d.label){case 0:return d.trys.push([0,3,,5]),[4,bd(r,n)];case 1:return s=d.sent(),a=re(re({},n),{token:s,createTime:Date.now()}),[4,Wr(r,a)];case 2:return d.sent(),[2,s];case 3:return u=d.sent(),[4,Mt(r,i)];case 4:throw d.sent(),u;case 5:return[2]}})})}function qi(n,r){return x(this,void 0,void 0,function(){var i,s;return j(this,function(a){switch(a.label){case 0:return[4,yd(n,r)];case 1:return i=a.sent(),s={token:i,createTime:Date.now(),subscriptionOptions:r},[4,Wr(n,s)];case 2:return a.sent(),[2,s.token]}})})}function Nd(n,r){return x(this,void 0,void 0,function(){var i;return j(this,function(s){switch(s.label){case 0:return[4,n.pushManager.getSubscription()];case 1:return i=s.sent(),i?[2,i]:[2,n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:fd(r)})]}})})}function _d(n,r){var i=r.vapidKey===n.vapidKey,s=r.endpoint===n.endpoint,a=r.auth===n.auth,u=r.p256dh===n.p256dh;return i&&s&&a&&u}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Td(n){var r={from:n.from,collapseKey:n.collapse_key,messageId:n.fcm_message_id};return Dd(r,n),Sd(r,n),Od(r,n),r}function Dd(n,r){if(r.notification){n.notification={};var i=r.notification.title;i&&(n.notification.title=i);var s=r.notification.body;s&&(n.notification.body=s);var a=r.notification.image;a&&(n.notification.image=a)}}function Sd(n,r){r.data&&(n.data=r.data)}function Od(n,r){if(r.fcmOptions){n.fcmOptions={};var i=r.fcmOptions.link;i&&(n.fcmOptions.link=i);var s=r.fcmOptions.analytics_label;s&&(n.fcmOptions.analyticsLabel=s)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ms(n){return typeof n=="object"&&!!n&&Os in n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ki(n){return new Promise(function(r){setTimeout(r,n)})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var xd=function(){function n(r){var i=this;this.firebaseDependencies=r,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(s){s.waitUntil(i.onPush(s))}),self.addEventListener("pushsubscriptionchange",function(s){s.waitUntil(i.onSubChange(s))}),self.addEventListener("notificationclick",function(s){s.waitUntil(i.onNotificationClick(s))})}return Object.defineProperty(n.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),n.prototype.setBackgroundMessageHandler=function(r){if(this.isOnBackgroundMessageUsed=!1,!r||typeof r!="function")throw R.create("invalid-bg-handler");this.bgMessageHandler=r},n.prototype.onBackgroundMessage=function(r){var i=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=r,function(){i.bgMessageHandler=null}},n.prototype.getToken=function(){var r,i;return x(this,void 0,void 0,function(){var s;return j(this,function(a){switch(a.label){case 0:return this.vapidKey?[3,2]:[4,yn(this.firebaseDependencies)];case 1:s=a.sent(),this.vapidKey=(i=(r=s==null?void 0:s.subscriptionOptions)===null||r===void 0?void 0:r.vapidKey)!==null&&i!==void 0?i:vn,a.label=2;case 2:return[2,wr(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},n.prototype.deleteToken=function(){return Mt(this.firebaseDependencies,self.registration)},n.prototype.requestPermission=function(){throw R.create("only-available-in-window")},n.prototype.usePublicVapidKey=function(r){if(this.vapidKey!==null)throw R.create("use-vapid-key-after-get-token");if(typeof r!="string"||r.length===0)throw R.create("invalid-vapid-key");this.vapidKey=r},n.prototype.useServiceWorker=function(){throw R.create("only-available-in-window")},n.prototype.onMessage=function(){throw R.create("only-available-in-window")},n.prototype.onTokenRefresh=function(){throw R.create("only-available-in-window")},n.prototype.onPush=function(r){return x(this,void 0,void 0,function(){var i,s,a,u;return j(this,function(d){switch(d.label){case 0:return i=Md(r),i?[4,Es()]:(console.debug(sd+"failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return s=d.sent(),Cd(s)?[2,Id(s,i)]:(a=!1,i.notification?[4,Pd(jd(i))]:[3,3]);case 2:d.sent(),a=!0,d.label=3;case 3:return a===!0&&this.isOnBackgroundMessageUsed===!1?[2]:(this.bgMessageHandler&&(u=Td(i),typeof this.bgMessageHandler=="function"?this.bgMessageHandler(u):this.bgMessageHandler.next(u)),[4,Ki(ud)]);case 4:return d.sent(),[2]}})})},n.prototype.onSubChange=function(r){var i,s;return x(this,void 0,void 0,function(){var a,u;return j(this,function(d){switch(d.label){case 0:return a=r.newSubscription,a?[3,2]:[4,Mt(this.firebaseDependencies,self.registration)];case 1:return d.sent(),[2];case 2:return[4,yn(this.firebaseDependencies)];case 3:return u=d.sent(),[4,Mt(this.firebaseDependencies,self.registration)];case 4:return d.sent(),[4,wr(this.firebaseDependencies,self.registration,(s=(i=u==null?void 0:u.subscriptionOptions)===null||i===void 0?void 0:i.vapidKey)!==null&&s!==void 0?s:vn)];case 5:return d.sent(),[2]}})})},n.prototype.onNotificationClick=function(r){var i,s;return x(this,void 0,void 0,function(){var a,u,d,h,v;return j(this,function(g){switch(g.label){case 0:if(a=(s=(i=r.notification)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s[Ss],a){if(r.action)return[2]}else return[2];return r.stopImmediatePropagation(),r.notification.close(),u=Yd(a),u?(d=new URL(u,self.location.href),h=new URL(self.location.origin),d.host!==h.host?[2]:[4,Ed(d)]):[2];case 1:return v=g.sent(),v?[3,4]:[4,self.clients.openWindow(u)];case 2:return v=g.sent(),[4,Ki(cd)];case 3:return g.sent(),[3,6];case 4:return[4,v.focus()];case 5:v=g.sent(),g.label=6;case 6:return v?(a.messageType=$e.NOTIFICATION_CLICKED,a.isFirebaseMessaging=!0,[2,v.postMessage(a)]):[2]}})})},n}();function jd(n){var r,i=re({},n.notification);return i.data=(r={},r[Ss]=n,r),i}function Md(n){var r=n.data;if(!r)return null;try{return r.json()}catch{return null}}function Ed(n){return x(this,void 0,void 0,function(){var r,i,s,a,u,d,h;return j(this,function(v){switch(v.label){case 0:return[4,Es()];case 1:r=v.sent();try{for(i=Pe(r),s=i.next();!s.done;s=i.next())if(a=s.value,u=new URL(a.url,self.location.href),n.host===u.host)return[2,a]}catch(g){d={error:g}}finally{try{s&&!s.done&&(h=i.return)&&h.call(i)}finally{if(d)throw d.error}}return[2,null]}})})}function Cd(n){return n.some(function(r){return r.visibilityState==="visible"&&!r.url.startsWith("chrome-extension://")})}function Id(n,r){var i,s;r.isFirebaseMessaging=!0,r.messageType=$e.PUSH_RECEIVED;try{for(var a=Pe(n),u=a.next();!u.done;u=a.next()){var d=u.value;d.postMessage(r)}}catch(h){i={error:h}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}function Es(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Pd(n){var r,i=n.actions,s=Notification.maxActions;return i&&s&&i.length>s&&console.warn("This browser only supports "+s+" actions. The remaining actions will not be displayed."),self.registration.showNotification((r=n.title)!==null&&r!==void 0?r:"",n)}function Yd(n){var r,i,s,a=(i=(r=n.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(s=n.notification)===null||s===void 0?void 0:s.click_action;return a||(Ms(n.data)?self.location.origin:null)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Rd=function(){function n(r){var i=this;this.firebaseDependencies=r,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(s){return i.messageEventListener(s)})}return Object.defineProperty(n.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),n.prototype.messageEventListener=function(r){return x(this,void 0,void 0,function(){var i,s;return j(this,function(a){switch(a.label){case 0:return i=r.data,i.isFirebaseMessaging?(this.onMessageCallback&&i.messageType===$e.PUSH_RECEIVED&&(typeof this.onMessageCallback=="function"?this.onMessageCallback(Vd(Object.assign({},i))):this.onMessageCallback.next(Object.assign({},i))),s=i.data,Ms(s)&&s[od]==="1"?[4,this.logEvent(i.messageType,s)]:[3,2]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},n.prototype.getVapidKey=function(){return this.vapidKey},n.prototype.getSwReg=function(){return this.swRegistration},n.prototype.getToken=function(r){return x(this,void 0,void 0,function(){return j(this,function(i){switch(i.label){case 0:return Notification.permission!=="default"?[3,2]:[4,Notification.requestPermission()];case 1:i.sent(),i.label=2;case 2:if(Notification.permission!=="granted")throw R.create("permission-blocked");return[4,this.updateVapidKey(r==null?void 0:r.vapidKey)];case 3:return i.sent(),[4,this.updateSwReg(r==null?void 0:r.serviceWorkerRegistration)];case 4:return i.sent(),[2,wr(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},n.prototype.updateVapidKey=function(r){return x(this,void 0,void 0,function(){return j(this,function(i){return r?this.vapidKey=r:this.vapidKey||(this.vapidKey=vn),[2]})})},n.prototype.updateSwReg=function(r){return x(this,void 0,void 0,function(){return j(this,function(i){switch(i.label){case 0:return!r&&!this.swRegistration?[4,this.registerDefaultSw()]:[3,2];case 1:i.sent(),i.label=2;case 2:if(!r&&this.swRegistration)return[2];if(!(r instanceof ServiceWorkerRegistration))throw R.create("invalid-sw-registration");return this.swRegistration=r,[2]}})})},n.prototype.registerDefaultSw=function(){return x(this,void 0,void 0,function(){var r,i;return j(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),r=this,[4,navigator.serviceWorker.register(nd,{scope:rd})];case 1:return r.swRegistration=s.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw i=s.sent(),R.create("failed-service-worker-registration",{browserErrorMessage:i.message});case 3:return[2]}})})},n.prototype.deleteToken=function(){return x(this,void 0,void 0,function(){return j(this,function(r){switch(r.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:r.sent(),r.label=2;case 2:return[2,Mt(this.firebaseDependencies,this.swRegistration)]}})})},n.prototype.requestPermission=function(){return x(this,void 0,void 0,function(){var r;return j(this,function(i){switch(i.label){case 0:return Notification.permission==="granted"?[2]:[4,Notification.requestPermission()];case 1:if(r=i.sent(),r==="granted")return[2];throw r==="denied"?R.create("permission-blocked"):R.create("permission-default")}})})},n.prototype.usePublicVapidKey=function(r){if(this.vapidKey!==null)throw R.create("use-vapid-key-after-get-token");if(typeof r!="string"||r.length===0)throw R.create("invalid-vapid-key");this.vapidKey=r},n.prototype.useServiceWorker=function(r){if(!(r instanceof ServiceWorkerRegistration))throw R.create("invalid-sw-registration");if(this.swRegistration)throw R.create("use-sw-after-get-token");this.swRegistration=r},n.prototype.onMessage=function(r){var i=this;return this.onMessageCallback=r,function(){i.onMessageCallback=null}},n.prototype.setBackgroundMessageHandler=function(){throw R.create("only-available-in-sw")},n.prototype.onBackgroundMessage=function(){throw R.create("only-available-in-sw")},n.prototype.onTokenRefresh=function(){return function(){}},n.prototype.logEvent=function(r,i){return x(this,void 0,void 0,function(){var s,a;return j(this,function(u){switch(u.label){case 0:return s=Ad(r),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return a=u.sent(),a.logEvent(s,{message_id:i[Os],message_name:i[ld],message_time:i[ad],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},n}();function Ad(n){switch(n){case $e.NOTIFICATION_CLICKED:return"notification_open";case $e.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Vd(n){return delete n.messageType,delete n.isFirebaseMessaging,n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Fd(n){var r,i;if(!n||!n.options)throw lr("App Configuration Object");if(!n.name)throw lr("App Name");var s=["projectId","apiKey","appId","messagingSenderId"],a=n.options;try{for(var u=Pe(s),d=u.next();!d.done;d=u.next()){var h=d.value;if(!a[h])throw lr(h)}}catch(v){r={error:v}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return{appName:n.name,projectId:a.projectId,apiKey:a.apiKey,appId:a.appId,senderId:a.messagingSenderId}}function lr(n){return R.create("missing-app-config-values",{valueName:n})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ld="messaging";function Wd(n){var r=n.getProvider("app").getImmediate(),i=Fd(r),s=n.getProvider("installations").getImmediate(),a=n.getProvider("analytics-internal"),u={app:r,appConfig:i,installations:s,analyticsProvider:a};if(!Cs())throw R.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new xd(u):new Rd(u)}var Hd={isSupported:Cs};ze.INTERNAL.registerComponent(new At(Ld,Wd,"PUBLIC").setServiceProps(Hd));function Cs(){return self&&"ServiceWorkerGlobalScope"in self?Bd():Ud()}function Ud(){return"indexedDB"in window&&indexedDB!==null&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function Bd(){return"indexedDB"in self&&indexedDB!==null&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}const $d={apiKey:"AIzaSyBIkPvq7qh-WRG_mza5yjSwh-ASoQ48QNQ",authDomain:"webpushnotify-a9d99.firebaseapp.com",projectId:"webpushnotify-a9d99",storageBucket:"webpushnotify-a9d99.appspot.com",messagingSenderId:"530665672512",appId:"1:530665672512:web:f6a5ce9d93869837d634a5",measurementId:"G-JL0YEXZMG3"};ze.initializeApp($d);const Yt=ze.messaging();function Gd(){Yt.requestPermission().then(function(){return console.log("Notification Permission"),Yt.getToken()}).then(function(n){console.log("Token : "+n),localStorage.setItem("fcm_token",JSON.stringify(n)),Ie.IDDonVi&&Ie.IDDonVi&&zd(n).then(r=>{r?r.DonVi_Id!==Ie.IDDonVi&&Kd(r.Id):Jd().then(i=>qd(n,i))}).catch(r=>ct("Xảy ra lỗi check token exists","Thông báo"))}).catch(function(n){console.log(n)})}Yt.onMessage(function(n){console.log(n);const r={body:n.data.body,icon:"https://baocaostc.gdtsolutions.vn/logo.png"};if(Notification.permission==="granted"){var i=new Notification(n.data.title,r);i.onclick=function(s){s.preventDefault(),window.open(n.data.click_action,"_blank"),i.close()}}});Yt.onTokenRefresh(function(){Yt.getToken().then(function(n){console.log("New Token : "+n)}).catch(function(n){console.log(n)})});Gd();function zd(n){return new Promise((r,i)=>{Nn(`SYS_ThietBi?$filter=FCM_Token eq '${n}'`,"GET",null).then(s=>{s.value.length>0?r(s.value[0]):r(!1)}).catch(s=>i(!0))})}function qd(n,r=null){Nn("SYS_ThietBi","POST",JSON.stringify({Name:"Máy tính cá nhân",Loai:"Web",IP:r,FCM_Token:n,MaTaiKhoan:Ie.MaTaiKhoan,DonVi_Id:Ie.IDDonVi})).then(i=>{}).catch(i=>ct("Không thể lưu thiết bị","Thông báo"))}function Kd(n){Nn(`SYS_ThietBi(guid'${n}')`,"PATCH",JSON.stringify({DonVi_Id:Ie.IDDonVi})).then(r=>{}).catch(r=>ct("Không thể cập nhật đơn vị cho thiết bị","Thông báo"))}function Jd(){return new Promise((n,r)=>{fetch("https://api.ipify.org/?format=json").then(i=>i.json()).then(i=>n(i.ip)).catch(i=>r(null))})}const Zd=le.div`
  // background-color: rgb(245, 247, 255) !important;
  color: '#000';
`,Xd=le.ul`
  // background-color: rgb(245, 247, 255) !important;
  color: '#000';
`,bn=le.li`
  position: relative;
  &:hover > ul.dropdown-menu {
    display: block;
    width: 200%;
  }
`,Qd=le.ul`
  margin-top: 0;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  position: absolute !important;
  border: none;
  padding: 0.5rem;
  // background: #f5f7ff;
`,eh=le.ul`
  top: 0;
  left: -100%;
  margin-top: 0px;
  margin-left: 0;
  margin-right: 0;
  // box-shadow: 3px 3px #1005055e;
  background: #f5f7ff;
`,kn=le(Nr)`
  font-weight: 500;
  color: #5a5757 !important;
  font-size: 13px;
  padding: 0.3rem 1rem !important;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  &:hover {
    ${n=>n.ismain&&"text-align: center;"}
    background: aliceblue !important;
    color: royalblue !important;
  }
  &.active {
    background: aliceblue !important;
    color: royalblue !important;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
  }
`,mt=n=>n??"#",wn=n=>n.children&&n.children.length>0,th=n=>{const{items:r,drop:i}=n;return p.jsxDEV(Qd,{className:"dropdown-menu","aria-labelledby":"navbarDropdownMenuLink",style:{width:"max-content"},children:r.map((s,a)=>p.jsxDEV(bn,{className:i?"dropleft":"dropright",children:[p.jsxDEV(kn,{style:{borderRadius:"5px",padding:"1rem 0.5rem !important",fontSize:"15px"},to:mt(s.url),className:"dropdown-item "+(wn(s)?"dropdown-toggle":""),children:[s.icon&&p.jsxDEV(p.Fragment,{children:[p.jsxDEV("i",{style:{marginLeft:"0px",color:"rgba(0, 0, 0, 0.7)"},className:s.icon,"aria-hidden":!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:81,columnNumber:19},globalThis)," "]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:80,columnNumber:17},globalThis),`${a+1}. ${s.name}`]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:74,columnNumber:13},globalThis),wn(s)&&p.jsxDEV(eh,{className:"dropdown-menu",style:{margin:0},children:s.children.map((u,d)=>{let h=u.name;return p.jsxDEV(bn,{children:p.jsxDEV(kn,{style:{borderRadius:"5px",padding:"1rem 0.5rem !important",fontSize:"15px"},className:"dropdown-item",to:mt(u.url),children:[u.icon&&p.jsxDEV(p.Fragment,{children:[p.jsxDEV("i",{style:{marginLeft:"0px",color:"rgba(0, 0, 0, 0.7)"},className:u.icon,"aria-hidden":!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:104,columnNumber:29},globalThis)," "]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:103,columnNumber:27},globalThis),`${d+1}. ${h}`]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:97,columnNumber:23},globalThis)},d,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:96,columnNumber:21},globalThis)})},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:92,columnNumber:15},globalThis)]},a,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:73,columnNumber:11},globalThis))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:70,columnNumber:5},globalThis)};class nh extends at.Component{constructor(r){super(r),this.state={navigation:Mu(),ParentID:null,OpenFakeHeader:!1}}checkActiveTab(r){return r===window.location.pathname}render(){const{navigation:r,ParentID:i}=this.state;return p.jsxDEV(p.Fragment,{children:p.jsxDEV(H.Fragment,{children:p.jsxDEV("nav",{className:"navbar navbar-expand-xl",style:{padding:0},children:p.jsxDEV(Zd,{className:"collapse navbar-collapse",children:p.jsxDEV(Xd,{className:"navbar-nav",children:r&&r.map((s,a)=>s.name==="BÁO CÁO THỐNG KÊ"?p.jsxDEV(p.Fragment,{children:p.jsxDEV(bn,{className:"nav-item",children:p.jsxDEV(kn,{ismain:"true",style:{marginLeft:"5px"},to:mt("/gdnn/bao-cao-thong-ke/menu-bao-cao-thong-ke"),onClick:()=>{this.setState({activeIndex:a})},className:"nav-link "+(this.checkActiveTab("/gdnn/bao-cao-thong-ke/menu-bao-cao-thong-ke")?" active":""),children:s.name},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:158,columnNumber:29},this)},a,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:157,columnNumber:27},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:156,columnNumber:25},this):s.name==="MENU BÁO CÁO THỐNG KÊ"?p.jsxDEV(p.Fragment,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:177,columnNumber:30},this):p.jsxDEV(bn,{className:"nav-item",children:[p.jsxDEV(kn,{ismain:"true",style:{marginLeft:"5px"},to:mt(s.url),onClick:()=>{this.setState({activeIndex:a})},className:"nav-link "+(wn(s)&&"dropdown-toggle")+(this.checkActiveTab(s.url)?" active":""),children:[s.icon&&p.jsxDEV(p.Fragment,{children:p.jsxDEV("i",{style:{width:"1rem"},className:s.icon,"aria-hidden":!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:196,columnNumber:31},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:195,columnNumber:29},this),s.name]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:181,columnNumber:25},this),wn(s)&&p.jsxDEV(th,{parent_id:i,items:s.children,drop:a>r.length/2},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:202,columnNumber:27},this)]},a,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:180,columnNumber:23},this))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:151,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:150,columnNumber:13},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:149,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:148,columnNumber:9},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/DefaultMenu.jsx",lineNumber:147,columnNumber:7},this)}}const Dh=Object.freeze(Object.defineProperty({__proto__:null,checkLinkURL:mt,default:nh},Symbol.toStringTag,{value:"Module"})),rh=le.div`
  position: relative;
`,ih=le(Nr)`
  cursor: pointer;
  min-height: '3rem';
`,sh=le.div`
  position: relative;
  flex-grow: 1;
  margin-left: 0.3rem;
  padding: 0 1rem 0 0.5rem;
`,oh=le.span``,ah=le.span`
  height: 10px;
  width: 10px;
  background: rgb(24, 118, 242);
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-radius: 50%;
`,lh=le.span`
  position: absolute;
  top: -0.35rem;
  right: 0;
  z-index: 999;
  font-size: 13px;
`;function Sh(){const[n,r]=at.useState([]),[i,s]=at.useState(!1),[,a]=at.useState(null),[u,d]=at.useState(null),h=()=>{s(!i)};at.useEffect(()=>{v()},[i]);const v=()=>{Ri(`SYS_ThongBao?$orderby=Created_Date desc&$expand=SYS_TaiKhoan,SYS_DonVi,SYS_DonVi1
        &$filter=(DonViGui_Id eq '${Ie.IDDonVi}' and 
        (HanhDong eq '${U.TinNhanTuHeThong}' or HanhDong eq '${U.DaKySo}'
        or HanhDong eq '${U.HuyKySo}' or HanhDong eq '${U.ChinhSuaBaoCao}')) 
        or (DonViNhan_Id eq '${Ie.IDDonVi}' and (HanhDong eq '${U.GuiBaoCao}' 
        or HanhDong eq '${U.TinNhanTuDonVi}' or HanhDong eq '${U.DuyetBaoCao}' 
        or HanhDong eq '${U.TuChoiBaoCao}' or HanhDong eq '${U.DaTrinhKy}' 
        or HanhDong eq '${U.TiepNhanTrinhKy}' or HanhDong eq '${U.TuChoiTrinhKy}'))&$top=4`).then(k=>{k.value.filter(M=>!M.DaXemThongBao).length?document.title=` Có ${k.value.filter(M=>!M.DaXemThongBao).length} thông báo mới chưa đọc`:document.title="Hệ Thống Quản lý giải phóng mặt bằng - Bình Định",r(k.value)}).catch(k=>ct("Không thể tài dữ liệu thông báo","Thông báo"))},g=()=>{let k=n.filter(M=>!M.DaXemThongBao).map(M=>M.Id);Nn("ThongBaos/DanhDauDaXem","POST",JSON.stringify({Ids:k}),{odata:!1}).then(M=>{v()}).catch(M=>ct("Không thể đánh dấu xem tất cả","Thông báo"))},b=(k,M)=>{k&&Ri(`SYS_ThongBao(guid'${k}')`,"PATCH",JSON.stringify({DaXemThongBao:M})).then(G=>{v()}).catch(G=>ct("Không thể cập nhật trạng thái đã xem của báo cáo","Thông báo"))},E=k=>{switch(k.Targer_Module){case er.BaoCao:a({ID:k.Target_Id,BaoCaoDi:k.HanhDong!==U.GuiBaoCao});break;case er.LinhVuc:break;case er.TinNhan:d(k.NoiDung);break}b(k.Id,!0)},S=()=>{let k=n.filter(M=>!M.DaXemThongBao).length;return k&&k!==0?p.jsxDEV(lh,{children:p.jsxDEV(Yu,{style:{borderRadius:"50%"},color:"danger",children:k},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:130,columnNumber:9},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:129,columnNumber:7},this):""};return p.jsxDEV(rh,{className:"d-flex align-items-center",id:"popover-notify",children:[S(),p.jsxDEV("div",{className:"form-icon-header-custom",children:[p.jsxDEV(oh,{children:p.jsxDEV("img",{src:"../../assets/iconNotication.png",className:"img-avatar-custom rounded-circle",alt:"gdtvietnam"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:143,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:142,columnNumber:9},this),p.jsxDEV(Or,{className:"popover-notify",placement:"bottom",isOpen:i,target:"popover-notify",toggle:h,trigger:"legacy",children:[p.jsxDEV(ns,{className:"d-flex justify-content-between align-items-center bg-white pt-1 pb-1",children:[p.jsxDEV("span",{className:"fw-bold",children:"Thông báo"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:154,columnNumber:13},this),p.jsxDEV("div",{className:"pull-right d-flex gap-2",children:[p.jsxDEV(Pu,{className:"btn-check-all-notication",onClick:g,children:["Đánh dấu đã xem",p.jsxDEV(Et,{fa:"check"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:158,columnNumber:17},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:156,columnNumber:15},this),p.jsxDEV(Nr,{to:"/thong-bao",className:"btn-check-all-notication",children:"Xem tất cả"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:160,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:155,columnNumber:13},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:153,columnNumber:11},this),p.jsxDEV(rs,{children:n.length?n.slice(0,10).map((k,M)=>p.jsxDEV(uh,{onClick:E,data:k,close:h},M,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:169,columnNumber:39},this)):p.jsxDEV(Au,{size:"sm",text:"Không có thông báo"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:171,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:165,columnNumber:11},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:145,columnNumber:9},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:141,columnNumber:7},this),u&&p.jsxDEV(Vu,{title:"Nội dung thông báo",open:!!u,handleClose:()=>d(null),maxWidth:"sm",children:p.jsxDEV(Fu,{id:"noiDung",placeholder:"Nhập nội dung thông báo...",value:u},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:183,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:139,columnNumber:5},this)}const uh=({onClick:n,key:r,data:i,close:s})=>{const a=v=>{var g,b;return(g=v.SYS_TaiKhoan)!=null&&g.HinhAnh?p.jsxDEV("img",{className:"img-user-item-notify",src:`${Eu}${(b=v.SYS_TaiKhoan)==null?void 0:b.HinhAnh}`,alt:""},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:193,columnNumber:7},globalThis):p.jsxDEV("img",{className:"img-user-item-notify",src:"/assets/profile-w.jpg",alt:""},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:195,columnNumber:7},globalThis)},u=v=>{let g=v.SYS_DonVi.TenDonVi,b=v.TieuDe;return p.jsxDEV("span",{children:[p.jsxDEV("b",{children:g},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:203,columnNumber:9},globalThis)," đã nhắc bạn về việc ",b]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:202,columnNumber:7},globalThis)},d=v=>{let g={color:"#1876f2",fontSize:11,fontWeight:500,marginTop:"0.5rem"},b=Zi(v.Created_Date).fromNow();return v.Created_Date?p.jsxDEV("div",{style:g,children:b},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:215,columnNumber:32},globalThis):""},h=v=>v.DaXemThongBao?"":p.jsxDEV(ah,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:218,columnNumber:34},globalThis);return p.jsxDEV(p.Fragment,{children:p.jsxDEV(ih,{to:mt("/thong-bao"),onClick:()=>{n(i),s()},className:"item-notify-header",children:[p.jsxDEV("div",{className:"outline-form-info-item-notify-header",children:p.jsxDEV("div",{className:"form-info-item-notify-header",children:[p.jsxDEV("div",{style:{fontSize:"16px",color:"#717171"},className:"d-flex justify-content-between mb-3",children:[p.jsxDEV(Et,{fa:"chevron-left"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:234,columnNumber:15},globalThis),p.jsxDEV(Et,{fa:"bell-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:235,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:233,columnNumber:13},globalThis),p.jsxDEV("div",{className:"d-flex align-items-center gap-3",children:p.jsxDEV("h6",{children:"Xem chi tiết"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:238,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:237,columnNumber:13},globalThis),p.jsxDEV(ch,{data:i},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:240,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:232,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:231,columnNumber:9},globalThis),p.jsxDEV("div",{children:a(i)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:243,columnNumber:9},globalThis),p.jsxDEV(sh,{children:[(i==null?void 0:i.Targer_Module)==="TinNhan"?u(i):p.jsxDEV(xr,{item:i},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:245,columnNumber:67},globalThis),d(i),h(i)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:244,columnNumber:9},globalThis)]},r,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:222,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:221,columnNumber:5},globalThis)},ch=({data:n,detail:r})=>{var i;return p.jsxDEV(p.Fragment,{children:[p.jsxDEV("div",{className:"form-body-info-item-notify-header",children:[p.jsxDEV("img",{style:{height:"max-content"},src:"/assets/imgPlan.jpg",alt:""},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:258,columnNumber:9},globalThis),p.jsxDEV("div",{style:r?{fontSize:"17px",padding:"1rem"}:{},children:[n.TieuDe&&p.jsxDEV("h6",{className:"mb-3",children:[n.TieuDe,"."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:260,columnNumber:27},globalThis),p.jsxDEV("div",{children:[(n==null?void 0:n.Targer_Module)==="TinNhan"?p.jsxDEV(p.Fragment,{children:[" ",p.jsxDEV("div",{className:"d-flex align-items-center gap-2 mb-1",children:p.jsxDEV("p",{className:"mb-0",children:[p.jsxDEV("strong",{children:p.jsxDEV(Et,{style:{marginTop:"0.1rem",marginRight:"0.5rem"},fa:"ioxhost"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:268,columnNumber:23},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:267,columnNumber:21},globalThis)," ",n.NoiDung||"Không có nội dung","."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:266,columnNumber:19},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:265,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:263,columnNumber:15},globalThis):p.jsxDEV(xr,{item:n},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:275,columnNumber:15},globalThis),p.jsxDEV("div",{className:`d-flex align-items-center gap-2 mb-1 ${r?"mt-3":""}`,children:p.jsxDEV("p",{className:"mb-0",children:[p.jsxDEV("strong",{children:p.jsxDEV(Et,{style:{marginTop:"0.1rem",marginRight:"0.5rem"},fa:"telegram"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:280,columnNumber:19},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:279,columnNumber:17},globalThis)," ",n.SYS_DonVi.TenDonVi,"."]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:278,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:277,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:261,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:259,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:257,columnNumber:7},globalThis),p.jsxDEV("div",{style:{fontSize:r?"15px":"12px"},className:"d-flex justify-content-between border-top border-bottom p-3 mt-4 footer-info-item-notify",children:[p.jsxDEV("div",{className:"text-center",children:[p.jsxDEV("h6",{className:`mb-0 ${r?"h4":""}`,children:n!=null&&n.DaXemThongBao?"Đã Xem":"Mới"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:293,columnNumber:11},globalThis),p.jsxDEV("p",{className:"mb-0",children:"Trạng thái"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:294,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:292,columnNumber:9},globalThis),p.jsxDEV("div",{className:"text-center",children:[p.jsxDEV("h6",{className:`mb-0 ${r?"h4":""}`,children:(i=n==null?void 0:n.SYS_DonVi1)==null?void 0:i.MaDonVi},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:297,columnNumber:11},globalThis),p.jsxDEV("p",{className:"mb-0",children:"Tài khoản nhận"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:298,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:296,columnNumber:9},globalThis),p.jsxDEV("div",{className:"text-center",children:[p.jsxDEV("h6",{className:`mb-0 ${r?"h4":""}`,children:Zi(n==null?void 0:n.Created_Date).format("DD.MM")},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:301,columnNumber:11},globalThis),p.jsxDEV("p",{className:"mb-0",children:"Ngày gửi"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:302,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:300,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:288,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/layout/Notify.jsx",lineNumber:256,columnNumber:5},globalThis)};export{ch as D,Sh as N,Dh as a,Th as c};