@bitblit/ngx-acute-common 5.0.515-alpha → 5.0.516-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/lib/esm2022/ngx-acute-common.mjs +514 -0
  2. package/lib/esm2022/ngx-acute-common.mjs.map +1 -0
  3. package/package.json +5 -10
  4. package/lib/my-angular-library.cjs.js +0 -7
  5. package/lib/my-angular-library.cjs.js.map +0 -1
  6. package/lib/my-angular-library.esm.js +0 -7
  7. package/lib/my-angular-library.esm.js.map +0 -1
  8. package/lib/my-angular-library.umd.js +0 -7
  9. package/lib/my-angular-library.umd.js.map +0 -1
  10. /package/lib/{build → esm2022/build}/ngx-acute-common-info.d.ts +0 -0
  11. /package/lib/{components → esm2022/components}/dialogs/alert/alert.component.d.ts +0 -0
  12. /package/lib/{components → esm2022/components}/dialogs/block-ui/block-ui.component.d.ts +0 -0
  13. /package/lib/{index.d.ts → esm2022/index.d.ts} +0 -0
  14. /package/lib/{model → esm2022/model}/google-analytics-config.d.ts +0 -0
  15. /package/lib/{pipes → esm2022/pipes}/capitalize.pipe.d.ts +0 -0
  16. /package/lib/{pipes → esm2022/pipes}/dollar-formatted.pipe.d.ts +0 -0
  17. /package/lib/{pipes → esm2022/pipes}/map-values.pipe.d.ts +0 -0
  18. /package/lib/{pipes → esm2022/pipes}/number-with-commas.pipe.d.ts +0 -0
  19. /package/lib/{pipes → esm2022/pipes}/order-by.pipe.d.ts +0 -0
  20. /package/lib/{pipes → esm2022/pipes}/percent-formatted.pipe.d.ts +0 -0
  21. /package/lib/{pipes → esm2022/pipes}/plural.pipe.d.ts +0 -0
  22. /package/lib/{pipes → esm2022/pipes}/round.pipe.d.ts +0 -0
  23. /package/lib/{pipes → esm2022/pipes}/time-ago-formatted.pipe.d.ts +0 -0
  24. /package/lib/{pipes → esm2022/pipes}/timing.pipe.d.ts +0 -0
  25. /package/lib/{services → esm2022/services}/google-analytics.service.d.ts +0 -0
  26. /package/lib/{services → esm2022/services}/graphql-query.service.d.ts +0 -0
  27. /package/lib/{services → esm2022/services}/local-storage.service.d.ts +0 -0
  28. /package/lib/{services → esm2022/services}/window-ref.service.d.ts +0 -0
@@ -1,7 +0,0 @@
1
- import*as e from"@angular/core";import{inject as t,Injectable as n,ANIMATION_MODULE_TYPE as i,ViewEncapsulation as r,ɵRuntimeError as s,Inject as o,signal as a,Component as l,Directive as c,Input as u,NgModule as d,PLATFORM_ID as h,ElementRef as m,booleanAttribute as p,ChangeDetectionStrategy as f,SkipSelf as g,Optional as y,ViewChild as v,createComponent as b,Pipe as w}from"@angular/core";import*as T from"@angular/common";import{DOCUMENT as C,isPlatformBrowser as E,CommonModule as I,AsyncPipe as S,NgIf as N}from"@angular/common";import{Subject as x,BehaviorSubject as O}from"rxjs";import{NavigationEnd as D,Router as k}from"@angular/router";class A{constructor(){}static buildInformation(){return{version:"LOCAL-SNAPSHOT",hash:"LOCAL-HASH",branch:"LOCAL-BRANCH",tag:"LOCAL-TAG",timeBuiltISO:"LOCAL-TIME-ISO",notes:"LOCAL-NOTES"}}}function L(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function _(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;class M{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)}static addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.trim().split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}}static removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,t){e&&t&&[t].flat().filter(Boolean).forEach((t=>t.split(" ").forEach((t=>this.removeClass(e,t)))))}static hasClass(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))}static find(e,t){return Array.from(e.querySelectorAll(t))}static findSingle(e,t){return this.isElement(e)?e.querySelector(t):null}static index(e){let t=e.parentNode.childNodes,n=0;for(var i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1}static indexWithinGroup(e,t){let n=e.parentNode?e.parentNode.childNodes:[],i=0;for(var r=0;r<n.length;r++){if(n[r]==e)return i;n[r].attributes&&n[r].attributes[t]&&1==n[r].nodeType&&i++}return-1}static appendOverlay(e,t,n="self"){"self"!==n&&e&&t&&this.appendChild(e,t)}static alignOverlay(e,t,n="self",i=!0){e&&t&&(i&&(e.style.minWidth=`${M.getOuterWidth(t)}px`),"self"===n?this.relativePosition(e,t):this.absolutePosition(e,t))}static relativePosition(e,t,n=!0){const i=e=>{if(e)return"relative"===getComputedStyle(e).getPropertyValue("position")?e:i(e.parentElement)},r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=t.offsetHeight??t.getBoundingClientRect().height,o=t.getBoundingClientRect(),a=this.getWindowScrollTop(),l=this.getWindowScrollLeft(),c=this.getViewport(),u=i(e),d=u?.getBoundingClientRect()||{top:-1*a,left:-1*l};let h,m;o.top+s+r.height>c.height?(h=o.top-d.top-r.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=s+o.top-d.top,e.style.transformOrigin="top");const p=o.left+r.width-c.width,f=o.left-d.left;m=r.width>c.width?-1*(o.left-d.left):p>0?f-p:o.left-d.left,e.style.top=h+"px",e.style.left=m+"px",n&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(e,t,n=!0){const i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=i.height,s=i.width,o=t.offsetHeight??t.getBoundingClientRect().height,a=t.offsetWidth??t.getBoundingClientRect().width,l=t.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),d=this.getViewport();let h,m;l.top+o+r>d.height?(h=l.top+c-r,e.style.transformOrigin="bottom",h<0&&(h=c)):(h=o+l.top+c,e.style.transformOrigin="top"),m=l.left+s>d.width?Math.max(0,l.left+u+a-s):l.left+u,e.style.top=h+"px",e.style.left=m+"px",n&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}static getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const i=/(auto|scroll)/,r=e=>{let t=window.getComputedStyle(e,null);return i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflowX"))||i.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(e,n);i&&r(i)&&t.push(i)}}9!==e.nodeType&&r(e)&&t.push(e)}}return t}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementDimensions(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}static scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),s=r?parseFloat(r):0,o=e.getBoundingClientRect(),a=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-i-s,l=e.scrollTop,c=e.clientHeight,u=this.getOuterHeight(t);a<0?e.scrollTop=l+a:a+u>c&&(e.scrollTop=l+a-c+u)}static fadeIn(e,t){e.style.opacity=0;let n=+new Date,i=0,r=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,t){var n=1,i=50/t;let r=setInterval((()=>{(n-=i)<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,t){var n=Element.prototype,i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)};return i.call(e,t)}static getOuterWidth(e,t){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}static getHorizontalPadding(e){let t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}static getHorizontalMargin(e){let t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)}static innerWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static width(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static getInnerHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),t}static getOuterHeight(e,t){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}static getHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}static getWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}static getViewport(){let e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}}static getOffset(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,t){let n=e.parentNode;if(!n)throw"Can't replace element";return n.replaceChild(t,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!(t&&t.el&&t.el.nativeElement))throw"Cannot append "+t+" to "+e;t.el.nativeElement.appendChild(e)}}static removeChild(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+e+" from "+t;t.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}static invokeElementMethod(e,t,n){e[t].apply(e,n)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!=e&&e.nodeName&&e.parentNode}static focus(e,t){e&&document.activeElement!==e&&e.focus(t)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,t=""){let n=this.find(e,this.getFocusableSelectorString(t)),i=[];for(let e of n){const t=getComputedStyle(e);this.isVisible(e)&&"none"!=t.display&&"hidden"!=t.visibility&&i.push(e)}return i}static getFocusableElement(e,t=""){let n=this.findSingle(e,this.getFocusableSelectorString(t));if(n){const e=getComputedStyle(n);if(this.isVisible(n)&&"none"!=e.display&&"hidden"!=e.visibility)return n}return null}static getFirstFocusableElement(e,t=""){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null}static getLastFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[n.length-1]:null}static getNextFocusableElement(e,t=!1){const n=M.getFocusableElements(e);let i=0;if(n&&n.length>0){const e=n.indexOf(n[0].ownerDocument.activeElement);t?i=-1==e||0===e?n.length-1:e-1:-1!=e&&e!==n.length-1&&(i=e+1)}return n[i]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,t){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return t?.nextElementSibling;case"@prev":return t?.previousElementSibling;case"@parent":return t?.parentElement;case"@grandparent":return t?.parentElement.parentElement;default:const n=typeof e;if("string"===n)return document.querySelector(e);if("object"===n&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const i=(e=>!!(e&&e.constructor&&e.call&&e.apply))(e)?e():e;return i&&9===i.nodeType||this.isExist(i)?i:null}}static isClient(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}static getAttribute(e,t){if(e){const n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,t={},...n){if(e){const i=document.createElement(e);return this.setAttributes(i,t),i.append(...n),i}}static setAttribute(e,t="",n){this.isElement(e)&&null!=n&&e.setAttribute(t,n)}static setAttributes(e,t={}){if(this.isElement(e)){const n=(t,i)=>{const r=e?.$attrs?.[t]?[e?.$attrs?.[t]]:[];return[i].flat().reduce(((e,i)=>{if(null!=i){const r=typeof i;if("string"===r||"number"===r)e.push(i);else if("object"===r){const r=Array.isArray(i)?n(t,i):Object.entries(i).map((([e,n])=>"style"!==t||!n&&0!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${n}`));e=r.length?e.concat(r.filter((e=>!!e))):e}}return e}),r)};Object.entries(t).forEach((([t,i])=>{if(null!=i){const r=t.match(/^on(.+)/);r?e.addEventListener(r[1].toLowerCase(),i):"pBind"===t?this.setAttributes(e,i):(i="class"===t?[...new Set(n("class",i))].join(" ").trim():"style"===t?n("style",i).join(";").trim():i,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=i),e.setAttribute(t,i))}}))}}static isFocusableElement(e,t=""){return!!this.isElement(e)&&e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`)}}
2
- /**
3
- * @license Angular v18.2.8
4
- * (c) 2010-2024 Google LLC. https://angular.io/
5
- * License: MIT
6
- */var F;function R(e,t){return{type:F.Trigger,name:e,definitions:t,options:{}}}function V(e,t=null){return{type:F.Animate,styles:t,timings:e}}function P(e){return{type:F.Style,styles:e,offset:null}}function z(e,t,n=null){return{type:F.Transition,expr:e,animation:t,options:n}}function j(e,t=null){return{type:F.Reference,animation:e,options:t}}function B(e,t=null){return{type:F.AnimateRef,animation:e,options:t}}!function(e){e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger"}(F||(F={}));class q{static{this.ɵfac=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:e,type:q,deps:[],target:e.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:e,type:q,providedIn:"root",useFactory:()=>t(H)})}}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:e,type:q,decorators:[{type:n,args:[{providedIn:"root",useFactory:()=>t(H)}]}]});class ${}class H extends q{constructor(e,n){super(),this.animationModuleType=t(i,{optional:!0}),this._nextAnimationId=0;const o={id:"0",encapsulation:r.None,styles:[],data:{animation:[]}};if(this._renderer=e.createRenderer(n.body,o),null===this.animationModuleType&&!function(e){const t=e.ɵtype;return 0===t||1===t}(this._renderer))throw new s(3600,("undefined"==typeof ngDevMode||ngDevMode)&&"Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.")}build(e){const t=this._nextAnimationId;this._nextAnimationId++;const n=Array.isArray(e)?function(e,t=null){return{type:F.Sequence,steps:e,options:t}}(e):e;return Z(this._renderer,null,t,"register",[n]),new U(t,this._renderer)}static{this.ɵfac=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:e,type:H,deps:[{token:e.RendererFactory2},{token:C}],target:e.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:e,type:H,providedIn:"root"})}}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:e,type:H,decorators:[{type:n,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:e.RendererFactory2},{type:Document,decorators:[{type:o,args:[C]}]}]});class U extends ${constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new W(this._id,e,t||{},this._renderer)}}class W{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){Z(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return function(e){const t=e.ɵtype;if(0===t)return e;if(1===t)return e.animationRenderer;return null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function Z(e,t,n,i,r){e.setProperty(t,`@@${n}:${i}`,r)}class G{static isArray(e,t=!0){return Array.isArray(e)&&(t||0!==e.length)}static isObject(e,t=!0){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&(t||0!==Object.keys(e).length)}static equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,r,s=Array.isArray(e),o=Array.isArray(t);if(s&&o){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.equalsByValue(e[n],t[n]))return!1;return!0}if(s!=o)return!1;var a=this.isDate(e),l=this.isDate(t);if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Object.keys(e);if((i=d.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=i;0!=n--;)if(r=d[n],!this.equalsByValue(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1==t.indexOf("."))return e[t];{let n=t.split("."),i=e;for(let e=0,t=n.length;e<t;++e){if(null==i)return null;i=i[n[e]]}return i}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,n,i){if(n.length>0){let r=!1;for(let s=0;s<n.length;s++){if(this.findIndexInList(n[s],i)>t){n.splice(s,0,e),r=!0;break}}r||n.push(e)}else n.push(e)}static findIndexInList(e,t){let n=-1;if(t)for(let i=0;i<t.length;i++)if(t[i]==e){n=i;break}return n}static contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1}static removeAccents(e){return e&&(e=e.normalize("NFKD").replace(/\p{Diacritic}/gu,"")),e}static isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!this.isDate(e)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,n,i=1){let r=-1;const s=this.isEmpty(e),o=this.isEmpty(t);return r=s&&o?0:s?i:o?-i:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,n,{numeric:!0}):e<t?-1:e>t?1:0,r}static sort(e,t,n=1,i,r=1){const s=G.compare(e,t,i,n);let o=n;return(G.isEmpty(e)||G.isEmpty(t))&&(o=1===r?n:r),o*s}static merge(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):{...e||{},...t||{}}}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}static getItemValue(e,...t){return this.isFunction(e)?e(...t):e}static findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}static findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,r,s=Array.isArray(e),o=Array.isArray(t);if(s&&o){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(s!=o)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Object.keys(e);if((i=d.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=i;0!=n--;)if(r=d[n],!this.deepEquals(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}}var Y=0;function J(e="pn_id_"){return`${e}${++Y}`}var K,Q=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,i)=>{n&&(n.style.zIndex=String(((t,n)=>{let i=e.length>0?e[e.length-1]:{key:t,value:n},r=i.value+(i.key===t?0:n)+2;return e.push({key:t,value:r}),r})(t,i)))},clear:n=>{var i;n&&(i=t(n),e=e.filter((e=>e.value!==i)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}();!function(e){e[e.ACCEPT=0]="ACCEPT",e[e.REJECT=1]="REJECT",e[e.CANCEL=2]="CANCEL"}(K||(K={}));class X{requireConfirmationSource=new x;acceptConfirmationSource=new x;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(e){return this.requireConfirmationSource.next(e),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:X,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:X})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:X,decorators:[{type:n}]});class ee{activeItemKeyChange=new x;activeItemKeyChange$=this.activeItemKeyChange.asObservable();activeItemKey;changeKey(e){this.activeItemKey=e,this.activeItemKeyChange.next(this.activeItemKey)}reset(){this.activeItemKey=null,this.activeItemKeyChange.next(this.activeItemKey)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ee,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ee})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ee,decorators:[{type:n}]});class te{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}class ne{filter(e,t,n,i,r){let s=[];if(e)for(let o of e)for(let e of t){let t=G.resolveFieldData(o,e);if(this.filters[i](t,n,r)){s.push(o);break}}return s}filters={startsWith:(e,t,n)=>{if(null==t||""===t.trim())return!0;if(null==e)return!1;let i=G.removeAccents(t.toString()).toLocaleLowerCase(n);return G.removeAccents(e.toString()).toLocaleLowerCase(n).slice(0,i.length)===i},contains:(e,t,n)=>{if(null==t||"string"==typeof t&&""===t.trim())return!0;if(null==e)return!1;let i=G.removeAccents(t.toString()).toLocaleLowerCase(n);return-1!==G.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(i)},notContains:(e,t,n)=>{if(null==t||"string"==typeof t&&""===t.trim())return!0;if(null==e)return!1;let i=G.removeAccents(t.toString()).toLocaleLowerCase(n);return-1===G.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(i)},endsWith:(e,t,n)=>{if(null==t||""===t.trim())return!0;if(null==e)return!1;let i=G.removeAccents(t.toString()).toLocaleLowerCase(n),r=G.removeAccents(e.toString()).toLocaleLowerCase(n);return-1!==r.indexOf(i,r.length-i.length)},equals:(e,t,n)=>null==t||"string"==typeof t&&""===t.trim()||null!=e&&(e.getTime&&t.getTime?e.getTime()===t.getTime():e==t||G.removeAccents(e.toString()).toLocaleLowerCase(n)==G.removeAccents(t.toString()).toLocaleLowerCase(n)),notEquals:(e,t,n)=>null!=t&&("string"!=typeof t||""!==t.trim())&&(null==e||(e.getTime&&t.getTime?e.getTime()!==t.getTime():e!=t&&G.removeAccents(e.toString()).toLocaleLowerCase(n)!=G.removeAccents(t.toString()).toLocaleLowerCase(n))),in:(e,t)=>{if(null==t||0===t.length)return!0;for(let n=0;n<t.length;n++)if(G.equals(e,t[n]))return!0;return!1},between:(e,t)=>null==t||null==t[0]||null==t[1]||null!=e&&(e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1]),lt:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<t.getTime():e<t),lte:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t),gt:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>t.getTime():e>t),gte:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t),is:(e,t,n)=>this.filters.equals(e,t,n),isNot:(e,t,n)=>this.filters.notEquals(e,t,n),before:(e,t,n)=>this.filters.lt(e,t,n),after:(e,t,n)=>this.filters.gt(e,t,n),dateIs:(e,t)=>null==t||null!=e&&e.toDateString()===t.toDateString(),dateIsNot:(e,t)=>null==t||null!=e&&e.toDateString()!==t.toDateString(),dateBefore:(e,t)=>null==t||null!=e&&e.getTime()<t.getTime(),dateAfter:(e,t)=>{if(null==t)return!0;if(null==e)return!1;const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()>t.getTime()}};register(e,t){this.filters[e]=t}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ne,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ne,providedIn:"root"})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ne,decorators:[{type:n,args:[{providedIn:"root"}]}]});class ie{messageSource=new x;clearSource=new x;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ie,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ie})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ie,decorators:[{type:n}]});class re{clickSource=new x;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:re,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:re,providedIn:"root"})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:re,decorators:[{type:n,args:[{providedIn:"root"}]}]});class se{ripple=!1;inputStyle=a("outlined");overlayOptions={};csp=a({nonce:void 0});filterMatchModeOptions={text:[te.STARTS_WITH,te.CONTAINS,te.NOT_CONTAINS,te.ENDS_WITH,te.EQUALS,te.NOT_EQUALS],numeric:[te.EQUALS,te.NOT_EQUALS,te.LESS_THAN,te.LESS_THAN_OR_EQUAL_TO,te.GREATER_THAN,te.GREATER_THAN_OR_EQUAL_TO],date:[te.DATE_IS,te.DATE_IS_NOT,te.DATE_BEFORE,te.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new x;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:se,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:se,providedIn:"root"})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:se,decorators:[{type:n,args:[{providedIn:"root"}]}]});class oe{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:oe,deps:[],target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:oe,isStandalone:!0,selector:"p-header",ngImport:e,template:"<ng-content></ng-content>",isInline:!0})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:oe,decorators:[{type:l,args:[{selector:"p-header",standalone:!0,template:"<ng-content></ng-content>"}]}]});class ae{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ae,deps:[],target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:ae,isStandalone:!0,selector:"p-footer",ngImport:e,template:"<ng-content></ng-content>",isInline:!0})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ae,decorators:[{type:l,args:[{selector:"p-footer",standalone:!0,template:"<ng-content></ng-content>"}]}]});class le{template;type;name;constructor(e){this.template=e}getType(){return this.name}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:le,deps:[{token:e.TemplateRef}],target:e.ɵɵFactoryTarget.Directive});static"ɵdir"=e.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:le,isStandalone:!0,selector:"[pTemplate]",inputs:{type:"type",name:["pTemplate","name"]},ngImport:e})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:le,decorators:[{type:c,args:[{selector:"[pTemplate]",standalone:!0,host:{}}]}],ctorParameters:()=>[{type:e.TemplateRef}],propDecorators:{type:[{type:u}],name:[{type:u,args:["pTemplate"]}]}});class ce{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ce,deps:[],target:e.ɵɵFactoryTarget.NgModule});static"ɵmod"=e.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:e,type:ce,imports:[oe,ae,le],exports:[oe,ae,le]});static"ɵinj"=e.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ce})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ce,decorators:[{type:d,args:[{imports:[oe,ae,le],exports:[oe,ae,le]}]}]});class ue{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}class de{dragStartSource=new x;dragStopSource=new x;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(e){this.dragStartSource.next(e)}stopDrag(e){this.dragStopSource.next(e)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:de,deps:[],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:de})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:de,decorators:[{type:n}]});class he{pFocusTrapDisabled=!1;platformId=t(h);host=t(m);document=t(C);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){E(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){e.pFocusTrapDisabled&&E(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){const e=e=>M.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:e?.bind(this)});this.firstHiddenFocusableElement=e(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=e(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.host.nativeElement.prepend(this.firstHiddenFocusableElement),this.host.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.lastHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.lastHiddenFocusableElement:M.getFirstFocusableElement(t.parentElement,":not(.p-hidden-focusable)");M.focus(i)}onLastHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.firstHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.firstHiddenFocusableElement:M.getLastFocusableElement(t.parentElement,":not(.p-hidden-focusable)");M.focus(i)}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:he,deps:[],target:e.ɵɵFactoryTarget.Directive});static"ɵdir"=e.ɵɵngDeclareDirective({minVersion:"16.1.0",version:"18.0.1",type:he,selector:"[pFocusTrap]",inputs:{pFocusTrapDisabled:["pFocusTrapDisabled","pFocusTrapDisabled",p]},host:{classAttribute:"p-element"},usesOnChanges:!0,ngImport:e})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:he,decorators:[{type:c,args:[{selector:"[pFocusTrap]",host:{class:"p-element"}}]}],propDecorators:{pFocusTrapDisabled:[{type:u,args:[{transform:p}]}]}});class me{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:me,deps:[],target:e.ɵɵFactoryTarget.NgModule});static"ɵmod"=e.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:e,type:me,declarations:[he],imports:[I],exports:[he]});static"ɵinj"=e.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:me,imports:[I]})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:me,decorators:[{type:d,args:[{imports:[I],exports:[he],declarations:[he]}]}]});class pe{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=G.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:pe,deps:[],target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"16.1.0",version:"18.0.1",type:pe,isStandalone:!0,selector:"ng-component",inputs:{label:"label",spin:["spin","spin",p],styleClass:"styleClass"},host:{classAttribute:"p-element p-icon-wrapper"},ngImport:e,template:" <ng-content></ng-content> ",isInline:!0,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:pe,decorators:[{type:l,args:[{template:" <ng-content></ng-content> ",standalone:!0,changeDetection:f.OnPush,encapsulation:r.None,host:{class:"p-element p-icon-wrapper"}}]}],propDecorators:{label:[{type:u}],spin:[{type:u,args:[{transform:p}]}],styleClass:[{type:u}]}});class fe extends pe{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:fe,deps:null,target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:fe,isStandalone:!0,selector:"TimesIcon",usesInheritance:!0,ngImport:e,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <path\n d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z"\n fill="currentColor"\n />\n </svg>\n ',isInline:!0})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:fe,decorators:[{type:l,args:[{selector:"TimesIcon",standalone:!0,imports:[pe],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <path\n d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z"\n fill="currentColor"\n />\n </svg>\n '}]}]});class ge extends pe{pathId;ngOnInit(){this.pathId="url(#"+J()+")"}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ge,deps:null,target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:ge,isStandalone:!0,selector:"WindowMaximizeIcon",usesInheritance:!0,ngImport:e,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n ',isInline:!0})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ge,decorators:[{type:l,args:[{selector:"WindowMaximizeIcon",standalone:!0,imports:[pe],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n '}]}]});class ye extends pe{pathId;ngOnInit(){this.pathId="url(#"+J()+")"}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ye,deps:null,target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:ye,isStandalone:!0,selector:"WindowMinimizeIcon",usesInheritance:!0,ngImport:e,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n ',isInline:!0})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ye,decorators:[{type:l,args:[{selector:"WindowMinimizeIcon",standalone:!0,imports:[pe],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n '}]}]});class ve{viewContainerRef;constructor(e){this.viewContainerRef=e}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ve,deps:[{token:e.ViewContainerRef}],target:e.ɵɵFactoryTarget.Directive});static"ɵdir"=e.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:ve,selector:"[pDynamicDialogContent]",host:{classAttribute:"p-element"},ngImport:e})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:ve,decorators:[{type:c,args:[{selector:"[pDynamicDialogContent]",host:{class:"p-element"}}]}],ctorParameters:()=>[{type:e.ViewContainerRef}]});class be{data;header;ariaLabelledBy;footer;width;height;closeOnEscape;focusOnShow=!0;focusOnClose=!0;focusTrap=!0;baseZIndex;autoZIndex;dismissableMask;rtl;style;contentStyle;styleClass;transitionOptions;closable;showHeader;modal;maskStyleClass;resizable;draggable;keepInViewport;minX;minY;maximizable;maximizeIcon;minimizeIcon;position;closeAriaLabel;appendTo;duplicate;breakpoints;templates}class we{constructor(){}close(e){this._onClose.next(e),setTimeout((()=>{this._onClose.complete()}),1e3)}destroy(){this._onDestroy.next(null)}dragStart(e){this._onDragStart.next(e)}dragEnd(e){this._onDragEnd.next(e)}resizeInit(e){this._onResizeInit.next(e)}resizeEnd(e){this._onResizeEnd.next(e)}maximize(e){this._onMaximize.next(e)}_onClose=new x;onClose=this._onClose.asObservable();_onDestroy=new x;onDestroy=this._onDestroy.asObservable();_onDragStart=new x;onDragStart=this._onDragStart.asObservable();_onDragEnd=new x;onDragEnd=this._onDragEnd.asObservable();_onResizeInit=new x;onResizeInit=this._onResizeInit.asObservable();_onResizeEnd=new x;onResizeEnd=this._onResizeEnd.asObservable();_onMaximize=new x;onMaximize=this._onMaximize.asObservable();onChildComponentLoaded=new x}const Te=j([P({transform:"{{transform}}",opacity:0}),V("{{transition}}",P({transform:"none",opacity:1}))]),Ce=j([V("{{transition}}",P({transform:"{{transform}}",opacity:0}))]);class Ee{document;platformId;cd;renderer;config;dialogRef;zone;primeNGConfig;parentDialog;visible=!0;componentRef;mask;resizing;dragging;maximized;_style={};originalStyle;lastPageX;lastPageY;ariaLabelledBy;id=J();styleElement;insertionPoint;maskViewChild;contentViewChild;footerViewChild;headerViewChild;childComponentType;container;wrapper;documentKeydownListener;documentEscapeListener;maskClickListener;transformOptions="scale(0.7)";documentResizeListener;documentResizeEndListener;documentDragListener;documentDragEndListener;get minX(){return this.config.minX?this.config.minX:0}get minY(){return this.config.minY?this.config.minY:0}get keepInViewport(){return this.config.keepInViewport}get maximizable(){return this.config.maximizable}get maximizeIcon(){return this.config.maximizeIcon}get minimizeIcon(){return this.config.minimizeIcon}get style(){return this._style}get position(){return this.config.position}get closeAriaLabel(){return this.primeNGConfig.getTranslation(ue.ARIA).close}set style(e){e&&(this._style={...e},this.originalStyle=e)}get parent(){const e=Array.from(this.document.getElementsByClassName("p-dialog"));if(e.length>1)return e.pop()}get parentContent(){const e=Array.from(this.document.getElementsByClassName("p-dialog"));if(e.length>0){const t=e[e.length-1].querySelector(".p-dialog-content");if(t)return Array.isArray(t)?t[0]:t}}get header(){return this.config.header}get data(){return this.config.data}get breakpoints(){return this.config.breakpoints}get footerTemplate(){return this.config?.templates?.footer}get headerTemplate(){return this.config?.templates?.header}get contentTemplate(){return this.config?.templates?.content}get minimizeIconTemplate(){return this.config?.templates?.minimizeicon}get maximizeIconTemplate(){return this.config?.templates?.maximizeicon}get closeIconTemplate(){return this.config?.templates?.closeicon}get dynamicDialogCount(){const e=this.document.querySelectorAll("p-dynamicdialog"),t=e?.length;return t}get containerStyle(){return{...this.config.style,width:this.config.width,height:this.config.height}}constructor(e,t,n,i,r,s,o,a,l){this.document=e,this.platformId=t,this.cd=n,this.renderer=i,this.config=r,this.dialogRef=s,this.zone=o,this.primeNGConfig=a,this.parentDialog=l}ngOnInit(){this.breakpoints&&this.createStyle()}createStyle(){if(E(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",M.setAttribute(this.styleElement,"nonce",this.primeNGConfig?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let t in this.breakpoints)e+=`\n @media screen and (max-width: ${t}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[t]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewInit(){this.loadChildComponent(this.childComponentType),this.ariaLabelledBy=this.getAriaLabelledBy(),this.cd.detectChanges()}getAriaLabelledBy(){return null!==this.header?J()+"_header":null}loadChildComponent(e){let t=this.insertionPoint?.viewContainerRef;t?.clear(),this.componentRef=t?.createComponent(e),this.dialogRef.onChildComponentLoaded.next(this.componentRef.instance)}moveOnTop(){!1!==this.config.autoZIndex&&(Q.set("modal",this.container,(this.config.baseZIndex||0)+this.primeNGConfig.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.moveOnTop(),this.parent&&this.unbindGlobalListeners(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),!1!==this.config.modal&&this.enableModality(),!1!==this.config.focusOnShow&&this.focus();break;case"void":this.wrapper&&!1!==this.config.modal&&M.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&(this.parentContent&&!1!==this.config.focusOnClose&&this.focus(this.parentContent),this.onContainerDestroy(),this.dialogRef.destroy())}onContainerDestroy(){this.unbindGlobalListeners(),this.container&&!1!==this.config.autoZIndex&&Q.clear(this.container),!1!==this.config.modal&&this.disableModality(),this.container=null}close(){this.visible=!1,this.cd.markForCheck()}hide(){this.dialogRef&&this.dialogRef.close()}enableModality(){this.config.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.hide()}))),1===this.dynamicDialogCount&&M.addClass(this.document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.config.dismissableMask&&this.unbindMaskClickListener(),1===this.dynamicDialogCount&&M.removeClass(this.document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}focus(e=this.contentViewChild.nativeElement){if(!M.getFocusableElements(e).length)return;let t=M.getFocusableElement(e,"[autofocus]");if(t)return void this.zone.runOutsideAngular((()=>{setTimeout((()=>t.focus()),5)}));const n=M.getFocusableElement(e);n?this.zone.runOutsideAngular((()=>{setTimeout((()=>n.focus()),5)})):this.footerViewChild?this.focus(this.footerViewChild.nativeElement):!n&&this.headerViewChild&&this.focus(this.headerViewChild.nativeElement)}maximize(){this.maximized=!this.maximized,this.maximized?M.addClass(this.document.body,"p-overflow-hidden"):M.removeClass(this.document.body,"p-overflow-hidden"),this.dialogRef.maximize({maximized:this.maximized})}initResize(e){this.config.resizable&&(this.documentResizeListener||this.bindDocumentResizeListeners(),this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,M.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeInit(e))}onResize(e){if(this.resizing){let t=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,i=M.getOuterWidth(this.container),r=M.getOuterHeight(this.container),s=M.getOuterHeight(this.contentViewChild.nativeElement),o=i+t,a=r+n,l=this.container.style.minWidth,c=this.container.style.minHeight,u=this.container.getBoundingClientRect(),d=M.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(o+=t,a+=n),(!l||o>parseInt(l))&&u.left+o<d.width&&(this._style.width=o+"px",this.container.style.width=this._style.width),(!c||a>parseInt(c))&&u.top+a<d.height&&(this.contentViewChild.nativeElement.style.height=s+a-r+"px",this._style.height&&(this._style.height=a+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,M.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeEnd(e))}initDrag(e){M.hasClass(e.target,"p-dialog-header-icon")||M.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.config.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",M.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragStart(e))}onDrag(e){if(this.dragging){let t=M.getOuterWidth(this.container),n=M.getOuterHeight(this.container),i=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,s=this.container.getBoundingClientRect(),o=s.left+i,a=s.top+r,l=M.getViewport();this.container.style.position="fixed",this.keepInViewport?(o>=this.minX&&o+t<l.width&&(this._style.left=o+"px",this.lastPageX=e.pageX,this.container.style.left=o+"px"),a>=this.minY&&a+n<l.height&&(this._style.top=a+"px",this.lastPageY=e.pageY,this.container.style.top=a+"px")):(this.lastPageX=e.pageX,this.container.style.left=o+"px",this.lastPageY=e.pageY,this.container.style.top=a+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,M.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragEnd(e),this.cd.detectChanges())}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}bindDocumentDragListener(){E(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragListener=this.renderer.listen(this.document,"mousemove",this.onDrag.bind(this))}))}bindDocumentDragEndListener(){E(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragEndListener=this.renderer.listen(this.document,"mouseup",this.endDrag.bind(this))}))}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragListener=null)}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentResizeListeners(){E(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentResizeListener=this.renderer.listen(this.document,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document,"mouseup",this.resizeEnd.bind(this))}))}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindGlobalListeners(){!1!==this.config.closeOnEscape&&this.bindDocumentEscapeListener(),this.config.resizable&&this.bindDocumentResizeListeners(),this.config.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener())}unbindGlobalListeners(){this.unbindDocumentEscapeListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener()}bindDocumentEscapeListener(){const e=this.maskViewChild?this.maskViewChild.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",(e=>{27==e.which&&parseInt(this.container.style.zIndex)==Q.getCurrent()&&this.hide()}))}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}ngOnDestroy(){this.onContainerDestroy(),this.componentRef&&this.componentRef.destroy(),this.destroyStyle()}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ee,deps:[{token:C},{token:h},{token:e.ChangeDetectorRef},{token:e.Renderer2},{token:be},{token:we},{token:e.NgZone},{token:se},{token:Ee,optional:!0,skipSelf:!0}],target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:Ee,selector:"p-dynamicDialog",host:{classAttribute:"p-element"},viewQueries:[{propertyName:"insertionPoint",first:!0,predicate:ve,descendants:!0},{propertyName:"maskViewChild",first:!0,predicate:["mask"],descendants:!0},{propertyName:"contentViewChild",first:!0,predicate:["content"],descendants:!0},{propertyName:"footerViewChild",first:!0,predicate:["footer"],descendants:!0},{propertyName:"headerViewChild",first:!0,predicate:["titlebar"],descendants:!0}],ngImport:e,template:'\n <div\n #mask\n [ngClass]="{\n \'p-dialog-mask\': true,\n \'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker\': config.modal !== false,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'\n }"\n [class]="config.maskStyleClass"\n >\n <div\n #container\n [ngClass]="{ \'p-dialog p-dynamic-dialog p-component\': true, \'p-dialog-rtl\': config.rtl, \'p-dialog-resizable\': config.resizable, \'p-dialog-draggable\': config.draggable, \'p-dialog-maximized\': maximized }"\n [ngStyle]="containerStyle"\n [class]="config.styleClass"\n [@animation]="{ value: \'visible\', params: { transform: transformOptions, transition: config.transitionOptions || \'150ms cubic-bezier(0, 0, 0.2, 1)\' } }"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)"\n role="dialog"\n *ngIf="visible"\n pFocusTrap\n [pFocusTrapDisabled]="config.focusTrap === false"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-modal]="true"\n >\n <div *ngIf="config.resizable" class="p-resizable-handle" (mousedown)="initResize($event)"></div>\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="config.showHeader === false ? false : true">\n <ng-container *ngComponentOutlet="headerTemplate"></ng-container>\n <ng-container *ngIf="!headerTemplate">\n <span class="p-dialog-title" [id]="ariaLabelledBy">{{ config.header }}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="config.maximizable" type="button" [ngClass]="{ \'p-dialog-header-icon p-dialog-header-maximize p-link\': true }" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" *ngIf="!maximizeIconTemplate || !minimizeIconTemplate" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n <WindowMaximizeIcon *ngIf="!maximized && !maximizeIcon && !maximizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <WindowMinimizeIcon *ngIf="maximized && !minimizeIcon && !minimizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <ng-container *ngComponentOutlet="maximizeIconTemplate"></ng-container>\n <ng-container *ngComponentOutlet="minimizeIconTemplate"></ng-container>\n </button>\n <button [ngClass]="\'p-dialog-header-icon p-dialog-header-maximize p-link\'" type="button" role="button" (click)="hide()" (keydown.enter)="hide()" *ngIf="config.closable !== false" [attr.aria-label]="closeAriaLabel">\n <TimesIcon [styleClass]="\'p-dialog-header-close-icon\'" *ngIf="!closeIconTemplate" />\n <ng-container *ngComponentOutlet="closeIconTemplate"></ng-container>\n </button>\n </div>\n </ng-container>\n </div>\n <div #content class="p-dialog-content" [ngStyle]="config.contentStyle">\n <ng-template pDynamicDialogContent *ngIf="!contentTemplate"></ng-template>\n <ng-container *ngComponentOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="config.footer || footerTemplate">\n <ng-container *ngIf="!footerTemplate">\n {{ config.footer }}\n </ng-container>\n <ng-container *ngComponentOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n </div>\n ',isInline:!0,styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],dependencies:[{kind:"directive",type:e.forwardRef((()=>T.NgClass)),selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:e.forwardRef((()=>T.NgComponentOutlet)),selector:"[ngComponentOutlet]",inputs:["ngComponentOutlet","ngComponentOutletInputs","ngComponentOutletInjector","ngComponentOutletContent","ngComponentOutletNgModule","ngComponentOutletNgModuleFactory"]},{kind:"directive",type:e.forwardRef((()=>T.NgIf)),selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{kind:"directive",type:e.forwardRef((()=>T.NgStyle)),selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"component",type:e.forwardRef((()=>ge)),selector:"WindowMaximizeIcon"},{kind:"component",type:e.forwardRef((()=>ye)),selector:"WindowMinimizeIcon"},{kind:"component",type:e.forwardRef((()=>fe)),selector:"TimesIcon"},{kind:"directive",type:e.forwardRef((()=>he)),selector:"[pFocusTrap]",inputs:["pFocusTrapDisabled"]},{kind:"directive",type:e.forwardRef((()=>ve)),selector:"[pDynamicDialogContent]"}],animations:[R("animation",[z("void => visible",[B(Te)]),z("visible => void",[B(Ce)])])],changeDetection:e.ChangeDetectionStrategy.Default,encapsulation:e.ViewEncapsulation.None})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ee,decorators:[{type:l,args:[{selector:"p-dynamicDialog",template:'\n <div\n #mask\n [ngClass]="{\n \'p-dialog-mask\': true,\n \'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker\': config.modal !== false,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'\n }"\n [class]="config.maskStyleClass"\n >\n <div\n #container\n [ngClass]="{ \'p-dialog p-dynamic-dialog p-component\': true, \'p-dialog-rtl\': config.rtl, \'p-dialog-resizable\': config.resizable, \'p-dialog-draggable\': config.draggable, \'p-dialog-maximized\': maximized }"\n [ngStyle]="containerStyle"\n [class]="config.styleClass"\n [@animation]="{ value: \'visible\', params: { transform: transformOptions, transition: config.transitionOptions || \'150ms cubic-bezier(0, 0, 0.2, 1)\' } }"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)"\n role="dialog"\n *ngIf="visible"\n pFocusTrap\n [pFocusTrapDisabled]="config.focusTrap === false"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-modal]="true"\n >\n <div *ngIf="config.resizable" class="p-resizable-handle" (mousedown)="initResize($event)"></div>\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="config.showHeader === false ? false : true">\n <ng-container *ngComponentOutlet="headerTemplate"></ng-container>\n <ng-container *ngIf="!headerTemplate">\n <span class="p-dialog-title" [id]="ariaLabelledBy">{{ config.header }}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="config.maximizable" type="button" [ngClass]="{ \'p-dialog-header-icon p-dialog-header-maximize p-link\': true }" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" *ngIf="!maximizeIconTemplate || !minimizeIconTemplate" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n <WindowMaximizeIcon *ngIf="!maximized && !maximizeIcon && !maximizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <WindowMinimizeIcon *ngIf="maximized && !minimizeIcon && !minimizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <ng-container *ngComponentOutlet="maximizeIconTemplate"></ng-container>\n <ng-container *ngComponentOutlet="minimizeIconTemplate"></ng-container>\n </button>\n <button [ngClass]="\'p-dialog-header-icon p-dialog-header-maximize p-link\'" type="button" role="button" (click)="hide()" (keydown.enter)="hide()" *ngIf="config.closable !== false" [attr.aria-label]="closeAriaLabel">\n <TimesIcon [styleClass]="\'p-dialog-header-close-icon\'" *ngIf="!closeIconTemplate" />\n <ng-container *ngComponentOutlet="closeIconTemplate"></ng-container>\n </button>\n </div>\n </ng-container>\n </div>\n <div #content class="p-dialog-content" [ngStyle]="config.contentStyle">\n <ng-template pDynamicDialogContent *ngIf="!contentTemplate"></ng-template>\n <ng-container *ngComponentOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="config.footer || footerTemplate">\n <ng-container *ngIf="!footerTemplate">\n {{ config.footer }}\n </ng-container>\n <ng-container *ngComponentOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n </div>\n ',animations:[R("animation",[z("void => visible",[B(Te)]),z("visible => void",[B(Ce)])])],changeDetection:f.Default,encapsulation:r.None,host:{class:"p-element"},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"]}]}],ctorParameters:()=>[{type:Document,decorators:[{type:o,args:[C]}]},{type:void 0,decorators:[{type:o,args:[h]}]},{type:e.ChangeDetectorRef},{type:e.Renderer2},{type:be},{type:we},{type:e.NgZone},{type:se},{type:Ee,decorators:[{type:g},{type:y}]}],propDecorators:{insertionPoint:[{type:v,args:[ve]}],maskViewChild:[{type:v,args:["mask"]}],contentViewChild:[{type:v,args:["content"]}],footerViewChild:[{type:v,args:["footer"]}],headerViewChild:[{type:v,args:["titlebar"]}]}});class Ie{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ie,deps:[],target:e.ɵɵFactoryTarget.NgModule});static"ɵmod"=e.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:e,type:Ie,declarations:[Ee,ve],imports:[I,ge,ye,fe,ce,me],exports:[ce]});static"ɵinj"=e.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ie,imports:[I,ge,ye,fe,ce,me,ce]})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ie,decorators:[{type:d,args:[{imports:[I,ge,ye,fe,ce,me],declarations:[Ee,ve],exports:[ce]}]}]});class Se{_parentInjector;_additionalTokens;constructor(e,t){this._parentInjector=e,this._additionalTokens=t}get(e,t,n){const i=this._additionalTokens.get(e);return i||this._parentInjector.get(e,t)}}class Ne{appRef;injector;document;dialogComponentRefMap=new Map;constructor(e,t,n){this.appRef=e,this.injector=t,this.document=n}open(e,t){if(!this.duplicationPermission(e,t))return null;const n=this.appendDialogComponentToBody(t,e);return this.dialogComponentRefMap.get(n).instance.childComponentType=e,n}getInstance(e){return this.dialogComponentRefMap.get(e).instance}appendDialogComponentToBody(e,t){const n=new WeakMap;n.set(be,e);const i=new we;n.set(we,i);const r=i.onClose.subscribe((()=>{this.dialogComponentRefMap.get(i).instance.close()})),s=i.onDestroy.subscribe((()=>{this.removeDialogComponentFromBody(i),s.unsubscribe(),r.unsubscribe()})),o=b(Ee,{environmentInjector:this.appRef.injector,elementInjector:new Se(this.injector,n)});this.appRef.attachView(o.hostView);const a=o.hostView.rootNodes[0];return e.appendTo&&"body"!==e.appendTo?M.appendChild(a,e.appendTo):this.document.body.appendChild(a),this.dialogComponentRefMap.set(i,o),i}removeDialogComponentFromBody(e){if(!e||!this.dialogComponentRefMap.has(e))return;const t=this.dialogComponentRefMap.get(e);this.appRef.detachView(t.hostView),t.destroy(),this.dialogComponentRefMap.delete(e)}duplicationPermission(e,t){if(t.duplicate)return!0;let n=!0;for(const[t,i]of this.dialogComponentRefMap)if(i.instance.childComponentType===e){n=!1;break}return n}static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ne,deps:[{token:e.ApplicationRef},{token:e.Injector},{token:C}],target:e.ɵɵFactoryTarget.Injectable});static"ɵprov"=e.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ne})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ne,decorators:[{type:n}],ctorParameters:()=>[{type:e.ApplicationRef},{type:e.Injector},{type:Document,decorators:[{type:o,args:[C]}]}]});const xe="error",Oe="warn",De="info",ke="verbose",Ae="debug",Le="silly";class _e{_lastLogMessage={messageSource:"No message yet",timestamp:(new Date).getTime(),lvl:De};_buffer=[];_bufferIdx=0;_lastSnapshotIdx=0;_bufferSize;constructor(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e}get currentIndex(){return this._bufferIdx}get lastSnapshotIdx(){return this._lastSnapshotIdx}set bufferSize(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e,this.clearRingBuffer()}getMessages(e=null,t=!1,n=!1){let i=null;if(this._bufferIdx<this._bufferSize){const t=null==e?0:e;i=this._buffer.slice(t,this._bufferIdx)}else{i=[];const t=this._bufferIdx-this._bufferSize;for(let n=e?Math.max(e,t):t;n<this._bufferIdx;n++)i.push(this._buffer[n%this._bufferSize])}return t&&this.clearRingBuffer(),n&&(i=i.reverse()),i}takeSnapshot(){const e=Math.max(0,this._bufferIdx-this._bufferSize),t={messages:this.getMessages(this._lastSnapshotIdx),logMessagesTruncated:Math.max(0,e-this._lastSnapshotIdx)};return this._lastSnapshotIdx=this._bufferIdx,t}getLastLogMessage(){return Object.assign({},this._lastLogMessage)}clearRingBuffer(){this._buffer=[],this._bufferIdx=0,this._lastSnapshotIdx=0}addToRingBuffer(e){this._lastLogMessage=e,this._buffer[this._bufferIdx%this._bufferSize]=e,this._bufferIdx++}}const Me="Console",Fe="ConsoleNoDebug",Re="StdOut";class Ve{static LOG_LEVELS_IN_ORDER=[xe,Oe,De,ke,Ae,Le];static handlerFunctionMap(e=Me){const t=new Map;if(e===Re){if(!process?.stdout?.write)throw new Error("Cannot use standard out - process.stdout.write not found");const e=(e,t)=>process.stdout.write(e,"utf-8",t);t.set(xe,e),t.set(Oe,e),t.set(De,e),t.set(ke,e),t.set(Ae,e),t.set(Le,e)}else t.set(xe,console.error),t.set(Oe,console.warn),t.set(De,console.info),t.set(ke,e===Fe?console.log:console.debug),t.set(Ae,e===Fe?console.log:console.debug),t.set(Le,e===Fe?console.log:console.debug);return t}static defaultHandlerFunction(){return console.info}static levelIsEnabled(e,t){const n=Ve.LOG_LEVELS_IN_ORDER.indexOf(e),i=Ve.LOG_LEVELS_IN_ORDER.indexOf(t);return n>-1&&i>-1&&i>=n}}const Pe="ClassicSingleLine",ze="StructuredJson",je="None";class Be{static isNullOrUndefined(e){return Object.is(e,null)||Object.is(e,void 0)}static notNullOrUndefined(e,t="object"){if(Be.isNullOrUndefined(e))throw new Error(t+" may not be null or undefined")}static notNullUndefinedOrOnlyWhitespaceString(e,t="string"){if(Be.isNullOrUndefined(e)||""===e.trim())throw new Error(t+" may not be null or undefined or only whitespace string")}static notNullUndefinedOrEmptyArray(e,t="string"){if(Be.isNullOrUndefined(e)||0===e.length)throw new Error(t+" may not be null or undefined or an empty array")}static equal(e,t,n="Values must be equal"){if(e!==t)throw new Error(n)}static true(e,t="Value must be true"){Be.equal(e,!0,t)}static noNullOrUndefinedValuesInArray(e,t=null,n=null){if(Be.notNullOrUndefined(e,"Source array may not be null"),null!==t&&e.length!==t)throw new Error(`Expected array of length ${t} but was ${e.length} ${n}`);for(let t=0;t<e.length;t++)if(Be.isNullOrUndefined(e[t]))throw new Error(`Array index ${t} was null or undefined ${n}`)}static noNullOrUndefinedValuesInRestArgs(e,...t){if(Be.notNullOrUndefined(t,"Source array may not be null"),null!==e&&t.length!==e)throw new Error(`Expected array of length ${e} but was ${t.length}`);for(let e=0;e<t.length;e++)if(Be.isNullOrUndefined(t[e]))throw new Error(`Array index ${e} was null or undefined`)}static constructorArgumentsMatchLengthAndAreNonNull(){const e=Array.from(arguments),t=this.constructor.length;return Be.noNullOrUndefinedValuesInArray(e,t)}}class qe{static RFC_3986_RESERVED=["!","*","'","(",")",";",":","@","&","=","+","$",",","/","?","#","[","]","%"];static WHITESPACE=" \n\t";static DIGITS="0123456789";static HEXITS=qe.DIGITS+"ABCDEF";static UPPER_CASE_LATIN="ABCDEFGHIJKLMNOPQRSTUVWXYZ";static LOWER_CASE_LATIN="abcdefghijklmnopqrstuvwxyz";static CASE_INSENSITIVE_LATIN=qe.UPPER_CASE_LATIN+qe.LOWER_CASE_LATIN;static stringIsInGivenAlphabet(e,t){let n=!1;if(e&&t)for(let i=0;i<e.length&&!n;i++)n=t.includes(e.charAt(i));return n}static stringToUint8Array(e){return e?(new TextEncoder).encode(e):null}static uint8ArrayToString(e){return e?(new TextDecoder).decode(e):null}static attemptJsonParse(e){let t=null;if(qe.trimToNull(e))try{t=JSON.parse(e)}catch{t=null}return t}static canParseAsJson(e){return!!qe.attemptJsonParse(e)}static allUnique(e){let t=!0;if(e){const n=new Set;for(let i=0;i<e.length&&t;i++){const r=e.charAt(i);t=!n.has(r),n.add(r)}}return t}static allPermutationsOfLength(e,t){const n=[];if(e>0&&t&&t.length>0){Be.true(qe.allUnique(t),"Alphabet must be unique");const i=1===e?[""]:qe.allPermutationsOfLength(e-1,t);for(let e=0;e<t.length;e++)i.forEach((i=>n.push(t.charAt(e)+i)))}return n}static breakIntoBlocks(e,t,n){let i="";for(;e.length>t;)i=n+e.substring(e.length-t)+i,e=e.substring(0,e.length-t);return i=e.length>0?e+i:i.substring(1),i}static createShortUid(e=0,t=1e3,n=36){const i=Math.floor(Date.now()/1e3),r=parseInt(String(Math.floor(Math.random()*t))+String(i)).toString(n);return e>0?qe.breakIntoBlocks(r,e,"-"):r}static createType4Guid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}static createRandomHexString(e=10){let t="";for(let n=0;n<e;n++)t+=Math.floor(16*Math.random()).toString(16);return t}static canonicalize(e){let t=e?e.toLowerCase():"";return t=t.replace(" ","-"),qe.RFC_3986_RESERVED.forEach((e=>{t=t.replace(e,"")})),t}static formatBytes(e,t=2){if(0==e)return"0 Bytes";const n=t||2,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}static safeString(e){let t=null;if(null!=e){t="string"==typeof e?e:String(e)}return t}static stringContainsOnlyWhitespace(e){return qe.stringContainsOnly(e,qe.WHITESPACE)}static stringContainsOnlyNumbers(e){return/^[0-9]+$/.test(e)}static stringContainsOnlyAlphanumeric(e){return/^[0-9a-zA-Z]+$/.test(e)}static stringContainsOnlyHex(e){return/^[0-9a-fA-F]+$/.test(e)}static stringContainsOnly(e,t){const n=e||"",i=t||"";let r=!0;for(let e=0;e<n.length&&r;e++)r=i.indexOf(n.charAt(e))>=0;return r}static obscure(e,t=2,n=2){if(!e)return e;const i=e.length;let r=t,s=n;for(;i>0&&i<r+s+1;)r=Math.max(0,r-1),s=Math.max(0,s-1);const o=i-(r+s);let a="";a+=e.substring(0,r);for(let e=0;e<o;e++)a+="*";return a+=e.substring(i-s),a}static leadingZeros(e,t){const n="00000000000000000000000000000000000000000000000000";let i=!1,r=String(e);if(r.startsWith("-")&&(i=!0,r=r.substring(1)),t>50)throw new Error("Cannot format number that large");let s=(n+r).slice(-1*t);return i&&(s="-"+s),s}static trimToEmpty(e){return(e?qe.safeString(e):"").trim()}static trimToNull(e){const t=qe.trimToEmpty(e);return t.length>0?t:null}static trimAllStringPropertiesToNullInPlace(e){return qe.trimAllStringPropertiesInPlace(e,!1)}static trimAllStringPropertiesToEmptyInPlace(e){return qe.trimAllStringPropertiesInPlace(e,!0)}static trimAllStringPropertiesInPlace(e,t){return Object.keys(e).forEach((n=>{const i=e[n];null!=i&&"string"==typeof i&&(e[n]=t?qe.trimToEmpty(e[n]):qe.trimToNull(e[n]))})),e}static stripNonNumeric(e){let t=e;if(null!=e&&!qe.stringContainsOnlyNumbers(e)){t="";for(let n=0;n<e.length;n++){const i=e.charAt(n);(qe.stringContainsOnlyNumbers(i)||0===n&&"-"===i)&&(t+=i)}}return t}static csvSafe(e){let t=qe.trimToEmpty(qe.safeString(e));return t.split('"').join('\\"'),-1===t.indexOf(",")&&-1===t.indexOf('"')&&-1===t.indexOf("'")||(t='"'+t+'"'),t}static stripNonAscii(e){return[...e].reduce(((e,t)=>t.charCodeAt(0)>127?e:e+t))}static replaceAll(e,t,n){let i=e;return i?.length&&t?.length&&n?.length&&(i=i.split(t).join(n)),i}static simpleTemplateFill(e,t,n=!1,i="${",r="}"){let s=e;if(s&&t&&Object.keys(t).forEach((e=>{s=s.split(i+e+r).join(t[e])})),n&&s?.indexOf(i)>=0)throw new Error("Template has unfilled variables:"+s);return s}static circSafeJsonStringify(e){let t=null;try{t=JSON.stringify(e)}catch(e){if(!(e instanceof TypeError))throw e;{let n=e.message.split("\n").map((e=>qe.trimToNull(e))).filter((e=>!!e));n=n.filter((e=>e.startsWith("--\x3e")||e.startsWith("---"))),t="Cannot stringify - object contains circular reference : "+n.join(", ")}}return t}static format(e,...t){const n=/(%?)(%([ojds]))/g;return t.length&&(e=e.replace(n,(function(e,n,i,r){let s=t.shift();switch(r){case"o":if(Array.isArray(s)){s=qe.circSafeJsonStringify(s);break}throw new Error("Cannot use o placeholder for argument of type "+typeof s);case"s":s=""+s;break;case"d":s=Number(s);break;case"j":s=qe.circSafeJsonStringify(s)}return n?(t.unshift(s),e):s}))),t.length&&(e+=" "+t.join(" ")),""+(e=e.replace(/%{2,2}/g,"%"))}}class $e{formatMessage(e,t){let n=null;return e&&(n="",n+=t.options.trace?t.options.trace+" ":"",n+="["+e.lvl+"] ",n+=qe.format(e.messageSource,...e.subsVars)),n}}class He{formatMessage(e,t){return null}}class Ue{formatMessage(e,t){let n=null;if(e){const i=Object.assign({},t.options.globalVars||{},e.params||{});i.msg=qe.format(e.messageSource,...e.subsVars),i.utcDateTime=new Date(e.timestamp).toISOString(),i.logLevel=e.lvl,t.options.trace&&(i.trace=t.options.trace),i.logName=t.loggerInstanceName,i.logId=t.loggerInstanceId,n=JSON.stringify(i)+"\n"}return n}}class We{loggerInstanceName;_guid=Math.floor(1e6*Math.random());_loggerMeta;_ringBuffer;_formatter;_level;_handlerFunctionMap;_options;constructor(e="default",t){this.loggerInstanceName=e,this.options=t}levelIsEnabled(e){return Ve.levelIsEnabled(e,this._level)}addPreProcessor(e){return e&&(this._options.preProcessors=this._options.preProcessors||[],this._options.preProcessors.push(e)),Object.assign([],this._options.preProcessors)}get ringBuffer(){return this._ringBuffer}dumpConfigurationIntoLog(){this.error("ERROR enabled"),this.warn("WARN enabled"),this.info("INFO enabled"),this.verbose("VERBOSE enabled"),this.debug("DEBUG enabled"),this.silly("SILLY enabled")}dumpOptionsIntoLog(){if(this.info("Guid: %s Options: %j",this._guid,this.options),this?.options?.preProcessors?.length){const e=this.options.preProcessors.map((e=>qe.trimToNull(e.label())||"Unlabelled"));this.info("Preprocessors: %j",e)}}get guid(){return this._guid}changeRingBufferSize(e){this._ringBuffer=null,e&&(this._ringBuffer=new _e(e),this._options.ringBufferSize=e)}updateTracePrefix(e){this._options.trace=e}get options(){return Object.assign({},this._options)}set options(e){switch(this._options=Object.assign({},e),this._options.ringBufferSize&&(this._ringBuffer=new _e(this._options.ringBufferSize)),this._options.formatType){case je:this._formatter=new He;break;case ze:this._formatter=new Ue;break;default:this._formatter=new $e}this._level=this._options.initialLevel,this._handlerFunctionMap=Ve.handlerFunctionMap(this._options.outputFunction);const t=this._loggerMeta?this._loggerMeta.loggerInstanceId:null;this._loggerMeta={options:this._options,loggerInstanceName:this.loggerInstanceName,loggerInstanceId:t||qe.createRandomHexString(8)}}get level(){return this._level}set level(e){if(!e)throw new Error("Cannot set level to null/undefined");this._level=e}consoleLogPassThru(e,...t){if(Ve.levelIsEnabled(e,this._level)){let n=this._options.trace||"";n+="["+e+"] ",t.unshift(n);(this._handlerFunctionMap.get(e)||Ve.defaultHandlerFunction)(...t)}}createLogMessage(e,t,n,...i){return{lvl:e,timestamp:Date.now(),messageSource:n,subsVars:i,params:t}}formatMessage(e){return e?this._formatter.formatMessage(e,this._loggerMeta):null}formatMessages(e){return(e||[]).map((e=>this.formatMessage(e))).filter((e=>!!e))}recordMessageBuilder(e){return this.recordMessage(e.toMessage())}recordMessage(e){let t=null;if(Ve.levelIsEnabled(e.lvl,this._level)){let n=Object.assign({},e);if(this._options.preProcessors?.length)for(const e of this._options.preProcessors)n=e.process(n);if(t=this.formatMessage(n),t){(this._handlerFunctionMap.get(n.lvl)||Ve.defaultHandlerFunction)(t),this._ringBuffer&&this._ringBuffer.addToRingBuffer(n)}}return t}error(e,...t){const n=this.createLogMessage(xe,{},e,...t);return this.recordMessage(n)}errorP(...e){this.consoleLogPassThru(xe,...e)}warn(e,...t){const n=this.createLogMessage(Oe,{},e,...t);return this.recordMessage(n)}warnP(...e){this.consoleLogPassThru(Oe,...e)}info(e,...t){const n=this.createLogMessage(De,{},e,...t);return this.recordMessage(n)}infoP(...e){this.consoleLogPassThru(De,...e)}verbose(e,...t){const n=this.createLogMessage(ke,{},e,...t);return this.recordMessage(n)}verboseP(...e){this.consoleLogPassThru(ke,...e)}debug(e,...t){const n=this.createLogMessage(Ae,{},e,...t);return this.recordMessage(n)}debugP(...e){this.consoleLogPassThru(Ae,...e)}silly(e,...t){const n=this.createLogMessage(Le,{},e,...t);return this.recordMessage(n)}sillyP(...e){this.consoleLogPassThru(Le,...e)}logByLevel(e,t,...n){const i=this.createLogMessage(e,{},t,...n);this.recordMessage(i)}importMessages(e,t="",n=!0){const i=t||"";e&&e.length>0&&(this.silly("Received import data : %d msgs",e.length),e.forEach((e=>{if(e.messageSource){let t=i;if(n){t+=" ("+String(new Date).substring(15,24)+") : ",t+=e.messageSource}this.logByLevel(e.lvl,t)}})))}}class Ze{static LOGGER_INSTANCE_MAP_GLOBAL_KEY="RATCHET_GLOBAL_LOGGER_MAP_V01";static GLOBAL_PROVIDER=process||global||window;static DEFAULT_OPTIONS={initialLevel:De,formatType:Pe,trace:null,globalVars:{},outputFunction:Me,ringBufferSize:0,preProcessors:[]};static applyDefaultsToOptions(e){const t=e||{};return t.initialLevel=t.initialLevel??Ze.DEFAULT_OPTIONS.initialLevel,t.formatType=t.formatType??Ze.DEFAULT_OPTIONS.formatType,t.trace=t.trace??Ze.DEFAULT_OPTIONS.trace,t.globalVars=t.globalVars??Ze.DEFAULT_OPTIONS.globalVars,t.outputFunction=t.outputFunction??Ze.DEFAULT_OPTIONS.outputFunction,t.ringBufferSize=t.ringBufferSize??Ze.DEFAULT_OPTIONS.ringBufferSize,t}static loggerInstances(){if(!Ze.GLOBAL_PROVIDER)throw new Error("Cannot create logger - could not find a global provider");let e=Ze.GLOBAL_PROVIDER[Ze.LOGGER_INSTANCE_MAP_GLOBAL_KEY];return e||(e=new Map,Ze.GLOBAL_PROVIDER[Ze.LOGGER_INSTANCE_MAP_GLOBAL_KEY]=e),e}static changeDefaultOptions(e,t){if(!e||!e.initialLevel||!e.formatType)throw new Error("Default options must be non-null, and provide initial level and format type");Ze.DEFAULT_OPTIONS=Object.assign({},e),t&&Array.from(Ze.loggerInstances().values()).forEach((t=>t.options=e))}static getLogger(e="default",t){let n=Ze.loggerInstances().get(e);if(!n){const i=Ze.applyDefaultsToOptions(t);n=new We(e,i),Ze.loggerInstances().set(e,n)}return n}static recordMessageBuilder(e){return Ze.getLogger().recordMessageBuilder(e)}static levelIsEnabled(e){return Ze.getLogger().levelIsEnabled(e)}static recordMessage(e){return Ze.getLogger().recordMessage(e)}static formatMessages(e){return Ze.getLogger().formatMessages(e)}static updateTracePrefix(e){return Ze.getLogger().updateTracePrefix(e)}static changeRingBufferSize(e){return Ze.getLogger().changeRingBufferSize(e)}static getRingBuffer(){return Ze.getLogger().ringBuffer}static dumpConfigurationIntoLog(){return Ze.getLogger().dumpConfigurationIntoLog()}static dumpOptionsIntoLog(){return Ze.getLogger().dumpOptionsIntoLog()}static getLevel(){return Ze.getLogger().level}static setLevel(e){Ze.getLogger().level=e}static getOptions(){return Ze.getLogger().options}static getMessages(e=null,t=!1,n=!1){const i=Ze.getLogger().ringBuffer;return i?i.getMessages(e,t,n):null}static consoleLogPassThru(e,...t){return Ze.getLogger().consoleLogPassThru(e,...t)}static error(e,...t){return Ze.getLogger().error(e,...t)}static errorP(...e){return Ze.getLogger().errorP(...e)}static warn(e,...t){return Ze.getLogger().warn(e,...t)}static warnP(...e){return Ze.getLogger().warnP(...e)}static info(e,...t){return Ze.getLogger().info(e,...t)}static infoP(...e){return Ze.getLogger().infoP(...e)}static verbose(e,...t){return Ze.getLogger().verbose(e,...t)}static verboseP(...e){return Ze.getLogger().verboseP(...e)}static debug(e,...t){return Ze.getLogger().debug(e,...t)}static debugP(...e){return Ze.getLogger().debugP(...e)}static silly(e,...t){return Ze.getLogger().silly(e,...t)}static sillyP(...e){return Ze.getLogger().sillyP(...e)}static takeSnapshot(){const e=Ze.getLogger().ringBuffer;return e?e.takeSnapshot():null}static logByLevel(e,t,...n){return Ze.getLogger().logByLevel(e,t,...n)}static importMessages(e,t="",n=!0){return Ze.getLogger().importMessages(e,t,n)}static getLastLogMessage(){const e=Ze.getLogger().ringBuffer;return e?e.getLastLogMessage():null}}var Ge;let Ye=Ge=class{dialogService;cfg;ref;constructor(e,t,n){this.dialogService=e,this.cfg=t,this.ref=n,Ze.info("Creating with %j",this.cfg)}static showAlert(e,t,n="Alert"){return e.open(Ge,{data:{message:t instanceof O?t:new O(t)},header:n})}};Ye=Ge=L([l({selector:"ngx-acute-common-alert",template:"<div><pre>{{cfg.data.message | async}}</pre></div>",standalone:!0,imports:[S]}),_("design:paramtypes",[Ne,be,we])],Ye);class Je{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Je,deps:[],target:e.ɵɵFactoryTarget.Component});static"ɵcmp"=e.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:Je,selector:"p-progressSpinner",inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},host:{classAttribute:"p-element"},ngImport:e,template:'\n <div class="p-progress-spinner" [ngStyle]="style" [ngClass]="styleClass" role="progressbar" [attr.aria-label]="ariaLabel" [attr.aria-busy]="true" [attr.data-pc-name]="\'progressspinner\'" [attr.data-pc-section]="\'root\'">\n <svg class="p-progress-spinner-svg" viewBox="25 25 50 50" [style.animation-duration]="animationDuration" [attr.data-pc-section]="\'root\'">\n <circle class="p-progress-spinner-circle" cx="50" cy="50" r="20" [attr.fill]="fill" [attr.stroke-width]="strokeWidth" stroke-miterlimit="10" />\n </svg>\n </div>\n ',isInline:!0,styles:['@layer primeng{.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],dependencies:[{kind:"directive",type:T.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:T.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None})}e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Je,decorators:[{type:l,args:[{selector:"p-progressSpinner",template:'\n <div class="p-progress-spinner" [ngStyle]="style" [ngClass]="styleClass" role="progressbar" [attr.aria-label]="ariaLabel" [attr.aria-busy]="true" [attr.data-pc-name]="\'progressspinner\'" [attr.data-pc-section]="\'root\'">\n <svg class="p-progress-spinner-svg" viewBox="25 25 50 50" [style.animation-duration]="animationDuration" [attr.data-pc-section]="\'root\'">\n <circle class="p-progress-spinner-circle" cx="50" cy="50" r="20" [attr.fill]="fill" [attr.stroke-width]="strokeWidth" stroke-miterlimit="10" />\n </svg>\n </div>\n ',changeDetection:f.OnPush,encapsulation:r.None,host:{class:"p-element"},styles:['@layer primeng{.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n']}]}],propDecorators:{styleClass:[{type:u}],style:[{type:u}],strokeWidth:[{type:u}],fill:[{type:u}],animationDuration:[{type:u}],ariaLabel:[{type:u}]}});class Ke{static"ɵfac"=e.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ke,deps:[],target:e.ɵɵFactoryTarget.NgModule});static"ɵmod"=e.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:e,type:Ke,declarations:[Je],imports:[I],exports:[Je]});static"ɵinj"=e.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ke,imports:[I]})}var Qe;e.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:e,type:Ke,decorators:[{type:d,args:[{imports:[I],exports:[Je],declarations:[Je]}]}]});let Xe=Qe=class{dialogService;cfg;constructor(e,t){this.dialogService=e,this.cfg=t}static createUiBlock(e,t="Please wait...",n){return e.open(Qe,{closable:!1,modal:!0,data:{message:t instanceof O?t:new O(t),subMessage:n}})}static async runPromiseWithUiBlock(e,t,n="Please wait...",i){const r=e.open(Qe,{closable:!1,modal:!0,data:{message:n instanceof O?n:new O(n),subMessage:i}});try{const e=await t;return r?.close(e),Ze.info("Blockui - Received %j - closing blocker ui and returning",e),e}catch(e){throw Ze.error("Caught error inside block ui dialog : %s - rethrowing",e,e),r?.close(),e}}};Xe=Qe=L([l({selector:"ngx-acute-common-block-ui",template:'<div>\n <div style="display: flex; flex-direction: column; justify-content: center">\n <h4>{{cfg.data.message | async}}</h4>\n <p-progressSpinner styleClass="w-2rem h-2rem" strokeWidth="5" fill="var(--surface-ground)" animationDuration=".8s"></p-progressSpinner>\n <div *ngIf="cfg.data.subMessage">\n {{cfg.data.subMessage}}\n </div>\n </div>\n</div>\n',standalone:!0,imports:[N,S,Ke]}),_("design:paramtypes",[Ne,be])],Xe);let et=class{transform(e){return e&&e.length?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}};et=L([w({name:"acuteCapitalize",standalone:!0})],et);class tt{constructor(){}static centToDollarFormat(e,t=2){return tt.dollarFormat(e/100)}static dollarFormat(e,t=2){return null==e?"Null":"$"+e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})}static dollarFormatNumberRange(e){let t="N/A";return e&&(t=e.low?tt.dollarFormat(e.low):" ^ ",t+=" - ",t+=e.high?tt.dollarFormat(e.high):" ^ "),t}}let nt=class{transform(e){return null==e?"Null":tt.dollarFormat(e)}};nt=L([w({name:"acuteDollars",standalone:!0})],nt);let it=class{transform(e,t){const n=[];for(const t of Object.keys(e))n.push({key:t,val:e[t]});return Ze.info("Map values : %j : %j",n,t),n}};it=L([w({name:"acuteMapValues",standalone:!0})],it);let rt=class{transform(e){return(new Intl.NumberFormat).format(e)}};var st;rt=L([w({name:"acuteNumberWithCommas",standalone:!0})],rt);let ot=st=class{static _orderByComparator(e,t){if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(String(e).toLowerCase()<String(t).toLowerCase())return-1;if(String(e).toLowerCase()>String(t).toLowerCase())return 1}else{if(parseFloat(e)<parseFloat(t))return-1;if(parseFloat(e)>parseFloat(t))return 1}return 0}transform(e,[t="+"]){if(!Array.isArray(e))return e;if(!Array.isArray(t)||Array.isArray(t)&&1==t.length){const n=Array.isArray(t)?t[0]:t,i="-"==n.substr(0,1);if(n&&"-"!=n&&"+"!=n){const t="+"==n.substr(0,1)||"-"==n.substr(0,1)?n.substr(1):n;return e.sort((function(e,n){return i?-st._orderByComparator(e[t],n[t]):st._orderByComparator(e[t],n[t])}))}return i?e.sort().reverse():e.sort()}return e.sort((function(e,n){for(let i=0;i<t.length;i++){const r="-"==t[i].substr(0,1),s="+"==t[i].substr(0,1)||"-"==t[i].substr(0,1)?t[i].substr(1):t[i],o=r?-st._orderByComparator(e[s],n[s]):st._orderByComparator(e[s],n[s]);if(0!=o)return o}return 0}))}};ot=st=L([w({name:"acuteOrderBy",pure:!1,standalone:!0})],ot);class at{static MAX_LEADING_ZEROS_FORMAT_LENGTH=1e3;static DEFAULT_SAFE_NUMBER_OPTIONS={ifNotNumber:null,returnValueForNull:null,returnValueForUndefined:null,preParseCharacterMapping:{",":""}};static toFixedDecimalNumber(e,t){const n=at.safeNumber(e);return null==n?n:at.safeNumber(n.toFixed(t))}static leadingZeros(e,t){const n=String(e);if(n.length<t){let e="0000";if(t>at.MAX_LEADING_ZEROS_FORMAT_LENGTH)throw"Cannot format number that large (max length is "+at.MAX_LEADING_ZEROS_FORMAT_LENGTH+")";for(;e.length<t;)e+=e;return(e+n).slice(-1*t)}return n}static between(e,t,n){const i=at.safeNumber(e),r=at.safeNumber(t),s=at.safeNumber(n);return i>=r&&i<=s||i>=s&&i<=r}static safeNumber(e,t=null,n){const i={ifNotNumber:t,returnValueForNull:n?t:null,returnValueForUndefined:n?t:void 0};return void 0===n&&(i.returnValueForUndefined=null),at.safeNumberOpt(e,i)}static safeNumberOpt(e,t){let n;const i=Object.assign({},at.DEFAULT_SAFE_NUMBER_OPTIONS,t||{});if(null===e)n=i.returnValueForNull;else if(void 0===e)n=i.returnValueForUndefined;else{const t=typeof e;if("number"==t)n=e;else if("string"==t){let t=e.trim();if(0===t.length)n=i.ifNotNumber;else{if(i.preParseCharacterMapping&&Object.keys(i.preParseCharacterMapping).length>0){let e="";for(let n=0;n<t.length;n++){const r=t.charAt(n);e+=void 0===i.preParseCharacterMapping[r]?r:i.preParseCharacterMapping[r]}t=e}n=Number.parseFloat(t)}}else Ze.warn("Value is of type %s, returning default",t),n=i.ifNotNumber;isNaN(n)&&(Ze.debug("Parsed string to NaN - using NaN value from param"),n=i.ifNotNumber)}return n}static numberCSVToList(e){let t=null;return e&&(t=e.split(",").map((e=>at.safeNumber(e.trim()))),t=t.filter((e=>"number"==typeof e&&!isNaN(e)))),t}static fitToWindow(e,t,n){let i=e;if(null===e||null===t||null===n||t<0||n<0||e<0)throw new Error("All values must be non-null and larger than 0");const r=Math.min(t,n),s=Math.max(t,n),o=s-r;if(s===r)i=s;else{for(;i<r;)i+=o;for(;i>s;)i-=o}return i}static groupNumbersIntoContiguousRanges(e,t=3){Be.notNullOrUndefined(e);const n=Object.assign([],e);n.sort(((e,t)=>e-t));const i=[],r=[];let s=0;for(let e=1;e<n.length;e++)if(n[e]===n[e-1]+1);else{if(s===e-1)i.push(n[e-1]);else{if(e-s<t)for(let t=s;t<e;t++)i.push(n[t]);else r.push({min:n[s],max:n[e-1]})}s=e}return{singles:i,ranges:r}}static distributeItemsEvenly(e,t){Be.notNullOrUndefined(e,"items"),Be.notNullOrUndefined(t,"buckets"),Be.true(e>0&&e===Math.floor(e),"Items integer larger than 0"),Be.true(t>0&&t===Math.floor(t),"Buckets integer larger than 0");const n=t/e,i=[];for(let e=0;e<t;e++)i.push(0);let r=0,s=e;for(;s>0;)i[Math.floor(r)%t]++,s--,r+=n;return i}static createRange(e,t,n=1){const i=[];let r=e;for(;r<t;)i.push(r),r+=n;return i}static percentFormatNumberRange(e){let t="N/A";return e&&(t=e.low?at.pctFormatted(e.low):" ^ ",t+=" - ",t+=e.high?at.pctFormatted(e.high):" ^ "),t}static pctFormatted(e,t=2){return null==e?"Null":e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})+"%"}}let lt=class{transform(e){return at.pctFormatted(e)}};lt=L([w({name:"acutePercent",standalone:!0})],lt);let ct=class{transform(e,t,n=""){return 1===(e=e||0)?`${e} ${t}`:n?`${e} ${n}`:`${e} ${t}s`}};ct=L([w({name:"acutePlural",standalone:!0})],ct);let ut=class{transform(e){return Math.round(e)}};ut=L([w({name:"acuteRound",standalone:!0})],ut);class dt extends Error{}class ht extends dt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class mt extends dt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class pt extends dt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ft extends dt{}class gt extends dt{constructor(e){super(`Invalid unit ${e}`)}}class yt extends dt{}class vt extends dt{constructor(){super("Zone is an abstract class")}}const bt="numeric",wt="short",Tt="long",Ct={year:bt,month:bt,day:bt},Et={year:bt,month:wt,day:bt},It={year:bt,month:wt,day:bt,weekday:wt},St={year:bt,month:Tt,day:bt},Nt={year:bt,month:Tt,day:bt,weekday:Tt},xt={hour:bt,minute:bt},Ot={hour:bt,minute:bt,second:bt},Dt={hour:bt,minute:bt,second:bt,timeZoneName:wt},kt={hour:bt,minute:bt,second:bt,timeZoneName:Tt},At={hour:bt,minute:bt,hourCycle:"h23"},Lt={hour:bt,minute:bt,second:bt,hourCycle:"h23"},_t={hour:bt,minute:bt,second:bt,hourCycle:"h23",timeZoneName:wt},Mt={hour:bt,minute:bt,second:bt,hourCycle:"h23",timeZoneName:Tt},Ft={year:bt,month:bt,day:bt,hour:bt,minute:bt},Rt={year:bt,month:bt,day:bt,hour:bt,minute:bt,second:bt},Vt={year:bt,month:wt,day:bt,hour:bt,minute:bt},Pt={year:bt,month:wt,day:bt,hour:bt,minute:bt,second:bt},zt={year:bt,month:wt,day:bt,weekday:wt,hour:bt,minute:bt},jt={year:bt,month:Tt,day:bt,hour:bt,minute:bt,timeZoneName:wt},Bt={year:bt,month:Tt,day:bt,hour:bt,minute:bt,second:bt,timeZoneName:wt},qt={year:bt,month:Tt,day:bt,weekday:Tt,hour:bt,minute:bt,timeZoneName:Tt},$t={year:bt,month:Tt,day:bt,weekday:Tt,hour:bt,minute:bt,second:bt,timeZoneName:Tt};class Ht{get type(){throw new vt}get name(){throw new vt}get ianaName(){return this.name}get isUniversal(){throw new vt}offsetName(e,t){throw new vt}formatOffset(e,t){throw new vt}offset(e){throw new vt}equals(e){throw new vt}get isValid(){throw new vt}}let Ut=null;class Wt extends Ht{static get instance(){return null===Ut&&(Ut=new Wt),Ut}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return di(e,t,n)}formatOffset(e,t){return fi(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Zt={};const Gt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Yt={};class Jt extends Ht{static create(e){return Yt[e]||(Yt[e]=new Jt(e)),Yt[e]}static resetCache(){Yt={},Zt={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Jt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return di(e,t,n,this.name)}formatOffset(e,t){return fi(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(i=this.name,Zt[i]||(Zt[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Zt[i]);var i;let[r,s,o,a,l,c,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){const{type:t,value:r}=n[e],s=Gt[t];"era"===t?i[s]=r:Hn(s)||(i[s]=parseInt(r,10))}return i}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,s,o,a,l,c,u]=i;return[o,r,s,a,l,c,u]}(n,t);"BC"===a&&(r=1-Math.abs(r));let d=+t;const h=d%1e3;return d-=h>=0?h:1e3+h,(ai({year:r,month:s,day:o,hour:24===l?0:l,minute:c,second:u,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Kt={};let Qt={};function Xt(e,t={}){const n=JSON.stringify([e,t]);let i=Qt[n];return i||(i=new Intl.DateTimeFormat(e,t),Qt[n]=i),i}let en={};let tn={};let nn=null;let rn={};function sn(e,t,n,i){const r=e.listingMode();return"error"===r?null:"en"===r?n(t):i(t)}class on{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:r,...s}=n;if(!t||Object.keys(s).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let i=en[n];return i||(i=new Intl.NumberFormat(e,t),en[n]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Xn(this.floor?Math.floor(e):ii(e,3),this.padTo)}}class an{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Jt.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=Xt(t,r)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ln{constructor(e,t,n){this.opts={style:"long",...n},!t&&Zn()&&(this.rtf=function(e,t={}){const{base:n,...i}=t,r=JSON.stringify([e,i]);let s=tn[r];return s||(s=new Intl.RelativeTimeFormat(e,t),tn[r]=s),s}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${r[e][0]}`;case-1:return n?"yesterday":`last ${r[e][0]}`;case 0:return n?"today":`this ${r[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),l=1===a,c=r[e],u=i?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return o?`${a} ${u} ago`:`in ${a} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const cn={firstDay:1,minimalDays:4,weekend:[6,7]};class un{static fromOpts(e){return un.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,r=!1){const s=e||On.defaultLocale,o=s||(r?"en-US":nn||(nn=(new Intl.DateTimeFormat).resolvedOptions().locale,nn)),a=t||On.defaultNumberingSystem,l=n||On.defaultOutputCalendar,c=Kn(i)||On.defaultWeekSettings;return new un(o,a,l,c,s)}static resetCache(){nn=null,Qt={},en={},tn={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return un.create(e,t,n,i)}constructor(e,t,n,i,r){const[s,o,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=Xt(e).resolvedOptions(),i=e}catch(r){const s=e.substring(0,n);t=Xt(s).resolvedOptions(),i=s}const{numberingSystem:r,calendar:s}=t;return[i,r,s]}}(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?un.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Kn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return sn(this,e,wi,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const i=Es.utc(2009,n,1);t.push(e(i))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[i][e]}))}weekdays(e,t=!1){return sn(this,e,Ii,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=function(e){const t=[];for(let n=1;n<=7;n++){const i=Es.utc(2016,11,13+n);t.push(e(i))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return sn(this,void 0,(()=>Si),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Es.utc(2016,11,13,9),Es.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return sn(this,e,Di,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Es.utc(-40,1,1),Es.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const i=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return i?i.value:null}numberFormatter(e={}){return new on(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new an(e,this.intl,t)}relFormatter(e={}){return new ln(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let i=Kt[n];return i||(i=new Intl.ListFormat(e,t),Kt[n]=i),i}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Gn()?function(e){let t=rn[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,rn[e]=t}return t}(this.locale):cn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let dn=null;class hn extends Ht{static get utcInstance(){return null===dn&&(dn=new hn(0)),dn}static instance(e){return 0===e?hn.utcInstance:new hn(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new hn(hi(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${fi(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${fi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return fi(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class mn extends Ht{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function pn(e,t){if(Hn(e)||null===e)return t;if(e instanceof Ht)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Wt.instance:"utc"===n||"gmt"===n?hn.utcInstance:hn.parseSpecifier(n)||Jt.create(e)}return Un(e)?hn.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new mn(e)}const fn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},gn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yn=fn.hanidec.replace(/[\[|\]]/g,"").split("");let vn={};function bn({numberingSystem:e},t=""){const n=e||"latn";return vn[n]||(vn[n]={}),vn[n][t]||(vn[n][t]=new RegExp(`${fn[n]}${t}`)),vn[n][t]}let wn,Tn=()=>Date.now(),Cn="system",En=null,In=null,Sn=null,Nn=60,xn=null;class On{static get now(){return Tn}static set now(e){Tn=e}static set defaultZone(e){Cn=e}static get defaultZone(){return pn(Cn,Wt.instance)}static get defaultLocale(){return En}static set defaultLocale(e){En=e}static get defaultNumberingSystem(){return In}static set defaultNumberingSystem(e){In=e}static get defaultOutputCalendar(){return Sn}static set defaultOutputCalendar(e){Sn=e}static get defaultWeekSettings(){return xn}static set defaultWeekSettings(e){xn=Kn(e)}static get twoDigitCutoffYear(){return Nn}static set twoDigitCutoffYear(e){Nn=e%100}static get throwOnInvalid(){return wn}static set throwOnInvalid(e){wn=e}static resetCaches(){un.resetCache(),Jt.resetCache(),Es.resetCache(),vn={}}}class Dn{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const kn=[0,31,59,90,120,151,181,212,243,273,304,334],An=[0,31,60,91,121,152,182,213,244,274,305,335];function Ln(e,t){return new Dn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _n(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return 0===r?7:r}function Mn(e,t,n){return n+(ri(e)?An:kn)[t-1]}function Fn(e,t){const n=ri(e)?An:kn,i=n.findIndex((e=>e<t));return{month:i+1,day:t-n[i]}}function Rn(e,t){return(e-t+7)%7+1}function Vn(e,t=4,n=1){const{year:i,month:r,day:s}=e,o=Mn(i,r,s),a=Rn(_n(i,r,s),n);let l,c=Math.floor((o-a+14-t)/7);return c<1?(l=i-1,c=ci(l,t,n)):c>ci(i,t,n)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:a,...gi(e)}}function Pn(e,t=4,n=1){const{weekYear:i,weekNumber:r,weekday:s}=e,o=Rn(_n(i,1,t),n),a=si(i);let l,c=7*r+s-o-7+t;c<1?(l=i-1,c+=si(l)):c>a?(l=i+1,c-=si(i)):l=i;const{month:u,day:d}=Fn(l,c);return{year:l,month:u,day:d,...gi(e)}}function zn(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:Mn(t,n,i),...gi(e)}}function jn(e){const{year:t,ordinal:n}=e,{month:i,day:r}=Fn(t,n);return{year:t,month:i,day:r,...gi(e)}}function Bn(e,t){if(!Hn(e.localWeekday)||!Hn(e.localWeekNumber)||!Hn(e.localWeekYear)){if(!Hn(e.weekday)||!Hn(e.weekNumber)||!Hn(e.weekYear))throw new ft("Cannot mix locale-based week fields with ISO-based week fields");return Hn(e.localWeekday)||(e.weekday=e.localWeekday),Hn(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Hn(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function qn(e){const t=Wn(e.year),n=Qn(e.month,1,12),i=Qn(e.day,1,oi(e.year,e.month));return t?n?!i&&Ln("day",e.day):Ln("month",e.month):Ln("year",e.year)}function $n(e){const{hour:t,minute:n,second:i,millisecond:r}=e,s=Qn(t,0,23)||24===t&&0===n&&0===i&&0===r,o=Qn(n,0,59),a=Qn(i,0,59),l=Qn(r,0,999);return s?o?a?!l&&Ln("millisecond",r):Ln("second",i):Ln("minute",n):Ln("hour",t)}function Hn(e){return void 0===e}function Un(e){return"number"==typeof e}function Wn(e){return"number"==typeof e&&e%1==0}function Zn(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Gn(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Yn(e,t,n){if(0!==e.length)return e.reduce(((e,i)=>{const r=[t(i),i];return e&&n(e[0],r[0])===e[0]?e:r}),null)[1]}function Jn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kn(e){if(null==e)return null;if("object"!=typeof e)throw new yt("Week settings must be an object");if(!Qn(e.firstDay,1,7)||!Qn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Qn(e,1,7))))throw new yt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Qn(e,t,n){return Wn(e)&&e>=t&&e<=n}function Xn(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function ei(e){return Hn(e)||null===e||""===e?void 0:parseInt(e,10)}function ti(e){return Hn(e)||null===e||""===e?void 0:parseFloat(e)}function ni(e){if(!Hn(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ii(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function ri(e){return e%4==0&&(e%100!=0||e%400==0)}function si(e){return ri(e)?366:365}function oi(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?ri(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ai(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function li(e,t,n){return-Rn(_n(e,1,t),n)+t-1}function ci(e,t=4,n=1){const i=li(e,t,n),r=li(e+1,t,n);return(si(e)-i+r)/7}function ui(e){return e>99?e:e>On.twoDigitCutoffYear?1900+e:2e3+e}function di(e,t,n,i=null){const r=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const o={timeZoneName:t,...s},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function hi(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function mi(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new yt(`Invalid unit value ${e}`);return t}function pi(e,t){const n={};for(const i in e)if(Jn(e,i)){const r=e[i];if(null==r)continue;n[t(i)]=mi(r)}return n}function fi(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${Xn(n,2)}:${Xn(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${Xn(n,2)}${Xn(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function gi(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const yi=["January","February","March","April","May","June","July","August","September","October","November","December"],vi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bi=["J","F","M","A","M","J","J","A","S","O","N","D"];function wi(e){switch(e){case"narrow":return[...bi];case"short":return[...vi];case"long":return[...yi];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ti=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ci=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ei=["M","T","W","T","F","S","S"];function Ii(e){switch(e){case"narrow":return[...Ei];case"short":return[...Ci];case"long":return[...Ti];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Si=["AM","PM"],Ni=["Before Christ","Anno Domini"],xi=["BC","AD"],Oi=["B","A"];function Di(e){switch(e){case"narrow":return[...Oi];case"short":return[...xi];case"long":return[...Ni];default:return null}}function ki(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const Ai={D:Ct,DD:Et,DDD:St,DDDD:Nt,t:xt,tt:Ot,ttt:Dt,tttt:kt,T:At,TT:Lt,TTT:_t,TTTT:Mt,f:Ft,ff:Vt,fff:jt,ffff:qt,F:Rt,FF:Pt,FFF:Bt,FFFF:$t};class Li{static create(e,t={}){return new Li(e,t)}static parseFormat(e){let t=null,n="",i=!1;const r=[];for(let s=0;s<e.length;s++){const o=e.charAt(s);"'"===o?(n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||o===t?n+=o:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(e){return Ai[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Xn(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(t,n)=>this.loc.extract(e,t,n),s=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>n?function(e){return Si[e.hour<12?0:1]}(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,i)=>n?function(e,t){return wi(t)[e.month-1]}(e,t):r(i?{month:t}:{month:t,day:"numeric"},"month"),l=(t,i)=>n?function(e,t){return Ii(t)[e.weekday-1]}(e,t):r(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),c=t=>{const n=Li.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},u=t=>n?function(e,t){return Di(t)[e.year<0?0:1]}(e,t):r({era:t},"era");return ki(Li.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?r({day:"numeric"},"day"):this.num(e.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(e.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(e.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=Li.parseFormat(t),r=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return ki(i,(e=>t=>{const i=n(t);return i?this.num(e.get(i),t.length):t})(e.shiftTo(...r.map(n).filter((e=>e)))))}}const _i=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Mi(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Fi(...e){return t=>e.reduce((([e,n,i],r)=>{const[s,o,a]=r(t,i);return[{...e,...s},o||n,a]}),[{},null,1]).slice(0,2)}function Ri(e,...t){if(null==e)return[null,null];for(const[n,i]of t){const t=n.exec(e);if(t)return i(t)}return[null,null]}function Vi(...e){return(t,n)=>{const i={};let r;for(r=0;r<e.length;r++)i[e[r]]=ei(t[n+r]);return[i,null,n+r]}}const Pi=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,zi=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ji=RegExp(`${zi.source}${`(?:${Pi.source}?(?:\\[(${_i.source})\\])?)?`}`),Bi=RegExp(`(?:T${ji.source})?`),qi=Vi("weekYear","weekNumber","weekDay"),$i=Vi("year","ordinal"),Hi=RegExp(`${zi.source} ?(?:${Pi.source}|(${_i.source}))?`),Ui=RegExp(`(?: ${Hi.source})?`);function Wi(e,t,n){const i=e[t];return Hn(i)?n:ei(i)}function Zi(e,t){return[{hours:Wi(e,t,0),minutes:Wi(e,t+1,0),seconds:Wi(e,t+2,0),milliseconds:ni(e[t+3])},null,t+4]}function Gi(e,t){const n=!e[t]&&!e[t+1],i=hi(e[t+1],e[t+2]);return[{},n?null:hn.instance(i),t+3]}function Yi(e,t){return[{},e[t]?Jt.create(e[t]):null,t+1]}const Ji=RegExp(`^T?${zi.source}$`),Ki=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Qi(e){const[t,n,i,r,s,o,a,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:h(ti(n)),months:h(ti(i)),weeks:h(ti(r)),days:h(ti(s)),hours:h(ti(o)),minutes:h(ti(a)),seconds:h(ti(l),"-0"===l),milliseconds:h(ni(c),d)}]}const Xi={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function er(e,t,n,i,r,s,o){const a={year:2===t.length?ui(ei(t)):ei(t),month:vi.indexOf(n)+1,day:ei(i),hour:ei(r),minute:ei(s)};return o&&(a.second=ei(o)),e&&(a.weekday=e.length>3?Ti.indexOf(e)+1:Ci.indexOf(e)+1),a}const tr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nr(e){const[,t,n,i,r,s,o,a,l,c,u,d]=e,h=er(t,r,i,n,s,o,a);let m;return m=l?Xi[l]:c?0:hi(u,d),[h,new hn(m)]}const ir=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rr=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function or(e){const[,t,n,i,r,s,o,a]=e;return[er(t,r,i,n,s,o,a),hn.utcInstance]}function ar(e){const[,t,n,i,r,s,o,a]=e;return[er(t,a,n,i,r,s,o),hn.utcInstance]}const lr=Mi(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bi),cr=Mi(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Bi),ur=Mi(/(\d{4})-?(\d{3})/,Bi),dr=Mi(ji),hr=Fi((function(e,t){return[{year:Wi(e,t),month:Wi(e,t+1,1),day:Wi(e,t+2,1)},null,t+3]}),Zi,Gi,Yi),mr=Fi(qi,Zi,Gi,Yi),pr=Fi($i,Zi,Gi,Yi),fr=Fi(Zi,Gi,Yi);const gr=Fi(Zi);const yr=Mi(/(\d{4})-(\d\d)-(\d\d)/,Ui),vr=Mi(Hi),br=Fi(Zi,Gi,Yi);const wr="Invalid Duration",Tr={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Cr={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Tr},Er=365.2425,Ir=30.436875,Sr={years:{quarters:4,months:12,weeks:52.1775,days:Er,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:Ir,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Tr},Nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],xr=Nr.slice(0).reverse();function Or(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ar(i)}function Dr(e,t){let n=t.milliseconds??0;for(const i of xr.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function kr(e,t){const n=Dr(e,t)<0?-1:1;Nr.reduceRight(((i,r)=>{if(Hn(t[r]))return i;if(i){const s=t[i]*n,o=e[r][i],a=Math.floor(s/o);t[r]+=a*n,t[i]-=a*o*n}return r}),null),Nr.reduce(((n,i)=>{if(Hn(t[i]))return n;if(n){const r=t[n]%1;t[n]-=r,t[i]+=r*e[n][i]}return i}),null)}class Ar{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Sr:Cr;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||un.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Ar.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new yt("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ar({values:pi(e,Ar.normalizeUnit),loc:un.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Un(e))return Ar.fromMillis(e);if(Ar.isDuration(e))return e;if("object"==typeof e)return Ar.fromObject(e);throw new yt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Ri(e,[Ki,Qi])}(e);return n?Ar.fromObject(n,t):Ar.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Ri(e,[Ji,gr])}(e);return n?Ar.fromObject(n,t):Ar.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new yt("need to specify a reason the Duration is invalid");const n=e instanceof Dn?e:new Dn(e,t);if(On.throwOnInvalid)throw new pt(n);return new Ar({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new gt(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Li.create(this.loc,n).formatDurationFromString(this,e):wr}toHuman(e={}){if(!this.isValid)return wr;const t=Nr.map((t=>{const n=this.values[t];return Hn(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ii(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return Es.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Dr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ar.fromDurationLike(e),n={};for(const e of Nr)(Jn(t.values,e)||Jn(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Or(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Ar.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=mi(e(this.values[n],n));return Or(this,{values:t},!0)}get(e){return this[Ar.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Or(this,{values:{...this.values,...pi(e,Ar.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return Or(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return kr(this.matrix,e),Or(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Or(this,{values:function(e){const t={};for(const[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ar.normalizeUnit(e)));const t={},n={},i=this.toObject();let r;for(const s of Nr)if(e.indexOf(s)>=0){r=s;let e=0;for(const t in n)e+=this.matrix[t][s]*n[t],n[t]=0;Un(i[s])&&(e+=i[s]);const o=Math.trunc(e);t[s]=o,n[s]=(1e3*e-1e3*o)/1e3}else Un(i[s])&&(n[s]=i[s]);for(const e in n)0!==n[e]&&(t[r]+=e===r?n[e]:n[e]/this.matrix[r][e]);return kr(this.matrix,t),Or(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Or(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const i of Nr)if(t=this.values[i],n=e.values[i],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Lr="Invalid Interval";class _r{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new yt("need to specify a reason the Interval is invalid");const n=e instanceof Dn?e:new Dn(e,t);if(On.throwOnInvalid)throw new mt(n);return new _r({invalid:n})}static fromDateTimes(e,t){const n=Is(e),i=Is(t),r=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?_r.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:_r.invalid("missing or invalid end"):_r.invalid("missing or invalid start")}(n,i);return null==r?new _r({start:n,end:i}):r}static after(e,t){const n=Ar.fromDurationLike(t),i=Is(e);return _r.fromDateTimes(i,i.plus(n))}static before(e,t){const n=Ar.fromDurationLike(t),i=Is(e);return _r.fromDateTimes(i.minus(n),i)}static fromISO(e,t){const[n,i]=(e||"").split("/",2);if(n&&i){let e,r,s,o;try{e=Es.fromISO(n,t),r=e.isValid}catch(i){r=!1}try{s=Es.fromISO(i,t),o=s.isValid}catch(i){o=!1}if(r&&o)return _r.fromDateTimes(e,s);if(r){const n=Ar.fromISO(i,t);if(n.isValid)return _r.after(e,n)}else if(o){const e=Ar.fromISO(n,t);if(e.isValid)return _r.before(s,e)}}return _r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return i=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?_r.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Is).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:i}=this,r=0;for(;i<this.e;){const e=t[r]||this.e,s=+e>+this.e?this.e:e;n.push(_r.fromDateTimes(i,s)),i=s,r+=1}return n}splitBy(e){const t=Ar.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:i}=this,r=1;const s=[];for(;i<this.e;){const e=this.start.plus(t.mapUnits((e=>e*r)));n=+e>+this.e?this.e:e,s.push(_r.fromDateTimes(i,n)),i=n,r+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:_r.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return _r.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const i=[],r=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),s=Array.prototype.concat(...r).sort(((e,t)=>e.time-t.time));for(const e of s)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&i.push(_r.fromDateTimes(t,e.time)),t=null);return _r.merge(i)}difference(...e){return _r.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ct,t={}){return this.isValid?Li.create(this.s.loc.clone(t),e).formatInterval(this):Lr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Lr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Lr}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Lr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ar.invalid(this.invalidReason)}mapEndpoints(e){return _r.fromDateTimes(e(this.s),e(this.e))}}class Mr{static hasDST(e=On.defaultZone){const t=Es.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Jt.isValidZone(e)}static normalizeZone(e){return pn(e,On.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||un.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||un.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||un.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||un.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||un.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||un.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||un.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return un.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return un.create(t,null,"gregory").eras(e)}static features(){return{relative:Zn(),localeWeek:Gn()}}}function Fr(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Ar.fromMillis(i).as("days"))}function Rr(e,t,n,i){let[r,s,o,a]=function(e,t,n){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Fr(e,t);return(n-n%7)/7}],["days",Fr]],r={},s=e;let o,a;for(const[l,c]of i)n.indexOf(l)>=0&&(o=l,r[l]=c(e,t),a=s.plus(r),a>t?(r[l]--,(e=s.plus(r))>t&&(a=e,r[l]--,e=s.plus(r))):e=a);return[e,r,a,o]}(e,t,n);const l=t-r,c=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===c.length&&(o<t&&(o=r.plus({[a]:1})),o!==r&&(s[a]=(s[a]||0)+l/(o-r)));const u=Ar.fromObject(s,i);return c.length>0?Ar.fromMillis(l,i).shiftTo(...c).plus(u):u}function Vr(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(-1!==e[n].search(fn.hanidec))t+=yn.indexOf(e[n]);else for(const e in gn){const[n,r]=gn[e];i>=n&&i<=r&&(t+=i-n)}}return parseInt(t,10)}return t}(e))}}const Pr=`[ ${String.fromCharCode(160)}]`,zr=new RegExp(Pr,"g");function jr(e){return e.replace(/\./g,"\\.?").replace(zr,Pr)}function Br(e){return e.replace(/\./g,"").replace(zr," ").toLowerCase()}function qr(e,t){return null===e?null:{regex:RegExp(e.map(jr).join("|")),deser:([n])=>e.findIndex((e=>Br(n)===Br(e)))+t}}function $r(e,t){return{regex:e,deser:([,e,t])=>hi(e,t),groups:t}}function Hr(e){return{regex:e,deser:([e])=>e}}const Ur={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Wr=null;function Zr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=Jr(Li.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}class Gr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Zr(Li.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const n=bn(t),i=bn(t,"{2}"),r=bn(t,"{3}"),s=bn(t,"{4}"),o=bn(t,"{6}"),a=bn(t,"{1,2}"),l=bn(t,"{1,3}"),c=bn(t,"{1,6}"),u=bn(t,"{1,9}"),d=bn(t,"{2,4}"),h=bn(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return m(p);switch(p.val){case"G":return qr(t.eras("short"),0);case"GG":return qr(t.eras("long"),0);case"y":return Vr(c);case"yy":case"kk":return Vr(d,ui);case"yyyy":case"kkkk":return Vr(s);case"yyyyy":return Vr(h);case"yyyyyy":return Vr(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Vr(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Vr(i);case"MMM":return qr(t.months("short",!0),1);case"MMMM":return qr(t.months("long",!0),1);case"LLL":return qr(t.months("short",!1),1);case"LLLL":return qr(t.months("long",!1),1);case"o":case"S":return Vr(l);case"ooo":case"SSS":return Vr(r);case"u":return Hr(u);case"uu":return Hr(a);case"uuu":case"E":case"c":return Vr(n);case"a":return qr(t.meridiems(),0);case"EEE":return qr(t.weekdays("short",!1),1);case"EEEE":return qr(t.weekdays("long",!1),1);case"ccc":return qr(t.weekdays("short",!0),1);case"cccc":return qr(t.weekdays("long",!0),1);case"Z":case"ZZ":return $r(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return $r(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return Hr(/[a-z_+-/]{1,256}?/i);case" ":return Hr(/[^\S\n\r]/);default:return m(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),this.disqualifyingUnit=this.units.find((e=>e.invalidReason)),!this.disqualifyingUnit){const[e,t]=[`^${(n=this.units).map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,n];this.regex=RegExp(e,"i"),this.handlers=t}var n}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const i=e.match(t);if(i){const e={};let t=1;for(const r in n)if(Jn(n,r)){const s=n[r],o=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(i.slice(t,t+o))),t+=o}return[i,e]}return[i,{}]}(e,this.regex,this.handlers),[i,r,s]=n?function(e){let t,n=null;return Hn(e.z)||(n=Jt.create(e.z)),Hn(e.Z)||(n||(n=new hn(e.Z)),t=e.Z),Hn(e.q)||(e.M=3*(e.q-1)+1),Hn(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Hn(e.u)||(e.S=ni(e.u)),[Object.keys(e).reduce(((t,n)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return i&&(t[i]=e[n]),t}),{}),n,t]}(n):[null,null,void 0];if(Jn(n,"a")&&Jn(n,"H"))throw new ft("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:r,specificOffset:s}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Yr(e,t,n){return new Gr(e,n).explainFromTokens(t)}function Jr(e,t){if(!e)return null;const n=Li.create(t,e).dtFormatter((Wr||(Wr=Es.fromMillis(1555555555555)),Wr)),i=n.formatToParts(),r=n.resolvedOptions();return i.map((t=>function(e,t,n){const{type:i,value:r}=e;if("literal"===i){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const s=t[i];let o=i;"hour"===i&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let a=Ur[o];if("object"==typeof a&&(a=a[s]),a)return{literal:!1,val:a}}(t,e,r)))}const Kr="Invalid DateTime",Qr=864e13;function Xr(e){return new Dn("unsupported zone",`the zone "${e.name}" is not supported`)}function es(e){return null===e.weekData&&(e.weekData=Vn(e.c)),e.weekData}function ts(e){return null===e.localWeekData&&(e.localWeekData=Vn(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function ns(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Es({...n,...t,old:n})}function is(e,t,n){let i=e-60*t*1e3;const r=n.offset(i);if(t===r)return[i,t];i-=60*(r-t)*1e3;const s=n.offset(i);return r===s?[i,r]:[e-60*Math.min(r,s)*1e3,Math.max(r,s)]}function rs(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ss(e,t,n){return is(ai(e),t,n)}function os(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s={...e.c,year:i,month:r,day:Math.min(e.c.day,oi(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=Ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=ai(s);let[l,c]=is(a,n,e.zone);return 0!==o&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function as(e,t,n,i,r,s){const{setZone:o,zone:a}=n;if(e&&0!==Object.keys(e).length||t){const i=t||a,r=Es.fromObject(e,{...n,zone:i,specificOffset:s});return o?r:r.setZone(a)}return Es.invalid(new Dn("unparsable",`the input "${r}" can't be parsed as ${i}`))}function ls(e,t,n=!0){return e.isValid?Li.create(un.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function cs(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=Xn(e.c.year,n?6:4),t?(i+="-",i+=Xn(e.c.month),i+="-",i+=Xn(e.c.day)):(i+=Xn(e.c.month),i+=Xn(e.c.day)),i}function us(e,t,n,i,r,s){let o=Xn(e.c.hour);return t?(o+=":",o+=Xn(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=":")):o+=Xn(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=Xn(e.c.second),0===e.c.millisecond&&i||(o+=".",o+=Xn(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!s?o+="Z":e.o<0?(o+="-",o+=Xn(Math.trunc(-e.o/60)),o+=":",o+=Xn(Math.trunc(-e.o%60))):(o+="+",o+=Xn(Math.trunc(e.o/60)),o+=":",o+=Xn(Math.trunc(e.o%60)))),s&&(o+="["+e.zone.ianaName+"]"),o}const ds={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},hs={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ms={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ps=["year","month","day","hour","minute","second","millisecond"],fs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],gs=["year","ordinal","hour","minute","second","millisecond"];function ys(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new gt(e);return t}(e)}}function vs(e,t){const n=pn(t.zone,On.defaultZone);if(!n.isValid)return Es.invalid(Xr(n));const i=un.fromObject(t);let r,s;if(Hn(e.year))r=On.now();else{for(const t of ps)Hn(e[t])&&(e[t]=ds[t]);const t=qn(e)||$n(e);if(t)return Es.invalid(t);const i=function(e){return Cs[e]||(void 0===Ts&&(Ts=On.now()),Cs[e]=e.offset(Ts)),Cs[e]}(n);[r,s]=ss(e,i,n)}return new Es({ts:r,zone:n,loc:i,o:s})}function bs(e,t,n){const i=!!Hn(n.round)||n.round,r=(e,r)=>{e=ii(e,i||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,r)},s=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(s(n.unit),n.unit);for(const e of n.units){const t=s(e);if(Math.abs(t)>=1)return r(t,e)}return r(e>t?-0:0,n.units[n.units.length-1])}function ws(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let Ts,Cs={};class Es{constructor(e){const t=e.zone||On.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Dn("invalid input"):null)||(t.isValid?null:Xr(t));this.ts=Hn(e.ts)?On.now():e.ts;let i=null,r=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,r]=[e.old.c,e.old.o];else{const s=Un(e.o)&&!e.old?e.o:t.offset(this.ts);i=rs(this.ts,s),n=Number.isNaN(i.year)?new Dn("invalid input"):null,i=n?null:i,r=n?null:s}}this._zone=t,this.loc=e.loc||un.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new Es({})}static local(){const[e,t]=ws(arguments),[n,i,r,s,o,a,l]=t;return vs({year:n,month:i,day:r,hour:s,minute:o,second:a,millisecond:l},e)}static utc(){const[e,t]=ws(arguments),[n,i,r,s,o,a,l]=t;return e.zone=hn.utcInstance,vs({year:n,month:i,day:r,hour:s,minute:o,second:a,millisecond:l},e)}static fromJSDate(e,t={}){const n=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);var i;if(Number.isNaN(n))return Es.invalid("invalid input");const r=pn(t.zone,On.defaultZone);return r.isValid?new Es({ts:n,zone:r,loc:un.fromObject(t)}):Es.invalid(Xr(r))}static fromMillis(e,t={}){if(Un(e))return e<-Qr||e>Qr?Es.invalid("Timestamp out of range"):new Es({ts:e,zone:pn(t.zone,On.defaultZone),loc:un.fromObject(t)});throw new yt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Un(e))return new Es({ts:1e3*e,zone:pn(t.zone,On.defaultZone),loc:un.fromObject(t)});throw new yt("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=pn(t.zone,On.defaultZone);if(!n.isValid)return Es.invalid(Xr(n));const i=un.fromObject(t),r=pi(e,ys),{minDaysInFirstWeek:s,startOfWeek:o}=Bn(r,i),a=On.now(),l=Hn(t.specificOffset)?n.offset(a):t.specificOffset,c=!Hn(r.ordinal),u=!Hn(r.year),d=!Hn(r.month)||!Hn(r.day),h=u||d,m=r.weekYear||r.weekNumber;if((h||c)&&m)throw new ft("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new ft("Can't mix ordinal dates with month/day");const p=m||r.weekday&&!h;let f,g,y=rs(a,l);p?(f=fs,g=hs,y=Vn(y,s,o)):c?(f=gs,g=ms,y=zn(y)):(f=ps,g=ds);let v=!1;for(const e of f){Hn(r[e])?r[e]=v?g[e]:y[e]:v=!0}const b=p?function(e,t=4,n=1){const i=Wn(e.weekYear),r=Qn(e.weekNumber,1,ci(e.weekYear,t,n)),s=Qn(e.weekday,1,7);return i?r?!s&&Ln("weekday",e.weekday):Ln("week",e.weekNumber):Ln("weekYear",e.weekYear)}(r,s,o):c?function(e){const t=Wn(e.year),n=Qn(e.ordinal,1,si(e.year));return t?!n&&Ln("ordinal",e.ordinal):Ln("year",e.year)}(r):qn(r),w=b||$n(r);if(w)return Es.invalid(w);const T=p?Pn(r,s,o):c?jn(r):r,[C,E]=ss(T,l,n),I=new Es({ts:C,zone:n,o:E,loc:i});return r.weekday&&h&&e.weekday!==I.weekday?Es.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${I.toISO()}`):I.isValid?I:Es.invalid(I.invalid)}static fromISO(e,t={}){const[n,i]=function(e){return Ri(e,[lr,hr],[cr,mr],[ur,pr],[dr,fr])}(e);return as(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=function(e){return Ri(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[tr,nr])}(e);return as(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=function(e){return Ri(e,[ir,or],[rr,or],[sr,ar])}(e);return as(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Hn(e)||Hn(t))throw new yt("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=n,s=un.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[o,a,l,c]=function(e,t,n){const{result:i,zone:r,specificOffset:s,invalidReason:o}=Yr(e,t,n);return[i,r,s,o]}(s,e,t);return c?Es.invalid(c):as(o,a,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return Es.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=function(e){return Ri(e,[yr,hr],[vr,br])}(e);return as(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new yt("need to specify a reason the DateTime is invalid");const n=e instanceof Dn?e:new Dn(e,t);if(On.throwOnInvalid)throw new ht(n);return new Es({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Jr(e,un.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Zr(Li.parseFormat(e),un.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){Ts=void 0,Cs={}}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?es(this).weekYear:NaN}get weekNumber(){return this.isValid?es(this).weekNumber:NaN}get weekday(){return this.isValid?es(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ts(this).weekday:NaN}get localWeekNumber(){return this.isValid?ts(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ts(this).weekYear:NaN}get ordinal(){return this.isValid?zn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Mr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Mr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Mr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Mr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=ai(this.c),i=this.zone.offset(n-e),r=this.zone.offset(n+e),s=this.zone.offset(n-i*t),o=this.zone.offset(n-r*t);if(s===o)return[this];const a=n-s*t,l=n-o*t,c=rs(a,s),u=rs(l,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[ns(this,{ts:a}),ns(this,{ts:l})]:[this]}get isInLeapYear(){return ri(this.year)}get daysInMonth(){return oi(this.year,this.month)}get daysInYear(){return this.isValid?si(this.year):NaN}get weeksInWeekYear(){return this.isValid?ci(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ci(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=Li.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(hn.instance(e),t)}toLocal(){return this.setZone(On.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=pn(e,On.defaultZone)).equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[i]=ss(n,t,e)}return ns(this,{ts:i,zone:e})}return Es.invalid(Xr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return ns(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=pi(e,ys),{minDaysInFirstWeek:n,startOfWeek:i}=Bn(t,this.loc),r=!Hn(t.weekYear)||!Hn(t.weekNumber)||!Hn(t.weekday),s=!Hn(t.ordinal),o=!Hn(t.year),a=!Hn(t.month)||!Hn(t.day),l=o||a,c=t.weekYear||t.weekNumber;if((l||s)&&c)throw new ft("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new ft("Can't mix ordinal dates with month/day");let u;r?u=Pn({...Vn(this.c,n,i),...t},n,i):Hn(t.ordinal)?(u={...this.toObject(),...t},Hn(t.day)&&(u.day=Math.min(oi(u.year,u.month),u.day))):u=jn({...zn(this.c),...t});const[d,h]=ss(u,this.o,this.zone);return ns(this,{ts:d,o:h})}plus(e){if(!this.isValid)return this;return ns(this,os(this,Ar.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return ns(this,os(this,Ar.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=Ar.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Li.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Kr}toLocaleString(e=Ct,t={}){return this.isValid?Li.create(this.loc.clone(t),e).formatDateTime(this):Kr}toLocaleParts(e={}){return this.isValid?Li.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s="extended"===e;let o=cs(this,s);return o+="T",o+=us(this,s,t,n,i,r),o}toISODate({format:e="extended"}={}){return this.isValid?cs(this,"extended"===e):null}toISOWeekDate(){return ls(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:r=!1,format:s="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+us(this,"extended"===s,t,e,n,r)}toRFC2822(){return ls(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ls(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?cs(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),ls(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Kr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ar.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=(a=t,Array.isArray(a)?a:[a]).map(Ar.normalizeUnit),s=e.valueOf()>this.valueOf(),o=Rr(s?this:e,s?e:this,r,i);var a;return s?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(Es.now(),e,t)}until(e){return this.isValid?_r.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,n)<=i&&i<=r.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Es.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(i=e.unit,r=void 0),bs(t,this.plus(n),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?bs(e.base||Es.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Es.isDateTime))throw new yt("min requires all arguments be DateTimes");return Yn(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(Es.isDateTime))throw new yt("max requires all arguments be DateTimes");return Yn(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:r=null}=n;return Yr(un.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Es.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:i=null}=t,r=un.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Gr(r,e)}static fromFormatParser(e,t,n={}){if(Hn(e)||Hn(t))throw new yt("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:r=null}=n,s=un.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!s.equals(t.locale))throw new yt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);const{result:o,zone:a,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?Es.invalid(c):as(o,a,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return Ct}static get DATE_MED(){return Et}static get DATE_MED_WITH_WEEKDAY(){return It}static get DATE_FULL(){return St}static get DATE_HUGE(){return Nt}static get TIME_SIMPLE(){return xt}static get TIME_WITH_SECONDS(){return Ot}static get TIME_WITH_SHORT_OFFSET(){return Dt}static get TIME_WITH_LONG_OFFSET(){return kt}static get TIME_24_SIMPLE(){return At}static get TIME_24_WITH_SECONDS(){return Lt}static get TIME_24_WITH_SHORT_OFFSET(){return _t}static get TIME_24_WITH_LONG_OFFSET(){return Mt}static get DATETIME_SHORT(){return Ft}static get DATETIME_SHORT_WITH_SECONDS(){return Rt}static get DATETIME_MED(){return Vt}static get DATETIME_MED_WITH_SECONDS(){return Pt}static get DATETIME_MED_WITH_WEEKDAY(){return zt}static get DATETIME_FULL(){return jt}static get DATETIME_FULL_WITH_SECONDS(){return Bt}static get DATETIME_HUGE(){return qt}static get DATETIME_HUGE_WITH_SECONDS(){return $t}}function Is(e){if(Es.isDateTime(e))return e;if(e&&e.valueOf&&Un(e.valueOf()))return Es.fromJSDate(e);if(e&&"object"==typeof e)return Es.fromObject(e);throw new yt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class Ss{static formatMsDuration(e,t=!1){const n=Math.floor(e%1e3),i=Math.floor(e/1e3)%60,r=Math.floor(e/6e4)%60,s=Math.floor(e/36e5)%24,o=Math.floor(e/864e5),a=at.leadingZeros;let l=a(s,2)+"h"+a(r,2)+"m";return l+=t?a(i,2)+"."+a(n,3)+"s":a(i,2)+"s",o>0&&(l=o+"d"+l),l}static colonFormatMsDuration(e,t=!1){const n=e%1e3,i=Math.floor(e/1e3)%60,r=Math.floor(e/6e4)%60,s=Math.floor(e/36e5),o=at.leadingZeros;let a=o(s,2)+":"+o(r,2)+":";return a+=t?o(i,2)+"."+o(n,3):o(i,2),a}static daysBetween(e,t){return Es.fromJSDate(e).diff(Es.fromJSDate(t)).days}static createSteps(e,t,n,i,r){let s=Es.fromMillis(e).setZone(n);const o=Es.fromMillis(t),a=[];for(;s<o;)a.push(s.toFormat(i)),s=s.plus(r);return a}}let Ns=class{transform(e){return Ss.formatMsDuration((new Date).getTime()-at.safeNumber(e))}};Ns=L([w({name:"acuteTimeAgo",standalone:!0})],Ns);let xs=class{transform(e){if(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${this.initZero(t)}${t}:${this.initZero(n)}${n}`}return"00:00"}initZero(e){return e<10?"0":""}};var Os;xs=L([w({name:"acuteTiming",standalone:!0})],xs);let Ds=class{static{Os=this}router;static IS_PROD=!0;constructor(e){this.router=e}initialize(){this.onRouteChange();try{const e="https://www.googletagmanager.com/gtag/js?id=",t=document.createElement("script");t.async=!0;const n=Os.IS_PROD?"G-7D5BBK4K8X":null;t.src=`${e}${n}`,document.head.appendChild(t);const i=document.createElement("script");i.innerHTML=`\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '${n}', {'send_page_view': false});`,document.head.appendChild(i)}catch(e){Ze.error("Error adding Google Analytics",e,e)}}onRouteChange(){const e=Os.IS_PROD?"G-7D5BBK4K8X":null;this.router.events.subscribe((t=>{t instanceof D&&(gtag("config",e,{page_path:t.urlAfterRedirects}),Ze.info("Sending Google Analytics tracking for: ",t.urlAfterRedirects),Ze.info("Google Analytics property ID: ",e))}))}event(e,t,n,i){gtag("event",e,{...t&&{event_category:t},...n&&{event_label:n},...i&&{value:i}})}};Ds=Os=L([n({providedIn:"root"}),_("design:paramtypes",[k])],Ds);class ks{logLevel;rethrow;constructor(e=Oe,t=!1){this.logLevel=e,this.rethrow=t}handleError(e,t,n,i){if(Ze.logByLevel(this.logLevel,"Graphql failed : %s : %s : Anon-%s : %j",e,t,i,n),this.rethrow)throw e}}class As{static safeStringifyErr(e,t=!0){let n="ERR WAS NULL";if(e)if(e.message)n=e.message;else try{n=JSON.stringify(e)}catch(t){Ze.error("Failed to json stringify: %s",t),n=String(e)}return t&&Ze.error("%s",n,e),n}static asErr(e){let t=null;return e&&(t=e instanceof Error?e:new Error("Force-Cast to error : "+String(e))),t}static fErr(e,...t){const n=qe.format(e,...t);return new Error(n)}static throwFormattedErr(e,...t){throw As.fErr(e,...t)}}class Ls extends Error{response;request;constructor(e,t){super(`${Ls.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,Ls.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Ls)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const _s=e=>e.toUpperCase(),Ms=e=>"function"==typeof e?e():e,Fs=(e,t)=>e.map(((e,n)=>[e,t[n]])),Rs=e=>{let t={};return e instanceof Headers?t=Vs(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):e&&(t=e),t},Vs=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t},Ps=e=>e instanceof Error?e:new Error(String(e)),zs=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then&&"catch"in e&&"function"==typeof e.catch&&"finally"in e&&"function"==typeof e.finally,js=e=>{throw new Error(`Unhandled case: ${String(e)}`)},Bs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function qs(e,t){if(!Boolean(e))throw new Error(t)}function $s(e,t){if(!Boolean(e))throw new Error("Unexpected invariant triggered.")}const Hs=/\r\n|[\n\r]/g;function Us(e,t){let n=0,i=1;for(const r of e.body.matchAll(Hs)){if("number"==typeof r.index||$s(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function Ws(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,l=t.column+a,c=`${e.name}:${o}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),d=u[r];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return c+Zs([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+Zs([[o-1+" |",u[r-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,u[r+1]]])}function Zs(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class Gs extends Error{constructor(e,...t){var n,i,r;const{nodes:s,source:o,positions:a,path:l,originalError:c,extensions:u}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=Ys(Array.isArray(s)?s:s?[s]:void 0);const d=Ys(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==d||null===(i=d[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==d?void 0:d.map((e=>e.start)),this.locations=a&&o?a.map((e=>Us(o,e))):null==d?void 0:d.map((e=>Us(e.source,e.start)));const h="object"==typeof(m=null==c?void 0:c.extensions)&&null!==m?null==c?void 0:c.extensions:void 0;var m;this.extensions=null!==(r=null!=u?u:h)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Gs):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+Ws((t=n.loc).source,Us(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Ws(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Ys(e){return void 0===e||0===e.length?void 0:e}function Js(e,t,n){return new Gs(`Syntax Error: ${n}`,{source:e,positions:[t]})}class Ks{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Qs{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Xs={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},eo=new Set(Object.keys(Xs));function to(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&eo.has(t)}var no,io,ro,so;function oo(e){return 9===e||32===e}function ao(e){return e>=48&&e<=57}function lo(e){return e>=97&&e<=122||e>=65&&e<=90}function co(e){return lo(e)||95===e}function uo(e){return lo(e)||ao(e)||95===e}function ho(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let t=0;t<e.length;++t){var s;const o=e[t],a=mo(o);a!==o.length&&(i=null!==(s=i)&&void 0!==s?s:t,r=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function mo(e){let t=0;for(;t<e.length&&oo(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(no||(no={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(io||(io={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(ro||(ro={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(so||(so={}));class po{constructor(e){const t=new Qs(so.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==so.EOF)do{if(e.next)e=e.next;else{const t=To(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===so.COMMENT);return e}}function fo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function go(e,t){return yo(e.charCodeAt(t))&&vo(e.charCodeAt(t+1))}function yo(e){return e>=55296&&e<=56319}function vo(e){return e>=56320&&e<=57343}function bo(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return so.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function wo(e,t,n,i,r){const s=e.line,o=1+n-e.lineStart;return new Qs(t,n,i,s,o,r)}function To(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return Co(e,r);case 33:return wo(e,so.BANG,r,r+1);case 36:return wo(e,so.DOLLAR,r,r+1);case 38:return wo(e,so.AMP,r,r+1);case 40:return wo(e,so.PAREN_L,r,r+1);case 41:return wo(e,so.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return wo(e,so.SPREAD,r,r+3);break;case 58:return wo(e,so.COLON,r,r+1);case 61:return wo(e,so.EQUALS,r,r+1);case 64:return wo(e,so.AT,r,r+1);case 91:return wo(e,so.BRACKET_L,r,r+1);case 93:return wo(e,so.BRACKET_R,r,r+1);case 123:return wo(e,so.BRACE_L,r,r+1);case 124:return wo(e,so.PIPE,r,r+1);case 125:return wo(e,so.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?Ao(e,r):So(e,r)}if(ao(t)||45===t)return Eo(e,r,t);if(co(t))return Lo(e,r);throw Js(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":fo(t)||go(n,r)?`Unexpected character: ${bo(e,r)}.`:`Invalid character: ${bo(e,r)}.`)}return wo(e,so.EOF,i,i)}function Co(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(10===e||13===e)break;if(fo(e))++r;else{if(!go(n,r))break;r+=2}}return wo(e,so.COMMENT,t,r,n.slice(t+1,r))}function Eo(e,t,n){const i=e.source.body;let r=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),ao(s))throw Js(e.source,r,`Invalid number, unexpected digit after 0: ${bo(e,r)}.`)}else r=Io(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=Io(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=Io(e,r,s),s=i.charCodeAt(r)),46===s||co(s))throw Js(e.source,r,`Invalid number, expected digit but got: ${bo(e,r)}.`);return wo(e,o?so.FLOAT:so.INT,t,r,i.slice(t,r))}function Io(e,t,n){if(!ao(n))throw Js(e.source,t,`Invalid number, expected digit but got: ${bo(e,t)}.`);const i=e.source.body;let r=t+1;for(;ao(i.charCodeAt(r));)++r;return r}function So(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,o="";for(;r<i;){const i=n.charCodeAt(r);if(34===i)return o+=n.slice(s,r),wo(e,so.STRING,t,r+1,o);if(92!==i){if(10===i||13===i)break;if(fo(i))++r;else{if(!go(n,r))throw Js(e.source,r,`Invalid character within String: ${bo(e,r)}.`);r+=2}}else{o+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?No(e,r):xo(e,r):ko(e,r);o+=t.value,r+=t.size,s=r}}throw Js(e.source,r,"Unterminated string.")}function No(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const e=n.charCodeAt(t+r++);if(125===e){if(r<5||!fo(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Do(e),i<0)break}throw Js(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function xo(e,t){const n=e.source.body,i=Oo(n,t+2);if(fo(i))return{value:String.fromCodePoint(i),size:6};if(yo(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=Oo(n,t+8);if(vo(e))return{value:String.fromCodePoint(i,e),size:12}}throw Js(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Oo(e,t){return Do(e.charCodeAt(t))<<12|Do(e.charCodeAt(t+1))<<8|Do(e.charCodeAt(t+2))<<4|Do(e.charCodeAt(t+3))}function Do(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ko(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Js(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ao(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,s=t+3,o=s,a="";const l=[];for(;s<i;){const i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){a+=n.slice(o,s),l.push(a);const i=wo(e,so.BLOCK_STRING,t,s+3,ho(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92!==i||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==i&&13!==i)if(fo(i))++s;else{if(!go(n,s))throw Js(e.source,s,`Invalid character within String: ${bo(e,s)}.`);s+=2}else a+=n.slice(o,s),l.push(a),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,a="",o=s,r=s;else a+=n.slice(o,s),o=s+1,s+=4}throw Js(e.source,s,"Unterminated string.")}function Lo(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!uo(n.charCodeAt(r)))break;++r}return wo(e,so.NAME,t,r,n.slice(t,r))}const _o=10,Mo=2;function Fo(e){return Ro(e,[])}function Ro(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Ro(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Mo)return"[Array]";const n=Math.min(_o,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(Ro(e[i],t));1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`);return"["+r.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>Mo)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=n.map((([e,n])=>e+": "+Ro(n,t)));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Vo=globalThis.process&&"production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Fo(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Po{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||qs(!1,`Body must be a string. Received: ${Fo(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||qs(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||qs(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class zo{constructor(e,t={}){const n=function(e){return Vo(e,Po)}(e)?e:new Po(e);this._lexer=new po(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(so.NAME);return this.node(e,{kind:ro.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ro.DOCUMENT,definitions:this.many(so.SOF,this.parseDefinition,so.EOF)})}parseDefinition(){if(this.peek(so.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===so.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Js(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(so.BRACE_L))return this.node(e,{kind:ro.OPERATION_DEFINITION,operation:no.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(so.NAME)&&(n=this.parseName()),this.node(e,{kind:ro.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(so.NAME);switch(e.value){case"query":return no.QUERY;case"mutation":return no.MUTATION;case"subscription":return no.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(so.PAREN_L,this.parseVariableDefinition,so.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ro.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(so.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(so.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(so.DOLLAR),this.node(e,{kind:ro.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ro.SELECTION_SET,selections:this.many(so.BRACE_L,this.parseSelection,so.BRACE_R)})}parseSelection(){return this.peek(so.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(so.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:ro.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(so.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(so.PAREN_L,t,so.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(so.COLON),this.node(t,{kind:ro.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(so.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(so.NAME)?this.node(e,{kind:ro.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ro.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ro.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ro.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case so.BRACKET_L:return this.parseList(e);case so.BRACE_L:return this.parseObject(e);case so.INT:return this.advanceLexer(),this.node(t,{kind:ro.INT,value:t.value});case so.FLOAT:return this.advanceLexer(),this.node(t,{kind:ro.FLOAT,value:t.value});case so.STRING:case so.BLOCK_STRING:return this.parseStringLiteral();case so.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ro.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ro.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ro.NULL});default:return this.node(t,{kind:ro.ENUM,value:t.value})}case so.DOLLAR:if(e){if(this.expectToken(so.DOLLAR),this._lexer.token.kind===so.NAME){const e=this._lexer.token.value;throw Js(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ro.STRING,value:e.value,block:e.kind===so.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ro.LIST,values:this.any(so.BRACKET_L,(()=>this.parseValueLiteral(e)),so.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ro.OBJECT,fields:this.any(so.BRACE_L,(()=>this.parseObjectField(e)),so.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(so.COLON),this.node(t,{kind:ro.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(so.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(so.AT),this.node(t,{kind:ro.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(so.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(so.BRACKET_R),t=this.node(e,{kind:ro.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(so.BANG)?this.node(e,{kind:ro.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ro.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(so.STRING)||this.peek(so.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(so.BRACE_L,this.parseOperationTypeDefinition,so.BRACE_R);return this.node(e,{kind:ro.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(so.COLON);const n=this.parseNamedType();return this.node(e,{kind:ro.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:ro.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:ro.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(so.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(so.BRACE_L,this.parseFieldDefinition,so.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(so.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:ro.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(so.PAREN_L,this.parseInputValueDef,so.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(so.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(so.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:ro.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:ro.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:ro.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(so.EQUALS)?this.delimitedMany(so.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:ro.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(so.BRACE_L,this.parseEnumValueDefinition,so.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:ro.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Js(this._lexer.source,this._lexer.token.start,`${jo(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:ro.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(so.BRACE_L,this.parseInputValueDef,so.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===so.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(so.BRACE_L,this.parseOperationTypeDefinition,so.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ro.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:ro.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ro.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ro.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ro.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ro.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ro.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(so.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:ro.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(so.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(io,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Ks(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Js(this._lexer.source,t.start,`Expected ${Bo(e)}, found ${jo(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==so.NAME||t.value!==e)throw Js(this._lexer.source,t.start,`Expected "${e}", found ${jo(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===so.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Js(this._lexer.source,t.start,`Unexpected ${jo(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==so.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Js(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function jo(e){const t=e.value;return Bo(e.kind)+(null!=t?` "${t}"`:"")}function Bo(e){return function(e){return e===so.BANG||e===so.DOLLAR||e===so.AMP||e===so.PAREN_L||e===so.PAREN_R||e===so.SPREAD||e===so.COLON||e===so.EQUALS||e===so.AT||e===so.BRACKET_L||e===so.BRACKET_R||e===so.BRACE_L||e===so.PIPE||e===so.BRACE_R}(e)?`"${e}"`:e}const qo=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function $o(e){return Ho[e.charCodeAt(0)]}const Ho=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Uo=Object.freeze({});function Wo(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Zo(e){return function(e,t,n=Xs){const i=new Map;for(const e of Object.values(ro))i.set(e,Wo(t,e));let r,s,o,a=Array.isArray(e),l=[e],c=-1,u=[],d=e;const h=[],m=[];do{c++;const e=c===l.length,y=e&&0!==u.length;if(e){if(s=0===m.length?void 0:h[h.length-1],d=o,o=m.pop(),y)if(a){d=d.slice();let e=0;for(const[t,n]of u){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of u)d[e]=t}c=r.index,l=r.keys,u=r.edits,a=r.inArray,r=r.prev}else if(o){if(s=a?c:l[c],d=o[s],null==d)continue;h.push(s)}let v;if(!Array.isArray(d)){var p,f;to(d)||qs(!1,`Invalid AST Node: ${Fo(d)}.`);const n=e?null===(p=i.get(d.kind))||void 0===p?void 0:p.leave:null===(f=i.get(d.kind))||void 0===f?void 0:f.enter;if(v=null==n?void 0:n.call(t,d,s,o,h,m),v===Uo)break;if(!1===v){if(!e){h.pop();continue}}else if(void 0!==v&&(u.push([s,v]),!e)){if(!to(v)){h.pop();continue}d=v}}var g;void 0===v&&y&&u.push([s,d]),e?h.pop():(r={inArray:a,index:c,keys:l,edits:u,prev:r},a=Array.isArray(d),l=a?d:null!==(g=n[d.kind])&&void 0!==g?g:[],c=-1,u=[],o&&m.push(o),o=d)}while(void 0!==r);return 0!==u.length?u[u.length-1][1]:e}(e,Go)}const Go={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Yo(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ko("(",Yo(e.variableDefinitions,", "),")"),n=Yo([e.operation,Yo([e.name,t]),Yo(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+Ko(" = ",n)+Ko(" ",Yo(i," "))},SelectionSet:{leave:({selections:e})=>Jo(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const s=Ko("",e,": ")+t;let o=s+Ko("(",Yo(n,", "),")");return o.length>80&&(o=s+Ko("(\n",Qo(Yo(n,"\n")),"\n)")),Yo([o,Yo(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ko(" ",Yo(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Yo(["...",Ko("on ",e),Yo(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${Ko("(",Yo(n,", "),")")} on ${t} ${Ko("",Yo(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every((e=>0===e.length||oo(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),c=a||l,u=!r||e.length>70||c||s||o;let d="";const h=r&&oo(e.charCodeAt(0));return(u&&!h||s)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(qo,$o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Yo(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Yo(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ko("(",Yo(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ko("",e,"\n")+Yo(["schema",Yo(t," "),Jo(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ko("",e,"\n")+Yo(["scalar",t,Yo(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Ko("",e,"\n")+Yo(["type",t,Ko("implements ",Yo(n," & ")),Yo(i," "),Jo(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>Ko("",e,"\n")+t+(Xo(n)?Ko("(\n",Qo(Yo(n,"\n")),"\n)"):Ko("(",Yo(n,", "),")"))+": "+i+Ko(" ",Yo(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>Ko("",e,"\n")+Yo([t+": "+n,Ko("= ",i),Yo(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Ko("",e,"\n")+Yo(["interface",t,Ko("implements ",Yo(n," & ")),Yo(i," "),Jo(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>Ko("",e,"\n")+Yo(["union",t,Yo(n," "),Ko("= ",Yo(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>Ko("",e,"\n")+Yo(["enum",t,Yo(n," "),Jo(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ko("",e,"\n")+Yo([t,Yo(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>Ko("",e,"\n")+Yo(["input",t,Yo(n," "),Jo(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>Ko("",e,"\n")+"directive @"+t+(Xo(n)?Ko("(\n",Qo(Yo(n,"\n")),"\n)"):Ko("(",Yo(n,", "),")"))+(i?" repeatable":"")+" on "+Yo(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Yo(["extend schema",Yo(e," "),Jo(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Yo(["extend scalar",e,Yo(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>Yo(["extend type",e,Ko("implements ",Yo(t," & ")),Yo(n," "),Jo(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>Yo(["extend interface",e,Ko("implements ",Yo(t," & ")),Yo(n," "),Jo(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Yo(["extend union",e,Yo(t," "),Ko("= ",Yo(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Yo(["extend enum",e,Yo(t," "),Jo(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Yo(["extend input",e,Yo(t," "),Jo(n)]," ")}};function Yo(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Jo(e){return Ko("{\n",Qo(Yo(e,"\n")),"\n}")}function Ko(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Qo(e){return Ko(" ",e.replace(/\n/g,"\n "))}function Xo(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}const ea="Accept",ta="Content-Type",na="application/json",ia="application/graphql-response+json",ra=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),sa=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(oa)};if(Bs(e))return{_tag:"Single",executionResult:oa(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},oa=e=>{if("object"!=typeof e||null===e)throw new Error("Invalid execution result: result is not object");let t,n,i;if("errors"in e){if(!Bs(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!Bs(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!Bs(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:n,errors:t,extensions:i}},aa=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),la=e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===ro.OPERATION_DEFINITION,ca=(e,t)=>{const n="string"==typeof e?e:Zo(e);let i,r=!1;if(t)return{expression:n,isMutation:r,operationName:i};const s=(e=>{try{const t=e();return zs(t)?t.catch((e=>Ps(e))):t}catch(e){return Ps(e)}})((()=>{return"string"==typeof e?new zo(e,t).parseDocument():e;var t}));return s instanceof Error?{expression:n,isMutation:r,operationName:i}:(i=(e=>{let t;const n=e.definitions.filter(la);return 1===n.length&&(t=n[0].name?.value),t})(s),r=(e=>{let t=!1;const n=e.definitions.filter(la);return 1===n.length&&(t=n[0].operation===no.MUTATION),t})(s),{expression:n,operationName:i,isMutation:r})},ua=JSON,da=async e=>{const t={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":_s(e.method??"post"):e.request.hasMutations?"POST":_s(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=pa(t.method),i=await n(t);if(!i.ok)return new Ls({status:i.status,headers:i.headers},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});const r=await ma(i,e.fetchOptions.jsonSerializer??ua);if(r instanceof Error)throw r;const s={status:i.status,headers:i.headers};if((e=>"Batch"===e._tag?e.executionResults.some(aa):aa(e.executionResult))(r)&&"none"===t.fetchOptions.errorPolicy){const t="Batch"===r._tag?{...r.executionResults,...s}:{...r.executionResult,...s};return new Ls(t,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...ha(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(ha(t))};default:js(r)}},ha=e=>t=>({extensions:t.extensions,data:t.data,errors:"all"===e.fetchOptions.errorPolicy?t.errors:void 0}),ma=async(e,t)=>{const n=e.headers.get(ta),i=await e.text();return n&&(e=>{const t=e.toLowerCase();return t.includes(ia)||t.includes(na)})(n)?sa(t.parse(i)):sa(i)},pa=e=>async t=>{const n=new Headers(t.headers);let i,r=null;if(n.has(ea)||n.set(ea,[ia,na].join(", ")),"POST"===e){i=(t.fetchOptions.jsonSerializer??ua).stringify(fa(t)),"string"!=typeof i||n.has(ta)||n.set(ta,na)}else r=ga(t);const s={method:e,headers:n,body:i,...t.fetchOptions};let o=new URL(t.url),a=s;if(t.middleware){const e=await Promise.resolve(t.middleware({...s,url:t.url,operationName:"Single"===t.request._tag?t.request.document.operationName:void 0,variables:t.request.variables})),{url:n,...i}=e;o=new URL(n),a=i}r&&r.forEach(((e,t)=>{o.searchParams.append(t,e)}));const l=t.fetch??fetch;return await l(o,a)},fa=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return Fs(e.request.query,e.request.variables??[]).map((([e,t])=>({query:e,variables:t})));default:throw js(e.request)}},ga=e=>{const t=e.fetchOptions.jsonSerializer??ua,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",ra(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const i=e.request.variables?.map((e=>t.stringify(e)))??[],r=e.request.query.map(ra),s=Fs(r,i).map((([e,t])=>({query:e,variables:t})));return n.append("query",t.stringify(s)),n}default:throw js(e.request)}};class ya{url;requestConfig;constructor(e,t={}){this.url=e,this.requestConfig=t}rawRequest=async(...e)=>{const[t,n,i]=e,r=((e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0})(t,n,i),{headers:s,fetch:o=globalThis.fetch,method:a="POST",requestMiddleware:l,responseMiddleware:c,excludeOperationName:u,...d}=this.requestConfig,{url:h}=this;void 0!==r.signal&&(d.signal=r.signal);const m=ca(r.query,u),p=await da({url:h,request:{_tag:"Single",document:m,variables:r.variables},headers:{...Rs(Ms(s)),...Rs(r.requestHeaders)},fetch:o,method:a,fetchOptions:d,middleware:l});if(c&&await c(p,{operationName:m.operationName,variables:n,url:this.url}),p instanceof Error)throw p;return p};async request(e,...t){const[n,i]=t,r=va(e,n,i),{headers:s,fetch:o=globalThis.fetch,method:a="POST",requestMiddleware:l,responseMiddleware:c,excludeOperationName:u,...d}=this.requestConfig,{url:h}=this;void 0!==r.signal&&(d.signal=r.signal);const m=ca(r.document,u),p=await da({url:h,request:{_tag:"Single",document:m,variables:r.variables},headers:{...Rs(Ms(s)),...Rs(r.requestHeaders)},fetch:o,method:a,fetchOptions:d,middleware:l});if(c&&await c(p,{operationName:m.operationName,variables:r.variables,url:this.url}),p instanceof Error)throw p;return p.data}async batchRequests(e,t){const n=((e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0})(e,t),{headers:i,excludeOperationName:r,...s}=this.requestConfig;void 0!==n.signal&&(s.signal=n.signal);const o=n.documents.map((({document:e})=>ca(e,r))),a=o.map((({expression:e})=>e)),l=o.some((({isMutation:e})=>e)),c=n.documents.map((({variables:e})=>e)),u=await da({url:this.url,request:{_tag:"Batch",operationName:void 0,query:a,hasMutations:l,variables:c},headers:{...Rs(Ms(i)),...Rs(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:s,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(u,{operationName:void 0,variables:c,url:this.url}),u instanceof Error)throw u;return u.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}const va=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0};var ba;!function(e){e.TokenRequired="TokenRequired",e.AlwaysAnonymous="AlwaysAnonymous",e.AnonymousIfNoTokenAvailable="AnonymousIfNoTokenAvailable"}(ba||(ba={}));class wa{queryProvider;endpointProvider;jwtTokenProvider;errorHandler;clientCache=new Map;noAuthClient;cachedEndpoint;constructor(e,t,n,i=new ks){this.queryProvider=e,this.endpointProvider=t,this.jwtTokenProvider=n,this.errorHandler=i,Be.notNullOrUndefined(e,"queryProvider"),Be.notNullOrUndefined(t,"endpointProvider"),Be.notNullOrUndefined(i,"errorHandler"),this.cachedEndpoint=this.endpointProvider.fetchGraphqlEndpoint()}currentAuthToken(){return this?.jwtTokenProvider?.fetchJwtToken()}async fetchQueryText(e){const t=await this.queryProvider.fetchQueryText(e);return t||Ze.warn("Could not find requested query : %s",e),t}createAnonymousApi(){Ze.info("Creating anonymous GraphQLClient");return new ya(this.cachedEndpoint,{errorPolicy:"all"})}fetchApi(e){let t=null;const n=e===ba.AlwaysAnonymous?null:qe.trimToNull(this?.jwtTokenProvider?.fetchJwtToken());if(e===ba.TokenRequired&&!n)throw As.fErr("No token provided, auth style is TokenRequired");if(this.checkIfEndpointChanged(),Ze.info("Fetch auth client %s",qe.obscure(qe.trimToEmpty(n),2,2)),n){if(Ze.debug("Fetching authd api"),this.clientCache.has(n))Ze.debug("Fetching apollo client from cache");else{const e=this.createAuthApi(n);Ze.debug("Setting cache for this token to %s",e),this.clientCache.set(n,e)}t=this.clientCache.get(n)}else Ze.debug("Fetching unauthd ap"),this.noAuthClient?Ze.debug("Fetching anonymous client from cache"):this.noAuthClient=this.createAnonymousApi(),t=this.noAuthClient;return Ze.debug("FetchApi returning %s",t),t}createAuthApi(e){Ze.info("Creating a new authenticated api for %s : %s",this.cachedEndpoint,qe.obscure(e,2,2)),Be.notNullUndefinedOrOnlyWhitespaceString(e,"jwtToken"),Ze.info("Creating auth apollo client %s",qe.obscure(e,2,2));return new ya(this.cachedEndpoint,{errorPolicy:"all",headers:{authorization:`Bearer ${e}`}})}checkIfEndpointChanged(){const e=this.endpointProvider.fetchGraphqlEndpoint();e!==this.cachedEndpoint&&(Ze.info("Endpoint changed from %s to %s - clearing apollo caches"),this.clientCache=new Map,this.noAuthClient=null,this.cachedEndpoint=e)}clearCaches(){Ze.info("Clearing cached apollo"),this.clientCache=new Map,this.noAuthClient=null,this.cachedEndpoint=null}static extractSingleValueFromResponse(e){if(!e)throw As.fErr("Could not find response in : %j",e);const t=Object.keys(e);1!==t.length&&As.throwFormattedErr("Unexpected number of keys : %s : %j",t.length,t);return e[t[0]]}async executeQuery(e,t,n=ba.TokenRequired){let i=null;try{const r=this.fetchApi(n);if(r){Ze.debug("API fetched for %s, fetching gql",e);const n=await this.fetchQueryText(e);Ze.debug("API and GQL fetched for %s - running %s %s",e,n,r);const s=await r.request(n,t);i=wa.extractSingleValueFromResponse(s),Ze.silly("Query returned: %j",i)}else As.throwFormattedErr("Cannot run - no api fetched")}catch(i){Ze.silly("Exception caught in executeQuery : %s %s %j %s",i,e,t,n,i),this.errorHandler.handleError(i,e,t,n)}return i}async executeMutate(e,t,n=ba.TokenRequired){Ze.info("Mutate : %s : %j",e,t);let i=null;const r=this.fetchApi(n);try{if(r){const n=await this.fetchQueryText(e);Ze.debug("API and GQL fetched for %s - running %s %s",e,n,r);const s=await r.request(n,t);i=wa.extractSingleValueFromResponse(s),Ze.silly("Mutate returned: %j",i)}else As.throwFormattedErr("Cannot run - no api fetched")}catch(i){this.errorHandler.handleError(i,e,t,n)}return i}}let Ta=class{graphqlRatchet;dialogService;messageService;constructor(e,t,n){this.graphqlRatchet=e,this.dialogService=t,this.messageService=n}async executeQuery(e,t,n=ba.TokenRequired){let i=null;this.messageService.add({severity:"info",summary:"Running query",detail:e,life:3e3}),Ze.info("eq: %j -: %s --: %s ---: %j",e,t);try{i=await this.graphqlRatchet.executeQuery(e,t,n)}catch(e){Ze.error("Fail : %s",e)}finally{this.messageService.clear()}return i}async executeQueryWithBlock(e,t,n,i=ba.TokenRequired){let r=null;this.messageService.add({severity:"info",summary:"Running query",detail:t,life:3e3}),Ze.info("eqb: %j -: %s --: %s ---: %j",e,t,n);try{r=await Xe.runPromiseWithUiBlock(this.dialogService,this.graphqlRatchet.executeQuery(t,n,i),e)}catch(e){Ze.error("Fail : %s",e)}finally{this.messageService.clear()}return r}async executeMutate(e,t,n=ba.TokenRequired){let i=null;this.messageService.add({severity:"info",summary:"Running query",detail:e,life:3e3}),Ze.info("eq: %j -: %s --: %s ---: %j",e,t);try{i=await this.graphqlRatchet.executeMutate(e,t,n)}catch(e){Ze.error("Fail : %s",e)}finally{this.messageService.clear()}return i}async executeMutateWithBlock(e,t,n,i=ba.TokenRequired){let r=null;this.messageService.add({severity:"info",summary:"Running query",detail:t,life:3e3});try{r=await Xe.runPromiseWithUiBlock(this.dialogService,this.graphqlRatchet.executeMutate(t,n,i),e)}catch(e){Ze.error("Fail : %s",e)}finally{this.messageService.clear()}return r}};var Ca;function Ea(){return"undefined"!=typeof window&&void 0!==window.localStorage?window.localStorage:null}Ta=L([n({providedIn:"root"}),_("design:paramtypes",[wa,Ne,ie])],Ta);let Ia=class{static{Ca=this}static APP_NAME="Scribe";get storageReady(){return!!Ea()}clear(){this.update({})}update(e){if(this.storageReady){const t=e||{},n=JSON.stringify(t);return Ze.info("Updating storage to %s",n),localStorage.setItem(Ca.APP_NAME,n),t}return Ze.info("Skipping update - storage not ready : %j",e),{}}fetch(){if(this.storageReady){const e=localStorage.getItem(Ca.APP_NAME)||"{}";return JSON.parse(e)}return Ze.info("Skipping fetch - storage not ready"),{}}};Ia=Ca=L([n({providedIn:"root"})],Ia);let Sa=class{nativeWindow(){return function(){if("undefined"!=typeof window)return window;throw new Error("Cannot find window object - running in SSR?")}()}};Sa=L([n({providedIn:"root"})],Sa);export{Ye as AlertComponent,Xe as BlockUiComponent,et as CapitalizePipe,nt as DollarFormattedPipe,Ds as GoogleAnalyticsService,Ta as GraphqlQueryService,Ia as LocalStorageService,it as MapValuesPipe,A as NgxAcuteCommonInfo,rt as NumberWithCommasPipe,ot as OrderByPipe,lt as PercentFormattedPipe,ct as PluralPipe,ut as RoundPipe,Ns as TimeAgoFormattedPipe,xs as TimingPipe,Sa as WindowRefService,Ea as storageFinder};
7
- //# sourceMappingURL=my-angular-library.esm.js.map