@openmfp/webcomponents 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mfp-wc-dashboard.js +3 -3
- package/mfp-webcomponents.js +1 -1
- package/package.json +1 -1
package/mfp-wc-dashboard.js
CHANGED
|
@@ -143,15 +143,15 @@ ${a.map((t,i)=>`${i+1}) ${t.toString()}`).join(`
|
|
|
143
143
|
</svg>`,LE="NoData",VE="fiori",TE="V4",EE=yL,IE=ZL;JL(LE,{dialogSvg:BE,sceneSvg:HE,spotSvg:kE,dotSvg:SE,title:EE,subtitle:IE,set:VE,collection:TE});var DE=["*"],zE=(()=>{class e{constructor(){this.headerText=R(),this.stretch=R(!1,{transform:j1}),this.draggable=R(!1,{transform:j1}),this.resizable=R(!1,{transform:j1}),this.state=R("None"),this.initialFocus=R(),this.preventFocusRestore=R(!1,{transform:j1}),this.accessibleName=R(),this.accessibleNameRef=R(),this.accessibleRole=R("Dialog"),this.accessibleDescription=R(),this.accessibleDescriptionRef=R(),this.preventInitialFocus=R(!1,{transform:j1}),this.open=R(!1,{transform:j1}),this.ui5BeforeOpen=g1(),this.ui5Open=g1(),this.ui5BeforeClose=g1(),this.ui5Close=g1(),this.slots=[{name:"header",description:"Defines the header HTML Element.\n\n**Note:** When a `ui5-bar` is used in the header, you should remove the default dialog's paddings.\n\n**Note:** If `header` slot is provided, the labelling of the dialog is a responsibility of the application developer.\n`accessibleName` should be used."},{name:"footer",description:"Defines the footer HTML Element.\n\n**Note:** When a `ui5-bar` is used in the footer, you should remove the default dialog's paddings."},{name:"default",description:"Defines the content of the Popup."}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["headerText","stretch","draggable","resizable","state","initialFocus","preventFocusRestore","accessibleName","accessibleNameRef","accessibleRole","accessibleDescription","accessibleDescriptionRef","preventInitialFocus","open"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5BeforeOpen","ui5Open","ui5BeforeClose","ui5Close"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-dialog"],["","ui5-dialog",""]],inputs:{headerText:[1,"headerText"],stretch:[1,"stretch"],draggable:[1,"draggable"],resizable:[1,"resizable"],state:[1,"state"],initialFocus:[1,"initialFocus"],preventFocusRestore:[1,"preventFocusRestore"],accessibleName:[1,"accessibleName"],accessibleNameRef:[1,"accessibleNameRef"],accessibleRole:[1,"accessibleRole"],accessibleDescription:[1,"accessibleDescription"],accessibleDescriptionRef:[1,"accessibleDescriptionRef"],preventInitialFocus:[1,"preventInitialFocus"],open:[1,"open"]},outputs:{ui5BeforeOpen:"ui5BeforeOpen",ui5Open:"ui5Open",ui5BeforeClose:"ui5BeforeClose",ui5Close:"ui5Close"},exportAs:["ui5Dialog"],ngContentSelectors:DE,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),RE=["*"],op=(()=>{class e{constructor(){this.wrappingType=R("Normal"),this.level=R("H2"),this.size=R("H5"),this.slots=[{name:"default",description:`Defines the text of the component.
|
|
144
144
|
This component supports nesting a \`Link\` component inside.
|
|
145
145
|
|
|
146
|
-
**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.`}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["wrappingType","level","size"];for(let r of i){let o=r.replace(/-./g,n=>n[1].toUpperCase());this[o]&&typeof this[o]=="function"&&P5(this.injector,()=>{U5(()=>{let n=this[o]();t&&(t[r]=n)})})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-title"],["","ui5-title",""]],inputs:{wrappingType:[1,"wrappingType"],level:[1,"level"],size:[1,"size"]},exportAs:["ui5Title"],ngContentSelectors:RE,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),NE="add",OE="M0 7.429c0-.167.06-.304.179-.411a.575.575 0 0 1 .392-.16h6.286V.57c0-.166.06-.303.179-.41A.575.575 0 0 1 7.429 0H8.57c.381 0 .572.19.572.571v6.286h6.286c.38 0 .571.19.571.572V8.57c0 .381-.19.572-.571.572H9.143v6.286c0 .38-.19.571-.572.571H7.43a.575.575 0 0 1-.393-.16.528.528 0 0 1-.179-.411V9.143H.571a.575.575 0 0 1-.392-.16A.528.528 0 0 1 0 8.57V7.43Z",FE=!1,PE=Ja,UE="0 0 16 16",qE="SAP-icons-v4",jE="@ui5/webcomponents-icons";t1(NE,{pathData:OE,ltr:FE,viewBox:UE,accData:PE,collection:qE,packageName:jE});var GE="add",WE="M8 1a.75.75 0 0 1 .75.75v5.5h5.5a.75.75 0 0 1 0 1.5h-5.5v5.5a.75.75 0 0 1-1.5 0v-5.5h-5.5a.75.75 0 0 1 0-1.5h5.5v-5.5A.75.75 0 0 1 8 1Z",$E=!1,XE=Ja,KE="0 0 16 16",YE="SAP-icons-v5",QE="@ui5/webcomponents-icons";t1(GE,{pathData:WE,ltr:$E,viewBox:KE,accData:XE,collection:YE,packageName:QE});var I8={WC:"wc",ANGULAR:"angular",SAP_UI:"sap-ui"},JE=/^[a-z](?:[a-z0-9-]*)$/,Zi=new Map;function eI(e){for(let a of e){let t=P_(a);if(!t)throw new Error(`Dashboard card registration failed: "${np(a)}" is not an Angular component.`);if(!EC(a))throw new Error(`Dashboard card registration failed: "${t.selector}" must be a standalone Angular component.`);let i=rI(t.selector,a),r=Zi.get(i);if(r&&r.componentType!==a)throw new Error(`Dashboard card registration failed: selector "${i}" is already registered.`);Zi.set(i,{componentType:a,selector:i,inputs:iI(t.inputs)})}}function tI(e){return Zi.get(e)}function aI(e,a){MS()&&console.warn(`Dashboard card "${e}" ignores unknown Angular input "${a}".`)}function iI(e){let a=new Map;for(let t of e)a.set(t.templateName,t.templateName),a.set(t.propName,t.templateName);return a}function rI(e,a){let t=e.trim();if(!JE.test(t))throw new Error(`Dashboard card registration failed: "${np(a)}" must use a single element selector. Received "${e}".`);return t}function np(e){return e.name.replace(/^_+/,"")||"AnonymousComponent"}function oI(e,a,t){let i=tI(e.component);if(!i){console.warn(`[DashboardCard] Angular component "${e.component}" is not registered`);return}let r=a.createComponent(i.componentType);for(let[o,n]of Object.entries(e.componentInputs??{})){let s=i.inputs.get(o);if(!s){aI(e.component,o);continue}r.setInput(s,n)}r.changeDetectorRef.detectChanges(),t(()=>{a.clear()})}function nI(e,a,t){let i=a.element.nativeElement,r=null,o=!1,n=window.sap?.ui?.require;n?n(["sap/ui/core/ComponentContainer"],s=>{if(o)return;let c=new s({name:e.component,manifest:!0,async:!0,settings:e.componentInputs??{}});c.placeAt(i),r=c}):console.error("[DashboardCard] SAP UI5 is not available on window.sap"),t(()=>{o=!0,r?.destroy(),i.innerHTML=""})}function sI(e,a,t,i){let r=a.element.nativeElement,o=i.createElement(e.component);for(let[n,s]of Object.entries(e.componentInputs??{}))i.setProperty(o,n,s);i.appendChild(r,o),t(()=>{r.innerHTML=""})}var cI=["elementHost"],lI=["*"];function hI(e,a){if(e&1){let t=q5();u1(0,"div",3)(1,"ui5-button",5),_0("click",function(){W0(t);let i=Z1(2);return $0(i.removeCard.emit())}),A1()()}if(e&2){let t=Z1(2);w1(),v0("accessibleName","Remove card: "+(t.card().label||t.card().component))}}function uI(e,a){if(e&1&&(u1(0,"div",1),r2(1,hI,2,1,"div",3),u1(2,"div",4),n6(3,"div",null,0),A1()()),e&2){let t=Z1();w1(),o2(t.editMode()?1:-1),w1(),ue("pointer-events",t.editMode()?"none":"auto")}}function dI(e,a){if(e&1&&(u1(0,"div",2)(1,"div",6),t5(2),A1()()),e&2){let t=Z1();w1(),ue("pointer-events",t.editMode()?"none":"auto")}}var sp=class Ci{card=R.required();editMode=R(!1);removeCard=g1();gridColumn=te(()=>{let a=this.card().w??12;return this.createGridTrack(this.card().x,a)});gridRow=te(()=>{let a=this.card().h??100;return this.createGridTrack(this.card().y,a)});host=vi("elementHost",{read:he});renderer=q(dH);constructor(){U5(a=>{let t=this.host(),i=this.card();if(!(!t||!i.component))switch(t.clear(),t.element.nativeElement.innerHTML="",i.type){case I8.SAP_UI:nI(i,t,a);break;case I8.ANGULAR:oI(i,t,a);break;case I8.WC:default:sI(i,t,a,this.renderer);break}})}createGridTrack(a,t){return a===void 0?`span ${t}`:`${a+1} / span ${t}`}static \u0275fac=function(a){return new(a||Ci)};static \u0275cmp=Y0({type:Ci,selectors:[["mfp-dashboard-card"]],viewQuery:function(a,t){a&1&&B9(t.host,cI,5,he),a&2&&L_()},hostVars:4,hostBindings:function(a,t){a&2&&ue("grid-column",t.gridColumn())("grid-row",t.gridRow())},inputs:{card:[1,"card"],editMode:[1,"editMode"]},outputs:{removeCard:"removeCard"},ngContentSelectors:lI,decls:2,vars:1,consts:[["elementHost",""],[1,"component-card"],[1,"card"],[1,"remove-wrapper"],[1,"component-host"],["design","Default","icon","decline",1,"card__remove",3,"click","accessibleName"],[1,"card__body"]],template:function(a,t){a&1&&(s5(),r2(0,uI,5,3,"div",1)(1,dI,3,2,"div",2)),a&2&&o2(t.card().component?0:1)},dependencies:[c6],styles:["[_nghost-%COMP%]{display:block;min-width:0;min-height:0;overflow:visible}.card__remove[_ngcontent-%COMP%]{position:absolute;top:0;right:-.5rem;z-index:10;border-radius:50%!important;width:1.25rem!important;height:1.25rem!important;min-width:unset!important;padding:0!important;font-size:.625rem!important}.remove-wrapper[_ngcontent-%COMP%]{position:sticky;height:.5rem;top:0;right:0;z-index:10}.component-card[_ngcontent-%COMP%]{position:relative;height:100%;overflow:visible;isolation:isolate;padding:0 .5rem}.component-host[_ngcontent-%COMP%]{height:100%}.card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;height:100%;border:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9);border-radius:.5rem;background:var(--sapBackgroundColor, #fff);overflow:visible}.card__header[_ngcontent-%COMP%]{padding:.75rem 1rem;font-weight:600;border-bottom:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9);background:var(--sapGroup_TitleBackground, #f5f5f5)}.card__body[_ngcontent-%COMP%]{flex:1;padding:1rem;overflow:auto}"]})},_I=["*"],pI=(()=>{class e{constructor(){this.headerText=R(),this.footerText=R(),this.indent=R(!1,{transform:j1}),this.selectionMode=R("None"),this.noDataText=R(),this.separators=R("All"),this.growing=R("None"),this.growingButtonText=R(),this.loading=R(!1,{transform:j1}),this.loadingDelay=R(1e3),this.stickyHeader=R(!1,{transform:j1}),this.accessibleName=R(),this.accessibilityAttributes=R({}),this.accessibleNameRef=R(),this.accessibleDescription=R(),this.accessibleDescriptionRef=R(),this.accessibleRole=R("List"),this.ui5ItemClick=g1(),this.ui5ItemClose=g1(),this.ui5ItemToggle=g1(),this.ui5ItemDelete=g1(),this.ui5SelectionChange=g1(),this.ui5LoadMore=g1(),this.ui5MoveOver=g1(),this.ui5Move=g1(),this.slots=[{name:"default",description:"Defines the items of the component.\n\n**Note:** Use `ui5-li`, `ui5-li-custom`, and `ui5-li-group` for the intended design."},{name:"header",description:"Defines the component header.\n\n**Note:** When `header` is set, the\n`headerText` property is ignored."}],this.elementRef=q(H0),this.injector=q(R0)}get listItems(){return this.element?.listItems??[]}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["headerText","footerText","indent","selectionMode","noDataText","separators","growing","growingButtonText","loading","loadingDelay","stickyHeader","accessibleName","accessibilityAttributes","accessibleNameRef","accessibleDescription","accessibleDescriptionRef","accessibleRole"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5ItemClick","ui5ItemClose","ui5ItemToggle","ui5ItemDelete","ui5SelectionChange","ui5LoadMore","ui5MoveOver","ui5Move"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-list"],["","ui5-list",""]],inputs:{headerText:[1,"headerText"],footerText:[1,"footerText"],indent:[1,"indent"],selectionMode:[1,"selectionMode"],noDataText:[1,"noDataText"],separators:[1,"separators"],growing:[1,"growing"],growingButtonText:[1,"growingButtonText"],loading:[1,"loading"],loadingDelay:[1,"loadingDelay"],stickyHeader:[1,"stickyHeader"],accessibleName:[1,"accessibleName"],accessibilityAttributes:[1,"accessibilityAttributes"],accessibleNameRef:[1,"accessibleNameRef"],accessibleDescription:[1,"accessibleDescription"],accessibleDescriptionRef:[1,"accessibleDescriptionRef"],accessibleRole:[1,"accessibleRole"]},outputs:{ui5ItemClick:"ui5ItemClick",ui5ItemClose:"ui5ItemClose",ui5ItemToggle:"ui5ItemToggle",ui5ItemDelete:"ui5ItemDelete",ui5SelectionChange:"ui5SelectionChange",ui5LoadMore:"ui5LoadMore",ui5MoveOver:"ui5MoveOver",ui5Move:"ui5Move"},exportAs:["ui5List"],ngContentSelectors:_I,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),vI=["*"],mI=(()=>{class e{constructor(){this.movable=R(!1,{transform:j1}),this.accessibleName=R(),this.type=R("Active"),this.accessibilityAttributes=R({}),this.navigated=R(!1,{transform:j1}),this.tooltip=R(),this.highlight=R("None"),this.selected=R(!1,{transform:j1}),this.ui5DetailClick=g1(),this.slots=[{name:"default",description:"Defines the content of the component."},{name:"deleteButton",description:`Defines the delete button, displayed in "Delete" mode.
|
|
146
|
+
**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.`}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["wrappingType","level","size"];for(let r of i){let o=r.replace(/-./g,n=>n[1].toUpperCase());this[o]&&typeof this[o]=="function"&&P5(this.injector,()=>{U5(()=>{let n=this[o]();t&&(t[r]=n)})})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-title"],["","ui5-title",""]],inputs:{wrappingType:[1,"wrappingType"],level:[1,"level"],size:[1,"size"]},exportAs:["ui5Title"],ngContentSelectors:RE,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),NE="add",OE="M0 7.429c0-.167.06-.304.179-.411a.575.575 0 0 1 .392-.16h6.286V.57c0-.166.06-.303.179-.41A.575.575 0 0 1 7.429 0H8.57c.381 0 .572.19.572.571v6.286h6.286c.38 0 .571.19.571.572V8.57c0 .381-.19.572-.571.572H9.143v6.286c0 .38-.19.571-.572.571H7.43a.575.575 0 0 1-.393-.16.528.528 0 0 1-.179-.411V9.143H.571a.575.575 0 0 1-.392-.16A.528.528 0 0 1 0 8.57V7.43Z",FE=!1,PE=Ja,UE="0 0 16 16",qE="SAP-icons-v4",jE="@ui5/webcomponents-icons";t1(NE,{pathData:OE,ltr:FE,viewBox:UE,accData:PE,collection:qE,packageName:jE});var GE="add",WE="M8 1a.75.75 0 0 1 .75.75v5.5h5.5a.75.75 0 0 1 0 1.5h-5.5v5.5a.75.75 0 0 1-1.5 0v-5.5h-5.5a.75.75 0 0 1 0-1.5h5.5v-5.5A.75.75 0 0 1 8 1Z",$E=!1,XE=Ja,KE="0 0 16 16",YE="SAP-icons-v5",QE="@ui5/webcomponents-icons";t1(GE,{pathData:WE,ltr:$E,viewBox:KE,accData:XE,collection:YE,packageName:QE});var I8={WC:"wc",ANGULAR:"angular",SAP_UI:"sap-ui"},JE=/^[a-z](?:[a-z0-9-]*)$/,Zi=new Map;function eI(e){for(let a of e){let t=P_(a);if(!t)throw new Error(`Dashboard card registration failed: "${np(a)}" is not an Angular component.`);if(!EC(a))throw new Error(`Dashboard card registration failed: "${t.selector}" must be a standalone Angular component.`);let i=rI(t.selector,a),r=Zi.get(i);if(r&&r.componentType!==a)throw new Error(`Dashboard card registration failed: selector "${i}" is already registered.`);Zi.set(i,{componentType:a,selector:i,inputs:iI(t.inputs)})}}function tI(e){return Zi.get(e)}function aI(e,a){MS()&&console.warn(`Dashboard card "${e}" ignores unknown Angular input "${a}".`)}function iI(e){let a=new Map;for(let t of e)a.set(t.templateName,t.templateName),a.set(t.propName,t.templateName);return a}function rI(e,a){let t=e.trim();if(!JE.test(t))throw new Error(`Dashboard card registration failed: "${np(a)}" must use a single element selector. Received "${e}".`);return t}function np(e){return e.name.replace(/^_+/,"")||"AnonymousComponent"}function oI(e,a,t){let i=tI(e.component);if(!i){console.warn(`[DashboardCard] Angular component "${e.component}" is not registered`);return}let r=a.createComponent(i.componentType);for(let[o,n]of Object.entries(e.componentInputs??{})){let s=i.inputs.get(o);if(!s){aI(e.component,o);continue}r.setInput(s,n)}r.changeDetectorRef.detectChanges(),t(()=>{a.clear()})}function nI(e,a,t){let i=a.element.nativeElement,r=null,o=!1,n=window.sap?.ui?.require;n?n(["sap/ui/core/ComponentContainer"],s=>{if(o)return;let c=new s({name:e.component,manifest:!0,async:!0,settings:e.componentInputs??{}});c.placeAt(i),r=c}):console.error("[DashboardCard] SAP UI5 is not available on window.sap"),t(()=>{o=!0,r?.destroy(),i.innerHTML=""})}function sI(e,a,t,i){let r=a.element.nativeElement,o=i.createElement(e.component);for(let[n,s]of Object.entries(e.componentInputs??{}))i.setProperty(o,n,s);i.appendChild(r,o),t(()=>{r.innerHTML=""})}var cI=["elementHost"],lI=["*"];function hI(e,a){if(e&1){let t=q5();u1(0,"div",3)(1,"ui5-button",5),_0("click",function(){W0(t);let i=Z1(2);return $0(i.removeCard.emit())}),A1()()}if(e&2){let t=Z1(2);w1(),v0("accessibleName","Remove card: "+(t.card().label||t.card().component))}}function uI(e,a){if(e&1&&(u1(0,"div",1),r2(1,hI,2,1,"div",3),u1(2,"div",4),n6(3,"div",null,0),A1()()),e&2){let t=Z1();w1(),o2(t.editMode()?1:-1),w1(),ue("pointer-events",t.editMode()?"none":"auto")}}function dI(e,a){if(e&1&&(u1(0,"div",2)(1,"div",6),t5(2),A1()()),e&2){let t=Z1();w1(),ue("pointer-events",t.editMode()?"none":"auto")}}var sp=class Ci{card=R.required();editMode=R(!1);removeCard=g1();gridColumn=te(()=>{let a=this.card().w??12;return this.createGridTrack(this.card().x,a)});gridRow=te(()=>{let a=this.card().h??100;return this.createGridTrack(this.card().y,a)});host=vi("elementHost",{read:he});renderer=q(dH);constructor(){U5(a=>{let t=this.host(),i=this.card();if(!(!t||!i.component))switch(t.clear(),t.element.nativeElement.innerHTML="",i.type){case I8.SAP_UI:nI(i,t,a);break;case I8.ANGULAR:oI(i,t,a);break;case I8.WC:default:sI(i,t,a,this.renderer);break}})}createGridTrack(a,t){return a===void 0?`span ${t}`:`${a+1} / span ${t}`}static \u0275fac=function(a){return new(a||Ci)};static \u0275cmp=Y0({type:Ci,selectors:[["mfp-dashboard-card"]],viewQuery:function(a,t){a&1&&B9(t.host,cI,5,he),a&2&&L_()},hostVars:4,hostBindings:function(a,t){a&2&&ue("grid-column",t.gridColumn())("grid-row",t.gridRow())},inputs:{card:[1,"card"],editMode:[1,"editMode"]},outputs:{removeCard:"removeCard"},ngContentSelectors:lI,decls:2,vars:1,consts:[["elementHost",""],[1,"component-card"],[1,"card"],[1,"remove-wrapper"],[1,"component-host"],["design","Default","icon","decline",1,"card__remove",3,"click","accessibleName"],[1,"card__body"]],template:function(a,t){a&1&&(s5(),r2(0,uI,5,3,"div",1)(1,dI,3,2,"div",2)),a&2&&o2(t.card().component?0:1)},dependencies:[c6],styles:["[_nghost-%COMP%]{display:block;min-width:0;min-height:0;overflow:visible}.card__remove[_ngcontent-%COMP%]{position:absolute;top:0;right:-.5rem;z-index:10;border-radius:50%!important;width:1.25rem!important;height:1.25rem!important;min-width:unset!important;padding:0!important;font-size:.625rem!important}.remove-wrapper[_ngcontent-%COMP%]{position:sticky;height:.5rem;top:0;right:0;z-index:10}.component-card[_ngcontent-%COMP%]{position:relative;height:100%;overflow:visible;isolation:isolate;padding-inline-start:var(--mfp_cardContainerPadding, 10px);padding-inline-end:var(--mfp_cardContainerPadding, 10px)}.component-host[_ngcontent-%COMP%]{height:100%}.card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;height:100%;border:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9);border-radius:.5rem;background:var(--sapBackgroundColor, #fff);overflow:visible}.card__header[_ngcontent-%COMP%]{padding:.75rem 1rem;font-weight:600;border-bottom:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9);background:var(--sapGroup_TitleBackground, #f5f5f5)}.card__body[_ngcontent-%COMP%]{flex:1;padding:1rem;overflow:auto}"]})},_I=["*"],pI=(()=>{class e{constructor(){this.headerText=R(),this.footerText=R(),this.indent=R(!1,{transform:j1}),this.selectionMode=R("None"),this.noDataText=R(),this.separators=R("All"),this.growing=R("None"),this.growingButtonText=R(),this.loading=R(!1,{transform:j1}),this.loadingDelay=R(1e3),this.stickyHeader=R(!1,{transform:j1}),this.accessibleName=R(),this.accessibilityAttributes=R({}),this.accessibleNameRef=R(),this.accessibleDescription=R(),this.accessibleDescriptionRef=R(),this.accessibleRole=R("List"),this.ui5ItemClick=g1(),this.ui5ItemClose=g1(),this.ui5ItemToggle=g1(),this.ui5ItemDelete=g1(),this.ui5SelectionChange=g1(),this.ui5LoadMore=g1(),this.ui5MoveOver=g1(),this.ui5Move=g1(),this.slots=[{name:"default",description:"Defines the items of the component.\n\n**Note:** Use `ui5-li`, `ui5-li-custom`, and `ui5-li-group` for the intended design."},{name:"header",description:"Defines the component header.\n\n**Note:** When `header` is set, the\n`headerText` property is ignored."}],this.elementRef=q(H0),this.injector=q(R0)}get listItems(){return this.element?.listItems??[]}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["headerText","footerText","indent","selectionMode","noDataText","separators","growing","growingButtonText","loading","loadingDelay","stickyHeader","accessibleName","accessibilityAttributes","accessibleNameRef","accessibleDescription","accessibleDescriptionRef","accessibleRole"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5ItemClick","ui5ItemClose","ui5ItemToggle","ui5ItemDelete","ui5SelectionChange","ui5LoadMore","ui5MoveOver","ui5Move"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-list"],["","ui5-list",""]],inputs:{headerText:[1,"headerText"],footerText:[1,"footerText"],indent:[1,"indent"],selectionMode:[1,"selectionMode"],noDataText:[1,"noDataText"],separators:[1,"separators"],growing:[1,"growing"],growingButtonText:[1,"growingButtonText"],loading:[1,"loading"],loadingDelay:[1,"loadingDelay"],stickyHeader:[1,"stickyHeader"],accessibleName:[1,"accessibleName"],accessibilityAttributes:[1,"accessibilityAttributes"],accessibleNameRef:[1,"accessibleNameRef"],accessibleDescription:[1,"accessibleDescription"],accessibleDescriptionRef:[1,"accessibleDescriptionRef"],accessibleRole:[1,"accessibleRole"]},outputs:{ui5ItemClick:"ui5ItemClick",ui5ItemClose:"ui5ItemClose",ui5ItemToggle:"ui5ItemToggle",ui5ItemDelete:"ui5ItemDelete",ui5SelectionChange:"ui5SelectionChange",ui5LoadMore:"ui5LoadMore",ui5MoveOver:"ui5MoveOver",ui5Move:"ui5Move"},exportAs:["ui5List"],ngContentSelectors:_I,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),vI=["*"],mI=(()=>{class e{constructor(){this.movable=R(!1,{transform:j1}),this.accessibleName=R(),this.type=R("Active"),this.accessibilityAttributes=R({}),this.navigated=R(!1,{transform:j1}),this.tooltip=R(),this.highlight=R("None"),this.selected=R(!1,{transform:j1}),this.ui5DetailClick=g1(),this.slots=[{name:"default",description:"Defines the content of the component."},{name:"deleteButton",description:`Defines the delete button, displayed in "Delete" mode.
|
|
147
147
|
**Note:** While the slot allows custom buttons, to match
|
|
148
148
|
design guidelines, please use the \`ui5-button\` component.
|
|
149
149
|
**Note:** When the slot is not present, a built-in delete button will be displayed.`,since:"1.9.0"}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["movable","accessibleName","type","accessibilityAttributes","navigated","tooltip","highlight","selected"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5DetailClick"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-li-custom"],["","ui5-li-custom",""]],inputs:{movable:[1,"movable"],accessibleName:[1,"accessibleName"],type:[1,"type"],accessibilityAttributes:[1,"accessibilityAttributes"],navigated:[1,"navigated"],tooltip:[1,"tooltip"],highlight:[1,"highlight"],selected:[1,"selected"]},outputs:{ui5DetailClick:"ui5DetailClick"},exportAs:["ui5ListItemCustom"],ngContentSelectors:vI,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),fI="less",gI="M14.5 7c.333 0 .5.167.5.5v1c0 .333-.167.5-.5.5h-13a.503.503 0 0 1-.344-.14A.462.462 0 0 1 1 8.5v-1c0-.146.052-.266.156-.36A.503.503 0 0 1 1.5 7h13Z",AI=!1,bI="0 0 16 16",wI="SAP-icons-v4",yI="@ui5/webcomponents-icons";t1(fI,{pathData:gI,ltr:AI,viewBox:bI,collection:wI,packageName:yI});var ZI="less",CI="M14.25 7a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5h12.5Z",xI=!1,MI="0 0 16 16",BI="SAP-icons-v5",HI="@ui5/webcomponents-icons";t1(ZI,{pathData:CI,ltr:xI,viewBox:MI,collection:BI,packageName:HI});var cp=(function(e){return e.Textual="Textual",e.Graphical="Graphical",e})(cp||{}),kI=cp;function SI(){return G("div",{class:{"ui5-switch-root":!0,"ui5-switch--desktop":b0(),"ui5-switch--disabled":this.disabled,"ui5-switch--checked":this.checked,"ui5-switch--semantic":this.graphical,"ui5-switch--no-label":!(this.graphical||this.textOn||this.textOff),"ui5-switch--safari":ft()},role:"switch","aria-label":this.ariaLabelText,"aria-checked":this.checked,"aria-disabled":this.effectiveAriaDisabled,"aria-readonly":this.effectiveAriaReadonly,"aria-required":this.required,"aria-describedby":this.ariaDescribedBy,onClick:this._onclick,onKeyUp:this._onkeyup,onKeyDown:this._onkeydown,onFocusIn:this._onfocusin,tabindex:this.effectiveTabIndex,title:this.tooltip,children:[H("div",{class:"ui5-switch-inner",children:H("div",{class:"ui5-switch-track",part:"slider",children:G("div",{class:"ui5-switch-slider",children:[this.graphical?G(P1,{children:[H("span",{class:"ui5-switch-text ui5-switch-text--on",children:H(h0,{name:L9,class:"ui5-switch-icon-on"})}),H("span",{class:"ui5-switch-text ui5-switch-text--off",children:H(h0,{name:o4,class:"ui5-switch-icon-off"})})]}):H(P1,{children:this.hasNoLabel?G(P1,{children:[H("span",{class:"ui5-switch-text ui5-switch-text--on ui5-switch-no-label-icon",part:"text-on",children:H(h0,{name:this.sapNextIcon,class:"ui5-switch-no-label-icon-on"})}),H("span",{class:"ui5-switch-text ui5-switch-text--off ui5-switch-no-label-icon",part:"text-off",children:H(h0,{name:this.sapNextIcon,class:"ui5-switch-no-label-icon-off"})})]}):G(P1,{children:[H("span",{class:"ui5-switch-text ui5-switch-text--on",part:"text-on","aria-hidden":this._textAriaHidden,children:this._textOn}),H("span",{class:"ui5-switch-text ui5-switch-text--off",part:"text-off","aria-hidden":this._textAriaHidden,children:this._textOff})]})}),this.readonly&&H("span",{class:"ui5-switch-text ui5-switch-text--readonly",id:this.ariaDescribedBy,"aria-hidden":this._textAriaHidden,children:this.ariaDescribedByText}),H("span",{class:"ui5-switch-handle",part:"handle"})]})})}),H("input",{type:"checkbox",checked:this.checked,class:"ui5-switch-input","data-sap-no-tab-ref":!0})]})}P("@ui5/webcomponents-theming","sap_horizon",async()=>d1);P("@ui5/webcomponents","sap_horizon",async()=>_1,"host");var LI=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host{-webkit-tap-highlight-color:rgba(0,0,0,0)}:host{vertical-align:middle}:host(:not([hidden])){display:inline-block}.ui5-switch-root{position:relative;display:flex;align-items:center;width:var(--_ui5_switch_width);height:var(--_ui5_switch_height);min-width:var(--_ui5_switch_min_width);cursor:pointer;outline:none;border-radius:var(--_ui5-switch-root-border-radius)}.ui5-switch-root:not(.ui5-switch--no-label):not(.ui5-switch--semantic){width:var(--_ui5_switch_with_label_width);height:var(--_ui5_switch_height)}.ui5-switch-root.ui5-switch--no-label{min-width:var(--_ui5_switch_width)}.ui5-switch-inner{display:flex;align-items:center;justify-content:center;height:100%;width:100%;min-width:inherit;overflow:hidden;pointer-events:none;will-change:transform}:host([checked]) .ui5-switch-inner{border-radius:6.25rem;box-shadow:var(--_ui5-switch-root-box-shadow)}.ui5-switch-track{display:flex;align-items:center;height:var(--_ui5_switch_track_height);width:var(--_ui5_switch_track_width);border:var(--_ui5-switch-track-border);border-radius:var(--_ui5_switch_track_border_radius);box-sizing:border-box;transition:var(--_ui5_switch_track_transition)}.ui5-switch-root:not(.ui5-switch--no-label):not(.ui5-switch--semantic) .ui5-switch-track{height:var(--_ui5_switch_track_with_label_height);width:var(--_ui5_switch_track_with_label_width)}.ui5-switch-slider{position:relative;height:var(--_ui5_switch_height);width:100%;transition:transform .1s ease-in;transform-origin:top left}.ui5-switch-slider>*:not(.ui5-switch-handle){display:var(--_ui5-switch-slider-texts-display)}.ui5-switch-handle{position:absolute;display:flex;justify-content:center;align-items:center;width:var(--_ui5_switch_handle_width);height:var(--_ui5_switch_handle_height);border:var(--_ui5_switch_handle_border);border-radius:var(--_ui5_switch_handle_border_radius);box-sizing:border-box}.ui5-switch-root:not(.ui5-switch--no-label):not(.ui5-switch--semantic) .ui5-switch-handle{height:var(--_ui5_switch_handle_with_label_height);width:var(--_ui5_switch_handle_with_label_width)}.ui5-switch-text{display:flex;justify-content:center;position:absolute;z-index:var(--_ui5_switch_text_z_index);min-width:var(--_ui5_switch_text_min_width);font-size:var(--_ui5_switch_text_font_size);font-family:var(--_ui5-switch-text_font_family);text-transform:uppercase;text-align:center;white-space:nowrap;user-select:none;-webkit-user-select:none}.ui5-switch-handle,.ui5-switch-text{inset-inline-start:var(--_ui5_switch_handle_left);top:50%;transform:translateY(-50%)}.ui5-switch-root:focus-visible:after,.ui5-switch--desktop.ui5-switch-root:focus-within:after{content:"";position:absolute;inset-inline-start:var(--_ui5_switch_root_outline_left);inset-inline-end:var(--_ui5_switch_root_outline_right);top:var(--_ui5_switch_root_outline_top);bottom:var(--_ui5_switch_root_outline_bottom);border:var(--_ui5_switch_focus_outline);border-radius:var(--_ui5_switch_root_after_boreder_radius);pointer-events:none;transition:var(--_ui5_switch_track_transition);outline:var(--_ui5_switch_root_after_outline)}.ui5-switch-root .ui5-switch-input{position:absolute;inset-inline-start:0;width:0;height:0;margin:0;visibility:hidden;appearance:none;-webkit-appearance:none}.ui5-switch-root.ui5-switch--disabled{opacity:var(--_ui5_switch_disabled_opacity);cursor:default}.ui5-switch-root.ui5-switch--checked .ui5-switch-text--off,.ui5-switch-root.ui5-switch--checked .ui5-switch-text--readonly{visibility:var(--_ui5_switch_text_hidden)}.ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-text--on,.ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-text--readonly{visibility:var(--_ui5_switch_text_hidden)}.ui5-switch-root.ui5-switch--checked.ui5-switch--semantic .ui5-switch-text--on,.ui5-switch-root.ui5-switch--checked.ui5-switch--desktop.ui5-switch--no-label .ui5-switch-text--on{inset-inline-start:var(--_ui5_switch_text_active_left)}.ui5-switch-root:not(.ui5-switch--checked).ui5-switch--semantic .ui5-switch-text--off,.ui5-switch-root:not(.ui5-switch--checked).ui5-switch--desktop.ui5-switch--no-label .ui5-switch-text--off{inset-inline-start:var(--_ui5_switch_text_inactive_left);inset-inline-end:var(--_ui5_switch_text_inactive_right)}.ui5-switch-root.ui5-switch--checked .ui5-switch-handle{background:var(--_ui5_switch_handle_active_background_color);border-color:var(--_ui5_switch_handle_active_border_color)}.ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-handle{background:var(--_ui5_switch_handle_inactive_background_color);border-color:var(--_ui5_switch_handle_inactive_border_color)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-handle{background:var(--_ui5_switch_handle_hover_active_background_color);border-color:var(--_ui5_switch_handle_hover_active_border_color)}.ui5-switch--desktop.ui5-switch-root:not(.ui5-switch--disabled):not(.ui5-switch--checked):hover .ui5-switch-handle{background:var(--_ui5_switch_handle_hover_inactive_background_color);border-color:var(--_ui5_switch_handle_hover_inactive_border_color)}.ui5-switch-root.ui5-switch--semantic.ui5-switch--checked .ui5-switch-handle{background:var(--_ui5_switch_handle_semantic_accept_background_color);border-color:var(--_ui5_switch_handle_semantic_accept_border_color)}.ui5-switch-root.ui5-switch--semantic:not(.ui5-switch--checked) .ui5-switch-handle{background:var(--_ui5_switch_handle_semantic_reject_background_color);border-color:var(--_ui5_switch_handle_semantic_reject_border_color)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-handle{background:var(--_ui5_switch_handle_semantic_hover_accept_background_color);border-color:var(--_ui5_switch_handle_semantic_hover_accept_border_color)}.ui5-switch--desktop.ui5-switch--semantic.ui5-switch-root:not(.ui5-switch--checked):not(.ui5-switch--disabled):hover .ui5-switch-handle{background:var(--_ui5_switch_handle_semantic_hover_reject_background_color);border-color:var(--_ui5_switch_handle_semantic_hover_reject_border_color)}.ui5-switch-root.ui5-switch--checked .ui5-switch-track{background:var(--_ui5_switch_track_active_background_color);border-color:var(--_ui5_switch_track_active_border_color)}.ui5-switch-root:not(.ui5-switch--checked) .ui5-switch-track{background:var(--_ui5_switch_track_inactive_background_color);border-color:var(--_ui5_switch_track_inactive_border_color)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-track{background:var(--_ui5_switch_track_hover_active_background_color);border-color:var(--_ui5_switch_track_hover_active_border_color)}.ui5-switch--desktop.ui5-switch-root:not(.ui5-switch--checked):not(.ui5-switch--disabled):hover .ui5-switch-track{background:var(--_ui5_switch_track_hover_inactive_background_color);border-color:var(--_ui5_switch_track_hover_inactive_border_color)}.ui5-switch-root.ui5-switch--semantic.ui5-switch--checked .ui5-switch-track{background:var(--_ui5_switch_track_semantic_accept_background_color);border-color:var(--_ui5_switch_track_semantic_accept_border_color)}.ui5-switch-root.ui5-switch--semantic:not(.ui5-switch--checked) .ui5-switch-track{background:var(--_ui5_switch_track_semantic_reject_background_color);border-color:var(--_ui5_switch_track_semantic_reject_border_color)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-track{background:var(--_ui5_switch_track_semantic_hover_accept_background_color);border-color:var(--_ui5_switch_track_semantic_hover_accept_border_color)}.ui5-switch--desktop.ui5-switch--semantic.ui5-switch-root:not(.ui5-switch--checked):not(.ui5-switch--disabled):hover .ui5-switch-track{background:var(--_ui5_switch_track_semantic_hover_reject_background_color);border-color:var(--_ui5_switch_track_semantic_hover_reject_border_color)}.ui5-switch-root.ui5-switch--checked:not(.ui5-switch--no-label):not(.ui5-switch--semantic) .ui5-switch-slider{transform:var(--_ui5_switch_transform_with_label)}.ui5-switch-root.ui5-switch--checked .ui5-switch-slider{transform:var(--_ui5_switch_transform)}.ui5-switch-text .ui5-switch-text--on .ui5-switch-no-label-icon,.ui5-switch-root.ui5-switch--semantic .ui5-switch-text,.ui5-switch-root.ui5-switch--no-label .ui5-switch-text{display:flex;justify-content:center}.ui5-switch--no-label .ui5-switch-no-label-icon-on,.ui5-switch--no-label .ui5-switch-no-label-icon-off{width:var(--_ui5_switch_icon_width);height:var(--_ui5_switch_icon_height);display:var(--_ui5_switch_track_icon_display)}.ui5-switch-root.ui5-switch--semantic .ui5-switch-icon-on,.ui5-switch-root.ui5-switch--semantic .ui5-switch-icon-off{width:var(--_ui5_switch_icon_width);height:var(--_ui5_switch_icon_height)}.ui5-switch-root .ui5-switch-text{font-family:var(--_ui5_switch_text_font_family);font-size:var(--_ui5_switch_text_font_size);width:var(--_ui5_switch_text_width)}.ui5-switch-root:not(.ui5-switch--no-label):not(.ui5-switch--semantic) .ui5-switch-text{font-family:var(--_ui5_switch_text_with_label_font_family);font-size:var(--_ui5_switch_text_with_label_font_size);width:var(--_ui5_switch_text_with_label_width)}:host([active]) .ui5-switch--desktop.ui5-switch-root:not(.ui5-switch--disabled) .ui5-switch-track{background:var(--_ui5-switch_track-off-active-background)}:host([active]) .ui5-switch--desktop.ui5-switch-root.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-track{background:var(--_ui5-switch_track-on-active-background)}.ui5-switch--desktop.ui5-switch-root:not(.ui5-switch--disabled):hover .ui5-switch-handle{box-shadow:var(--_ui5_switch_handle_off_hover_box_shadow)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-handle{box-shadow:var(--_ui5_switch_handle_on_hover_box_shadow)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic:not(.ui5-switch--disabled):hover .ui5-switch-handle{box-shadow:var(--_ui5_switch_handle_semantic_off_hover_box_shadow)}.ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic.ui5-switch--checked:not(.ui5-switch--disabled):hover .ui5-switch-handle{box-shadow:var(--_ui5_switch_handle_semantic_on_hover_box_shadow)}.ui5-switch-root.ui5-switch--semantic .ui5-switch-icon-on,.ui5-switch-root.ui5-switch--semantic .ui5-switch-text--on{color:var(--_ui5_switch_text_semantic_accept_color)}.ui5-switch-root.ui5-switch--semantic .ui5-switch-icon-off,.ui5-switch-root.ui5-switch--semantic .ui5-switch-text--off{color:var(--_ui5_switch_text_semantic_reject_color)}.ui5-switch-root .ui5-switch-text--on{color:var(--_ui5_switch_text_active_color);overflow:var(--_ui5_switch_text_overflow);text-overflow:ellipsis;inset-inline-start:var(--_ui5_switch_text_active_left_alternate)}.ui5-switch-root .ui5-switch-text--off{color:var(--_ui5_switch_text_inactive_color);overflow:var(--_ui5_switch_text_overflow);text-overflow:ellipsis;inset-inline-start:var(--_ui5_switch_text_inactive_left_alternate);inset-inline-end:var(--_ui5_switch_text_inactive_right_alternate)}.ui5-switch-root.ui5-switch--safari .ui5-switch-text--on.ui5-switch-no-label-icon,.ui5-switch-root.ui5-switch--safari .ui5-switch-text--off.ui5-switch-no-label-icon{inset-inline-start:.1875rem}.ui5-switch-root .ui5-switch-no-label-icon-on,.ui5-switch-root .ui5-switch-icon-on{color:var(--_ui5_switch_text_active_color)}.ui5-switch-root .ui5-switch-no-label-icon-off,.ui5-switch-root .ui5-switch-icon-off{color:var(--_ui5_switch_text_inactive_color)}:dir(rtl).ui5-switch-root.ui5-switch--checked:not(.ui5-switch--no-label):not(.ui5-switch--semantic) .ui5-switch-slider{transform:var(--_ui5_switch_rtl_transform_with_label)}:dir(rtl).ui5-switch-root.ui5-switch--checked .ui5-switch-slider{transform:var(--_ui5_switch_rtl_transform)}:host([readonly]) .ui5-switch-root{cursor:default}:host([readonly]) .ui5-switch-track,:host([readonly]) .ui5-switch-root.ui5-switch--semantic .ui5-switch-track{background:var(--sapField_ReadOnly_Background);border:.0625rem var(--_ui5_switch_readonly_track_border_style) var(--sapField_ReadOnly_BorderColor)}:host([readonly]) .ui5-switch-handle,:host([readonly]) .ui5-switch-root.ui5-switch--semantic .ui5-switch-handle{background:var(--sapField_ReadOnly_Background);border:.0625rem var(--_ui5_switch_readonly_handle_border_style) var(--sapField_ReadOnly_BorderColor)}:host([readonly]) .ui5-switch-text--on,:host([readonly]) .ui5-switch-text--off,:host([readonly]) .ui5-switch-no-label-icon-on,:host([readonly]) .ui5-switch-no-label-icon-off,:host([readonly]) .ui5-switch-icon-on,:host([readonly]) .ui5-switch-icon-off,:host([readonly]) .ui5-switch-root.ui5-switch--semantic .ui5-switch-icon-on,:host([readonly]) .ui5-switch-root.ui5-switch--semantic .ui5-switch-icon-off,:host([readonly]) .ui5-switch-root.ui5-switch--semantic .ui5-switch-text--on,:host([readonly]) .ui5-switch-root.ui5-switch--semantic .ui5-switch-text--off{color:var(--sapButton_Handle_TextColor)}:host([readonly]) .ui5-switch--desktop.ui5-switch-root:hover .ui5-switch-handle,:host([readonly]) .ui5-switch--desktop.ui5-switch-root.ui5-switch--checked:hover .ui5-switch-handle,:host([readonly]) .ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic:hover .ui5-switch-handle,:host([readonly]) .ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic.ui5-switch--checked:hover .ui5-switch-handle{box-shadow:none}:host([readonly]) .ui5-switch--desktop.ui5-switch-root:hover .ui5-switch-track,:host([readonly]) .ui5-switch--desktop.ui5-switch-root:hover .ui5-switch-handle,:host([readonly]) .ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic:hover .ui5-switch-track,:host([readonly]) .ui5-switch--desktop.ui5-switch-root.ui5-switch--semantic:hover .ui5-switch-handle{background:var(--sapField_ReadOnly_Background);border-color:var(--sapField_ReadOnly_BorderColor)}
|
|
150
150
|
`,J0=function(e,a,t,i){var r=arguments.length,o=r<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,a,t,i);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(a,t,o):n(a,t))||o);return r>3&&o&&Object.defineProperty(a,t,o),o},v7,M0=v7=class extends K1{constructor(){super(...arguments),this.design="Textual",this.readonly=!1,this.checked=!1,this.disabled=!1,this.required=!1,this.value="",this._cancelAction=!1,this._isSpacePressed=!1}get formValidityMessage(){return v7.i18nBundle.getText(ka)}get formValidity(){return{valueMissing:this.required&&!this.checked}}async formElementAnchor(){return this.getFocusDomRefAsync()}get formFormattedValue(){return this.checked?this.value||"on":null}get sapNextIcon(){return this.checked?"accept":"less"}_onfocusin(){this._cancelAction=!1,this._isSpacePressed=!1}_onclick(){this.readonly||this.toggle()}_onkeydown(e){D1(e)&&e.preventDefault(),!this.readonly&&(D1(e)?this._isSpacePressed=!0:(O2(e)||N2(e))&&(this._cancelAction=!0),X1(e)&&this._onclick())}_onkeyup(e){if(this.readonly)return;let a=D1(e),t=O2(e)||N2(e);if(a||yt(e)){if(this._cancelAction){this._cancelAction=!1,this._isSpacePressed=!1,e.preventDefault();return}this._isSpacePressed=!1}else t&&!this._isSpacePressed&&(this._cancelAction=!1);a&&this._onclick()}toggle(){if(!this.disabled&&!this.readonly){this.checked=!this.checked;let e=!this.fireDecoratorEvent("change"),a=!this.fireDecoratorEvent("value-changed");(e||a)&&(this.checked=!this.checked)}}get graphical(){return this.design===kI.Graphical}get hasNoLabel(){return!(this.graphical||this.textOn||this.textOff)}get _textOn(){return this.graphical?"":this.textOn}get _textOff(){return this.graphical?"":this.textOff}get _textAriaHidden(){let e=this.textOn?.toLowerCase(),a=this.textOff?.toLowerCase(),t=v7.i18nBundle.getText(_n).toLowerCase(),i=v7.i18nBundle.getText(pn).toLowerCase();return e===t&&a===i||void 0}get effectiveTabIndex(){return this.disabled?void 0:0}get effectiveAriaReadonly(){return this.readonly?"true":void 0}get effectiveAriaDisabled(){return this.disabled?"true":void 0}get ariaLabelText(){return m2(this)||$a(this)||void 0}get ariaDescribedBy(){return this.readonly?`${this._id}-readonly-desc`:void 0}get ariaDescribedByText(){return this.readonly?v7.i18nBundle.getText(wa):""}};J0([Z()],M0.prototype,"design",void 0);J0([Z({type:Boolean})],M0.prototype,"readonly",void 0);J0([Z({type:Boolean})],M0.prototype,"checked",void 0);J0([Z({type:Boolean})],M0.prototype,"disabled",void 0);J0([Z()],M0.prototype,"textOn",void 0);J0([Z()],M0.prototype,"textOff",void 0);J0([Z()],M0.prototype,"accessibleName",void 0);J0([Z()],M0.prototype,"accessibleNameRef",void 0);J0([Z()],M0.prototype,"tooltip",void 0);J0([Z({type:Boolean})],M0.prototype,"required",void 0);J0([Z()],M0.prototype,"name",void 0);J0([Z()],M0.prototype,"value",void 0);J0([Z({type:Boolean,noAttribute:!0})],M0.prototype,"_cancelAction",void 0);J0([Z({type:Boolean,noAttribute:!0})],M0.prototype,"_isSpacePressed",void 0);J0([W1("@ui5/webcomponents")],M0,"i18nBundle",void 0);M0=v7=J0([B1({tag:"ui5-switch",formAssociated:!0,languageAware:!0,styles:LI,renderer:z1,template:SI}),X("change",{bubbles:!0,cancelable:!0}),X("value-changed",{bubbles:!0,cancelable:!0})],M0);M0.define();var VI=["*"],TI=(()=>{class e{constructor(){this.design=R("Textual"),this.checked=R(!1,{transform:j1}),this.disabled=R(!1,{transform:j1}),this.textOn=R(),this.textOff=R(),this.accessibleName=R(),this.accessibleNameRef=R(),this.tooltip=R(),this.required=R(!1,{transform:j1}),this.name=R(),this.value=R(""),this.ui5Change=g1(),this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["design","checked","disabled","textOn","textOff","accessibleName","accessibleNameRef","tooltip","required","name","value"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5Change"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-switch"],["","ui5-switch",""]],inputs:{design:[1,"design"],checked:[1,"checked"],disabled:[1,"disabled"],textOn:[1,"textOn"],textOff:[1,"textOff"],accessibleName:[1,"accessibleName"],accessibleNameRef:[1,"accessibleNameRef"],tooltip:[1,"tooltip"],required:[1,"required"],name:[1,"name"],value:[1,"value"]},outputs:{ui5Change:"ui5Change"},exportAs:["ui5Switch"],features:[pk([ME])],ngContentSelectors:VI,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),EI=(e,a)=>a.id;function II(e,a){if(e&1){let t=q5();u1(0,"ui5-li-custom",5)(1,"div",9)(2,"span"),p5(3),A1(),u1(4,"ui5-switch",10),_0("ui5Change",function(){let i=W0(t).$implicit,r=Z1();return $0(r.toggle(i.id))}),A1()()()}if(e&2){let t=a.$implicit,i=Z1();v0("accessibleName",t.label||t.component),w1(3),pe(t.label||t.component),w1(),v0("accessibleName",t.label||t.component)("checked",i.selectedIds().has(t.id))}}var DI=class xi{availableCards=R([]);addedCardsIds=R(new Set);open=R(!1);confirm=g1();cancelled=g1();selectedIds=g7(new Set);constructor(){U5(()=>{if(this.open()){let a=new Set(this.availableCards().filter(t=>this.addedCardsIds().has(t.id)).map(t=>t.id));this.selectedIds.set(a)}})}toggle(a){this.selectedIds.update(t=>{let i=new Set(t);return i.has(a)?i.delete(a):i.add(a),i})}confirmSave(){let a=new Set(this.availableCards().map(r=>r.id)),t=this.availableCards().filter(r=>this.selectedIds().has(r.id)&&!this.addedCardsIds().has(r.id)),i=[...this.addedCardsIds()].filter(r=>a.has(r)&&!this.selectedIds().has(r));this.confirm.emit({added:t,removed:i})}static \u0275fac=function(a){return new(a||xi)};static \u0275cmp=Y0({type:xi,selectors:[["mfp-edit-cards-dialog"]],inputs:{availableCards:[1,"availableCards"],addedCardsIds:[1,"addedCardsIds"],open:[1,"open"]},outputs:{confirm:"confirm",cancelled:"cancelled"},decls:13,vars:1,consts:[[3,"ui5BeforeClose","open"],["slot","header",1,"edit-cards-dialog__header"],["level","H5"],[1,"edit-cards-dialog"],["noDataText","No cards available.","selectionMode","None","separators","Inner"],[3,"accessibleName"],["slot","footer",1,"edit-cards-dialog__footer"],["design","Emphasized",3,"click"],["design","Transparent",3,"click"],[1,"edit-cards-dialog__list-item"],[3,"ui5Change","accessibleName","checked"]],template:function(a,t){a&1&&(u1(0,"ui5-dialog",0),_0("ui5BeforeClose",function(){return t.cancelled.emit()}),u1(1,"div",1)(2,"ui5-title",2),p5(3,"Edit Cards"),A1()(),u1(4,"div",3)(5,"ui5-list",4),E7(6,II,5,4,"ui5-li-custom",5,EI),A1()(),u1(8,"div",6)(9,"ui5-button",7),_0("click",function(){return t.confirmSave()}),p5(10,"Save"),A1(),u1(11,"ui5-button",8),_0("click",function(){return t.cancelled.emit()}),p5(12,"Cancel"),A1()()()),a&2&&(v0("open",t.open()),w1(6),I7(t.availableCards()))},dependencies:[c6,zE,pI,mI,TI,op],styles:[`:host{display:contents}.edit-cards-dialog{margin:-1rem;min-width:300px}.edit-cards-dialog__header{display:flex;align-items:flex-start;padding:.75rem 1rem}.edit-cards-dialog__list-item{display:flex;align-items:center;justify-content:space-between;width:100%}.edit-cards-dialog__footer{display:flex;justify-content:flex-end;align-items:center;width:100%;gap:.5rem}
|
|
151
|
-
`],encapsulation:3})},zI=(e,a)=>a.id;function RI(e,a){if(e&1){let t=q5();u1(0,"ui5-button",5),_0("click",function(){W0(t);let i=Z1();return $0(i.removeSection.emit())}),A1()}if(e&2){let t=Z1();v0("accessibleName","Remove section: "+(t.section().title||t.section().id))}}function NI(e,a){if(e&1&&(u1(0,"div",2)(1,"span",6),p5(2),A1()()),e&2){let t=Z1();w1(2),pe(t.section().title)}}function OI(e,a){if(e&1){let t=q5();u1(0,"mfp-dashboard-card",7),_0("removeCard",function(){let i=W0(t).$implicit,r=Z1();return $0(r.removeCard.emit(i.id))}),A1()}if(e&2){let t=a.$implicit,i=Z1();v0("card",t)("editMode",i.editMode()&&i.section().editable!==!1)}}var FI=class Mi{section=R.required();cards=R([]);columns=R(12);editMode=R(!1);removeSection=g1();removeCard=g1();static \u0275fac=function(a){return new(a||Mi)};static \u0275cmp=Y0({type:Mi,selectors:[["mfp-dashboard-section"]],hostVars:2,hostBindings:function(a,t){a&2&&ue("grid-column","span "+(t.section().w??12))},inputs:{section:[1,"section"],cards:[1,"cards"],columns:[1,"columns"],editMode:[1,"editMode"]},outputs:{removeSection:"removeSection",removeCard:"removeCard"},decls:6,vars:6,consts:[[1,"section"],["design","Default","icon","decline",1,"section__remove",3,"accessibleName"],[1,"section__header"],[1,"section__grid"],[3,"card","editMode"],["design","Default","icon","decline",1,"section__remove",3,"click","accessibleName"],[1,"section__title"],[3,"removeCard","card","editMode"]],template:function(a,t){a&1&&(u1(0,"div",0),r2(1,RI,1,1,"ui5-button",1),r2(2,NI,3,1,"div",2),u1(3,"div",3),E7(4,OI,1,2,"mfp-dashboard-card",4,zI),A1()()),a&2&&(V_("section--edit",t.editMode()&&t.section().editable!==!1),w1(),o2(t.editMode()&&t.section().editable!==!1?1:-1),w1(),o2(t.section().title?2:-1),w1(),ue("--cols",t.columns()),w1(),I7(t.cards()))},dependencies:[sp,c6],styles:['[_nghost-%COMP%]{display:block;min-width:0}.section[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;border:1px solid transparent;border-top:none;border-radius:0 0 .5rem .5rem;padding:1.25rem
|
|
151
|
+
`],encapsulation:3})},zI=(e,a)=>a.id;function RI(e,a){if(e&1){let t=q5();u1(0,"ui5-button",5),_0("click",function(){W0(t);let i=Z1();return $0(i.removeSection.emit())}),A1()}if(e&2){let t=Z1();v0("accessibleName","Remove section: "+(t.section().title||t.section().id))}}function NI(e,a){if(e&1&&(u1(0,"div",2)(1,"span",6),p5(2),A1()()),e&2){let t=Z1();w1(2),pe(t.section().title)}}function OI(e,a){if(e&1){let t=q5();u1(0,"mfp-dashboard-card",7),_0("removeCard",function(){let i=W0(t).$implicit,r=Z1();return $0(r.removeCard.emit(i.id))}),A1()}if(e&2){let t=a.$implicit,i=Z1();v0("card",t)("editMode",i.editMode()&&i.section().editable!==!1)}}var FI=class Mi{section=R.required();cards=R([]);columns=R(12);editMode=R(!1);removeSection=g1();removeCard=g1();static \u0275fac=function(a){return new(a||Mi)};static \u0275cmp=Y0({type:Mi,selectors:[["mfp-dashboard-section"]],hostVars:2,hostBindings:function(a,t){a&2&&ue("grid-column","span "+(t.section().w??12))},inputs:{section:[1,"section"],cards:[1,"cards"],columns:[1,"columns"],editMode:[1,"editMode"]},outputs:{removeSection:"removeSection",removeCard:"removeCard"},decls:6,vars:6,consts:[[1,"section"],["design","Default","icon","decline",1,"section__remove",3,"accessibleName"],[1,"section__header"],[1,"section__grid"],[3,"card","editMode"],["design","Default","icon","decline",1,"section__remove",3,"click","accessibleName"],[1,"section__title"],[3,"removeCard","card","editMode"]],template:function(a,t){a&1&&(u1(0,"div",0),r2(1,RI,1,1,"ui5-button",1),r2(2,NI,3,1,"div",2),u1(3,"div",3),E7(4,OI,1,2,"mfp-dashboard-card",4,zI),A1()()),a&2&&(V_("section--edit",t.editMode()&&t.section().editable!==!1),w1(),o2(t.editMode()&&t.section().editable!==!1?1:-1),w1(),o2(t.section().title?2:-1),w1(),ue("--cols",t.columns()),w1(),I7(t.cards()))},dependencies:[sp,c6],styles:['[_nghost-%COMP%]{display:block;min-width:0}.section[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;border:1px solid transparent;border-top:none;border-radius:0 0 .5rem .5rem;padding-top:1.25rem}.section--edit[_ngcontent-%COMP%]{border-color:var(--sapGroup_ContentBorderColor, #d9d9d9)}.section__remove[_ngcontent-%COMP%]{position:absolute;top:-.75rem;right:-.75rem;z-index:10;border-radius:50%!important;width:1.25rem!important;height:1.25rem!important;min-width:unset!important;padding:0!important;font-size:.625rem!important}.section__header[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;transform:translateY(-50%);display:flex;align-items:center;pointer-events:none}.section__header[_ngcontent-%COMP%]:before, .section__header[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:transparent}.section__header[_ngcontent-%COMP%]:before{max-width:.75rem;flex:0 0 .75rem}.section--edit[_ngcontent-%COMP%] .section__header[_ngcontent-%COMP%]:before, .section--edit[_ngcontent-%COMP%] .section__header[_ngcontent-%COMP%]:after{background:var(--sapGroup_ContentBorderColor, #d9d9d9)}.section__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;color:var(--sapTextColor, #fff);padding:0 .5rem;white-space:nowrap;pointer-events:all}.section__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(var(--cols, 12),1fr);grid-auto-rows:var(--row-height, 10px);column-gap:var(--column-gap, 0px);row-gap:var(--row-gap, 0px)}@media(max-width:599px){.section__grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media(min-width:600px)and (max-width:1023px){.section__grid[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}}']})},PI=["*"],UI=(()=>{class e{constructor(){this.headerText=R(),this.open=R(!1,{transform:j1}),this.placement=R("Bottom"),this.horizontalAlign=R("Start"),this.loading=R(!1,{transform:j1}),this.loadingDelay=R(1e3),this.opener=R(),this.ui5ItemClick=g1(),this.ui5BeforeOpen=g1(),this.ui5Open=g1(),this.ui5BeforeClose=g1(),this.ui5Close=g1(),this.slots=[{name:"default",description:"Defines the items of this component.\n\n**Note:** Use `ui5-menu-item` and `ui5-menu-separator` for their intended design."}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["headerText","open","placement","horizontalAlign","loading","loadingDelay","opener"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5ItemClick","ui5BeforeOpen","ui5Open","ui5BeforeClose","ui5Close"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-menu"],["","ui5-menu",""]],inputs:{headerText:[1,"headerText"],open:[1,"open"],placement:[1,"placement"],horizontalAlign:[1,"horizontalAlign"],loading:[1,"loading"],loadingDelay:[1,"loadingDelay"],opener:[1,"opener"]},outputs:{ui5ItemClick:"ui5ItemClick",ui5BeforeOpen:"ui5BeforeOpen",ui5Open:"ui5Open",ui5BeforeClose:"ui5BeforeClose",ui5Close:"ui5Close"},exportAs:["ui5Menu"],ngContentSelectors:PI,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),qI=["*"],jI=(()=>{class e{constructor(){this.text=R(),this.additionalText=R(),this.icon=R(),this.disabled=R(!1,{transform:j1}),this.loading=R(!1,{transform:j1}),this.loadingDelay=R(1e3),this.accessibleName=R(),this.tooltip=R(),this.checked=R(!1,{transform:j1}),this.accessibilityAttributes=R({}),this.type=R("Active"),this.navigated=R(!1,{transform:j1}),this.highlight=R("None"),this.selected=R(!1,{transform:j1}),this.ui5BeforeOpen=g1(),this.ui5Open=g1(),this.ui5BeforeClose=g1(),this.ui5Close=g1(),this.ui5Check=g1(),this.ui5DetailClick=g1(),this.slots=[{name:"default",description:"Defines the items of this component.\n\n**Note:** The slot can hold menu item and menu separator items.\n\nIf there are items added to this slot, an arrow will be displayed at the end\nof the item in order to indicate that there are items added. In that case components added\nto `endContent` slot or `additionalText` content will not be displayed.\n\nThe priority of what will be displayed at the end of the menu item is as follows:\nsub-menu arrow (if there are items added in `items` slot) -> components added in `endContent` -> text set to `additionalText`."},{name:"endContent",description:"Defines the components that should be displayed at the end of the menu item.\n\n**Note:** It is highly recommended to slot only components of type `ui5-button`,`ui5-link`\nor `ui5-icon` in order to preserve the intended design. If there are components added to this slot,\nand there is text set in `additionalText`, it will not be displayed. If there are items added to `items` slot,\nnether `additionalText` nor components added to this slot would be displayed.\n\nThe priority of what will be displayed at the end of the menu item is as follows:\nsub-menu arrow (if there are items added in `items` slot) -> components added in `endContent` -> text set to `additionalText`.\n\nApplication developers are responsible for ensuring that interactive elements placed in the `endContent` slot\nhave the correct accessibility behaviour, including their enabled or disabled states.\nThe menu does not manage these aspects when the menu item state changes.",since:"2.0.0"},{name:"deleteButton",description:`Defines the delete button, displayed in "Delete" mode.
|
|
152
152
|
**Note:** While the slot allows custom buttons, to match
|
|
153
153
|
design guidelines, please use the \`ui5-button\` component.
|
|
154
154
|
**Note:** When the slot is not present, a built-in delete button will be displayed.`,since:"1.9.0"}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["text","additionalText","icon","disabled","loading","loadingDelay","accessibleName","tooltip","checked","accessibilityAttributes","type","navigated","highlight","selected"];for(let o of i){let n=o.replace(/-./g,s=>s[1].toUpperCase());this[n]&&typeof this[n]=="function"&&P5(this.injector,()=>{U5(()=>{let s=this[n]();t&&(t[o]=s)})})}let r=["ui5BeforeOpen","ui5Open","ui5BeforeClose","ui5Close","ui5Check","ui5DetailClick"];for(let o of r){let n=o.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[o]&&typeof this[o].emit=="function"&&t.addEventListener&&t.addEventListener(n,s=>{this[o].emit(s)})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-menu-item"],["","ui5-menu-item",""]],inputs:{text:[1,"text"],additionalText:[1,"additionalText"],icon:[1,"icon"],disabled:[1,"disabled"],loading:[1,"loading"],loadingDelay:[1,"loadingDelay"],accessibleName:[1,"accessibleName"],tooltip:[1,"tooltip"],checked:[1,"checked"],accessibilityAttributes:[1,"accessibilityAttributes"],type:[1,"type"],navigated:[1,"navigated"],highlight:[1,"highlight"],selected:[1,"selected"]},outputs:{ui5BeforeOpen:"ui5BeforeOpen",ui5Open:"ui5Open",ui5BeforeClose:"ui5BeforeClose",ui5Close:"ui5Close",ui5Check:"ui5Check",ui5DetailClick:"ui5DetailClick"},exportAs:["ui5MenuItem"],ngContentSelectors:qI,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),GI=["*"],WI=(()=>{class e{constructor(){this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-menu-separator"],["","ui5-menu-separator",""]],exportAs:["ui5MenuSeparator"],ngContentSelectors:GI,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),$I=["*"],XI=(()=>{class e{constructor(){this.maxLines=R(1/0),this.emptyIndicatorMode=R("Off"),this.slots=[{name:"default",description:"Defines the text of the component."}],this.elementRef=q(H0),this.injector=q(R0)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let t=this.element,i=["maxLines","emptyIndicatorMode"];for(let r of i){let o=r.replace(/-./g,n=>n[1].toUpperCase());this[o]&&typeof this[o]=="function"&&P5(this.injector,()=>{U5(()=>{let n=this[o]();t&&(t[r]=n)})})}}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=Y0({type:e,selectors:[["ui5-text"],["","ui5-text",""]],inputs:{maxLines:[1,"maxLines"],emptyIndicatorMode:[1,"emptyIndicatorMode"]},exportAs:["ui5Text"],ngContentSelectors:$I,decls:1,vars:0,template:function(t,i){t&1&&(s5(),t5(0))},encapsulation:2,changeDetection:0})}}return e})(),KI="action-settings",YI="M0 7c0-.292.094-.531.281-.719A.973.973 0 0 1 1 6h.813a2.68 2.68 0 0 1 .171-.484c.073-.157.151-.318.235-.485l-.594-.562a1.043 1.043 0 0 1-.281-.719c0-.27.093-.5.281-.688l1.438-1.437a.935.935 0 0 1 .687-.281c.292 0 .531.093.719.281l.562.594c.167-.084.328-.162.485-.235A2.68 2.68 0 0 1 6 1.813V1c0-.292.094-.531.281-.719A.973.973 0 0 1 7 0h2c.292 0 .531.094.719.281A.973.973 0 0 1 10 1v.813c.167.062.328.125.484.187.157.063.308.135.454.219l.593-.594a.974.974 0 0 1 .719-.281c.27 0 .5.093.688.281l1.437 1.438a.935.935 0 0 1 .281.687c0 .27-.094.51-.281.719l-.594.593c.167.271.292.584.375.938H15c.292 0 .531.094.719.281A.973.973 0 0 1 16 7v2a.973.973 0 0 1-.281.719A.974.974 0 0 1 15 10h-.844a3.68 3.68 0 0 1-.375.938l.594.593c.188.209.281.448.281.719 0 .27-.094.5-.281.688l-1.438 1.437a.935.935 0 0 1-.687.281.974.974 0 0 1-.719-.281l-.594-.594a3.62 3.62 0 0 1-.453.219 22.56 22.56 0 0 1-.484.188V15a.974.974 0 0 1-.281.719A.973.973 0 0 1 9 16H7a.973.973 0 0 1-.719-.281A.974.974 0 0 1 6 15v-.813a2.683 2.683 0 0 1-.484-.171 19.641 19.641 0 0 1-.485-.235l-.562.594a.973.973 0 0 1-.719.281.94.94 0 0 1-.688-.281l-1.437-1.438a.935.935 0 0 1-.281-.687c0-.27.093-.51.281-.719l.594-.562a20.151 20.151 0 0 1-.235-.485A2.68 2.68 0 0 1 1.813 10H1a.973.973 0 0 1-.719-.281A.973.973 0 0 1 0 9V7Zm1 0v2h1.531c.063.208.12.39.172.547.052.156.11.307.172.453.063.167.14.338.234.516.094.177.204.39.329.64L2.343 12.25l1.406 1.406 1.094-1.094c.354.209.708.386 1.062.532.354.146.719.27 1.094.375V15h2v-1.563c.208-.062.39-.12.547-.171.156-.053.307-.1.453-.141.167-.083.344-.167.531-.25a8.68 8.68 0 0 0 .625-.313l1.094 1.094 1.406-1.406-1.094-1.125c.188-.354.35-.703.485-1.047s.265-.703.39-1.078H15V7h-1.563a9.505 9.505 0 0 0-.874-2.125l1.093-1.125-1.406-1.406-1.094 1.094a7.478 7.478 0 0 0-1.047-.516A9.907 9.907 0 0 0 9 2.562V1H7v1.531l-.516.172c-.156.052-.317.11-.484.172l-.563.25a5.519 5.519 0 0 0-.593.313L3.75 2.343 2.344 3.75l1.094 1.094A12.821 12.821 0 0 0 2.53 7H1Zm4.219 0 .093-.281a3.48 3.48 0 0 1 .22-.375c.083-.125.176-.24.28-.344.209-.208.396-.37.563-.484A3.49 3.49 0 0 1 7 5.187a3.55 3.55 0 0 1 1-.156c.354 0 .688.063 1 .188l.281.093.375.25c.125.084.24.178.344.282a.559.559 0 0 1 .156.156c.271.25.469.583.594 1 .125.313.188.646.188 1s-.063.688-.188 1a2.41 2.41 0 0 1-.594 1 .56.56 0 0 1-.156.156 2.25 2.25 0 0 1-.344.281l-.375.25-.281.094a2.665 2.665 0 0 1-1 .188 3.55 3.55 0 0 1-1-.156 3.454 3.454 0 0 1-.625-.329A4.164 4.164 0 0 1 5.812 10a2.249 2.249 0 0 1-.28-.344 3.496 3.496 0 0 1-.22-.375L5.22 9a2.667 2.667 0 0 1-.188-1c0-.354.063-.688.188-1Zm.812 1c0 .354.089.682.266.984A1.9 1.9 0 0 0 7 9.688c.292.187.625.28 1 .28.125 0 .292-.02.5-.062a2.42 2.42 0 0 0 .656-.328c.188-.135.354-.328.5-.578.188-.292.281-.625.281-1 0-.396-.093-.73-.28-1a1.843 1.843 0 0 0-.5-.578 2.42 2.42 0 0 0-.657-.328A2.69 2.69 0 0 0 8 6.03c-.375 0-.708.094-1 .282a1.897 1.897 0 0 0-.703.703c-.177.302-.266.63-.266.984Z",QI=!1,JI=Qa,eD="0 0 16 16",tD="SAP-icons-v4",aD="@ui5/webcomponents-icons";t1(KI,{pathData:YI,ltr:QI,viewBox:eD,accData:JI,collection:tD,packageName:aD});var iD="action-settings",rD="M8.549 0a1.757 1.757 0 0 1 1.568 1.49l.121.805a.251.251 0 0 0 .123.18l1.238.715a.252.252 0 0 0 .217.017l.755-.298a1.75 1.75 0 0 1 2.156.754v.001l.387.673a1.75 1.75 0 0 1-.423 2.244l-.617.49a.251.251 0 0 0-.094.196v1.465c0 .076.035.148.094.196l.616.49c.677.54.858 1.495.425 2.245l-.387.673h-.001a1.75 1.75 0 0 1-2.155.755l-.757-.298a.251.251 0 0 0-.217.016l-1.238.715a.251.251 0 0 0-.122.18l-.12.806A1.75 1.75 0 0 1 8.387 16H7.61a1.75 1.75 0 0 1-1.698-1.333l-.16-1.013a.25.25 0 0 0-.122-.18l-1.184-.684a.251.251 0 0 0-.216-.016l-.803.317a1.75 1.75 0 0 1-2.156-.754l-.387-.675-.001.001a1.753 1.753 0 0 1 .425-2.244l.695-.555A.25.25 0 0 0 2.1 8.67V7.33a.25.25 0 0 0-.095-.195L1.31 6.58a1.753 1.753 0 0 1-.425-2.244l.388-.674a1.75 1.75 0 0 1 2.156-.754l.802.317c.07.027.15.02.216-.017l1.185-.685a.25.25 0 0 0 .122-.18l.16-1.011A1.75 1.75 0 0 1 7.611 0h.938Zm-.982 1.504a.25.25 0 0 0-.19.164l-.14.9a1.75 1.75 0 0 1-.855 1.255l-1.185.685a1.752 1.752 0 0 1-1.516.113l-.803-.315a.25.25 0 0 0-.307.107l-.388.673a.253.253 0 0 0 .06.321l.696.555c.416.332.66.835.66 1.368v1.34a1.75 1.75 0 0 1-.66 1.368l-.695.555a.251.251 0 0 0-.061.321l.387.674a.25.25 0 0 0 .308.107l.802-.315a1.752 1.752 0 0 1 1.517.112l1.185.685c.461.266.775.729.854 1.256l.14.9a.25.25 0 0 0 .235.168h.777a.25.25 0 0 0 .246-.213l.121-.806a1.75 1.75 0 0 1 .855-1.255l1.238-.716a1.751 1.751 0 0 1 1.516-.114l.757.298c.1.04.213.01.28-.07l.415-.71a.25.25 0 0 0-.06-.321l-.617-.492a1.751 1.751 0 0 1-.66-1.369V7.267c0-.533.244-1.037.66-1.369l.616-.49a.25.25 0 0 0 .06-.321l-.387-.675a.249.249 0 0 0-.307-.106l-.758.297a1.75 1.75 0 0 1-1.515-.114L9.61 3.773a1.75 1.75 0 0 1-.855-1.255l-.121-.805a.25.25 0 0 0-.201-.21h-.866ZM8 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z",oD=!1,nD=Qa,sD="0 0 16 16",cD="SAP-icons-v5",lD="@ui5/webcomponents-icons";t1(iD,{pathData:rD,ltr:oD,viewBox:sD,accData:nD,collection:cD,packageName:lD});var hD="menu2",uD="M1 4.01a.96.96 0 0 1-.703-.298A.969.969 0 0 1 0 3.005c0-.293.099-.534.297-.722A.985.985 0 0 1 1 2h14a.97.97 0 0 1 .719.283.981.981 0 0 1 .281.722.996.996 0 0 1-.281.707.944.944 0 0 1-.719.298H1Zm0 4.995c-.27 0-.505-.1-.703-.298A.969.969 0 0 1 0 8c0-.293.099-.534.297-.723A.985.985 0 0 1 1 6.995h14a.97.97 0 0 1 .719.282c.187.189.281.43.281.723a.996.996 0 0 1-.281.707.944.944 0 0 1-.719.298H1ZM1 14c-.27 0-.505-.1-.703-.298A.969.969 0 0 1 0 12.995c0-.293.099-.534.297-.723A.986.986 0 0 1 1 11.99h14c.292 0 .531.095.719.283.187.189.281.43.281.723a.996.996 0 0 1-.281.707A.945.945 0 0 1 15 14H1Z",dD=!1,_D="0 0 16 16",pD="SAP-icons-v4",vD="@ui5/webcomponents-icons";t1(hD,{pathData:uD,ltr:dD,viewBox:_D,collection:pD,packageName:vD});var mD="menu2",fD="M15.25 12.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5h14.5Zm0-5.5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5h14.5Zm0-5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5h14.5Z",gD=!1,AD="0 0 16 16",bD="SAP-icons-v5",wD="@ui5/webcomponents-icons";t1(mD,{pathData:fD,ltr:gD,viewBox:AD,collection:bD,packageName:wD});var E=class R5{static getElements(a,t=document){if(typeof a=="string"){let i="getElementById"in t?t:void 0;if(i&&!isNaN(+a[0])){let o=i.getElementById(a);return o?[o]:[]}let r=t.querySelectorAll(a);if(!r.length&&a[0]!=="."&&a[0]!=="#"&&(r=t.querySelectorAll("."+a),r.length||(r=t.querySelectorAll("#"+a)),!r.length)){let o=t.querySelector(`[gs-id="${a}"]`);return o?[o]:[]}return Array.from(r)}return[a]}static getElement(a,t=document){if(typeof a=="string"){let i="getElementById"in t?t:void 0;if(!a.length)return null;if(i&&a[0]==="#")return i.getElementById(a.substring(1));if(a[0]==="#"||a[0]==="."||a[0]==="[")return t.querySelector(a);if(i&&!isNaN(+a[0]))return i.getElementById(a);let r=t.querySelector(a);return i&&!r&&(r=i.getElementById(a)),r||(r=t.querySelector("."+a)),r}return a}static lazyLoad(a){return a.lazyLoad||a.grid?.opts?.lazyLoad&&a.lazyLoad!==!1}static createDiv(a,t){let i=document.createElement("div");return a.forEach(r=>{r&&i.classList.add(r)}),t?.appendChild(i),i}static shouldSizeToContent(a,t=!1){return a?.grid&&(t?a.sizeToContent===!0||a.grid.opts.sizeToContent===!0&&a.sizeToContent===void 0:!!a.sizeToContent||a.grid.opts.sizeToContent&&a.sizeToContent!==!1)}static isIntercepted(a,t){return!(a.y>=t.y+t.h||a.y+a.h<=t.y||a.x+a.w<=t.x||a.x>=t.x+t.w)}static isTouching(a,t){return R5.isIntercepted(a,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(a,t){let i=a.x>t.x?a.x:t.x,r=a.x+a.w<t.x+t.w?a.x+a.w:t.x+t.w;if(r<=i)return 0;let o=a.y>t.y?a.y:t.y,n=a.y+a.h<t.y+t.h?a.y+a.h:t.y+t.h;return n<=o?0:(r-i)*(n-o)}static area(a){return a.w*a.h}static sort(a,t=1){return a.sort((i,r)=>{let o=t*((i.y??1e4)-(r.y??1e4));return o===0?t*((i.x??1e4)-(r.x??1e4)):o})}static find(a,t){return t?a.find(i=>i.id===t):void 0}static toBool(a){return typeof a=="boolean"?a:typeof a=="string"?(a=a.toLowerCase(),!(a===""||a==="no"||a==="false"||a==="0")):!!a}static toNumber(a){return a===null||a.length===0?void 0:Number(a)}static parseHeight(a){let t,i="px";if(typeof a=="string")if(a==="auto"||a==="")t=0;else{let r=a.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!r)throw new Error(`Invalid height val = ${a}`);i=r[2]||"px",t=parseFloat(r[1])}else t=a;return{h:t,unit:i}}static defaults(a,...t){return t.forEach(i=>{for(let r in i){if(!i.hasOwnProperty(r))return;a[r]===null||a[r]===void 0?a[r]=i[r]:typeof i[r]=="object"&&typeof a[r]=="object"&&R5.defaults(a[r],i[r])}}),a}static same(a,t){if(typeof a!="object")return a==t;if(typeof a!=typeof t||Object.keys(a).length!==Object.keys(t).length)return!1;for(let i in a)if(a[i]!==t[i])return!1;return!0}static copyPos(a,t,i=!1){return t.x!==void 0&&(a.x=t.x),t.y!==void 0&&(a.y=t.y),t.w!==void 0&&(a.w=t.w),t.h!==void 0&&(a.h=t.h),i&&(t.minW&&(a.minW=t.minW),t.minH&&(a.minH=t.minH),t.maxW&&(a.maxW=t.maxW),t.maxH&&(a.maxH=t.maxH)),a}static samePos(a,t){return a&&t&&a.x===t.x&&a.y===t.y&&(a.w||1)===(t.w||1)&&(a.h||1)===(t.h||1)}static sanitizeMinMax(a){a.minW||delete a.minW,a.minH||delete a.minH,a.maxW||delete a.maxW,a.maxH||delete a.maxH}static removeInternalAndSame(a,t){if(!(typeof a!="object"||typeof t!="object")&&!(Array.isArray(a)||Array.isArray(t)))for(let i in a){let r=a[i],o=t[i];i[0]==="_"||r===o?delete a[i]:r&&typeof r=="object"&&o!==void 0&&(R5.removeInternalAndSame(r,o),Object.keys(r).length||delete a[i])}}static removeInternalForSave(a,t=!0){for(let i in a)(i[0]==="_"||a[i]===null||a[i]===void 0)&&delete a[i];delete a.grid,t&&delete a.el,a.autoPosition||delete a.autoPosition,a.noResize||delete a.noResize,a.noMove||delete a.noMove,a.locked||delete a.locked,(a.w===1||a.w===a.minW)&&delete a.w,(a.h===1||a.h===a.minH)&&delete a.h}static throttle(a,t){let i=!1;return(...r)=>{i||(i=!0,setTimeout(()=>{a(...r),i=!1},t))}}static removePositioningStyles(a){let t=a.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(a){if(!a)return document.scrollingElement||document.documentElement;let t=getComputedStyle(a).overflowY;return(t==="auto"||t==="scroll")&&a.scrollHeight>a.clientHeight?a:R5.getScrollElement(a.parentElement)}static updateScrollResize(a,t,i){let r=R5.getScrollElement(t),o=r.clientHeight,n=r===R5.getScrollElement()?0:r.getBoundingClientRect().top,s=a.clientY-n,c=s<i,l=s>o-i;c?r.scrollBy({behavior:"smooth",top:s-i}):l&&r.scrollBy({behavior:"smooth",top:i-(o-s)})}static clone(a){return a==null||typeof a!="object"?a:a instanceof Array?[...a]:O({},a)}static cloneDeep(a){let t=["parentGrid","el","grid","subGrid","engine"],i=R5.clone(a);for(let r in i)i.hasOwnProperty(r)&&typeof i[r]=="object"&&r.substring(0,2)!=="__"&&!t.find(o=>o===r)&&(i[r]=R5.cloneDeep(a[r]));return i}static cloneNode(a){let t=a.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(a,t){let i;typeof t=="string"?i=R5.getElement(t):i=t,i&&i.appendChild(a)}static addElStyles(a,t){if(t instanceof Object)for(let i in t)t.hasOwnProperty(i)&&(Array.isArray(t[i])?t[i].forEach(r=>{a.style[i]=r}):a.style[i]=t[i])}static initEvent(a,t){let i={type:t.type},r={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:a.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(o=>i[o]=a[o]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(o=>i[o]=a[o]),O(O({},i),r)}static simulateMouseEvent(a,t,i){let r=a,o=new MouseEvent(t,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY,ctrlKey:r.ctrlKey??!1,altKey:r.altKey??!1,shiftKey:r.shiftKey??!1,metaKey:r.metaKey??!1,button:0,relatedTarget:a.target});(i||a.target).dispatchEvent(o)}static getValuesFromTransformedElement(a){let t=document.createElement("div");R5.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),a.appendChild(t);let i=t.getBoundingClientRect();return a.removeChild(t),t.remove(),{xScale:1/i.width,yScale:1/i.height,xOffset:i.left,yOffset:i.top}}static swap(a,t,i){if(!a)return;let r=a[t];a[t]=a[i],a[i]=r}static canBeRotated(a){return!(!a||a.w===a.h||a.locked||a.noResize||a.grid?.opts.disableResize||a.minW&&a.minW===a.maxW||a.minH&&a.minH===a.maxH)}},ch=(()=>{class e{constructor(t={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=t.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=t.maxRow,this._float=t.float,this.nodes=t.nodes||[],this.onChange=t.onChange}batchUpdate(t=!0,i=!0){return!!this.batchMode===t?this:(this.batchMode=t,t?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,i&&this._packNodes(),this._notify()),this)}_useEntireRowArea(t,i){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!t._moving||t._skipDown||i.y<=t.y)}_fixCollisions(t,i=t,r,o={}){if(this.sortNodes(-1),r=r||this.collide(t,i),!r)return!1;if(t._moving&&!o.nested&&!this.float&&this.swap(t,r))return!0;let n=i;!this._loading&&this._useEntireRowArea(t,i)&&(n={x:0,w:this.column,y:i.y,h:i.h},r=this.collide(t,n,o.skip));let s=!1,c={nested:!0,pack:!1},l=0;for(;r=r||this.collide(t,n,o.skip);){if(l++>this.nodes.length*2)throw new Error("Infinite collide check");let d;if(r.locked||this._loading||t._moving&&!t._skipDown&&i.y>t.y&&!this.float&&(!this.collide(r,h1(O({},r),{y:t.y}),t)||!this.collide(r,h1(O({},r),{y:i.y-r.h}),t))){t._skipDown=t._skipDown||i.y>t.y;let u=O(h1(O({},i),{y:r.y+r.h}),c);d=this._loading&&E.samePos(t,u)?!0:this.moveNode(t,u),(r.locked||this._loading)&&d?E.copyPos(i,t):!r.locked&&d&&o.pack&&(this._packNodes(),i.y=r.y+r.h,E.copyPos(t,i)),s=s||d}else d=this.moveNode(r,O(h1(O({},r),{y:i.y+i.h,skip:t}),c));if(!d)return s;r=void 0}return s}collide(t,i=t,r){let o=t._id,n=r?._id;return this.nodes.find(s=>s._id!==o&&s._id!==n&&E.isIntercepted(s,i))}collideAll(t,i=t,r){let o=t._id,n=r?._id;return this.nodes.filter(s=>s._id!==o&&s._id!==n&&E.isIntercepted(s,i))}directionCollideCoverage(t,i,r){if(!i.rect||!t._rect)return;let o=t._rect,n=O({},i.rect);n.y>o.y?(n.h+=n.y-o.y,n.y=o.y):n.h+=o.y-n.y,n.x>o.x?(n.w+=n.x-o.x,n.x=o.x):n.w+=o.x-n.x;let s,c=.5;for(let l of r){if(l.locked||!l._rect)break;let d=l._rect,u=Number.MAX_VALUE,m=Number.MAX_VALUE;o.y<d.y?u=(n.y+n.h-d.y)/d.h:o.y+o.h>d.y+d.h&&(u=(d.y+d.h-n.y)/d.h),o.x<d.x?m=(n.x+n.w-d.x)/d.w:o.x+o.w>d.x+d.w&&(m=(d.x+d.w-n.x)/d.w);let _=Math.min(m,u);_>c&&(c=_,s=l)}return i.collide=s,s}cacheRects(t,i,r,o,n,s){return this.nodes.forEach(c=>c._rect={y:c.y*i+r,x:c.x*t+s,w:c.w*t-s-o,h:c.h*i-r-n}),this}swap(t,i){if(!i||i.locked||!t||t.locked)return!1;function r(){let n=i.x,s=i.y;return i.x=t.x,i.y=t.y,t.h!=i.h?(t.x=n,t.y=i.y+i.h):t.w!=i.w?(t.x=i.x+i.w,t.y=s):(t.x=n,t.y=s),t._dirty=i._dirty=!0,!0}let o;if(t.w===i.w&&t.h===i.h&&(t.x===i.x||t.y===i.y)&&(o=E.isTouching(t,i)))return r();if(o!==!1){if(t.w===i.w&&t.x===i.x&&(o||(o=E.isTouching(t,i)))){if(i.y<t.y){let n=t;t=i,i=n}return r()}if(o!==!1){if(t.h===i.h&&t.y===i.y&&(o||(o=E.isTouching(t,i)))){if(i.x<t.x){let n=t;t=i,i=n}return r()}return!1}}}isAreaEmpty(t,i,r,o){let n={x:t||0,y:i||0,w:r||1,h:o||1};return!this.collide(n)}compact(t="compact",i=!0){if(this.nodes.length===0)return this;i&&this.sortNodes();let r=this.batchMode;r||this.batchUpdate();let o=this._inColumnResize;o||(this._inColumnResize=!0);let n=this.nodes;return this.nodes=[],n.forEach((s,c,l)=>{let d;s.locked||(s.autoPosition=!0,t==="list"&&c&&(d=l[c-1])),this.addNode(s,!1,d)}),o||delete this._inColumnResize,r||this.batchUpdate(!1),this}set float(t){this._float!==t&&(this._float=t||!1,t||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(t=1){return this.nodes=E.sort(this.nodes,t),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(t=>{if(t._updating||t._orig===void 0||t.y===t._orig.y)return;let i=t.y;for(;i>t._orig.y;)--i,this.collide(t,{x:t.x,y:i,w:t.w,h:t.h})||(t._dirty=!0,t.y=i)}):this.nodes.forEach((t,i)=>{if(!t.locked)for(;t.y>0;){let r=i===0?0:t.y-1;if(!(i===0||!this.collide(t,{x:t.x,y:r,w:t.w,h:t.h})))break;t._dirty=t.y!==r,t.y=r}}),this)}prepareNode(t,i){t._id=t._id??e._idSeq++;let r=t.id;if(r){let n=1;for(;this.nodes.find(s=>s.id===t.id&&s!==t);)t.id=r+"_"+n++}(t.x===void 0||t.y===void 0||t.x===null||t.y===null)&&(t.autoPosition=!0);let o={x:0,y:0,w:1,h:1};return E.defaults(t,o),t.autoPosition||delete t.autoPosition,t.noResize||delete t.noResize,t.noMove||delete t.noMove,E.sanitizeMinMax(t),typeof t.x=="string"&&(t.x=Number(t.x)),typeof t.y=="string"&&(t.y=Number(t.y)),typeof t.w=="string"&&(t.w=Number(t.w)),typeof t.h=="string"&&(t.h=Number(t.h)),isNaN(t.x)&&(t.x=o.x,t.autoPosition=!0),isNaN(t.y)&&(t.y=o.y,t.autoPosition=!0),isNaN(t.w)&&(t.w=o.w),isNaN(t.h)&&(t.h=o.h),this.nodeBoundFix(t,i),t}nodeBoundFix(t,i){let r=t._orig||E.copyPos({},t);if(t.maxW&&(t.w=Math.min(t.w||1,t.maxW)),t.maxH&&(t.h=Math.min(t.h||1,t.maxH)),t.minW&&(t.w=Math.max(t.w||1,t.minW)),t.minH&&(t.h=Math.max(t.h||1,t.minH)),(t.x||0)+(t.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&t._id!=null&&this.findCacheLayout(t,this.defaultColumn)===-1){let o=O({},t);o.autoPosition||o.x===void 0?(delete o.x,delete o.y):o.x=Math.min(this.defaultColumn-1,o.x),o.w=Math.min(this.defaultColumn,o.w||1),this.cacheOneLayout(o,this.defaultColumn)}return t.w>this.column?t.w=this.column:t.w<1&&(t.w=1),this.maxRow&&t.h>this.maxRow?t.h=this.maxRow:t.h<1&&(t.h=1),t.x<0&&(t.x=0),t.y<0&&(t.y=0),t.x+t.w>this.column&&(i?t.w=this.column-t.x:t.x=this.column-t.w),this.maxRow&&t.y+t.h>this.maxRow&&(i?t.h=this.maxRow-t.y:t.y=this.maxRow-t.h),E.samePos(t,r)||(t._dirty=!0),this}getDirtyNodes(t){return t?this.nodes.filter(i=>i._dirty&&!E.samePos(i,i._orig)):this.nodes.filter(i=>i._dirty)}_notify(t){if(this.batchMode||!this.onChange)return this;let i=(t||[]).concat(this.getDirtyNodes());return this.onChange(i),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(t=>{delete t._dirty,delete t._lastTried}),this)}saveInitial(){return this.nodes.forEach(t=>{t._orig=E.copyPos({},t),delete t._dirty}),this._hasLocked=this.nodes.some(t=>t.locked),this}restoreInitial(){return this.nodes.forEach(t=>{!t._orig||E.samePos(t,t._orig)||(E.copyPos(t,t._orig),t._dirty=!0)}),this._notify(),this}findEmptyPosition(t,i=this.nodes,r=this.column,o){let n=o?o.y*r+(o.x+o.w):0,s=!1;for(let c=n;!s;++c){let l=c%r,d=Math.floor(c/r);if(l+t.w>r)continue;let u={x:l,y:d,w:t.w,h:t.h};i.find(m=>E.isIntercepted(u,m))||((t.x!==l||t.y!==d)&&(t._dirty=!0),t.x=l,t.y=d,delete t.autoPosition,s=!0)}return s}addNode(t,i=!1,r){let o=this.nodes.find(s=>s._id===t._id);if(o)return o;this._inColumnResize?this.nodeBoundFix(t):this.prepareNode(t),delete t._temporaryRemoved,delete t._removeDOM;let n;return t.autoPosition&&this.findEmptyPosition(t,this.nodes,this.column,r)&&(delete t.autoPosition,n=!0),this.nodes.push(t),i&&this.addedNodes.push(t),n||this._fixCollisions(t),this.batchMode||this._packNodes()._notify(),t}removeNode(t,i=!0,r=!1){return this.nodes.find(o=>o._id===t._id)?(r&&this.removedNodes.push(t),i&&(t._removeDOM=!0),this.nodes=this.nodes.filter(o=>o._id!==t._id),t._isAboutToRemove||this._packNodes(),this._notify([t]),this):this}removeAll(t=!0,i=!0){if(delete this._layouts,!this.nodes.length)return this;t&&this.nodes.forEach(o=>o._removeDOM=!0);let r=this.nodes;return this.removedNodes=i?r:[],this.nodes=[],this._notify(r)}moveNodeCheck(t,i){if(!this.changedPosConstrain(t,i))return!1;if(i.pack=!0,!this.maxRow)return this.moveNode(t,i);let r,o=new e({column:this.column,float:this.float,nodes:this.nodes.map(s=>s._id===t._id?(r=O({},s),r):O({},s))});if(!r)return!1;let n=o.moveNode(r,i)&&o.getRow()<=Math.max(this.getRow(),this.maxRow);if(!n&&!i.resizing&&i.collide){let s=i.collide.el.gridstackNode;if(this.swap(t,s))return this._notify(),!0}return n?(o.nodes.filter(s=>s._dirty).forEach(s=>{let c=this.nodes.find(l=>l._id===s._id);c&&(E.copyPos(c,s),c._dirty=!0)}),this._notify(),!0):!1}willItFit(t){if(delete t._willFitPos,!this.maxRow)return!0;let i=new e({column:this.column,float:this.float,nodes:this.nodes.map(o=>O({},o))}),r=O({},t);return this.cleanupNode(r),delete r.el,delete r._id,delete r.content,delete r.grid,i.addNode(r),i.getRow()<=this.maxRow?(t._willFitPos=E.copyPos({},r),!0):!1}changedPosConstrain(t,i){return i.w=i.w||t.w,i.h=i.h||t.h,t.x!==i.x||t.y!==i.y?!0:(t.maxW&&(i.w=Math.min(i.w,t.maxW)),t.maxH&&(i.h=Math.min(i.h,t.maxH)),t.minW&&(i.w=Math.max(i.w,t.minW)),t.minH&&(i.h=Math.max(i.h,t.minH)),t.w!==i.w||t.h!==i.h)}moveNode(t,i){if(!t||!i)return!1;let r;i.pack===void 0&&!this.batchMode&&(r=i.pack=!0),typeof i.x!="number"&&(i.x=t.x),typeof i.y!="number"&&(i.y=t.y),typeof i.w!="number"&&(i.w=t.w),typeof i.h!="number"&&(i.h=t.h);let o=t.w!==i.w||t.h!==i.h,n=E.copyPos({},t,!0);if(E.copyPos(n,i),this.nodeBoundFix(n,o),E.copyPos(i,n),!i.forceCollide&&E.samePos(t,i))return!1;let s=E.copyPos({},t),c=this.collideAll(t,n,i.skip),l=!0;if(c.length){let d=t._moving&&!i.nested,u=d?this.directionCollideCoverage(t,i,c):c[0];if(d&&u&&t.grid?.opts?.subGridDynamic&&!t.grid._isTemp){let m=E.areaIntercept(i.rect,u._rect),_=E.area(i.rect),g=E.area(u._rect);m/(_<g?_:g)>.8&&(u.grid.makeSubGrid(u.el,void 0,t),u=void 0)}u?l=!this._fixCollisions(t,n,u,i):(l=!1,r&&delete i.pack)}return l&&!E.samePos(t,n)&&(t._dirty=!0,E.copyPos(t,n)),i.pack&&this._packNodes()._notify(),!E.samePos(t,s)}getRow(){return this.nodes.reduce((t,i)=>Math.max(t,i.y+i.h),0)}beginUpdate(t){return t._updating||(t._updating=!0,delete t._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){let t=this.nodes.find(i=>i._updating);return t&&(delete t._updating,delete t._skipDown),this}save(t=!0,i,r){let o=this._layouts?.length||0,n;o&&(r?r!==this.column&&(n=this._layouts[r]):this.column!==o-1&&(n=this._layouts[o-1]));let s=[];return this.sortNodes(),this.nodes.forEach(c=>{let l=n?.find(u=>u._id===c._id),d=O(O({},c),l||{});E.removeInternalForSave(d,!t),i&&i(c,d),s.push(d)}),s}layoutsNodesChange(t){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((i,r)=>{if(!i||r===this.column)return this;if(r<this.column)this._layouts[r]=void 0;else{let o=r/this.column;t.forEach(n=>{if(!n._orig)return;let s=i.find(c=>c._id===n._id);s&&(s.y>=0&&n.y!==n._orig.y&&(s.y+=n.y-n._orig.y,s.y<0&&(s.y=0)),n.x!==n._orig.x&&(s.x=Math.round(n.x*o),s.x<0&&(s.x=0)),n.w!==n._orig.w&&(s.w=Math.round(n.w*o),s.w<1&&(s.w=1)))})}}),this)}columnChanged(t,i,r="moveScale"){if(!this.nodes.length||!i||t===i)return this;let o=r==="compact"||r==="list";o&&this.sortNodes(1),i<t&&this.cacheLayout(this.nodes,t),this.batchUpdate();let n=[],s=o?this.nodes:E.sort(this.nodes,-1);if(i>t&&this._layouts){let c=this._layouts[i]||[],l=this._layouts.length-1;!c.length&&t!==l&&this._layouts[l]?.length&&(t=l,this._layouts[l].forEach(d=>{let u=s.find(m=>m._id===d._id);u&&(!o&&!d.autoPosition&&(u.x=d.x??u.x,u.y=d.y??u.y),u.w=d.w??u.w,(d.x==null||d.y===void 0)&&(u.autoPosition=!0))})),c.forEach(d=>{let u=s.findIndex(m=>m._id===d._id);if(u!==-1){let m=s[u];if(o){m.w=d.w;return}(d.autoPosition||isNaN(d.x)||isNaN(d.y))&&this.findEmptyPosition(d,n),d.autoPosition||(m.x=d.x??m.x,m.y=d.y??m.y,m.w=d.w??m.w,n.push(m)),s.splice(u,1)}})}if(o)this.compact(r,!1);else{if(s.length)if(typeof r=="function")r(i,t,n,s);else{let c=o||r==="none"?1:i/t,l=r==="move"||r==="moveScale",d=r==="scale"||r==="moveScale";s.forEach(u=>{u.x=i===1?0:l?Math.round(u.x*c):Math.min(u.x,i-1),u.w=i===1||t===1?1:d?Math.round(u.w*c)||1:Math.min(u.w,i),n.push(u)}),s=[]}n=E.sort(n,-1),this._inColumnResize=!0,this.nodes=[],n.forEach(c=>{this.addNode(c,!1),delete c._orig})}return this.nodes.forEach(c=>delete c._orig),this.batchUpdate(!1,!o),delete this._inColumnResize,this}cacheLayout(t,i,r=!1){let o=[];return t.forEach((n,s)=>{if(n._id===void 0){let c=n.id?this.nodes.find(l=>l.id===n.id):void 0;n._id=c?._id??e._idSeq++}o[s]={x:n.x,y:n.y,w:n.w,_id:n._id}}),this._layouts=r?[]:this._layouts||[],this._layouts[i]=o,this}cacheOneLayout(t,i){t._id=t._id??e._idSeq++;let r={x:t.x,y:t.y,w:t.w,_id:t._id};(t.autoPosition||t.x===void 0)&&(delete r.x,delete r.y,t.autoPosition&&(r.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[i]=this._layouts[i]||[];let o=this.findCacheLayout(t,i);return o===-1?this._layouts[i].push(r):this._layouts[i][o]=r,this}findCacheLayout(t,i){return this._layouts?.[i]?.findIndex(r=>r._id===t._id)??-1}removeNodeFromLayoutCache(t){if(this._layouts)for(let i=0;i<this._layouts.length;i++){let r=this.findCacheLayout(t,i);r!==-1&&this._layouts[i].splice(r,1)}}cleanupNode(t){for(let i in t)i[0]==="_"&&i!=="_id"&&delete t[i];return this}}return e._idSeq=0,e})(),d5={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},$=class{},O5=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),_5=class{};function P4(e,a){e.touches.length>1||(e.cancelable&&e.preventDefault(),E.simulateMouseEvent(e.changedTouches[0],a))}function lp(e,a){e.cancelable&&e.preventDefault(),E.simulateMouseEvent(e,a)}function U4(e){_5.touchHandled||(_5.touchHandled=!0,P4(e,"mousedown"))}function q4(e){_5.touchHandled&&P4(e,"mousemove")}function j4(e){if(!_5.touchHandled)return;_5.pointerLeaveTimeout&&(window.clearTimeout(_5.pointerLeaveTimeout),delete _5.pointerLeaveTimeout);let a=!!$.dragElement;P4(e,"mouseup"),a||P4(e,"click"),_5.touchHandled=!1}function G4(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function lh(e){$.dragElement&&e.pointerType!=="mouse"&&lp(e,"mouseenter")}function hh(e){$.dragElement&&e.pointerType!=="mouse"&&(_5.pointerLeaveTimeout=window.setTimeout(()=>{delete _5.pointerLeaveTimeout,lp(e,"mouseleave")},10))}var yD=(()=>{class e{constructor(t,i,r){this.host=t,this.dir=i,this.option=r,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(t){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",t)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${e.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),O5&&(this.el.addEventListener("touchstart",U4),this.el.addEventListener("pointerdown",G4)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),O5&&(this.el.removeEventListener("touchstart",U4),this.el.removeEventListener("pointerdown",G4)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(t){this.mouseDownEvent=t,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),O5&&(this.el.addEventListener("touchmove",q4),this.el.addEventListener("touchend",j4)),t.stopPropagation(),t.preventDefault()}_mouseMove(t){let i=this.mouseDownEvent;this.moving?this._triggerEvent("move",t):Math.abs(t.x-i.x)+Math.abs(t.y-i.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",t),document.addEventListener("keydown",this._keyEvent)),t.stopPropagation()}_mouseUp(t){this.moving&&(this._triggerEvent("stop",t),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),O5&&(this.el.removeEventListener("touchmove",q4),this.el.removeEventListener("touchend",j4)),delete this.moving,delete this.mouseDownEvent,t.stopPropagation(),t.preventDefault()}_keyEvent(t){t.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(t,i){return this.option[t]&&this.option[t](i),this}}return e.prefix="ui-resizable-",e})(),V9=class{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,a){this._eventRegister[e]=a}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,a){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](a)}},ZD=(()=>{class e extends V9{constructor(t,i={}){super(),this.el=t,this.option=i,this.rectScale={x:1,y:1},this._ui=()=>{let r=this.el.parentElement.getBoundingClientRect(),o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,right:this.originalRect.right,top:this.originalRect.top-this.scrolled},n=this.temporalRect||o;return{position:{left:this.option.rtl?(r.right-n.right)*this.rectScale.x:(n.left-r.left)*this.rectScale.x,top:(n.top-r.top)*this.rectScale.y},size:{width:n.width*this.rectScale.x,height:n.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(t,i){super.on(t,i)}off(t){super.off(t)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(t){let i=t.handles&&t.handles!==this.option.handles,r=t.autoHide&&t.autoHide!==this.option.autoHide;return Object.keys(t).forEach(o=>this.option[o]=t[o]),i&&(this._removeHandlers(),this._setupHandlers()),r&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(t){return t?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),$.overResizeElement===this&&delete $.overResizeElement),this}_mouseOver(t){$.overResizeElement||$.dragElement||($.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(t){$.overResizeElement===this&&(delete $.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(t=>t.trim()).map(t=>new yD(this.el,t,{element:this.option.element,start:i=>this._resizeStart(i),stop:i=>this._resizeStop(i),move:i=>this._resizing(i,t)})),this}_resizeStart(t){this.sizeToContent=E.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=E.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=t,this._setupHelper(),this._applyChange();let i=E.initEvent(t,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(i,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",i),this}_resizing(t,i){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(t,i),this._applyChange();let r=E.initEvent(t,{type:"resize",target:this.el});return r.resizeDir=i,r.hasMovedX=this.option.rtl?i.includes("e"):i.includes("w"),r.hasMovedY=i.includes("n"),this.option.resize&&this.option.resize(r,this._ui()),this.triggerEvent("resize",r),this}_resizeStop(t){let i=E.initEvent(t,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(i),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",i),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=e._originStyleProp.map(r=>this.el.style[r]),this.parentOriginStylePosition=this.el.parentElement.style.position;let t=this.el.parentElement,i=E.getValuesFromTransformedElement(t);return this.rectScale={x:i.xScale,y:i.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return e._originStyleProp.forEach((t,i)=>{this.el.style[t]=this.elOriginStyleVal[i]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(t,i){let r=this.startEvent,o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,right:this.originalRect.right,top:this.originalRect.top-this.scrolled},n=t.clientX-r.clientX,s=this.sizeToContent?0:t.clientY-r.clientY,c,l,d=this.option.rtl;!d&&i.indexOf("e")>-1?o.width+=n:d&&i.indexOf("w")>-1?o.width-=n:!d&&i.indexOf("w")>-1?(o.width-=n,o.left+=n,c=!0):d&&i.indexOf("e")>-1&&(o.width+=n,o.right+=n,c=!0),i.indexOf("s")>-1?o.height+=s:i.indexOf("n")>-1&&(o.height-=s,o.top+=s,l=!0);let u=this._constrainSize(o.width,o.height,c,l);return Math.round(o.width)!==Math.round(u.width)&&(!d&&i.indexOf("w")>-1?o.left+=o.width-u.width:d&&i.indexOf("e")>-1&&(o.right-=o.width-u.width),o.width=u.width),Math.round(o.height)!==Math.round(u.height)&&(i.indexOf("n")>-1&&(o.top+=o.height-u.height),o.height=u.height),o}_constrainSize(t,i,r,o){let n=this.option,s=(r?n.maxWidthMoveLeft:n.maxWidth)||Number.MAX_SAFE_INTEGER,c=n.minWidth/this.rectScale.x||t,l=(o?n.maxHeightMoveUp:n.maxHeight)||Number.MAX_SAFE_INTEGER,d=n.minHeight/this.rectScale.y||i,u=Math.min(s,Math.max(c,t)),m=Math.min(l,Math.max(d,i));return{width:u,height:m}}_applyChange(){let t={left:0,right:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){let i=this.el.parentElement,{left:r,right:o,top:n}=i.getBoundingClientRect();t={left:r,right:o,top:n,width:0,height:0}}return this.temporalRect?(Object.entries(this.temporalRect).forEach(([i,r])=>{if(this.option.rtl?i==="left":i==="right")return;let o=i==="width"||i==="left"||i==="right"?this.rectScale.x:i==="height"||i==="top"?this.rectScale.y:1,n;i==="right"?n=(t.right-r)*this.rectScale.x+"px":n=(r-t[i])*o+"px",this.el.style[i]=n}),this):this}_removeHandlers(){return this.handlers.forEach(t=>t.destroy()),delete this.handlers,this}}return e._originStyleProp=["width","height","position","left","right","top","opacity","zIndex"],e})(),CD='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',xD=(()=>{class e extends V9{constructor(t,i={}){super(),this.el=t,this.option=i,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},this._autoScrollTick=()=>{let n=this.helper,s=this._autoScrollContainer;if(!n||!s){this._stopScrolling();return}let c=this._getClipping(n,s);if(c===0){this._stopScrolling();return}if(!this._autoScrollMaxSpeed){let _=window.innerHeight||document.documentElement.clientHeight;this._autoScrollMaxSpeed=Math.max(_/150,4)}let l=Math.abs(c),d=Math.min(l*.5,this._autoScrollMaxSpeed),u=c>0?d:-d,m=s.scrollTop;if(s.scrollTop+=u,s.scrollTop===m){this._stopScrolling();return}this.dragging&&this.lastDrag&&(this._dragFollow(this.lastDrag),this._callDrag(this.lastDrag)),this._autoScrollAnimId=requestAnimationFrame(this._autoScrollTick)};let r=i?.handle?.substring(1),o=t.gridstackNode;this.dragEls=!r||t.classList.contains(r)?[t]:o?.subGrid?[t.querySelector(i.handle)||t]:this.getAllHandles(),this.dragEls.length===0&&(this.dragEls=[t]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}getAllHandles(){return Array.from(this.el.querySelectorAll(this.option.handle)).filter(t=>{if(!(t instanceof HTMLElement))return!1;let i=t.closest(".grid-stack-item");return i===this.el||!i})}on(t,i){super.on(t,i)}off(t){super.off(t)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(t=>{t.addEventListener("mousedown",this._mouseDown),O5&&(t.addEventListener("touchstart",U4),t.addEventListener("pointerdown",G4))}),this.el.classList.remove("ui-draggable-disabled"))}disable(t=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(i=>{i.removeEventListener("mousedown",this._mouseDown),O5&&(i.removeEventListener("touchstart",U4),i.removeEventListener("pointerdown",G4))}),t||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(t){return Object.keys(t).forEach(i=>this.option[i]=t[i]),this}_mouseDown(t){if(_5.touchHandled&&t.isTrusted&&(_5.touchHandled=!1),!$.mouseHandled)return t.button!==0||!this.dragEls.find(i=>i===t.target)&&t.target.closest(CD)||this.option.cancel&&t.target.closest(this.option.cancel)||(this.mouseDownEvent=t,delete this.dragging,delete $.dragElement,delete $.dropElement,delete this._autoScrollMaxSpeed,delete this._autoScrollContainer,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),O5&&(t.currentTarget.addEventListener("touchmove",q4),t.currentTarget.addEventListener("touchend",j4)),t.preventDefault(),document.activeElement&&document.activeElement.blur(),$.mouseHandled=!0),!0}_callDrag(t){if(!this.dragging)return;let i=E.initEvent(t,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(i,this.ui()),this.triggerEvent("drag",i)}_mouseMove(t){let i=this.mouseDownEvent;if(this.lastDrag=t,this.dragging)if(this._dragFollow(t),$.pauseDrag){let r=Number.isInteger($.pauseDrag)?$.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(t),r)}else this._callDrag(t);else if(Math.abs(t.x-i.x)+Math.abs(t.y-i.y)>3){this.dragging=!0,$.dragElement=this;let r=this.el.gridstackNode?.grid;r?$.dropElement=r.el.ddElement.ddDroppable:delete $.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=E.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(t,this.el,this.helperContainment),this._setupHelperStyle(t);let o=E.initEvent(t,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(o,this.ui()),this.triggerEvent("dragstart",o),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(t){if(this._stopScrolling(),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),O5&&t.currentTarget&&(t.currentTarget.removeEventListener("touchmove",q4,!0),t.currentTarget.removeEventListener("touchend",j4,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),$.dropElement?.el===this.el.parentElement&&delete $.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();let i=E.initEvent(t,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(i),this.triggerEvent("dragstop",i),$.dropElement&&$.dropElement.drop(t)}delete this.helper,delete this.mouseDownEvent,delete $.dragElement,delete $.dropElement,delete $.mouseHandled,t.preventDefault()}_keyEvent(t){let i=this.el.gridstackNode,r=i?.grid||$.dropElement?.el?.gridstack;if(t.key==="Escape")i&&i._origRotate&&(i._orig=i._origRotate,delete i._origRotate),r?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(i&&r&&(t.key==="r"||t.key==="R")){if(!E.canBeRotated(i))return;i._origRotate=i._origRotate||O({},i._orig),delete i._moving,r.setAnimation(!1).rotate(i.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetX}).setAnimation(),i._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,i.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",E.swap(i._orig,"w","h"),delete i._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let t=this.el;return typeof this.option.helper=="function"?t=this.option.helper(this.el):this.option.helper==="clone"&&(t=E.cloneNode(this.el)),t.parentElement||E.appendTo(t,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=e.originStyleProp.map(i=>this.el.style[i]),t}_setupHelperStyle(t){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");let i=this.helper.style;return i.pointerEvents="none",i.width=this.dragOffset.width+"px",i.height=this.dragOffset.height+"px",i.willChange="left, right, top",i.position="fixed",this._dragFollow(t),i.transition="none",setTimeout(()=>{this.helper&&(i.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){let t=this.helper,i=this.dragElementOriginStyle.transition||null;t.style.transition=this.dragElementOriginStyle.transition="none",e.originStyleProp.forEach(r=>t.style[r]=this.dragElementOriginStyle[r]||null),setTimeout(()=>t.style.transition=i,50)}return delete this.dragElementOriginStyle,this}_dragFollow(t){let i=this.helper.style,r=this.dragOffset;this.option.rtl?(i.right=(window.innerWidth-t.clientX+r.offsetX)*this.dragTransform.xScale+"px",i.left&&(i.left="")):(i.left=(t.clientX+r.offsetX)*this.dragTransform.xScale+"px",i.right&&(i.right="")),i.top=(t.clientY+r.offsetTop)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(t,i,r){let o=0,n=0;r&&(o=this.dragTransform.xOffset,n=this.dragTransform.yOffset);let s=i.getBoundingClientRect(),c=this.option.rtl?s.right:s.left,l=this.option.rtl?t.clientX-s.right+o:-t.clientX+s.left-o;return{x:c,top:s.top,offsetX:l,offsetTop:-t.clientY+s.top-n,width:s.width*this.dragTransform.xScale,height:s.height*this.dragTransform.yScale}}updateScrollPosition(t){this._autoScrollContainer=E.getScrollElement(t),this._getClipping(this.helper,this._autoScrollContainer)===0?this._stopScrolling():this._autoScrollAnimId||(this._autoScrollAnimId=requestAnimationFrame(this._autoScrollTick))}_getClipping(t,i){let r=t.getBoundingClientRect(),o=i.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;if(r.bottom<o.top||r.top>o.bottom)return 0;let s=r.bottom-Math.min(o.bottom,n),c=r.top-Math.max(o.top,0);return c<0?c:s>0?s:0}_stopScrolling(){this._autoScrollAnimId&&(cancelAnimationFrame(this._autoScrollAnimId),delete this._autoScrollAnimId)}ui(){let t=this.el.parentElement.getBoundingClientRect(),i=this.helper.getBoundingClientRect(),r=this.option.rtl?(t.right-i.right)*this.dragTransform.xScale:(i.left-t.left)*this.dragTransform.xScale;return{position:{top:(i.top-t.top)*this.dragTransform.yScale,left:r}}}}return e.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","right","top","minWidth","willChange"],e})(),MD=class extends V9{constructor(e,a={}){super(),this.el=e,this.option=a,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,a){super.on(e,a)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),O5&&(this.el.addEventListener("pointerenter",lh),this.el.addEventListener("pointerleave",hh)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),O5&&(this.el.removeEventListener("pointerenter",lh),this.el.removeEventListener("pointerleave",hh)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(a=>this.option[a]=e[a]),this._setupAccept(),this}_mouseEnter(e){if(!$.dragElement||_5.touchHandled&&e.isTrusted||!this._canDrop($.dragElement.el))return;e.preventDefault(),e.stopPropagation(),$.dragElement._stopScrolling(),$.dropElement&&$.dropElement!==this&&$.dropElement._mouseLeave(e,!0),$.dropElement=this;let a=E.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(a,this._ui($.dragElement)),this.triggerEvent("dropover",a),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,a=!1){if(!$.dragElement||$.dropElement!==this)return;e.preventDefault(),e.stopPropagation(),a&&$.dragElement._stopScrolling();let t=E.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui($.dragElement)),this.triggerEvent("dropout",t),$.dropElement===this&&(delete $.dropElement,!a)){let i,r=this.el.parentElement;for(;!i&&r;)i=r.ddElement?.ddDroppable,r=r.parentElement;i&&i._mouseEnter(e)}}drop(e){e.preventDefault();let a=E.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(a,this._ui($.dragElement)),this.triggerEvent("drop",a)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return O({draggable:e.el},e.ui())}},BD=class hp{static init(a){return a.ddElement||(a.ddElement=new hp(a)),a.ddElement}constructor(a){this.el=a}on(a,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(a)>-1?this.ddDraggable.on(a,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(a)>-1?this.ddDroppable.on(a,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(a)>-1&&this.ddResizable.on(a,t),this}off(a){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(a)>-1?this.ddDraggable.off(a):this.ddDroppable&&["drop","dropover","dropout"].indexOf(a)>-1?this.ddDroppable.off(a):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(a)>-1&&this.ddResizable.off(a),this}setupDraggable(a){return this.ddDraggable?this.ddDraggable.updateOption(a):this.ddDraggable=new xD(this.el,a),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(a){return this.ddResizable?this.ddResizable.updateOption(a):this.ddResizable=new ZD(this.el,a),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(a){return this.ddDroppable?this.ddDroppable.updateOption(a):this.ddDroppable=new MD(this.el,a),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},HD=class{resizable(e,a,t,i){return this._getDDElements(e,a).forEach(r=>{if(a==="disable"||a==="enable")r.ddResizable&&r.ddResizable[a]();else if(a==="destroy")r.ddResizable&&r.cleanResizable();else if(a==="option")r.setupResizable({[t]:i});else{let o=r.el.gridstackNode.grid,n=r.el.getAttribute("gs-resize-handles")||o.opts.resizable.handles||"e,s,se";n==="all"&&(n="n,e,s,w,se,sw,ne,nw");let s=!o.opts.alwaysShowResizeHandle;r.setupResizable(h1(O({},o.opts.resizable),{handles:n,autoHide:s,start:a.start,stop:a.stop,resize:a.resize,rtl:a.rtl}))}}),this}draggable(e,a,t,i){return this._getDDElements(e,a).forEach(r=>{if(a==="disable"||a==="enable")r.ddDraggable&&r.ddDraggable[a]();else if(a==="destroy")r.ddDraggable&&r.cleanDraggable();else if(a==="option")r.setupDraggable({[t]:i});else{let o=r.el.gridstackNode.grid;r.setupDraggable(h1(O({},o.opts.draggable),{start:a.start,stop:a.stop,drag:a.drag,rtl:a.rtl}))}}),this}dragIn(e,a){return this._getDDElements(e).forEach(t=>t.setupDraggable(a)),this}droppable(e,a,t,i){return typeof a.accept=="function"&&!a._accept&&(a._accept=a.accept,a.accept=r=>a._accept(r)),this._getDDElements(e,a).forEach(r=>{a==="disable"||a==="enable"?r.ddDroppable&&r.ddDroppable[a]():a==="destroy"?r.ddDroppable&&r.cleanDroppable():a==="option"?r.setupDroppable({[t]:i}):r.setupDroppable(a)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,a,t){return this._getDDElements(e).forEach(i=>i.on(a,r=>{t(r,$.dragElement?$.dragElement.el:r.target,$.dragElement?$.dragElement.helper:null)})),this}off(e,a){return this._getDDElements(e).forEach(t=>t.off(a)),this}_getDDElements(e,a){let t=e.gridstack||a!=="destroy"&&a!=="disable",i=E.getElements(e);return i.length?i.map(r=>r.ddElement||(t?BD.init(r):null)).filter(r=>r):[]}},e5=new HD,Ie=(()=>{class e{static init(t={},i=".grid-stack"){if(typeof document>"u")return null;let r=e.getGridElement(i);return r?(r.gridstack||(r.gridstack=new e(r,E.cloneDeep(t))),r.gridstack):(console.error(typeof i=="string"?'GridStack.initAll() no grid was found with selector "'+i+`" - element missing or wrong selector ?
|
|
155
155
|
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(t={},i=".grid-stack"){let r=[];return typeof document>"u"||(e.getGridElements(i).forEach(o=>{o.gridstack||(o.gridstack=new e(o,E.cloneDeep(t))),r.push(o.gridstack)}),r.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+i+`" - element missing or wrong selector ?
|
|
156
|
-
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),r}static addGrid(t,i={}){if(!t)return null;let r=t;if(r.gridstack){let o=r.gridstack;return i&&(o.opts=O(O({},o.opts),i)),i.children!==void 0&&o.load(i.children),o}return(!t.classList.contains("grid-stack")||e.addRemoveCB)&&(e.addRemoveCB?r=e.addRemoveCB(t,i,!0,!0):r=E.createDiv(["grid-stack",i.class],t)),e.init(i,r)}static registerEngine(t){e.engineClass=t}get placeholder(){if(!this._placeholder){this._placeholder=E.createDiv([this.opts.placeholderClass,d5.itemClass,this.opts.itemClass]);let t=E.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(t.textContent=this.opts.placeholderText)}return this._placeholder}constructor(t,i={}){this.el=t,this.opts=i,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},t.gridstack=this,this.opts=i=i||{},t.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),i.row&&(i.minRow=i.maxRow=i.row,delete i.row);let r=E.toNumber(t.getAttribute("gs-row"));i.column==="auto"&&delete i.column,i.alwaysShowResizeHandle!==void 0&&(i._alwaysShowResizeHandle=i.alwaysShowResizeHandle);let o=i.columnOpts;if(o){let l=o.breakpoints;!o.columnWidth&&!l?.length?delete i.columnOpts:(o.columnMax=o.columnMax||12,l?.length>1&&l.sort((d,u)=>(u.w||0)-(d.w||0)))}let n=h1(O({},E.cloneDeep(d5)),{column:E.toNumber(t.getAttribute("gs-column"))||d5.column,minRow:r||E.toNumber(t.getAttribute("gs-min-row"))||d5.minRow,maxRow:r||E.toNumber(t.getAttribute("gs-max-row"))||d5.maxRow,staticGrid:E.toBool(t.getAttribute("gs-static"))||d5.staticGrid,sizeToContent:E.toBool(t.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(i.handleClass?"."+i.handleClass:i.handle?i.handle:"")||d5.draggable.handle},removableOptions:{accept:i.itemClass||d5.removableOptions.accept,decline:d5.removableOptions.decline}});t.getAttribute("gs-animate")&&(n.animate=E.toBool(t.getAttribute("gs-animate"))),i=E.defaults(i,n),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(i),i.rtl==="auto"&&(i.rtl=t.style.direction==="rtl"),i.rtl&&this.el.classList.add("grid-stack-rtl");let s=this.el.closest("."+d5.itemClass)?.gridstackNode;if(s&&(s.subGrid=this,this.parentGridNode=s,this.el.classList.add("grid-stack-nested"),s.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=i.cellHeight==="auto",this._isAutoCellHeight||i.cellHeight==="initial")this.cellHeight(void 0);else{typeof i.cellHeight=="number"&&i.cellHeightUnit&&i.cellHeightUnit!==d5.cellHeightUnit&&(i.cellHeight=i.cellHeight+i.cellHeightUnit,delete i.cellHeightUnit);let l=i.cellHeight;delete i.cellHeight,this.cellHeight(l)}i.alwaysShowResizeHandle==="mobile"&&(i.alwaysShowResizeHandle=O5),this._setStaticClass();let c=i.engineClass||e.engineClass||ch;if(this.engine=new c({column:this.getColumn(),float:i.float,maxRow:i.maxRow,onChange:l=>{l.forEach(d=>{let u=d.el;u&&(d._removeDOM?(u&&u.remove(),delete d._removeDOM):this._writePosAttr(u,d))}),this._updateContainerHeight()}}),i.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(l=>this._prepareElement(l)),delete this.engine._loading,this.batchUpdate(!1)),i.children){let l=i.children;delete i.children,l.length&&this.load(l)}this.setAnimation(),i.subGridDynamic&&!$.pauseDrag&&($.pauseDrag=!0),i.draggable?.pause!==void 0&&($.pauseDrag=i.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(t=this.opts){this.el.classList.add("gs-"+t.column),typeof t.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/t.column}%`)}addWidget(t){if(!t)return;if(typeof t=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(t.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(t);let i,r=t;if(r.grid=this,r.el?i=r.el:e.addRemoveCB?i=e.addRemoveCB(this.el,t,!0,!1):i=this.createWidgetDivs(r),!i)return;if(r=i.gridstackNode,r&&i.parentElement===this.el&&this.engine.nodes.find(n=>n._id===r._id))return i;let o=this._readAttr(i);return E.defaults(t,o),this.engine.prepareNode(t),this.el.appendChild(i),this.makeWidget(i,t),i}createWidgetDivs(t){let i=E.createDiv(["grid-stack-item",this.opts.itemClass]),r=E.createDiv(["grid-stack-item-content"],i);return E.lazyLoad(t)?t.visibleObservable||(t.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(t.visibleObservable?.disconnect(),delete t.visibleObservable,e.renderCB(r,t),t.grid?.prepareDragDrop(t.el))}),window.setTimeout(()=>t.visibleObservable?.observe(i))):e.renderCB(r,t),i}makeSubGrid(t,i,r,o=!0){let n=t.gridstackNode;if(n||(n=this.makeWidget(t).gridstackNode),n.subGrid?.el)return n.subGrid;let s,c=this;for(;c&&!s;)s=c.opts?.subGridOpts,c=c.parentGridNode?.grid;i=E.cloneDeep(O(O(h1(O({},this.opts),{id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0}),s||{}),i||n.subGridOpts||{})),n.subGridOpts=i;let l;i.column==="auto"&&(l=!0,i.column=Math.max(n.w||1,r?.w||1),delete i.columnOpts);let d=n.el.querySelector(".grid-stack-item-content"),u,m;if(o&&(this._removeDD(n.el),m=h1(O({},n),{x:0,y:0}),E.removeInternalForSave(m),delete m.subGridOpts,n.content&&(m.content=n.content,delete n.content),e.addRemoveCB?u=e.addRemoveCB(this.el,m,!0,!1):(u=E.createDiv(["grid-stack-item"]),u.appendChild(d),d=E.createDiv(["grid-stack-item-content"],n.el)),this.prepareDragDrop(n.el)),r){let g=l?i.column:n.w,y=n.h+r.h,w=n.el.style;w.transition="none",this.update(n.el,{w:g,h:y}),setTimeout(()=>w.transition=null)}let _=n.subGrid=e.addGrid(d,i);return r?._moving&&(_._isTemp=!0),l&&(_._autoColumn=!0),o&&_.makeWidget(u,m),r&&(r._moving?window.setTimeout(()=>E.simulateMouseEvent(r._event,"mouseenter",_.el),0):_.makeWidget(n.el,n)),this.resizeToContentCheck(!1,n),_}removeAsSubGrid(t){let i=this.parentGridNode?.grid;i&&(i.batchUpdate(),i.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(r=>{r.x+=this.parentGridNode.x,r.y+=this.parentGridNode.y,i.makeWidget(r.el,r)}),i.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,t&&window.setTimeout(()=>E.simulateMouseEvent(t._event,"mouseenter",i.el),0))}save(t=!0,i=!1,r=e.saveCB,o){let n=this.engine.save(t,r,o);if(n.forEach(s=>{if(t&&s.el&&!s.subGrid&&!r){let c=s.el.querySelector(".grid-stack-item-content");s.content=c?.innerHTML,s.content||delete s.content}else if(!t&&!r&&delete s.content,s.subGrid?.el){let c=s.w||s.subGrid.getColumn(),l=s.subGrid.save(t,i,r,c);s.subGridOpts=i?l:{children:l},delete s.subGrid}delete s.el}),i){let s=E.cloneDeep(this.opts);s.marginBottom===s.marginTop&&s.marginRight===s.marginLeft&&s.marginTop===s.marginRight&&(s.margin=s.marginTop,delete s.marginTop,delete s.marginRight,delete s.marginBottom,delete s.marginLeft),s.rtl===(this.el.style.direction==="rtl")&&(s.rtl="auto"),this._isAutoCellHeight&&(s.cellHeight="auto"),this._autoColumn&&(s.column="auto");let c=s._alwaysShowResizeHandle;return delete s._alwaysShowResizeHandle,c!==void 0?s.alwaysShowResizeHandle=c:delete s.alwaysShowResizeHandle,E.removeInternalAndSame(s,d5),s.children=n,s}return n}load(t,i=e.addRemoveCB||!0){t.forEach(u=>{u.w=u.w||u.minW||1,u.h=u.h||u.minH||1}),t=E.sort(t),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let r=0;t.forEach(u=>{r=Math.max(r,(u.x||0)+u.w)}),r>this.engine.defaultColumn&&(this.engine.defaultColumn=r);let o=this.getColumn();r>o&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=t,this.engine.columnChanged(r,o,this.responseLayout),t=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(t,r,!0));let n=e.addRemoveCB;typeof i=="function"&&(e.addRemoveCB=i);let s=[];this.batchUpdate();let c=!this.engine.nodes.length,l=c&&this.opts.animate;l&&this.setAnimation(!1),!c&&i&&[...this.engine.nodes].forEach(u=>{u.id&&(E.find(t,u.id)||(e.addRemoveCB&&e.addRemoveCB(this.el,u,!1,!1),s.push(u),this.removeWidget(u.el,!0,!1)))}),this.engine._loading=!0;let d=[];return this.engine.nodes=this.engine.nodes.filter(u=>E.find(t,u.id)?(d.push(u),!1):!0),t.forEach(u=>{let m=E.find(d,u.id);if(m){if(E.shouldSizeToContent(m)&&(u.h=m.h),this.engine.nodeBoundFix(u),(u.autoPosition||u.x===void 0||u.y===void 0)&&(u.w=u.w||m.w,u.h=u.h||m.h,this.engine.findEmptyPosition(u)),this.engine.nodes.push(m),E.samePos(m,u)&&this.engine.nodes.length>1&&(this.moveNode(m,h1(O({},u),{forceCollide:!0})),E.copyPos(u,m)),this.update(m.el,u),u.subGridOpts?.children){let _=m.el.querySelector(".grid-stack");_&&_.gridstack&&_.gridstack.load(u.subGridOpts.children)}}else i&&this.addWidget(u)}),delete this.engine._loading,this.engine.removedNodes=s,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,n?e.addRemoveCB=n:delete e.addRemoveCB,l&&this.setAnimation(!0,!0),this}batchUpdate(t=!0){return this.engine.batchUpdate(t),t||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(t=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!t||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;let i=this.el.querySelector("."+this.opts.itemClass);if(i){let o=E.toNumber(i.getAttribute("gs-h"))||1;return Math.round(i.offsetHeight/o)}let r=parseInt(this.el.getAttribute("gs-current-row"));return r?Math.round(this.el.getBoundingClientRect().height/r):this.opts.cellHeight}cellHeight(t){if(t!==void 0&&this._isAutoCellHeight!==(t==="auto")&&(this._isAutoCellHeight=t==="auto",this._updateResizeEvent()),(t==="initial"||t==="auto")&&(t=void 0),t===void 0){let r=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;t=this.cellWidth()+r}let i=E.parseHeight(t);return this.opts.cellHeightUnit===i.unit&&this.opts.cellHeight===i.h?this:(this.opts.cellHeightUnit=i.unit,this.opts.cellHeight=i.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(t=!1){return t&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){let t=this.opts.columnOpts;if(!t||!t.columnWidth&&!t.breakpoints?.length)return!1;let i=this.getColumn(),r=i,o=this._widthOrContainer(!0);if(t.columnWidth)r=Math.min(Math.round(o/t.columnWidth)||1,t.columnMax);else{r=t.columnMax;let n=0;for(;n<t.breakpoints.length&&o<=t.breakpoints[n].w;)r=t.breakpoints[n++].c||i}if(r!==i){let n=t.breakpoints?.find(s=>s.c===r);return this.column(r,n?.layout||t.layout),!0}return!1}compact(t="compact",i=!0){return this.engine.compact(t,i),this._triggerChangeEvent(),this}column(t,i="moveScale"){if(!t||t<1||this.opts.column===t)return this;let r=this.getColumn();return this.opts.column=t,this.engine?(this.engine.column=t,this.el.classList.remove("gs-"+r),this._updateColumnVar(),this.engine.columnChanged(r,t,i),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=i,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(t=>t.matches("."+this.opts.itemClass)&&!t.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(t=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),t?this.el.parentNode.removeChild(this.el):(this.removeAll(t),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(t){return this.opts.float!==t&&(this.opts.float=this.engine.float=t,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(t,i=!1){let r=this.el.getBoundingClientRect(),o;i?o={top:r.top+document.documentElement.scrollTop,left:r.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};let n=t.left-o.left,s=t.top-o.top,c=r.width/this.getColumn(),l=r.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(n/c),y:Math.floor(s/l)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(t,i,r,o){return this.engine.isAreaEmpty(t,i,r,o)}makeWidget(t,i){let r=e.getElement(t);if(!r||r.gridstackNode)return r;r.parentElement||this.el.appendChild(r),this._prepareElement(r,!0,i);let o=r.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(r,o.subGridOpts,void 0,!1);let n;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(n=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),n&&delete this._ignoreLayoutsNodeChange,r}on(t,i){return t.indexOf(" ")!==-1?(t.split(" ").forEach(r=>this.on(r,i)),this):(t==="change"||t==="added"||t==="removed"||t==="enable"||t==="disable"?(t==="enable"||t==="disable"?this._gsEventHandler[t]=r=>i(r):this._gsEventHandler[t]=r=>{r.detail&&i(r,r.detail)},this.el.addEventListener(t,this._gsEventHandler[t])):t==="drag"||t==="dragstart"||t==="dragstop"||t==="resizestart"||t==="resize"||t==="resizestop"||t==="dropped"||t==="resizecontent"?this._gsEventHandler[t]=i:console.error("GridStack.on("+t+") event not supported"),this)}off(t){return t.indexOf(" ")!==-1?(t.split(" ").forEach(i=>this.off(i)),this):((t==="change"||t==="added"||t==="removed"||t==="enable"||t==="disable")&&this._gsEventHandler[t]&&this.el.removeEventListener(t,this._gsEventHandler[t]),delete this._gsEventHandler[t],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(t=>this.off(t)),this}removeWidget(t,i=!0,r=!0){return t?(e.getElements(t).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let n=o.gridstackNode;n||(n=this.engine.nodes.find(s=>o===s.el)),n&&(i&&e.addRemoveCB&&e.addRemoveCB(this.el,n,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(n,i,r),i&&o.parentElement&&o.remove())}),r&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(t=!0,i=!0){return this.engine.nodes.forEach(r=>{t&&e.addRemoveCB&&e.addRemoveCB(this.el,r,!1,!1),delete r.el.gridstackNode,this.opts.staticGrid||this._removeDD(r.el)}),this.engine.removeAll(t,i),i&&this._triggerRemoveEvent(),this}setAnimation(t=this.opts.animate,i){return i?setTimeout(()=>{this.opts&&this.setAnimation(t)}):t?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=t,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(t,i=!0,r=!0){return!!this.opts.staticGrid===t?this:(t?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&r&&o.subGrid.setStatic(t,i,r)}),i&&this._setStaticClass(),this)}updateOptions(t){let i=this.opts;if(t===i)return this;if(t.acceptWidgets!==void 0&&(i.acceptWidgets=t.acceptWidgets,this._setupAcceptWidget()),t.animate!==void 0&&this.setAnimation(t.animate),t.cellHeight&&this.cellHeight(t.cellHeight),t.class!==void 0&&t.class!==i.class&&(i.class&&this.el.classList.remove(i.class),t.class&&this.el.classList.add(t.class)),t.columnOpts){let r=!!this.opts.columnOpts;this.opts.columnOpts=t.columnOpts,r!==!!this.opts.columnOpts&&this._updateResizeEvent(),this.checkDynamicColumn()}else t.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof t.column=="number"&&this.column(t.column);return t.margin!==void 0&&this.margin(t.margin),t.staticGrid!==void 0&&this.setStatic(t.staticGrid),t.disableDrag!==void 0&&!t.staticGrid&&this.enableMove(!t.disableDrag),t.disableResize!==void 0&&!t.staticGrid&&this.enableResize(!t.disableResize),t.float!==void 0&&this.float(t.float),t.row!==void 0?(i.minRow=i.maxRow=i.row=t.row,this._updateContainerHeight()):(t.minRow!==void 0&&(i.minRow=t.minRow,this._updateContainerHeight()),t.maxRow!==void 0&&(i.maxRow=this.engine.maxRow=t.maxRow)),t.lazyLoad!==void 0&&(i.lazyLoad=t.lazyLoad),t.children?.length&&this.load(t.children),this}update(t,i){return e.getElements(t).forEach(r=>{let o=r?.gridstackNode;if(!o)return;let n=O(O({},E.copyPos({},o)),E.cloneDeep(i));this.engine.nodeBoundFix(n),delete n.autoPosition;let s=["x","y","w","h"],c;if(s.some(u=>n[u]!==void 0&&n[u]!==o[u])&&(c={},s.forEach(u=>{c[u]=n[u]!==void 0?n[u]:o[u],delete n[u]})),!c&&(n.minW||n.minH||n.maxW||n.maxH)&&(c={}),n.content!==void 0){let u=r.querySelector(".grid-stack-item-content");u&&u.textContent!==n.content&&(o.content=n.content,e.renderCB(u,n),o.subGrid?.el&&(u.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete n.content}let l=!1,d=!1;for(let u in n)u[0]!=="_"&&o[u]!==n[u]&&(o[u]=n[u],l=!0,d=d||!this.opts.staticGrid&&(u==="noResize"||u==="noMove"||u==="locked"));if(E.sanitizeMinMax(o),c){let u=c.w!==void 0&&c.w!==o.w;this.moveNode(o,c),u&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(u,o),delete o._orig}(c||l)&&this._writeAttr(r,o),d&&this.prepareDragDrop(o.el),e.updateCB&&e.updateCB(o)}),this}moveNode(t,i){let r=t._updating;r||this.engine.cleanNodes().beginUpdate(t),this.engine.moveNode(t,i),this._updateContainerHeight(),r||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(t){if(!t||(t.classList.remove("size-to-content-max"),!t.clientHeight))return;let i=t.gridstackNode;if(!i)return;let r=i.grid;if(!r||t.parentElement!==r.el)return;let o=r.getCellHeight(!0);if(!o)return;let n=i.h?i.h*o:t.clientHeight,s;if(i.resizeToContentParent&&(s=t.querySelector(i.resizeToContentParent)),s||(s=t.querySelector(e.resizeToContentParent)),!s)return;let c=t.clientHeight-s.clientHeight,l=i.h?i.h*o-c:s.clientHeight,d;if(i.subGrid){d=i.subGrid.getRow()*i.subGrid.getCellHeight(!0);let _=i.subGrid.el.getBoundingClientRect(),g=t.getBoundingClientRect();d+=_.top-g.top}else{if(i.subGridOpts?.children?.length)return;{let _=s.firstElementChild;if(!_){console.error(`Error: GridStack.resizeToContent() widget id:${i.id} '${e.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}d=_.getBoundingClientRect().height||l}}if(l===d)return;n+=d-l;let u=Math.ceil(n/o),m=Number.isInteger(i.sizeToContent)?i.sizeToContent:0;m&&u>m&&(u=m,t.classList.add("size-to-content-max")),i.minH&&u<i.minH?u=i.minH:i.maxH&&u>i.maxH&&(u=i.maxH),u!==i.h&&(r._ignoreLayoutsNodeChange=!0,r.moveNode(i,{h:u}),delete r._ignoreLayoutsNodeChange)}resizeToContentCBCheck(t){e.resizeToContentCB?e.resizeToContentCB(t):this.resizeToContent(t)}rotate(t,i){return e.getElements(t).forEach(r=>{let o=r.gridstackNode;if(!E.canBeRotated(o))return;let n={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(i){let c=i.left>0?Math.floor(i.left/this.cellWidth()):0,l=i.top>0?Math.floor(i.top/this.opts.cellHeight):0;n.x=o.x+c-(o.h-(l+1)),n.y=o.y+l-c}Object.keys(n).forEach(c=>{n[c]===void 0&&delete n[c]});let s=o._orig;this.update(r,n),o._orig=s}),this}margin(t){if(!(typeof t=="string"&&t.split(" ").length>1)){let i=E.parseHeight(t);if(this.opts.marginUnit===i.unit&&this.opts.margin===i.h)return}return this.opts.margin=t,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(t){return this.engine.willItFit(t)}_triggerChangeEvent(){if(this.engine.batchMode)return this;let t=this.engine.getDirtyNodes(!0);return t&&t.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(t),this._triggerEvent("change",t)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(i=>{delete i._dirty});let t=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",t)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){let t=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",t)}return this}_triggerEvent(t,i){let r=i?new CustomEvent(t,{bubbles:!1,detail:i}):new Event(t),o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(r),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;let t=this.parentGridNode,i=this.getRow()+this._extraDragRow,r=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!r)return this;if(!t&&!this.opts.minRow){let n=E.parseHeight(getComputedStyle(this.el).minHeight);if(n.h>0&&n.unit===o){let s=Math.floor(n.h/r);i<s&&(i=s)}}return this.el.setAttribute("gs-current-row",String(i)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),i&&(this.el.style[t?"minHeight":"height"]=i*r+o),t&&E.shouldSizeToContent(t)&&t.grid.resizeToContentCBCheck(t.el),this}_prepareElement(t,i=!1,r){r=r||this._readAttr(t),t.gridstackNode=r,r.el=t,r.grid=this,r=this.engine.addNode(r,i),this._writeAttr(t,r),t.classList.add(d5.itemClass,this.opts.itemClass);let o=E.shouldSizeToContent(r);return o?t.classList.add("size-to-content"):t.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,r),E.lazyLoad(r)||this.prepareDragDrop(r.el),this}_writePosAttr(t,i){if(!i._moving&&!i._resizing||this._placeholder===t){let r=this.opts.rtl?"right":"left";t.style.top=i.y?i.y===1?"var(--gs-cell-height)":`calc(${i.y} * var(--gs-cell-height))`:null,t.style[r]=i.x?i.x===1?"var(--gs-column-width)":`calc(${i.x} * var(--gs-column-width))`:null,t.style.width=i.w>1?`calc(${i.w} * var(--gs-column-width))`:null,t.style.height=i.h>1?`calc(${i.h} * var(--gs-cell-height))`:null}return t.setAttribute("gs-x",String(i.x)),t.setAttribute("gs-y",String(i.y)),i.w>1?t.setAttribute("gs-w",String(i.w)):t.removeAttribute("gs-w"),i.h>1?t.setAttribute("gs-h",String(i.h)):t.removeAttribute("gs-h"),this}_writeAttr(t,i){if(!i)return this;this._writePosAttr(t,i);let r={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(let o in r)i[o]?t.setAttribute(r[o],String(i[o])):t.removeAttribute(r[o]);return this}_readAttr(t,i=!0){let r={};r.x=E.toNumber(t.getAttribute("gs-x")),r.y=E.toNumber(t.getAttribute("gs-y")),r.w=E.toNumber(t.getAttribute("gs-w")),r.h=E.toNumber(t.getAttribute("gs-h")),r.autoPosition=E.toBool(t.getAttribute("gs-auto-position")),r.noResize=E.toBool(t.getAttribute("gs-no-resize")),r.noMove=E.toBool(t.getAttribute("gs-no-move")),r.locked=E.toBool(t.getAttribute("gs-locked"));let o=t.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?r.sizeToContent=E.toBool(o):r.sizeToContent=parseInt(o,10)),r.id=t.getAttribute("gs-id"),r.maxW=E.toNumber(t.getAttribute("gs-max-w")),r.minW=E.toNumber(t.getAttribute("gs-min-w")),r.maxH=E.toNumber(t.getAttribute("gs-max-h")),r.minH=E.toNumber(t.getAttribute("gs-min-h")),i&&(r.w===1&&t.removeAttribute("gs-w"),r.h===1&&t.removeAttribute("gs-h"),r.maxW&&t.removeAttribute("gs-max-w"),r.minW&&t.removeAttribute("gs-min-w"),r.maxH&&t.removeAttribute("gs-max-h"),r.minH&&t.removeAttribute("gs-min-h"));for(let n in r){if(!r.hasOwnProperty(n))return;!r[n]&&r[n]!==0&&n!=="sizeToContent"&&delete r[n]}return r}_setStaticClass(){let t=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...t),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...t),this.el.removeAttribute("gs-static")),this}onResize(t=this.el?.clientWidth){if(!t||this.prevWidth===t)return;this.prevWidth=t,this.batchUpdate();let i=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),i=!0):i=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(r=>{r.subGrid&&r.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(i),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(t=!1,i=void 0){if(this.engine){if(t&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,i),this.animationDelay);if(i)E.shouldSizeToContent(i)&&this.resizeToContentCBCheck(i.el);else if(this.engine.nodes.some(r=>E.shouldSizeToContent(r))){let r=[...this.engine.nodes];this.batchUpdate(),r.forEach(o=>{E.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,i?[i]:this.engine.nodes)}}_updateResizeEvent(t=!1){let i=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(r=>r.sizeToContent));return!t&&i&&!this.resizeObserver?(this._sizeThrottle=E.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(t||!i)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(t=".grid-stack-item"){return E.getElement(t)}static getElements(t=".grid-stack-item"){return E.getElements(t)}static getGridElement(t){return e.getElement(t)}static getGridElements(t){return E.getElements(t)}_initMargin(){let t,i=0,r=[];typeof this.opts.margin=="string"&&(r=this.opts.margin.split(" ")),r.length===2?(this.opts.marginTop=this.opts.marginBottom=r[0],this.opts.marginLeft=this.opts.marginRight=r[1]):r.length===4?(this.opts.marginTop=r[0],this.opts.marginRight=r[1],this.opts.marginBottom=r[2],this.opts.marginLeft=r[3]):(t=E.parseHeight(this.opts.margin),this.opts.marginUnit=t.unit,i=this.opts.margin=t.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{this.opts[n]===void 0?this.opts[n]=i:(t=E.parseHeight(this.opts[n]),this.opts[n]=t.h,delete this.opts.margin)}),this.opts.marginUnit=t.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);let o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return e5}static setupDragIn(t,i,r,o=document){i?.pause!==void 0&&($.pauseDrag=i.pause),i=O({appendTo:"body",helper:"clone"},i||{}),(typeof t=="string"?E.getElements(t,o):t).forEach((n,s)=>{e5.isDraggable(n)||e5.dragIn(n,i),r?.[s]&&(n.gridstackNode=r[s])})}movable(t,i){return this.opts.staticGrid?this:(e.getElements(t).forEach(r=>{let o=r.gridstackNode;o&&(i?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(t,i){return this.opts.staticGrid?this:(e.getElements(t).forEach(r=>{let o=r.gridstackNode;o&&(i?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(t=!0){if(!this.opts.staticGrid)return this.enableMove(!1,t),this.enableResize(!1,t),this._triggerEvent("disable"),this}enable(t=!0){if(!this.opts.staticGrid)return this.enableMove(!0,t),this.enableResize(!0,t),this._triggerEvent("enable"),this}enableMove(t,i=!0){return this.opts.staticGrid?this:(t?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(r=>{this.prepareDragDrop(r.el),r.subGrid&&i&&r.subGrid.enableMove(t,i)}),this)}enableResize(t,i=!0){return this.opts.staticGrid?this:(t?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(r=>{this.prepareDragDrop(r.el),r.subGrid&&i&&r.subGrid.enableResize(t,i)}),this)}cancelDrag(){let t=this._placeholder?.gridstackNode;t&&(t._isExternal?(t._isAboutToRemove=!0,this.engine.removeNode(t)):t._isAboutToRemove&&e._itemRemoving(t.el,!1),this.engine.restoreInitial())}_removeDD(t){return e5.draggable(t,"destroy").resizable(t,"destroy"),t.gridstackNode&&delete t.gridstackNode._initDD,delete t.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return e5.droppable(this.el,"destroy"),this;let t,i,r=(o,n,s)=>{s=s||n;let c=s.gridstackNode;if(!c)return;if(!c.grid?.el){s.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;let _=s.getBoundingClientRect();s.style.left=_.x+(this.dragTransform.xScale-1)*(o.clientX-_.x)/this.dragTransform.xScale+"px",s.style.top=_.y+(this.dragTransform.yScale-1)*(o.clientY-_.y)/this.dragTransform.yScale+"px",s.style.transformOrigin="0px 0px"}let{top:l,left:d}=s.getBoundingClientRect(),u=this.el.getBoundingClientRect();d-=u.left,l-=u.top;let m={position:{top:l*this.dragTransform.xScale,left:d*this.dragTransform.yScale}};if(c._temporaryRemoved){if(c.x=Math.max(0,Math.round(d/i)),c.y=Math.max(0,Math.round(l/t)),delete c.autoPosition,this.engine.nodeBoundFix(c),!this.engine.willItFit(c)){if(c.autoPosition=!0,!this.engine.willItFit(c)){e5.off(n,"drag");return}c._willFitPos&&(E.copyPos(c,c._willFitPos),delete c._willFitPos)}this._onStartMoving(s,o,m,c,i,t)}else this._dragOrResize(s,o,m,c,i,t)};return e5.droppable(this.el,{accept:o=>{let n=o.gridstackNode||this._readAttr(o,!1);if(n?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let s=!0;if(typeof this.opts.acceptWidgets=="function")s=this.opts.acceptWidgets(o);else{let c=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;s=o.matches(c)}if(s&&n&&this.opts.maxRow){let c={w:n.w,h:n.h,minW:n.minW,minH:n.minH};s=this.engine.willItFit(c)}return s}}).on(this.el,"dropover",(o,n,s)=>{let c=s?.gridstackNode||n.gridstackNode;if(c?.grid===this&&!c._temporaryRemoved)return!1;if(c?._sidebarOrig&&(c.w=c._sidebarOrig.w,c.h=c._sidebarOrig.h),c?.grid&&c.grid!==this&&!c._temporaryRemoved&&c.grid._leave(n,s),s=s||n,i=this.cellWidth(),t=this.getCellHeight(!0),!c){let u=s.getAttribute("data-gs-widget")||s.getAttribute("gridstacknode");if(u){try{c=JSON.parse(u)}catch{console.error("Gridstack dropover: Bad JSON format: ",u)}s.removeAttribute("data-gs-widget"),s.removeAttribute("gridstacknode")}c||(c=this._readAttr(s)),c._sidebarOrig={w:c.w,h:c.h}}c.grid||(c.el||(c=O({},c)),c._isExternal=!0,s.gridstackNode=c);let l=c.w||Math.round(s.offsetWidth/i)||1,d=c.h||Math.round(s.offsetHeight/t)||1;return c.grid&&c.grid!==this?(n._gridstackNodeOrig||(n._gridstackNodeOrig=c),n.gridstackNode=c=h1(O({},c),{w:l,h:d,grid:this}),delete c.x,delete c.y,this.engine.cleanupNode(c).nodeBoundFix(c),c._initDD=c._isExternal=c._temporaryRemoved=!0):(c.w=l,c.h=d,c._temporaryRemoved=!0),e._itemRemoving(c.el,!1),e5.on(n,"drag",r),r(o,n,s),!1}).on(this.el,"dropout",(o,n,s)=>{let c=s?.gridstackNode||n.gridstackNode;return c&&(!c.grid||c.grid===this)&&(this._leave(n,s),this._isTemp&&this.removeAsSubGrid(c)),!1}).on(this.el,"drop",(o,n,s)=>{let c=s?.gridstackNode||n.gridstackNode;if(c?.grid===this&&!c._isExternal)return!1;let l=!!this.placeholder.parentElement,d=n!==s;this.placeholder.remove(),delete this.placeholder.gridstackNode,l&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));let u=n._gridstackNodeOrig;if(delete n._gridstackNodeOrig,l&&u?.grid&&u.grid!==this){let _=u.grid;_.engine.removeNodeFromLayoutCache(u),_.engine.removedNodes.push(u),_._triggerRemoveEvent()._triggerChangeEvent(),_.parentGridNode&&!_.engine.nodes.length&&_.opts.subGridDynamic&&_.removeAsSubGrid()}if(!c||(l&&(this.engine.cleanupNode(c),c.grid=this),delete c.grid?._isTemp,e5.off(n,"drag"),s!==n?(s.remove(),n=s):n.remove(),this._removeDD(n),!l))return!1;let m=c.subGrid?.el?.gridstack;return E.copyPos(c,this._readAttr(this.placeholder)),E.removePositioningStyles(n),d&&(c.content||c.subGridOpts||e.addRemoveCB)?(delete c.el,n=this.addWidget(c)):(this._prepareElement(n,!0,c),this.el.appendChild(n),this.resizeToContentCheck(!1,c),m&&(m.parentGridNode=c),this._updateContainerHeight()),this.engine.addedNodes.push(c),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped(h1(O({},o),{type:"dropped"}),u&&u.grid?u:void 0,c),!1}),this}static _itemRemoving(t,i){if(!t)return;let r=t?t.gridstackNode:void 0;!r?.grid||t.classList.contains(r.grid.opts.removableOptions.decline)||(i?r._isAboutToRemove=!0:delete r._isAboutToRemove,i?t.classList.add("grid-stack-item-removing"):t.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;let t=document.querySelector(this.opts.removable);return t?(!this.opts.staticGrid&&!e5.isDroppable(t)&&e5.droppable(t,this.opts.removableOptions).on(t,"dropover",(i,r)=>e._itemRemoving(r,!0)).on(t,"dropout",(i,r)=>e._itemRemoving(r,!1)),this):this}prepareDragDrop(t,i=!1){let r=t?.gridstackNode;if(!r)return;let o=r.noMove||this.opts.disableDrag,n=r.noResize||this.opts.disableResize,s=this.opts.staticGrid||o&&n;if((i||s)&&(r._initDD&&(this._removeDD(t),delete r._initDD),s))return t.classList.add("ui-draggable-disabled","ui-resizable-disabled"),this;if(!r._initDD){let c,l,d=(_,g)=>{this.triggerEvent(_,_.target),c=this.cellWidth(),l=this.getCellHeight(!0),this._onStartMoving(t,_,g,r,c,l)},u=(_,g)=>{this._dragOrResize(t,_,g,r,c,l)},m=_=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete r._moving,delete r._resizing,delete r._event,delete r._lastTried;let g=r.w!==r._orig.w,y=_.target;if(!(!y.gridstackNode||y.gridstackNode.grid!==this)){if(r.el=y,r._isAboutToRemove){let w=t.gridstackNode.grid;w._gsEventHandler[_.type]&&w._gsEventHandler[_.type](_,y),w.engine.nodes.push(r),w.removeWidget(t,!0,!0)}else E.removePositioningStyles(y),r._temporaryRemoved?(this._writePosAttr(y,r),this.engine.addNode(r)):this._writePosAttr(y,r),this.triggerEvent(_,y);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),_.type==="resizestop"&&(Number.isInteger(r.sizeToContent)&&(r.sizeToContent=r.h),this.resizeToContentCheck(g,r))}};e5.draggable(t,{start:d,stop:m,drag:u,rtl:this.opts.rtl}).resizable(t,{start:d,stop:m,resize:u,rtl:this.opts.rtl}),r._initDD=!0}return e5.draggable(t,o?"disable":"enable").resizable(t,n?"disable":"enable"),this}_onStartMoving(t,i,r,o,n,s){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=E.getValuesFromTransformedElement(t);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){let c=this.placeholder.closest(".grid-stack");this.dragTransform=E.getValuesFromTransformedElement(c)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=r.position,o._prevYPix=r.position.top,o._moving=i.type==="dragstart",o._resizing=i.type==="resizestart",delete o._lastTried,i.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(n,s,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),i.type==="resizestart"){let c=this.getColumn()-o.x,l=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;e5.resizable(t,"option","minWidth",n*Math.min(o.minW||1,c)).resizable(t,"option","minHeight",s*Math.min(o.minH||1,l)).resizable(t,"option","maxWidth",n*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,c)).resizable(t,"option","maxWidthMoveLeft",n*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(t,"option","maxHeight",s*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,l)).resizable(t,"option","maxHeightMoveUp",s*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(t,i,r,o,n,s){let c=O({},o._orig),l,d=this.opts.marginLeft,u=this.opts.marginRight,m=this.opts.marginTop,_=this.opts.marginBottom,g=Math.round(s*.1),y=Math.round(n*.1);if(d=Math.min(d,y),u=Math.min(u,y),m=Math.min(m,g),_=Math.min(_,g),i.type==="drag"){if(o._temporaryRemoved)return;o._prevYPix=r.position.top,this.opts.draggable.scroll!==!1&&$.dragElement?.updateScrollPosition(this.el);let v=r.position.left+(r.position.left>o._lastUiPosition.left?-u:d),C=r.position.top+(r.position.top>o._lastUiPosition.top?-_:m);c.x=Math.round(v/n),c.y=Math.round(C/s);let f=this._extraDragRow;if(this.engine.collide(o,c)){let T=this.getRow(),L=Math.max(0,c.y+o.h-T);this.opts.maxRow&&T+L>this.opts.maxRow&&(L=Math.max(0,this.opts.maxRow-T)),this._extraDragRow=L}else this._extraDragRow=0;if(this._extraDragRow!==f&&this._updateContainerHeight(),o.x===c.x&&o.y===c.y)return}else if(i.type==="resize"){if(c.x<0||(E.updateScrollResize(i,t,s),c.w=Math.round((r.size.width-d)/n),c.h=Math.round((r.size.height-m)/s),o.w===c.w&&o.h===c.h)||o._lastTried&&o._lastTried.w===c.w&&o._lastTried.h===c.h)return;if(i.hasMovedX){let v=r.position.left+d;c.x=Math.round(v/n)}if(i.hasMovedY){let v=r.position.top+m;c.y=Math.round(v/s)}l=!0}o._event=i,o._lastTried=c;let w={x:r.position.left+d,y:r.position.top+m,w:(r.size?r.size.width:o.w*n)-d-u,h:(r.size?r.size.height:o.h*s)-m-_};if(this.engine.moveNodeCheck(o,h1(O({},c),{cellWidth:n,cellHeight:s,rect:w,resizing:l}))){o._lastUiPosition=r.position,this.engine.cacheRects(n,s,m,u,_,d),delete o._skipDown,l&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();let v=i.target;o._sidebarOrig||this._writePosAttr(v,o),this.triggerEvent(i,v)}}triggerEvent(t,i){let r=this;for(;r.parentGridNode;)r=r.parentGridNode.grid;r._gsEventHandler[t.type]&&r._gsEventHandler[t.type](t,i)}_leave(t,i){i=i||t;let r=i.gridstackNode;if(!r||(i.style.transform=i.style.transformOrigin=null,e5.off(t,"drag"),r._temporaryRemoved))return;r._temporaryRemoved=!0,this.engine.removeNode(r),r.el=r._isExternal&&i?i:t;let o=r._sidebarOrig;r._isExternal&&this.engine.cleanupNode(r),r._sidebarOrig=o,this.opts.removable===!0&&e._itemRemoving(t,!0),t._gridstackNodeOrig?(t.gridstackNode=t._gridstackNodeOrig,delete t._gridstackNodeOrig):r._isExternal&&this.engine.restoreInitial()}}return e.renderCB=(a,t)=>{a&&t?.content&&(a.textContent=t.content)},e.resizeToContentParent=".grid-stack-item-content",e.Utils=E,e.Engine=ch,e.GDRev="12.6.0",e})(),up=["container"],kD=["*"];function SD(e,a){}var LD=["*",[["","empty-content",""]]],VD=["*","[empty-content]"];function TD(e,a){e&1&&t5(0,1,["*ngIf","isEmpty"])}function ED(e,a){}var T9=(()=>{class e{constructor(t){this.elementRef=t,this.el._gridItemComp=this}set options(t){let i=this.el.gridstackNode?.grid;i?i.update(this.el,t):this._options=h1(O({},t),{el:this.el})}get options(){return this.el.gridstackNode||this._options||{el:this.el}}get el(){return this.elementRef.nativeElement}clearOptions(){delete this._options}ngOnDestroy(){this.clearOptions(),delete this.childWidget,delete this.el._gridItemComp,delete this.container,delete this.ref}}return e.\u0275fac=function(a){return new(a||e)(We(H0))},e.\u0275cmp=Y0({type:e,selectors:[["gridstack-item"]],viewQuery:function(a,t){if(a&1&&M9(up,7,he),a&2){let i;hi(i=ui())&&(t.container=i.first)}},inputs:{options:"options"},ngContentSelectors:kD,decls:5,vars:1,consts:[["container",""],[1,"grid-stack-item-content"]],template:function(a,t){a&1&&(s5(),B_(0,"div",1),y_(1,SD,0,0,"ng-template",null,0,D_),t5(3),p5(4),H_()),a&2&&(w1(4),H9(" ",t.options.content," "))},styles:["[_nghost-%COMP%]{display:block}"]}),e})(),Bi=(()=>{class e{constructor(t){this.elementRef=t,this.addedCB=new r0,this.changeCB=new r0,this.disableCB=new r0,this.dragCB=new r0,this.dragStartCB=new r0,this.dragStopCB=new r0,this.droppedCB=new r0,this.enableCB=new r0,this.removedCB=new r0,this.resizeCB=new r0,this.resizeStartCB=new r0,this.resizeStopCB=new r0,Ie.addRemoveCB||(Ie.addRemoveCB=ID),Ie.saveCB||(Ie.saveCB=DD),Ie.updateCB||(Ie.updateCB=zD),this.el._gridComp=this}set options(t){this._grid?this._grid.updateOptions(t):this._options=t}get options(){return this._grid?.opts||this._options||{}}get el(){return this.elementRef.nativeElement}get grid(){return this._grid}static addComponentToSelectorType(t){t.forEach(i=>e.selectorToType[e.getSelector(i)]=i)}static getSelector(t){return P_(t).selector}ngOnInit(){this.loaded=!!this.options?.children?.length,this._grid=Ie.init(this._options,this.el),delete this._options,this.checkEmpty()}ngAfterContentInit(){this._sub=this.gridstackItems?.changes.subscribe(()=>this.updateAll()),this.loaded||this.updateAll(),this.hookEvents(this.grid)}ngOnDestroy(){this.unhookEvents(this._grid),this._sub?.unsubscribe(),this._grid?.destroy(),delete this._grid,delete this.el._gridComp,delete this.container,delete this.ref}updateAll(){if(!this.grid)return;let t=[];this.gridstackItems?.forEach(i=>{t.push(i.options),i.clearOptions()}),this.grid.load(t)}checkEmpty(){this.grid&&(this.isEmpty=!this.grid.engine.nodes.length)}hookEvents(t){t&&(t.parentGridNode||t.on("added",(i,r)=>{(r[0].grid?.el._gridComp||this).checkEmpty(),this.addedCB.emit({event:i,nodes:r})}).on("change",(i,r)=>this.changeCB.emit({event:i,nodes:r})).on("disable",i=>this.disableCB.emit({event:i})).on("drag",(i,r)=>this.dragCB.emit({event:i,el:r})).on("dragstart",(i,r)=>this.dragStartCB.emit({event:i,el:r})).on("dragstop",(i,r)=>this.dragStopCB.emit({event:i,el:r})).on("dropped",(i,r,o)=>this.droppedCB.emit({event:i,previousNode:r,newNode:o})).on("enable",i=>this.enableCB.emit({event:i})).on("removed",(i,r)=>{(r[0].grid?.el._gridComp||this).checkEmpty(),this.removedCB.emit({event:i,nodes:r})}).on("resize",(i,r)=>this.resizeCB.emit({event:i,el:r})).on("resizestart",(i,r)=>this.resizeStartCB.emit({event:i,el:r})).on("resizestop",(i,r)=>this.resizeStopCB.emit({event:i,el:r})))}unhookEvents(t){t&&(t.parentGridNode||t.off("added change disable drag dragstart dragstop dropped enable removed resize resizestart resizestop"))}}return e.selectorToType={},e.\u0275fac=function(a){return new(a||e)(We(H0))},e.\u0275cmp=Y0({type:e,selectors:[["gridstack"]],contentQueries:function(a,t,i){if(a&1&&S_(i,T9,4),a&2){let r;hi(r=ui())&&(t.gridstackItems=r)}},viewQuery:function(a,t){if(a&1&&M9(up,7,he),a&2){let i;hi(i=ui())&&(t.container=i.first)}},inputs:{options:"options",isEmpty:"isEmpty"},outputs:{addedCB:"addedCB",changeCB:"changeCB",disableCB:"disableCB",dragCB:"dragCB",dragStartCB:"dragStartCB",dragStopCB:"dragStopCB",droppedCB:"droppedCB",enableCB:"enableCB",removedCB:"removedCB",resizeCB:"resizeCB",resizeStartCB:"resizeStartCB",resizeStopCB:"resizeStopCB"},ngContentSelectors:VD,decls:4,vars:1,consts:[["container",""],[4,"ngIf"]],template:function(a,t){a&1&&(s5(LD),w_(0,TD,1,0,"ng-content",1)(1,ED,0,0,"ng-template",null,0,D_),t5(3)),a&2&&v0("ngIf",t.isEmpty)},dependencies:[WS],styles:["[_nghost-%COMP%]{display:block}"]}),e})();function ID(e,a,t,i){if(t){if(!e)return;if(i){let r=e.parentElement?._gridItemComp;if(!r)return;let o=(r.childWidget?.container||r.container)?.createComponent(Bi),n=o?.instance;return n?(n.ref=o,n.options=a,n.el):void 0}else{let r=e._gridComp?.container?.createComponent(T9),o=r?.instance;if(!o)return;o.ref=r;let n=a.selector,s=n?Bi.selectorToType[n]:void 0;if(s){let c=()=>{let l=o.container?.createComponent(s)?.instance;l&&typeof l.serialize=="function"&&typeof l.deserialize=="function"&&(o.childWidget=l,l.deserialize(a))};a.lazyLoad||a.grid?.opts?.lazyLoad&&a.lazyLoad!==!1?a.visibleObservable||(a.visibleObservable=new IntersectionObserver(([l])=>{l.isIntersecting&&(a.visibleObservable?.disconnect(),delete a.visibleObservable,c())}),window.setTimeout(()=>a.visibleObservable?.observe(o.el))):c()}return o.el}}else if(i){let r=a.el?._gridComp;r?.ref?r.ref.destroy():r?.ngOnDestroy()}else{let r=a.el?._gridItemComp;r?.ref?r.ref.destroy():r?.ngOnDestroy()}}function DD(e,a){let t=e.el?._gridItemComp;if(t){let r=t.childWidget?.serialize();r&&(a.input=r);return}let i=e.el?._gridComp}function zD(e){let a=e,t=e.el?._gridItemComp;t?.childWidget&&a.input&&t.childWidget.deserialize(a)}var RD=["grid"],ND=["addCardBtn"],OD=[[["","slot","dashboard-subheader"]]],FD=["[slot=dashboard-subheader]"],uh=(e,a)=>a.id,dp=(e,a)=>a.action;function PD(e,a){if(e&1&&(u1(0,"ui5-title",7),p5(1),A1()),e&2){let t=Z1();w1(),pe(t.config().title)}}function UD(e,a){if(e&1&&(u1(0,"ui5-text"),p5(1),A1()),e&2){let t=Z1();w1(),pe(t.config().description)}}function qD(e,a){if(e&1){let t=q5();u1(0,"ui5-button",17,1),_0("click",function(){W0(t);let i=Z1();return $0(i.openCardPanel())}),p5(2),A1()}if(e&2){let t=Z1();v0("accessibleName",t.addCardButton().text||t.addCardButton().tooltip||"Edit Cards")("design",t.addCardButton().design)("icon",t.addCardButton().icon)("tooltip",t.addCardButton().tooltip),w1(2),pe(t.addCardButton().text)}}function jD(e,a){if(e&1&&n6(0,"ui5-menu-item",20),e&2){let t=a.$implicit;v0("icon",t.icon??"")("text",t.text??""),x_("data-action",t.action)}}function GD(e,a){if(e&1&&n6(0,"ui5-menu-separator")(1,"ui5-menu-item",21),e&2){let t=Z1(2);w1(),v0("icon",t.editViewButton().icon)("text",t.editViewButton().text||"Edit View")}}function WD(e,a){if(e&1){let t=q5();u1(0,"ui5-button",18,2),_0("click",function(){W0(t);let i=Z1();return $0(i.toolbarMenuOpen.update(r=>!r))}),A1(),u1(2,"ui5-menu",19),_0("ui5Close",function(){W0(t);let i=Z1();return $0(i.toolbarMenuOpen.set(!1))})("ui5ItemClick",function(i){W0(t);let r=Z1();return $0(r.onMenuItemClick(i.detail.item.dataset.action,i))})("ui5Open",function(){W0(t);let i=Z1();return $0(i.toolbarMenuOpen.set(!0))}),E7(3,jD,1,3,"ui5-menu-item",20,dp),r2(5,GD,2,2),A1()}if(e&2){let t=Pk(1),i=Z1();w1(2),v0("open",i.toolbarMenuOpen())("opener",t.element),w1(),I7(i.customActions()),w1(2),o2(i.config().editable?5:-1)}}function $D(e,a){if(e&1){let t=q5();u1(0,"ui5-button",24),_0("click",function(i){let r=W0(t).$implicit,o=Z1(2);return $0(o.actionButtonClick.emit({event:i,action:r}))}),p5(1),A1()}if(e&2){let t=a.$implicit;v0("accessibleName",t.text||t.tooltip||t.action)("design",t.design??"Default")("endIcon",t==null?null:t.endIcon)("icon",t.icon??"")("tooltip",t.tooltip??""),w1(),pe(t.text)}}function XD(e,a){if(e&1){let t=q5();u1(0,"ui5-button",25),_0("click",function(){W0(t);let i=Z1(2);return $0(i.enterEditMode())}),p5(1),A1()}if(e&2){let t=Z1(2);v0("accessibleName",t.editViewButton().text||t.editViewButton().tooltip||"Edit View")("design",t.editViewButton().design)("icon",t.editViewButton().icon)("tooltip",t.editViewButton().tooltip),w1(),pe(t.editViewButton().text)}}function KD(e,a){if(e&1&&(E7(0,$D,2,6,"ui5-button",22,dp),r2(2,XD,2,5,"ui5-button",23)),e&2){let t=Z1();I7(t.customActions()),w1(2),o2(t.config().editable?2:-1)}}function YD(e,a){if(e&1){let t=q5();u1(0,"mfp-dashboard-section",26),_0("removeCard",function(i){W0(t);let r=Z1();return $0(r.removeCard(i))})("removeSection",function(){let i=W0(t).$implicit,r=Z1();return $0(r.removeSection(i.id))}),A1()}if(e&2){let t=a.$implicit,i=Z1();v0("cards",i.sectionCards()(t.id))("columns",12)("editMode",i.editMode())("section",t)}}function QD(e,a){if(e&1){let t=q5();u1(0,"gridstack-item",27)(1,"mfp-dashboard-card",28),_0("removeCard",function(){let i=W0(t).$implicit,r=Z1();return $0(r.removeCard(i.id))}),A1()()}if(e&2){let t=a.$implicit,i=Z1();ue("cursor",i.editMode()?"pointer":"auto"),v0("options",t),w1(),v0("card",t)("editMode",i.editMode())}}function JD(e,a){if(e&1){let t=q5();u1(0,"div",15)(1,"ui5-button",29),_0("click",function(){W0(t);let i=Z1();return $0(i.saveEdit())}),p5(2,"Save"),A1(),u1(3,"ui5-button",30),_0("click",function(){W0(t);let i=Z1();return $0(i.cancelEdit())}),p5(4,"Cancel"),A1()()}}document.body.classList.add("ui5-content-density-compact");var ez=class Hi{static registerAngularComponents(a){eI(a)}config=R.required();sections=Wl([]);cards=Wl([]);availableCards=R([]);saved=g1();actionButtonClick=g1();editMode=g7(!1);compactToolbar=g7(!1);toolbarMenuOpen=g7(!1);sectionsSnapshot=[];cardsSnapshot=[];gridStackItems=vi.required("grid");addCardBtn=vi("addCardBtn");resizeObserver;hostEl=q(H0);injector=q(R0);gridOptions=te(()=>({cellHeight:10,disableResize:!this.editMode(),disableDrag:!this.editMode(),columnOpts:{breakpointForWindow:!0,breakpoints:[{w:1440,c:12,layout:"none"},{w:1024,c:8,layout:"compact"},{w:600,c:1,layout:"list"}]}}));cardDialogOpen=g7(!1);customActions=te(()=>this.config().customActions??[]);addedCardsIds=te(()=>new Set(this.cards().map(a=>a.id)));editViewButton=te(()=>O({icon:"action-settings",design:"Transparent",tooltip:"Edit View",text:""},this.config().buttonsSettings?.editViewButton));addCardButton=te(()=>O({icon:"",design:"Default",tooltip:"",text:"Edit Cards"},this.config().buttonsSettings?.addCardButton));sectionCards=te(()=>{let a=this.cards();return t=>a.filter(i=>i.sectionId===t)});cardsPosition=new Map;looseCards=vS(()=>this.cards().filter(a=>!a.sectionId));newGridStackNodes=[];ngOnInit(){this.resizeObserver=new ResizeObserver(a=>{let t=a[0]?.contentRect.width??0;this.compactToolbar.set(t<726)}),this.resizeObserver.observe(this.hostEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect()}onMenuItemClick(a,t){if(a==="edit-view"){this.enterEditMode();return}let i=this.customActions().find(r=>r.action===a);i&&this.actionButtonClick.emit({event:t,action:i})}enterEditMode(){let a=this.gridStackItems().gridstackItems?.toArray().map(t=>t.options);a&&this.saveCardsPosition(a),this.sectionsSnapshot=[...this.sections()],this.cardsSnapshot=[...this.cards()],this.editMode.set(!0),nB(()=>{this.addCardBtn()?.element.focus()},{injector:this.injector})}saveEdit(){this.saveCardsPosition(this.newGridStackNodes),this.saved.emit({sections:this.sections(),cards:this.cards().map(a=>{let t=this.cardsPosition.get(a.id);return h1(O({},a),{x:t?.x,y:t?.y,w:t?.w??a.w,h:t?.h??a.h})})}),this.editMode.set(!1)}cancelEdit(){this.sections.set(this.sectionsSnapshot),this.cards.set(this.cardsSnapshot.map(a=>{let t=this.cardsPosition.get(a.id);return h1(O({},a),{x:t?.x,y:t?.y})})),this.cardDialogOpen.set(!1),this.editMode.set(!1)}removeSection(a){this.sections.update(t=>t.filter(i=>i.id!==a)),this.cards.update(t=>t.filter(i=>i.sectionId!==a))}removeCard(a){this.cardsPosition.delete(a),this.cards.update(t=>t.filter(i=>i.id!==a))}openCardPanel(){this.cardDialogOpen.set(!0)}closeCardPanel(){this.cardDialogOpen.set(!1)}onCardsEdited(a){this.cards.update(t=>[...t.filter(i=>!a.removed.includes(i.id)),...a.added.map(i=>O({},i))]),this.closeCardPanel()}onGridChange(a){this.newGridStackNodes=a.nodes}saveCardsPosition(a){a.forEach(t=>{t.id&&this.cardsPosition.set(t.id,{x:t.x,y:t.y,w:t.w,h:t.h})})}static \u0275fac=function(a){return new(a||Hi)};static \u0275cmp=Y0({type:Hi,selectors:[["mfp-dashboard"]],viewQuery:function(a,t){a&1&&B9(t.gridStackItems,RD,5)(t.addCardBtn,ND,5),a&2&&L_(2)},hostVars:2,hostBindings:function(a,t){a&2&&ue("background-image",t.config().backgroundImageUrl?"url("+t.config().backgroundImageUrl+")":null)},inputs:{config:[1,"config"],sections:[1,"sections"],cards:[1,"cards"],availableCards:[1,"availableCards"]},outputs:{sections:"sectionsChange",cards:"cardsChange",saved:"saved",actionButtonClick:"actionButtonClick"},ngContentSelectors:FD,decls:21,vars:8,consts:[["grid",""],["addCardBtn",""],["menuBtn",""],[1,"mfp-dashboard"],[1,"mfp-dashboard__topbar"],[1,"mfp-dashboard__topbar-row"],[1,"mfp-dashboard__header"],["level","H2","size","H2","wrapping-type","Normal"],[1,"mfp-dashboard__toolbar"],["id","add-card-btn",3,"accessibleName","design","icon","tooltip"],[1,"mfp-dashboard__subheader"],[1,"mfp-sections-container"],[3,"cards","columns","editMode","section"],[3,"removedCB","addedCB","changeCB","options"],[3,"options","cursor"],[1,"mfp-dashboard__edit-bar"],[3,"cancelled","confirm","addedCardsIds","availableCards","open"],["id","add-card-btn",3,"click","accessibleName","design","icon","tooltip"],["accessibleName","Actions","design","Transparent","icon","menu2","tooltip","Actions",3,"click"],[3,"ui5Close","ui5ItemClick","ui5Open","open","opener"],[3,"icon","text"],["data-action","edit-view",3,"icon","text"],[3,"accessibleName","design","endIcon","icon","tooltip"],[3,"accessibleName","design","icon","tooltip"],[3,"click","accessibleName","design","endIcon","icon","tooltip"],[3,"click","accessibleName","design","icon","tooltip"],[3,"removeCard","removeSection","cards","columns","editMode","section"],[3,"options"],[3,"removeCard","card","editMode"],["design","Emphasized",3,"click"],["design","Transparent",3,"click"]],template:function(a,t){a&1&&(s5(OD),u1(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),r2(4,PD,2,1,"ui5-title",7),r2(5,UD,2,1,"ui5-text"),A1(),u1(6,"div",8),r2(7,qD,3,5,"ui5-button",9)(8,WD,6,3)(9,KD,3,1),A1()(),u1(10,"div",10),t5(11),A1()(),u1(12,"div",11),E7(13,YD,1,4,"mfp-dashboard-section",12,uh),A1(),u1(15,"gridstack",13,0),_0("removedCB",function(i){return t.onGridChange(i)})("addedCB",function(i){return t.onGridChange(i)})("changeCB",function(i){return t.onGridChange(i)}),E7(17,QD,2,5,"gridstack-item",14,uh),A1(),r2(19,JD,5,0,"div",15),A1(),u1(20,"mfp-edit-cards-dialog",16),_0("cancelled",function(){return t.closeCardPanel()})("confirm",function(i){return t.onCardsEdited(i)}),A1()),a&2&&(w1(4),o2(t.config().title?4:-1),w1(),o2(t.config().description?5:-1),w1(2),o2(t.editMode()?7:t.compactToolbar()?8:9),w1(6),I7(t.sections()),w1(2),v0("options",t.gridOptions()),w1(2),I7(t.looseCards()),w1(2),o2(t.editMode()?19:-1),w1(),v0("addedCardsIds",t.addedCardsIds())("availableCards",t.availableCards())("open",t.cardDialogOpen()))},dependencies:[Bi,T9,DI,FI,sp,c6,UI,jI,WI,op,XI],styles:[`.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0;top:0;width:var(--gs-column-width);height:var(--gs-cell-height)}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item{right:0}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,right,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,right .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,right 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item[gs-x="0"]{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item[gs-x="0"]{right:0}mfp-dashboard,mfp-wc-dashboard{display:block;margin:0;padding:0;min-height:100%;background:var(--sapShellColor, #354a5e);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:local}.mfp-dashboard{padding:2rem}.mfp-sections-container{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:auto;align-content:start;gap:1rem}@media(max-width:726px){.mfp-sections-container{grid-template-columns:1fr}}@media(min-width:727px)and (max-width:1200px){.mfp-sections-container{grid-template-columns:repeat(8,1fr)}}.mfp-dashboard__topbar{grid-column:1/-1;align-self:start;display:flex;flex-direction:column;gap:1rem;padding-bottom:3rem;width:100%;min-width:0}.mfp-dashboard__topbar-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.mfp-dashboard__header{display:flex;flex-direction:column;gap:.25rem}.mfp-dashboard__toolbar{flex-shrink:0;display:flex;gap:.5rem}.mfp-dashboard__subheader{display:flex;align-items:center;gap:1rem}.mfp-dashboard__edit-bar{position:sticky;bottom:20px;left:16px;right:16px;z-index:1000;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:7px 16px;background:var(--sapPageFooter_Background, white);border-radius:var(--sapElement_BorderCornerRadius, 12px);box-shadow:0 0 0 1px #2235487a,0 2px 8px #2235484d;box-sizing:border-box;overflow:hidden}
|
|
156
|
+
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),r}static addGrid(t,i={}){if(!t)return null;let r=t;if(r.gridstack){let o=r.gridstack;return i&&(o.opts=O(O({},o.opts),i)),i.children!==void 0&&o.load(i.children),o}return(!t.classList.contains("grid-stack")||e.addRemoveCB)&&(e.addRemoveCB?r=e.addRemoveCB(t,i,!0,!0):r=E.createDiv(["grid-stack",i.class],t)),e.init(i,r)}static registerEngine(t){e.engineClass=t}get placeholder(){if(!this._placeholder){this._placeholder=E.createDiv([this.opts.placeholderClass,d5.itemClass,this.opts.itemClass]);let t=E.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(t.textContent=this.opts.placeholderText)}return this._placeholder}constructor(t,i={}){this.el=t,this.opts=i,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},t.gridstack=this,this.opts=i=i||{},t.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),i.row&&(i.minRow=i.maxRow=i.row,delete i.row);let r=E.toNumber(t.getAttribute("gs-row"));i.column==="auto"&&delete i.column,i.alwaysShowResizeHandle!==void 0&&(i._alwaysShowResizeHandle=i.alwaysShowResizeHandle);let o=i.columnOpts;if(o){let l=o.breakpoints;!o.columnWidth&&!l?.length?delete i.columnOpts:(o.columnMax=o.columnMax||12,l?.length>1&&l.sort((d,u)=>(u.w||0)-(d.w||0)))}let n=h1(O({},E.cloneDeep(d5)),{column:E.toNumber(t.getAttribute("gs-column"))||d5.column,minRow:r||E.toNumber(t.getAttribute("gs-min-row"))||d5.minRow,maxRow:r||E.toNumber(t.getAttribute("gs-max-row"))||d5.maxRow,staticGrid:E.toBool(t.getAttribute("gs-static"))||d5.staticGrid,sizeToContent:E.toBool(t.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(i.handleClass?"."+i.handleClass:i.handle?i.handle:"")||d5.draggable.handle},removableOptions:{accept:i.itemClass||d5.removableOptions.accept,decline:d5.removableOptions.decline}});t.getAttribute("gs-animate")&&(n.animate=E.toBool(t.getAttribute("gs-animate"))),i=E.defaults(i,n),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(i),i.rtl==="auto"&&(i.rtl=t.style.direction==="rtl"),i.rtl&&this.el.classList.add("grid-stack-rtl");let s=this.el.closest("."+d5.itemClass)?.gridstackNode;if(s&&(s.subGrid=this,this.parentGridNode=s,this.el.classList.add("grid-stack-nested"),s.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=i.cellHeight==="auto",this._isAutoCellHeight||i.cellHeight==="initial")this.cellHeight(void 0);else{typeof i.cellHeight=="number"&&i.cellHeightUnit&&i.cellHeightUnit!==d5.cellHeightUnit&&(i.cellHeight=i.cellHeight+i.cellHeightUnit,delete i.cellHeightUnit);let l=i.cellHeight;delete i.cellHeight,this.cellHeight(l)}i.alwaysShowResizeHandle==="mobile"&&(i.alwaysShowResizeHandle=O5),this._setStaticClass();let c=i.engineClass||e.engineClass||ch;if(this.engine=new c({column:this.getColumn(),float:i.float,maxRow:i.maxRow,onChange:l=>{l.forEach(d=>{let u=d.el;u&&(d._removeDOM?(u&&u.remove(),delete d._removeDOM):this._writePosAttr(u,d))}),this._updateContainerHeight()}}),i.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(l=>this._prepareElement(l)),delete this.engine._loading,this.batchUpdate(!1)),i.children){let l=i.children;delete i.children,l.length&&this.load(l)}this.setAnimation(),i.subGridDynamic&&!$.pauseDrag&&($.pauseDrag=!0),i.draggable?.pause!==void 0&&($.pauseDrag=i.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(t=this.opts){this.el.classList.add("gs-"+t.column),typeof t.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/t.column}%`)}addWidget(t){if(!t)return;if(typeof t=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(t.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(t);let i,r=t;if(r.grid=this,r.el?i=r.el:e.addRemoveCB?i=e.addRemoveCB(this.el,t,!0,!1):i=this.createWidgetDivs(r),!i)return;if(r=i.gridstackNode,r&&i.parentElement===this.el&&this.engine.nodes.find(n=>n._id===r._id))return i;let o=this._readAttr(i);return E.defaults(t,o),this.engine.prepareNode(t),this.el.appendChild(i),this.makeWidget(i,t),i}createWidgetDivs(t){let i=E.createDiv(["grid-stack-item",this.opts.itemClass]),r=E.createDiv(["grid-stack-item-content"],i);return E.lazyLoad(t)?t.visibleObservable||(t.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(t.visibleObservable?.disconnect(),delete t.visibleObservable,e.renderCB(r,t),t.grid?.prepareDragDrop(t.el))}),window.setTimeout(()=>t.visibleObservable?.observe(i))):e.renderCB(r,t),i}makeSubGrid(t,i,r,o=!0){let n=t.gridstackNode;if(n||(n=this.makeWidget(t).gridstackNode),n.subGrid?.el)return n.subGrid;let s,c=this;for(;c&&!s;)s=c.opts?.subGridOpts,c=c.parentGridNode?.grid;i=E.cloneDeep(O(O(h1(O({},this.opts),{id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0}),s||{}),i||n.subGridOpts||{})),n.subGridOpts=i;let l;i.column==="auto"&&(l=!0,i.column=Math.max(n.w||1,r?.w||1),delete i.columnOpts);let d=n.el.querySelector(".grid-stack-item-content"),u,m;if(o&&(this._removeDD(n.el),m=h1(O({},n),{x:0,y:0}),E.removeInternalForSave(m),delete m.subGridOpts,n.content&&(m.content=n.content,delete n.content),e.addRemoveCB?u=e.addRemoveCB(this.el,m,!0,!1):(u=E.createDiv(["grid-stack-item"]),u.appendChild(d),d=E.createDiv(["grid-stack-item-content"],n.el)),this.prepareDragDrop(n.el)),r){let g=l?i.column:n.w,y=n.h+r.h,w=n.el.style;w.transition="none",this.update(n.el,{w:g,h:y}),setTimeout(()=>w.transition=null)}let _=n.subGrid=e.addGrid(d,i);return r?._moving&&(_._isTemp=!0),l&&(_._autoColumn=!0),o&&_.makeWidget(u,m),r&&(r._moving?window.setTimeout(()=>E.simulateMouseEvent(r._event,"mouseenter",_.el),0):_.makeWidget(n.el,n)),this.resizeToContentCheck(!1,n),_}removeAsSubGrid(t){let i=this.parentGridNode?.grid;i&&(i.batchUpdate(),i.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(r=>{r.x+=this.parentGridNode.x,r.y+=this.parentGridNode.y,i.makeWidget(r.el,r)}),i.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,t&&window.setTimeout(()=>E.simulateMouseEvent(t._event,"mouseenter",i.el),0))}save(t=!0,i=!1,r=e.saveCB,o){let n=this.engine.save(t,r,o);if(n.forEach(s=>{if(t&&s.el&&!s.subGrid&&!r){let c=s.el.querySelector(".grid-stack-item-content");s.content=c?.innerHTML,s.content||delete s.content}else if(!t&&!r&&delete s.content,s.subGrid?.el){let c=s.w||s.subGrid.getColumn(),l=s.subGrid.save(t,i,r,c);s.subGridOpts=i?l:{children:l},delete s.subGrid}delete s.el}),i){let s=E.cloneDeep(this.opts);s.marginBottom===s.marginTop&&s.marginRight===s.marginLeft&&s.marginTop===s.marginRight&&(s.margin=s.marginTop,delete s.marginTop,delete s.marginRight,delete s.marginBottom,delete s.marginLeft),s.rtl===(this.el.style.direction==="rtl")&&(s.rtl="auto"),this._isAutoCellHeight&&(s.cellHeight="auto"),this._autoColumn&&(s.column="auto");let c=s._alwaysShowResizeHandle;return delete s._alwaysShowResizeHandle,c!==void 0?s.alwaysShowResizeHandle=c:delete s.alwaysShowResizeHandle,E.removeInternalAndSame(s,d5),s.children=n,s}return n}load(t,i=e.addRemoveCB||!0){t.forEach(u=>{u.w=u.w||u.minW||1,u.h=u.h||u.minH||1}),t=E.sort(t),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let r=0;t.forEach(u=>{r=Math.max(r,(u.x||0)+u.w)}),r>this.engine.defaultColumn&&(this.engine.defaultColumn=r);let o=this.getColumn();r>o&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=t,this.engine.columnChanged(r,o,this.responseLayout),t=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(t,r,!0));let n=e.addRemoveCB;typeof i=="function"&&(e.addRemoveCB=i);let s=[];this.batchUpdate();let c=!this.engine.nodes.length,l=c&&this.opts.animate;l&&this.setAnimation(!1),!c&&i&&[...this.engine.nodes].forEach(u=>{u.id&&(E.find(t,u.id)||(e.addRemoveCB&&e.addRemoveCB(this.el,u,!1,!1),s.push(u),this.removeWidget(u.el,!0,!1)))}),this.engine._loading=!0;let d=[];return this.engine.nodes=this.engine.nodes.filter(u=>E.find(t,u.id)?(d.push(u),!1):!0),t.forEach(u=>{let m=E.find(d,u.id);if(m){if(E.shouldSizeToContent(m)&&(u.h=m.h),this.engine.nodeBoundFix(u),(u.autoPosition||u.x===void 0||u.y===void 0)&&(u.w=u.w||m.w,u.h=u.h||m.h,this.engine.findEmptyPosition(u)),this.engine.nodes.push(m),E.samePos(m,u)&&this.engine.nodes.length>1&&(this.moveNode(m,h1(O({},u),{forceCollide:!0})),E.copyPos(u,m)),this.update(m.el,u),u.subGridOpts?.children){let _=m.el.querySelector(".grid-stack");_&&_.gridstack&&_.gridstack.load(u.subGridOpts.children)}}else i&&this.addWidget(u)}),delete this.engine._loading,this.engine.removedNodes=s,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,n?e.addRemoveCB=n:delete e.addRemoveCB,l&&this.setAnimation(!0,!0),this}batchUpdate(t=!0){return this.engine.batchUpdate(t),t||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(t=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!t||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;let i=this.el.querySelector("."+this.opts.itemClass);if(i){let o=E.toNumber(i.getAttribute("gs-h"))||1;return Math.round(i.offsetHeight/o)}let r=parseInt(this.el.getAttribute("gs-current-row"));return r?Math.round(this.el.getBoundingClientRect().height/r):this.opts.cellHeight}cellHeight(t){if(t!==void 0&&this._isAutoCellHeight!==(t==="auto")&&(this._isAutoCellHeight=t==="auto",this._updateResizeEvent()),(t==="initial"||t==="auto")&&(t=void 0),t===void 0){let r=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;t=this.cellWidth()+r}let i=E.parseHeight(t);return this.opts.cellHeightUnit===i.unit&&this.opts.cellHeight===i.h?this:(this.opts.cellHeightUnit=i.unit,this.opts.cellHeight=i.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(t=!1){return t&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){let t=this.opts.columnOpts;if(!t||!t.columnWidth&&!t.breakpoints?.length)return!1;let i=this.getColumn(),r=i,o=this._widthOrContainer(!0);if(t.columnWidth)r=Math.min(Math.round(o/t.columnWidth)||1,t.columnMax);else{r=t.columnMax;let n=0;for(;n<t.breakpoints.length&&o<=t.breakpoints[n].w;)r=t.breakpoints[n++].c||i}if(r!==i){let n=t.breakpoints?.find(s=>s.c===r);return this.column(r,n?.layout||t.layout),!0}return!1}compact(t="compact",i=!0){return this.engine.compact(t,i),this._triggerChangeEvent(),this}column(t,i="moveScale"){if(!t||t<1||this.opts.column===t)return this;let r=this.getColumn();return this.opts.column=t,this.engine?(this.engine.column=t,this.el.classList.remove("gs-"+r),this._updateColumnVar(),this.engine.columnChanged(r,t,i),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=i,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(t=>t.matches("."+this.opts.itemClass)&&!t.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(t=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),t?this.el.parentNode.removeChild(this.el):(this.removeAll(t),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(t){return this.opts.float!==t&&(this.opts.float=this.engine.float=t,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(t,i=!1){let r=this.el.getBoundingClientRect(),o;i?o={top:r.top+document.documentElement.scrollTop,left:r.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};let n=t.left-o.left,s=t.top-o.top,c=r.width/this.getColumn(),l=r.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(n/c),y:Math.floor(s/l)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(t,i,r,o){return this.engine.isAreaEmpty(t,i,r,o)}makeWidget(t,i){let r=e.getElement(t);if(!r||r.gridstackNode)return r;r.parentElement||this.el.appendChild(r),this._prepareElement(r,!0,i);let o=r.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(r,o.subGridOpts,void 0,!1);let n;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(n=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),n&&delete this._ignoreLayoutsNodeChange,r}on(t,i){return t.indexOf(" ")!==-1?(t.split(" ").forEach(r=>this.on(r,i)),this):(t==="change"||t==="added"||t==="removed"||t==="enable"||t==="disable"?(t==="enable"||t==="disable"?this._gsEventHandler[t]=r=>i(r):this._gsEventHandler[t]=r=>{r.detail&&i(r,r.detail)},this.el.addEventListener(t,this._gsEventHandler[t])):t==="drag"||t==="dragstart"||t==="dragstop"||t==="resizestart"||t==="resize"||t==="resizestop"||t==="dropped"||t==="resizecontent"?this._gsEventHandler[t]=i:console.error("GridStack.on("+t+") event not supported"),this)}off(t){return t.indexOf(" ")!==-1?(t.split(" ").forEach(i=>this.off(i)),this):((t==="change"||t==="added"||t==="removed"||t==="enable"||t==="disable")&&this._gsEventHandler[t]&&this.el.removeEventListener(t,this._gsEventHandler[t]),delete this._gsEventHandler[t],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(t=>this.off(t)),this}removeWidget(t,i=!0,r=!0){return t?(e.getElements(t).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let n=o.gridstackNode;n||(n=this.engine.nodes.find(s=>o===s.el)),n&&(i&&e.addRemoveCB&&e.addRemoveCB(this.el,n,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(n,i,r),i&&o.parentElement&&o.remove())}),r&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(t=!0,i=!0){return this.engine.nodes.forEach(r=>{t&&e.addRemoveCB&&e.addRemoveCB(this.el,r,!1,!1),delete r.el.gridstackNode,this.opts.staticGrid||this._removeDD(r.el)}),this.engine.removeAll(t,i),i&&this._triggerRemoveEvent(),this}setAnimation(t=this.opts.animate,i){return i?setTimeout(()=>{this.opts&&this.setAnimation(t)}):t?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=t,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(t,i=!0,r=!0){return!!this.opts.staticGrid===t?this:(t?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&r&&o.subGrid.setStatic(t,i,r)}),i&&this._setStaticClass(),this)}updateOptions(t){let i=this.opts;if(t===i)return this;if(t.acceptWidgets!==void 0&&(i.acceptWidgets=t.acceptWidgets,this._setupAcceptWidget()),t.animate!==void 0&&this.setAnimation(t.animate),t.cellHeight&&this.cellHeight(t.cellHeight),t.class!==void 0&&t.class!==i.class&&(i.class&&this.el.classList.remove(i.class),t.class&&this.el.classList.add(t.class)),t.columnOpts){let r=!!this.opts.columnOpts;this.opts.columnOpts=t.columnOpts,r!==!!this.opts.columnOpts&&this._updateResizeEvent(),this.checkDynamicColumn()}else t.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof t.column=="number"&&this.column(t.column);return t.margin!==void 0&&this.margin(t.margin),t.staticGrid!==void 0&&this.setStatic(t.staticGrid),t.disableDrag!==void 0&&!t.staticGrid&&this.enableMove(!t.disableDrag),t.disableResize!==void 0&&!t.staticGrid&&this.enableResize(!t.disableResize),t.float!==void 0&&this.float(t.float),t.row!==void 0?(i.minRow=i.maxRow=i.row=t.row,this._updateContainerHeight()):(t.minRow!==void 0&&(i.minRow=t.minRow,this._updateContainerHeight()),t.maxRow!==void 0&&(i.maxRow=this.engine.maxRow=t.maxRow)),t.lazyLoad!==void 0&&(i.lazyLoad=t.lazyLoad),t.children?.length&&this.load(t.children),this}update(t,i){return e.getElements(t).forEach(r=>{let o=r?.gridstackNode;if(!o)return;let n=O(O({},E.copyPos({},o)),E.cloneDeep(i));this.engine.nodeBoundFix(n),delete n.autoPosition;let s=["x","y","w","h"],c;if(s.some(u=>n[u]!==void 0&&n[u]!==o[u])&&(c={},s.forEach(u=>{c[u]=n[u]!==void 0?n[u]:o[u],delete n[u]})),!c&&(n.minW||n.minH||n.maxW||n.maxH)&&(c={}),n.content!==void 0){let u=r.querySelector(".grid-stack-item-content");u&&u.textContent!==n.content&&(o.content=n.content,e.renderCB(u,n),o.subGrid?.el&&(u.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete n.content}let l=!1,d=!1;for(let u in n)u[0]!=="_"&&o[u]!==n[u]&&(o[u]=n[u],l=!0,d=d||!this.opts.staticGrid&&(u==="noResize"||u==="noMove"||u==="locked"));if(E.sanitizeMinMax(o),c){let u=c.w!==void 0&&c.w!==o.w;this.moveNode(o,c),u&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(u,o),delete o._orig}(c||l)&&this._writeAttr(r,o),d&&this.prepareDragDrop(o.el),e.updateCB&&e.updateCB(o)}),this}moveNode(t,i){let r=t._updating;r||this.engine.cleanNodes().beginUpdate(t),this.engine.moveNode(t,i),this._updateContainerHeight(),r||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(t){if(!t||(t.classList.remove("size-to-content-max"),!t.clientHeight))return;let i=t.gridstackNode;if(!i)return;let r=i.grid;if(!r||t.parentElement!==r.el)return;let o=r.getCellHeight(!0);if(!o)return;let n=i.h?i.h*o:t.clientHeight,s;if(i.resizeToContentParent&&(s=t.querySelector(i.resizeToContentParent)),s||(s=t.querySelector(e.resizeToContentParent)),!s)return;let c=t.clientHeight-s.clientHeight,l=i.h?i.h*o-c:s.clientHeight,d;if(i.subGrid){d=i.subGrid.getRow()*i.subGrid.getCellHeight(!0);let _=i.subGrid.el.getBoundingClientRect(),g=t.getBoundingClientRect();d+=_.top-g.top}else{if(i.subGridOpts?.children?.length)return;{let _=s.firstElementChild;if(!_){console.error(`Error: GridStack.resizeToContent() widget id:${i.id} '${e.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}d=_.getBoundingClientRect().height||l}}if(l===d)return;n+=d-l;let u=Math.ceil(n/o),m=Number.isInteger(i.sizeToContent)?i.sizeToContent:0;m&&u>m&&(u=m,t.classList.add("size-to-content-max")),i.minH&&u<i.minH?u=i.minH:i.maxH&&u>i.maxH&&(u=i.maxH),u!==i.h&&(r._ignoreLayoutsNodeChange=!0,r.moveNode(i,{h:u}),delete r._ignoreLayoutsNodeChange)}resizeToContentCBCheck(t){e.resizeToContentCB?e.resizeToContentCB(t):this.resizeToContent(t)}rotate(t,i){return e.getElements(t).forEach(r=>{let o=r.gridstackNode;if(!E.canBeRotated(o))return;let n={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(i){let c=i.left>0?Math.floor(i.left/this.cellWidth()):0,l=i.top>0?Math.floor(i.top/this.opts.cellHeight):0;n.x=o.x+c-(o.h-(l+1)),n.y=o.y+l-c}Object.keys(n).forEach(c=>{n[c]===void 0&&delete n[c]});let s=o._orig;this.update(r,n),o._orig=s}),this}margin(t){if(!(typeof t=="string"&&t.split(" ").length>1)){let i=E.parseHeight(t);if(this.opts.marginUnit===i.unit&&this.opts.margin===i.h)return}return this.opts.margin=t,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(t){return this.engine.willItFit(t)}_triggerChangeEvent(){if(this.engine.batchMode)return this;let t=this.engine.getDirtyNodes(!0);return t&&t.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(t),this._triggerEvent("change",t)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(i=>{delete i._dirty});let t=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",t)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){let t=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",t)}return this}_triggerEvent(t,i){let r=i?new CustomEvent(t,{bubbles:!1,detail:i}):new Event(t),o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(r),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;let t=this.parentGridNode,i=this.getRow()+this._extraDragRow,r=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!r)return this;if(!t&&!this.opts.minRow){let n=E.parseHeight(getComputedStyle(this.el).minHeight);if(n.h>0&&n.unit===o){let s=Math.floor(n.h/r);i<s&&(i=s)}}return this.el.setAttribute("gs-current-row",String(i)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),i&&(this.el.style[t?"minHeight":"height"]=i*r+o),t&&E.shouldSizeToContent(t)&&t.grid.resizeToContentCBCheck(t.el),this}_prepareElement(t,i=!1,r){r=r||this._readAttr(t),t.gridstackNode=r,r.el=t,r.grid=this,r=this.engine.addNode(r,i),this._writeAttr(t,r),t.classList.add(d5.itemClass,this.opts.itemClass);let o=E.shouldSizeToContent(r);return o?t.classList.add("size-to-content"):t.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,r),E.lazyLoad(r)||this.prepareDragDrop(r.el),this}_writePosAttr(t,i){if(!i._moving&&!i._resizing||this._placeholder===t){let r=this.opts.rtl?"right":"left";t.style.top=i.y?i.y===1?"var(--gs-cell-height)":`calc(${i.y} * var(--gs-cell-height))`:null,t.style[r]=i.x?i.x===1?"var(--gs-column-width)":`calc(${i.x} * var(--gs-column-width))`:null,t.style.width=i.w>1?`calc(${i.w} * var(--gs-column-width))`:null,t.style.height=i.h>1?`calc(${i.h} * var(--gs-cell-height))`:null}return t.setAttribute("gs-x",String(i.x)),t.setAttribute("gs-y",String(i.y)),i.w>1?t.setAttribute("gs-w",String(i.w)):t.removeAttribute("gs-w"),i.h>1?t.setAttribute("gs-h",String(i.h)):t.removeAttribute("gs-h"),this}_writeAttr(t,i){if(!i)return this;this._writePosAttr(t,i);let r={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(let o in r)i[o]?t.setAttribute(r[o],String(i[o])):t.removeAttribute(r[o]);return this}_readAttr(t,i=!0){let r={};r.x=E.toNumber(t.getAttribute("gs-x")),r.y=E.toNumber(t.getAttribute("gs-y")),r.w=E.toNumber(t.getAttribute("gs-w")),r.h=E.toNumber(t.getAttribute("gs-h")),r.autoPosition=E.toBool(t.getAttribute("gs-auto-position")),r.noResize=E.toBool(t.getAttribute("gs-no-resize")),r.noMove=E.toBool(t.getAttribute("gs-no-move")),r.locked=E.toBool(t.getAttribute("gs-locked"));let o=t.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?r.sizeToContent=E.toBool(o):r.sizeToContent=parseInt(o,10)),r.id=t.getAttribute("gs-id"),r.maxW=E.toNumber(t.getAttribute("gs-max-w")),r.minW=E.toNumber(t.getAttribute("gs-min-w")),r.maxH=E.toNumber(t.getAttribute("gs-max-h")),r.minH=E.toNumber(t.getAttribute("gs-min-h")),i&&(r.w===1&&t.removeAttribute("gs-w"),r.h===1&&t.removeAttribute("gs-h"),r.maxW&&t.removeAttribute("gs-max-w"),r.minW&&t.removeAttribute("gs-min-w"),r.maxH&&t.removeAttribute("gs-max-h"),r.minH&&t.removeAttribute("gs-min-h"));for(let n in r){if(!r.hasOwnProperty(n))return;!r[n]&&r[n]!==0&&n!=="sizeToContent"&&delete r[n]}return r}_setStaticClass(){let t=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...t),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...t),this.el.removeAttribute("gs-static")),this}onResize(t=this.el?.clientWidth){if(!t||this.prevWidth===t)return;this.prevWidth=t,this.batchUpdate();let i=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),i=!0):i=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(r=>{r.subGrid&&r.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(i),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(t=!1,i=void 0){if(this.engine){if(t&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,i),this.animationDelay);if(i)E.shouldSizeToContent(i)&&this.resizeToContentCBCheck(i.el);else if(this.engine.nodes.some(r=>E.shouldSizeToContent(r))){let r=[...this.engine.nodes];this.batchUpdate(),r.forEach(o=>{E.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,i?[i]:this.engine.nodes)}}_updateResizeEvent(t=!1){let i=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(r=>r.sizeToContent));return!t&&i&&!this.resizeObserver?(this._sizeThrottle=E.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(t||!i)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(t=".grid-stack-item"){return E.getElement(t)}static getElements(t=".grid-stack-item"){return E.getElements(t)}static getGridElement(t){return e.getElement(t)}static getGridElements(t){return E.getElements(t)}_initMargin(){let t,i=0,r=[];typeof this.opts.margin=="string"&&(r=this.opts.margin.split(" ")),r.length===2?(this.opts.marginTop=this.opts.marginBottom=r[0],this.opts.marginLeft=this.opts.marginRight=r[1]):r.length===4?(this.opts.marginTop=r[0],this.opts.marginRight=r[1],this.opts.marginBottom=r[2],this.opts.marginLeft=r[3]):(t=E.parseHeight(this.opts.margin),this.opts.marginUnit=t.unit,i=this.opts.margin=t.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{this.opts[n]===void 0?this.opts[n]=i:(t=E.parseHeight(this.opts[n]),this.opts[n]=t.h,delete this.opts.margin)}),this.opts.marginUnit=t.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);let o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return e5}static setupDragIn(t,i,r,o=document){i?.pause!==void 0&&($.pauseDrag=i.pause),i=O({appendTo:"body",helper:"clone"},i||{}),(typeof t=="string"?E.getElements(t,o):t).forEach((n,s)=>{e5.isDraggable(n)||e5.dragIn(n,i),r?.[s]&&(n.gridstackNode=r[s])})}movable(t,i){return this.opts.staticGrid?this:(e.getElements(t).forEach(r=>{let o=r.gridstackNode;o&&(i?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(t,i){return this.opts.staticGrid?this:(e.getElements(t).forEach(r=>{let o=r.gridstackNode;o&&(i?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(t=!0){if(!this.opts.staticGrid)return this.enableMove(!1,t),this.enableResize(!1,t),this._triggerEvent("disable"),this}enable(t=!0){if(!this.opts.staticGrid)return this.enableMove(!0,t),this.enableResize(!0,t),this._triggerEvent("enable"),this}enableMove(t,i=!0){return this.opts.staticGrid?this:(t?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(r=>{this.prepareDragDrop(r.el),r.subGrid&&i&&r.subGrid.enableMove(t,i)}),this)}enableResize(t,i=!0){return this.opts.staticGrid?this:(t?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(r=>{this.prepareDragDrop(r.el),r.subGrid&&i&&r.subGrid.enableResize(t,i)}),this)}cancelDrag(){let t=this._placeholder?.gridstackNode;t&&(t._isExternal?(t._isAboutToRemove=!0,this.engine.removeNode(t)):t._isAboutToRemove&&e._itemRemoving(t.el,!1),this.engine.restoreInitial())}_removeDD(t){return e5.draggable(t,"destroy").resizable(t,"destroy"),t.gridstackNode&&delete t.gridstackNode._initDD,delete t.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return e5.droppable(this.el,"destroy"),this;let t,i,r=(o,n,s)=>{s=s||n;let c=s.gridstackNode;if(!c)return;if(!c.grid?.el){s.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;let _=s.getBoundingClientRect();s.style.left=_.x+(this.dragTransform.xScale-1)*(o.clientX-_.x)/this.dragTransform.xScale+"px",s.style.top=_.y+(this.dragTransform.yScale-1)*(o.clientY-_.y)/this.dragTransform.yScale+"px",s.style.transformOrigin="0px 0px"}let{top:l,left:d}=s.getBoundingClientRect(),u=this.el.getBoundingClientRect();d-=u.left,l-=u.top;let m={position:{top:l*this.dragTransform.xScale,left:d*this.dragTransform.yScale}};if(c._temporaryRemoved){if(c.x=Math.max(0,Math.round(d/i)),c.y=Math.max(0,Math.round(l/t)),delete c.autoPosition,this.engine.nodeBoundFix(c),!this.engine.willItFit(c)){if(c.autoPosition=!0,!this.engine.willItFit(c)){e5.off(n,"drag");return}c._willFitPos&&(E.copyPos(c,c._willFitPos),delete c._willFitPos)}this._onStartMoving(s,o,m,c,i,t)}else this._dragOrResize(s,o,m,c,i,t)};return e5.droppable(this.el,{accept:o=>{let n=o.gridstackNode||this._readAttr(o,!1);if(n?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let s=!0;if(typeof this.opts.acceptWidgets=="function")s=this.opts.acceptWidgets(o);else{let c=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;s=o.matches(c)}if(s&&n&&this.opts.maxRow){let c={w:n.w,h:n.h,minW:n.minW,minH:n.minH};s=this.engine.willItFit(c)}return s}}).on(this.el,"dropover",(o,n,s)=>{let c=s?.gridstackNode||n.gridstackNode;if(c?.grid===this&&!c._temporaryRemoved)return!1;if(c?._sidebarOrig&&(c.w=c._sidebarOrig.w,c.h=c._sidebarOrig.h),c?.grid&&c.grid!==this&&!c._temporaryRemoved&&c.grid._leave(n,s),s=s||n,i=this.cellWidth(),t=this.getCellHeight(!0),!c){let u=s.getAttribute("data-gs-widget")||s.getAttribute("gridstacknode");if(u){try{c=JSON.parse(u)}catch{console.error("Gridstack dropover: Bad JSON format: ",u)}s.removeAttribute("data-gs-widget"),s.removeAttribute("gridstacknode")}c||(c=this._readAttr(s)),c._sidebarOrig={w:c.w,h:c.h}}c.grid||(c.el||(c=O({},c)),c._isExternal=!0,s.gridstackNode=c);let l=c.w||Math.round(s.offsetWidth/i)||1,d=c.h||Math.round(s.offsetHeight/t)||1;return c.grid&&c.grid!==this?(n._gridstackNodeOrig||(n._gridstackNodeOrig=c),n.gridstackNode=c=h1(O({},c),{w:l,h:d,grid:this}),delete c.x,delete c.y,this.engine.cleanupNode(c).nodeBoundFix(c),c._initDD=c._isExternal=c._temporaryRemoved=!0):(c.w=l,c.h=d,c._temporaryRemoved=!0),e._itemRemoving(c.el,!1),e5.on(n,"drag",r),r(o,n,s),!1}).on(this.el,"dropout",(o,n,s)=>{let c=s?.gridstackNode||n.gridstackNode;return c&&(!c.grid||c.grid===this)&&(this._leave(n,s),this._isTemp&&this.removeAsSubGrid(c)),!1}).on(this.el,"drop",(o,n,s)=>{let c=s?.gridstackNode||n.gridstackNode;if(c?.grid===this&&!c._isExternal)return!1;let l=!!this.placeholder.parentElement,d=n!==s;this.placeholder.remove(),delete this.placeholder.gridstackNode,l&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));let u=n._gridstackNodeOrig;if(delete n._gridstackNodeOrig,l&&u?.grid&&u.grid!==this){let _=u.grid;_.engine.removeNodeFromLayoutCache(u),_.engine.removedNodes.push(u),_._triggerRemoveEvent()._triggerChangeEvent(),_.parentGridNode&&!_.engine.nodes.length&&_.opts.subGridDynamic&&_.removeAsSubGrid()}if(!c||(l&&(this.engine.cleanupNode(c),c.grid=this),delete c.grid?._isTemp,e5.off(n,"drag"),s!==n?(s.remove(),n=s):n.remove(),this._removeDD(n),!l))return!1;let m=c.subGrid?.el?.gridstack;return E.copyPos(c,this._readAttr(this.placeholder)),E.removePositioningStyles(n),d&&(c.content||c.subGridOpts||e.addRemoveCB)?(delete c.el,n=this.addWidget(c)):(this._prepareElement(n,!0,c),this.el.appendChild(n),this.resizeToContentCheck(!1,c),m&&(m.parentGridNode=c),this._updateContainerHeight()),this.engine.addedNodes.push(c),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped(h1(O({},o),{type:"dropped"}),u&&u.grid?u:void 0,c),!1}),this}static _itemRemoving(t,i){if(!t)return;let r=t?t.gridstackNode:void 0;!r?.grid||t.classList.contains(r.grid.opts.removableOptions.decline)||(i?r._isAboutToRemove=!0:delete r._isAboutToRemove,i?t.classList.add("grid-stack-item-removing"):t.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;let t=document.querySelector(this.opts.removable);return t?(!this.opts.staticGrid&&!e5.isDroppable(t)&&e5.droppable(t,this.opts.removableOptions).on(t,"dropover",(i,r)=>e._itemRemoving(r,!0)).on(t,"dropout",(i,r)=>e._itemRemoving(r,!1)),this):this}prepareDragDrop(t,i=!1){let r=t?.gridstackNode;if(!r)return;let o=r.noMove||this.opts.disableDrag,n=r.noResize||this.opts.disableResize,s=this.opts.staticGrid||o&&n;if((i||s)&&(r._initDD&&(this._removeDD(t),delete r._initDD),s))return t.classList.add("ui-draggable-disabled","ui-resizable-disabled"),this;if(!r._initDD){let c,l,d=(_,g)=>{this.triggerEvent(_,_.target),c=this.cellWidth(),l=this.getCellHeight(!0),this._onStartMoving(t,_,g,r,c,l)},u=(_,g)=>{this._dragOrResize(t,_,g,r,c,l)},m=_=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete r._moving,delete r._resizing,delete r._event,delete r._lastTried;let g=r.w!==r._orig.w,y=_.target;if(!(!y.gridstackNode||y.gridstackNode.grid!==this)){if(r.el=y,r._isAboutToRemove){let w=t.gridstackNode.grid;w._gsEventHandler[_.type]&&w._gsEventHandler[_.type](_,y),w.engine.nodes.push(r),w.removeWidget(t,!0,!0)}else E.removePositioningStyles(y),r._temporaryRemoved?(this._writePosAttr(y,r),this.engine.addNode(r)):this._writePosAttr(y,r),this.triggerEvent(_,y);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),_.type==="resizestop"&&(Number.isInteger(r.sizeToContent)&&(r.sizeToContent=r.h),this.resizeToContentCheck(g,r))}};e5.draggable(t,{start:d,stop:m,drag:u,rtl:this.opts.rtl}).resizable(t,{start:d,stop:m,resize:u,rtl:this.opts.rtl}),r._initDD=!0}return e5.draggable(t,o?"disable":"enable").resizable(t,n?"disable":"enable"),this}_onStartMoving(t,i,r,o,n,s){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=E.getValuesFromTransformedElement(t);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){let c=this.placeholder.closest(".grid-stack");this.dragTransform=E.getValuesFromTransformedElement(c)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=r.position,o._prevYPix=r.position.top,o._moving=i.type==="dragstart",o._resizing=i.type==="resizestart",delete o._lastTried,i.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(n,s,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),i.type==="resizestart"){let c=this.getColumn()-o.x,l=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;e5.resizable(t,"option","minWidth",n*Math.min(o.minW||1,c)).resizable(t,"option","minHeight",s*Math.min(o.minH||1,l)).resizable(t,"option","maxWidth",n*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,c)).resizable(t,"option","maxWidthMoveLeft",n*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(t,"option","maxHeight",s*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,l)).resizable(t,"option","maxHeightMoveUp",s*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(t,i,r,o,n,s){let c=O({},o._orig),l,d=this.opts.marginLeft,u=this.opts.marginRight,m=this.opts.marginTop,_=this.opts.marginBottom,g=Math.round(s*.1),y=Math.round(n*.1);if(d=Math.min(d,y),u=Math.min(u,y),m=Math.min(m,g),_=Math.min(_,g),i.type==="drag"){if(o._temporaryRemoved)return;o._prevYPix=r.position.top,this.opts.draggable.scroll!==!1&&$.dragElement?.updateScrollPosition(this.el);let v=r.position.left+(r.position.left>o._lastUiPosition.left?-u:d),C=r.position.top+(r.position.top>o._lastUiPosition.top?-_:m);c.x=Math.round(v/n),c.y=Math.round(C/s);let f=this._extraDragRow;if(this.engine.collide(o,c)){let T=this.getRow(),L=Math.max(0,c.y+o.h-T);this.opts.maxRow&&T+L>this.opts.maxRow&&(L=Math.max(0,this.opts.maxRow-T)),this._extraDragRow=L}else this._extraDragRow=0;if(this._extraDragRow!==f&&this._updateContainerHeight(),o.x===c.x&&o.y===c.y)return}else if(i.type==="resize"){if(c.x<0||(E.updateScrollResize(i,t,s),c.w=Math.round((r.size.width-d)/n),c.h=Math.round((r.size.height-m)/s),o.w===c.w&&o.h===c.h)||o._lastTried&&o._lastTried.w===c.w&&o._lastTried.h===c.h)return;if(i.hasMovedX){let v=r.position.left+d;c.x=Math.round(v/n)}if(i.hasMovedY){let v=r.position.top+m;c.y=Math.round(v/s)}l=!0}o._event=i,o._lastTried=c;let w={x:r.position.left+d,y:r.position.top+m,w:(r.size?r.size.width:o.w*n)-d-u,h:(r.size?r.size.height:o.h*s)-m-_};if(this.engine.moveNodeCheck(o,h1(O({},c),{cellWidth:n,cellHeight:s,rect:w,resizing:l}))){o._lastUiPosition=r.position,this.engine.cacheRects(n,s,m,u,_,d),delete o._skipDown,l&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();let v=i.target;o._sidebarOrig||this._writePosAttr(v,o),this.triggerEvent(i,v)}}triggerEvent(t,i){let r=this;for(;r.parentGridNode;)r=r.parentGridNode.grid;r._gsEventHandler[t.type]&&r._gsEventHandler[t.type](t,i)}_leave(t,i){i=i||t;let r=i.gridstackNode;if(!r||(i.style.transform=i.style.transformOrigin=null,e5.off(t,"drag"),r._temporaryRemoved))return;r._temporaryRemoved=!0,this.engine.removeNode(r),r.el=r._isExternal&&i?i:t;let o=r._sidebarOrig;r._isExternal&&this.engine.cleanupNode(r),r._sidebarOrig=o,this.opts.removable===!0&&e._itemRemoving(t,!0),t._gridstackNodeOrig?(t.gridstackNode=t._gridstackNodeOrig,delete t._gridstackNodeOrig):r._isExternal&&this.engine.restoreInitial()}}return e.renderCB=(a,t)=>{a&&t?.content&&(a.textContent=t.content)},e.resizeToContentParent=".grid-stack-item-content",e.Utils=E,e.Engine=ch,e.GDRev="12.6.0",e})(),up=["container"],kD=["*"];function SD(e,a){}var LD=["*",[["","empty-content",""]]],VD=["*","[empty-content]"];function TD(e,a){e&1&&t5(0,1,["*ngIf","isEmpty"])}function ED(e,a){}var T9=(()=>{class e{constructor(t){this.elementRef=t,this.el._gridItemComp=this}set options(t){let i=this.el.gridstackNode?.grid;i?i.update(this.el,t):this._options=h1(O({},t),{el:this.el})}get options(){return this.el.gridstackNode||this._options||{el:this.el}}get el(){return this.elementRef.nativeElement}clearOptions(){delete this._options}ngOnDestroy(){this.clearOptions(),delete this.childWidget,delete this.el._gridItemComp,delete this.container,delete this.ref}}return e.\u0275fac=function(a){return new(a||e)(We(H0))},e.\u0275cmp=Y0({type:e,selectors:[["gridstack-item"]],viewQuery:function(a,t){if(a&1&&M9(up,7,he),a&2){let i;hi(i=ui())&&(t.container=i.first)}},inputs:{options:"options"},ngContentSelectors:kD,decls:5,vars:1,consts:[["container",""],[1,"grid-stack-item-content"]],template:function(a,t){a&1&&(s5(),B_(0,"div",1),y_(1,SD,0,0,"ng-template",null,0,D_),t5(3),p5(4),H_()),a&2&&(w1(4),H9(" ",t.options.content," "))},styles:["[_nghost-%COMP%]{display:block}"]}),e})(),Bi=(()=>{class e{constructor(t){this.elementRef=t,this.addedCB=new r0,this.changeCB=new r0,this.disableCB=new r0,this.dragCB=new r0,this.dragStartCB=new r0,this.dragStopCB=new r0,this.droppedCB=new r0,this.enableCB=new r0,this.removedCB=new r0,this.resizeCB=new r0,this.resizeStartCB=new r0,this.resizeStopCB=new r0,Ie.addRemoveCB||(Ie.addRemoveCB=ID),Ie.saveCB||(Ie.saveCB=DD),Ie.updateCB||(Ie.updateCB=zD),this.el._gridComp=this}set options(t){this._grid?this._grid.updateOptions(t):this._options=t}get options(){return this._grid?.opts||this._options||{}}get el(){return this.elementRef.nativeElement}get grid(){return this._grid}static addComponentToSelectorType(t){t.forEach(i=>e.selectorToType[e.getSelector(i)]=i)}static getSelector(t){return P_(t).selector}ngOnInit(){this.loaded=!!this.options?.children?.length,this._grid=Ie.init(this._options,this.el),delete this._options,this.checkEmpty()}ngAfterContentInit(){this._sub=this.gridstackItems?.changes.subscribe(()=>this.updateAll()),this.loaded||this.updateAll(),this.hookEvents(this.grid)}ngOnDestroy(){this.unhookEvents(this._grid),this._sub?.unsubscribe(),this._grid?.destroy(),delete this._grid,delete this.el._gridComp,delete this.container,delete this.ref}updateAll(){if(!this.grid)return;let t=[];this.gridstackItems?.forEach(i=>{t.push(i.options),i.clearOptions()}),this.grid.load(t)}checkEmpty(){this.grid&&(this.isEmpty=!this.grid.engine.nodes.length)}hookEvents(t){t&&(t.parentGridNode||t.on("added",(i,r)=>{(r[0].grid?.el._gridComp||this).checkEmpty(),this.addedCB.emit({event:i,nodes:r})}).on("change",(i,r)=>this.changeCB.emit({event:i,nodes:r})).on("disable",i=>this.disableCB.emit({event:i})).on("drag",(i,r)=>this.dragCB.emit({event:i,el:r})).on("dragstart",(i,r)=>this.dragStartCB.emit({event:i,el:r})).on("dragstop",(i,r)=>this.dragStopCB.emit({event:i,el:r})).on("dropped",(i,r,o)=>this.droppedCB.emit({event:i,previousNode:r,newNode:o})).on("enable",i=>this.enableCB.emit({event:i})).on("removed",(i,r)=>{(r[0].grid?.el._gridComp||this).checkEmpty(),this.removedCB.emit({event:i,nodes:r})}).on("resize",(i,r)=>this.resizeCB.emit({event:i,el:r})).on("resizestart",(i,r)=>this.resizeStartCB.emit({event:i,el:r})).on("resizestop",(i,r)=>this.resizeStopCB.emit({event:i,el:r})))}unhookEvents(t){t&&(t.parentGridNode||t.off("added change disable drag dragstart dragstop dropped enable removed resize resizestart resizestop"))}}return e.selectorToType={},e.\u0275fac=function(a){return new(a||e)(We(H0))},e.\u0275cmp=Y0({type:e,selectors:[["gridstack"]],contentQueries:function(a,t,i){if(a&1&&S_(i,T9,4),a&2){let r;hi(r=ui())&&(t.gridstackItems=r)}},viewQuery:function(a,t){if(a&1&&M9(up,7,he),a&2){let i;hi(i=ui())&&(t.container=i.first)}},inputs:{options:"options",isEmpty:"isEmpty"},outputs:{addedCB:"addedCB",changeCB:"changeCB",disableCB:"disableCB",dragCB:"dragCB",dragStartCB:"dragStartCB",dragStopCB:"dragStopCB",droppedCB:"droppedCB",enableCB:"enableCB",removedCB:"removedCB",resizeCB:"resizeCB",resizeStartCB:"resizeStartCB",resizeStopCB:"resizeStopCB"},ngContentSelectors:VD,decls:4,vars:1,consts:[["container",""],[4,"ngIf"]],template:function(a,t){a&1&&(s5(LD),w_(0,TD,1,0,"ng-content",1)(1,ED,0,0,"ng-template",null,0,D_),t5(3)),a&2&&v0("ngIf",t.isEmpty)},dependencies:[WS],styles:["[_nghost-%COMP%]{display:block}"]}),e})();function ID(e,a,t,i){if(t){if(!e)return;if(i){let r=e.parentElement?._gridItemComp;if(!r)return;let o=(r.childWidget?.container||r.container)?.createComponent(Bi),n=o?.instance;return n?(n.ref=o,n.options=a,n.el):void 0}else{let r=e._gridComp?.container?.createComponent(T9),o=r?.instance;if(!o)return;o.ref=r;let n=a.selector,s=n?Bi.selectorToType[n]:void 0;if(s){let c=()=>{let l=o.container?.createComponent(s)?.instance;l&&typeof l.serialize=="function"&&typeof l.deserialize=="function"&&(o.childWidget=l,l.deserialize(a))};a.lazyLoad||a.grid?.opts?.lazyLoad&&a.lazyLoad!==!1?a.visibleObservable||(a.visibleObservable=new IntersectionObserver(([l])=>{l.isIntersecting&&(a.visibleObservable?.disconnect(),delete a.visibleObservable,c())}),window.setTimeout(()=>a.visibleObservable?.observe(o.el))):c()}return o.el}}else if(i){let r=a.el?._gridComp;r?.ref?r.ref.destroy():r?.ngOnDestroy()}else{let r=a.el?._gridItemComp;r?.ref?r.ref.destroy():r?.ngOnDestroy()}}function DD(e,a){let t=e.el?._gridItemComp;if(t){let r=t.childWidget?.serialize();r&&(a.input=r);return}let i=e.el?._gridComp}function zD(e){let a=e,t=e.el?._gridItemComp;t?.childWidget&&a.input&&t.childWidget.deserialize(a)}var RD=["grid"],ND=["addCardBtn"],OD=[[["","slot","dashboard-subheader"]]],FD=["[slot=dashboard-subheader]"],uh=(e,a)=>a.id,dp=(e,a)=>a.action;function PD(e,a){if(e&1&&(u1(0,"ui5-title",7),p5(1),A1()),e&2){let t=Z1();w1(),pe(t.config().title)}}function UD(e,a){if(e&1&&(u1(0,"ui5-text"),p5(1),A1()),e&2){let t=Z1();w1(),pe(t.config().description)}}function qD(e,a){if(e&1){let t=q5();u1(0,"ui5-button",17,1),_0("click",function(){W0(t);let i=Z1();return $0(i.openCardPanel())}),p5(2),A1()}if(e&2){let t=Z1();v0("accessibleName",t.addCardButton().text||t.addCardButton().tooltip||"Edit Cards")("design",t.addCardButton().design)("icon",t.addCardButton().icon)("tooltip",t.addCardButton().tooltip),w1(2),pe(t.addCardButton().text)}}function jD(e,a){if(e&1&&n6(0,"ui5-menu-item",20),e&2){let t=a.$implicit;v0("icon",t.icon??"")("text",t.text??""),x_("data-action",t.action)}}function GD(e,a){if(e&1&&n6(0,"ui5-menu-separator")(1,"ui5-menu-item",21),e&2){let t=Z1(2);w1(),v0("icon",t.editViewButton().icon)("text",t.editViewButton().text||"Edit View")}}function WD(e,a){if(e&1){let t=q5();u1(0,"ui5-button",18,2),_0("click",function(){W0(t);let i=Z1();return $0(i.toolbarMenuOpen.update(r=>!r))}),A1(),u1(2,"ui5-menu",19),_0("ui5Close",function(){W0(t);let i=Z1();return $0(i.toolbarMenuOpen.set(!1))})("ui5ItemClick",function(i){W0(t);let r=Z1();return $0(r.onMenuItemClick(i.detail.item.dataset.action,i))})("ui5Open",function(){W0(t);let i=Z1();return $0(i.toolbarMenuOpen.set(!0))}),E7(3,jD,1,3,"ui5-menu-item",20,dp),r2(5,GD,2,2),A1()}if(e&2){let t=Pk(1),i=Z1();w1(2),v0("open",i.toolbarMenuOpen())("opener",t.element),w1(),I7(i.customActions()),w1(2),o2(i.config().editable?5:-1)}}function $D(e,a){if(e&1){let t=q5();u1(0,"ui5-button",24),_0("click",function(i){let r=W0(t).$implicit,o=Z1(2);return $0(o.actionButtonClick.emit({event:i,action:r}))}),p5(1),A1()}if(e&2){let t=a.$implicit;v0("accessibleName",t.text||t.tooltip||t.action)("design",t.design??"Default")("endIcon",t==null?null:t.endIcon)("icon",t.icon??"")("tooltip",t.tooltip??""),w1(),pe(t.text)}}function XD(e,a){if(e&1){let t=q5();u1(0,"ui5-button",25),_0("click",function(){W0(t);let i=Z1(2);return $0(i.enterEditMode())}),p5(1),A1()}if(e&2){let t=Z1(2);v0("accessibleName",t.editViewButton().text||t.editViewButton().tooltip||"Edit View")("design",t.editViewButton().design)("icon",t.editViewButton().icon)("tooltip",t.editViewButton().tooltip),w1(),pe(t.editViewButton().text)}}function KD(e,a){if(e&1&&(E7(0,$D,2,6,"ui5-button",22,dp),r2(2,XD,2,5,"ui5-button",23)),e&2){let t=Z1();I7(t.customActions()),w1(2),o2(t.config().editable?2:-1)}}function YD(e,a){if(e&1){let t=q5();u1(0,"mfp-dashboard-section",26),_0("removeCard",function(i){W0(t);let r=Z1();return $0(r.removeCard(i))})("removeSection",function(){let i=W0(t).$implicit,r=Z1();return $0(r.removeSection(i.id))}),A1()}if(e&2){let t=a.$implicit,i=Z1();v0("cards",i.sectionCards()(t.id))("columns",12)("editMode",i.editMode())("section",t)}}function QD(e,a){if(e&1){let t=q5();u1(0,"gridstack-item",27)(1,"mfp-dashboard-card",28),_0("removeCard",function(){let i=W0(t).$implicit,r=Z1();return $0(r.removeCard(i.id))}),A1()()}if(e&2){let t=a.$implicit,i=Z1();ue("cursor",i.editMode()?"pointer":"auto"),v0("options",t),w1(),v0("card",t)("editMode",i.editMode())}}function JD(e,a){if(e&1){let t=q5();u1(0,"div",15)(1,"ui5-button",29),_0("click",function(){W0(t);let i=Z1();return $0(i.saveEdit())}),p5(2,"Save"),A1(),u1(3,"ui5-button",30),_0("click",function(){W0(t);let i=Z1();return $0(i.cancelEdit())}),p5(4,"Cancel"),A1()()}}document.body.classList.add("ui5-content-density-compact");var ez=class Hi{static registerAngularComponents(a){eI(a)}config=R.required();sections=Wl([]);cards=Wl([]);availableCards=R([]);saved=g1();actionButtonClick=g1();editMode=g7(!1);compactToolbar=g7(!1);toolbarMenuOpen=g7(!1);sectionsSnapshot=[];cardsSnapshot=[];gridStackItems=vi.required("grid");addCardBtn=vi("addCardBtn");resizeObserver;hostEl=q(H0);injector=q(R0);gridOptions=te(()=>({cellHeight:10,disableResize:!this.editMode(),disableDrag:!this.editMode(),marginBottom:0,marginLeft:0,marginRight:0,columnOpts:{breakpointForWindow:!0,breakpoints:[{w:1440,c:12,layout:"none"},{w:1024,c:8,layout:"compact"},{w:600,c:1,layout:"list"}]}}));cardDialogOpen=g7(!1);customActions=te(()=>this.config().customActions??[]);addedCardsIds=te(()=>new Set(this.cards().map(a=>a.id)));editViewButton=te(()=>O({icon:"action-settings",design:"Transparent",tooltip:"Edit View",text:""},this.config().buttonsSettings?.editViewButton));addCardButton=te(()=>O({icon:"",design:"Default",tooltip:"",text:"Edit Cards"},this.config().buttonsSettings?.addCardButton));sectionCards=te(()=>{let a=this.cards();return t=>a.filter(i=>i.sectionId===t)});cardsPosition=new Map;looseCards=vS(()=>this.cards().filter(a=>!a.sectionId));newGridStackNodes=[];ngOnInit(){this.resizeObserver=new ResizeObserver(a=>{let t=a[0]?.contentRect.width??0;this.compactToolbar.set(t<726)}),this.resizeObserver.observe(this.hostEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect()}onMenuItemClick(a,t){if(a==="edit-view"){this.enterEditMode();return}let i=this.customActions().find(r=>r.action===a);i&&this.actionButtonClick.emit({event:t,action:i})}enterEditMode(){let a=this.gridStackItems().gridstackItems?.toArray().map(t=>t.options);a&&this.saveCardsPosition(a),this.sectionsSnapshot=[...this.sections()],this.cardsSnapshot=[...this.cards()],this.editMode.set(!0),nB(()=>{this.addCardBtn()?.element.focus()},{injector:this.injector})}saveEdit(){this.saveCardsPosition(this.newGridStackNodes),this.saved.emit({sections:this.sections(),cards:this.cards().map(a=>{let t=this.cardsPosition.get(a.id);return h1(O({},a),{x:t?.x,y:t?.y,w:t?.w??a.w,h:t?.h??a.h})})}),this.editMode.set(!1)}cancelEdit(){this.sections.set(this.sectionsSnapshot),this.cards.set(this.cardsSnapshot.map(a=>{let t=this.cardsPosition.get(a.id);return h1(O({},a),{x:t?.x,y:t?.y})})),this.cardDialogOpen.set(!1),this.editMode.set(!1)}removeSection(a){this.sections.update(t=>t.filter(i=>i.id!==a)),this.cards.update(t=>t.filter(i=>i.sectionId!==a))}removeCard(a){this.cardsPosition.delete(a),this.cards.update(t=>t.filter(i=>i.id!==a))}openCardPanel(){this.cardDialogOpen.set(!0)}closeCardPanel(){this.cardDialogOpen.set(!1)}onCardsEdited(a){this.cards.update(t=>[...t.filter(i=>!a.removed.includes(i.id)),...a.added.map(i=>O({},i))]),this.closeCardPanel()}onGridChange(a){this.newGridStackNodes=a.nodes}saveCardsPosition(a){a.forEach(t=>{t.id&&this.cardsPosition.set(t.id,{x:t.x,y:t.y,w:t.w,h:t.h})})}static \u0275fac=function(a){return new(a||Hi)};static \u0275cmp=Y0({type:Hi,selectors:[["mfp-dashboard"]],viewQuery:function(a,t){a&1&&B9(t.gridStackItems,RD,5)(t.addCardBtn,ND,5),a&2&&L_(2)},hostVars:2,hostBindings:function(a,t){a&2&&ue("background-image",t.config().backgroundImageUrl?"url("+t.config().backgroundImageUrl+")":null)},inputs:{config:[1,"config"],sections:[1,"sections"],cards:[1,"cards"],availableCards:[1,"availableCards"]},outputs:{sections:"sectionsChange",cards:"cardsChange",saved:"saved",actionButtonClick:"actionButtonClick"},ngContentSelectors:FD,decls:21,vars:8,consts:[["grid",""],["addCardBtn",""],["menuBtn",""],[1,"mfp-dashboard"],[1,"mfp-dashboard__topbar"],[1,"mfp-dashboard__topbar-row"],[1,"mfp-dashboard__header"],["level","H2","size","H2","wrapping-type","Normal"],[1,"mfp-dashboard__toolbar"],["id","add-card-btn",3,"accessibleName","design","icon","tooltip"],[1,"mfp-dashboard__subheader"],[1,"mfp-sections-container"],[3,"cards","columns","editMode","section"],[3,"addedCB","changeCB","removedCB","options"],[3,"options","cursor"],[1,"mfp-dashboard__edit-bar"],[3,"cancelled","confirm","addedCardsIds","availableCards","open"],["id","add-card-btn",3,"click","accessibleName","design","icon","tooltip"],["accessibleName","Actions","design","Transparent","icon","menu2","tooltip","Actions",3,"click"],[3,"ui5Close","ui5ItemClick","ui5Open","open","opener"],[3,"icon","text"],["data-action","edit-view",3,"icon","text"],[3,"accessibleName","design","endIcon","icon","tooltip"],[3,"accessibleName","design","icon","tooltip"],[3,"click","accessibleName","design","endIcon","icon","tooltip"],[3,"click","accessibleName","design","icon","tooltip"],[3,"removeCard","removeSection","cards","columns","editMode","section"],[3,"options"],[3,"removeCard","card","editMode"],["design","Emphasized",3,"click"],["design","Transparent",3,"click"]],template:function(a,t){a&1&&(s5(OD),u1(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),r2(4,PD,2,1,"ui5-title",7),r2(5,UD,2,1,"ui5-text"),A1(),u1(6,"div",8),r2(7,qD,3,5,"ui5-button",9)(8,WD,6,3)(9,KD,3,1),A1()(),u1(10,"div",10),t5(11),A1()(),u1(12,"div",11),E7(13,YD,1,4,"mfp-dashboard-section",12,uh),A1(),u1(15,"gridstack",13,0),_0("addedCB",function(i){return t.onGridChange(i)})("changeCB",function(i){return t.onGridChange(i)})("removedCB",function(i){return t.onGridChange(i)}),E7(17,QD,2,5,"gridstack-item",14,uh),A1(),r2(19,JD,5,0,"div",15),A1(),u1(20,"mfp-edit-cards-dialog",16),_0("cancelled",function(){return t.closeCardPanel()})("confirm",function(i){return t.onCardsEdited(i)}),A1()),a&2&&(w1(4),o2(t.config().title?4:-1),w1(),o2(t.config().description?5:-1),w1(2),o2(t.editMode()?7:t.compactToolbar()?8:9),w1(6),I7(t.sections()),w1(2),v0("options",t.gridOptions()),w1(2),I7(t.looseCards()),w1(2),o2(t.editMode()?19:-1),w1(),v0("addedCardsIds",t.addedCardsIds())("availableCards",t.availableCards())("open",t.cardDialogOpen()))},dependencies:[Bi,T9,DI,FI,sp,c6,UI,jI,WI,op,XI],styles:[`.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0;top:0;width:var(--gs-column-width);height:var(--gs-cell-height)}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item{right:0}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,right,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,right .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,right 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item[gs-x="0"]{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item[gs-x="0"]{right:0}mfp-dashboard,mfp-wc-dashboard{display:block;margin:0;padding:0;min-height:100%;background:var(--sapShellColor, #354a5e);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:local}.mfp-dashboard{padding:calc(var(--sapShell_Space_XL, 3rem) - 10px)}.mfp-sections-container{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:auto;align-content:start;gap:1rem}@media(max-width:726px){.mfp-sections-container{grid-template-columns:1fr}}@media(min-width:727px)and (max-width:1200px){.mfp-sections-container{grid-template-columns:repeat(8,1fr)}}.mfp-dashboard__topbar{grid-column:1/-1;align-self:start;display:flex;flex-direction:column;gap:1rem;padding-bottom:3rem;width:100%;min-width:0}.mfp-dashboard__topbar-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:0 10px}.mfp-dashboard__header{display:flex;flex-direction:column;gap:.25rem}.mfp-dashboard__toolbar{flex-shrink:0;display:flex;gap:.5rem}.mfp-dashboard__subheader{display:flex;align-items:center;gap:1rem}.mfp-dashboard__edit-bar{position:sticky;bottom:20px;left:16px;right:16px;z-index:1000;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:7px 16px;background:var(--sapPageFooter_Background, white);border-radius:var(--sapElement_BorderCornerRadius, 12px);box-shadow:0 0 0 1px #2235487a,0 2px 8px #2235484d;box-sizing:border-box;overflow:hidden}@media screen and (min-width:0px)and (max-width:599px){.mfp-dashboard{padding:calc(var(--sapShell_Space_S, 1rem) - 10px)}}@media screen and (min-width:600px)and (max-width:1023px){.mfp-dashboard{padding:calc(var(--sapShell_Space_M, 2rem) - 10px)}}@media screen and (min-width:1024px)and (max-width:1439px){.mfp-dashboard{padding:calc(var(--sapShell_Space_L, 2rem) - 10px)}}
|
|
157
157
|
`],encapsulation:2})};po("mfp");(async()=>{let e=await dL(),a=qS(ez,{injector:e.injector});customElements.define("mfp-wc-dashboard",a)})();
|
package/mfp-webcomponents.js
CHANGED
|
@@ -116,7 +116,7 @@ ${t.map((i,a)=>`${a+1}) ${i.toString()}`).join(`
|
|
|
116
116
|
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function y6(e,t){if(e){let i=e.indexOf(t);0<=i&&e.splice(i,1)}}var qa=class Qu{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let n of i)n.remove(this);else i.remove(this);let{initialTeardown:a}=this;if(m0(a))try{a()}catch(n){t=n instanceof _u?n.errors:[n]}let{_finalizers:s}=this;if(s){this._finalizers=null;for(let n of s)try{kC(n)}catch(u){t=t??[],u instanceof _u?t=[...t,...u.errors]:t.push(u)}}if(t)throw new _u(t)}}add(t){var i;if(t&&t!==this)if(this.closed)kC(t);else{if(t instanceof Qu){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(t)}}_hasParent(t){let{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){let{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&y6(i,t)}remove(t){let{_finalizers:i}=this;i&&y6(i,t),t instanceof Qu&&t._removeParent(this)}};qa.EMPTY=(()=>{let e=new qa;return e.closed=!0,e})();var Py=qa.EMPTY;function Fy(e){return e instanceof qa||e&&"closed"in e&&m0(e.remove)&&m0(e.add)&&m0(e.unsubscribe)}function kC(e){m0(e)?e():e.unsubscribe()}var Tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},A6={setTimeout(e,t,...i){let{delegate:a}=A6;return a?.setTimeout?a.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){let{delegate:t}=A6;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function zy(e){A6.setTimeout(()=>{let{onUnhandledError:t}=Tn;if(t)t(e);else throw e})}function Ju(){}var eN=yd("C",void 0,void 0);function tN(e){return yd("E",void 0,e)}function iN(e){return yd("N",e,void 0)}function yd(e,t,i){return{kind:e,value:t,error:i}}var ln=null;function e6(e){if(Tn.useDeprecatedSynchronousErrorHandling){let t=!ln;if(t&&(ln={errorThrown:!1,error:null}),e(),t){let{errorThrown:i,error:a}=ln;if(ln=null,i)throw a}}else e()}function aN(e){Tn.useDeprecatedSynchronousErrorHandling&&ln&&(ln.errorThrown=!0,ln.error=e)}var Ad=class extends qa{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Fy(e)&&e.add(this)):this.destination=sN}static create(e,t,i){return new eh(e,t,i)}next(e){this.isStopped?vu(iN(e),this):this._next(e)}error(e){this.isStopped?vu(tN(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?vu(eN,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},oN=Function.prototype.bind;function pu(e,t){return oN.call(e,t)}var rN=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(i){zl(i)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(i){zl(i)}else zl(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){zl(t)}}},eh=class extends Ad{constructor(e,t,i){super();let a;if(m0(e)||!e)a={next:e??void 0,error:t??void 0,complete:i??void 0};else{let s;this&&Tn.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),a={next:e.next&&pu(e.next,s),error:e.error&&pu(e.error,s),complete:e.complete&&pu(e.complete,s)}):a=e}this.destination=new rN(a)}};function zl(e){Tn.useDeprecatedSynchronousErrorHandling?aN(e):zy(e)}function nN(e){throw e}function vu(e,t){let{onStoppedNotification:i}=Tn;i&&A6.setTimeout(()=>i(e,t))}var sN={closed:!0,next:Ju,error:nN,complete:Ju},xd=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Uy(e){return e}function lN(e){return e.length===0?Uy:e.length===1?e[0]:function(t){return e.reduce((i,a)=>a(i),t)}}var C5=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){let a=new e;return a.source=this,a.operator=i,a}subscribe(i,a,s){let n=uN(i)?i:new eh(i,a,s);return e6(()=>{let{operator:u,source:_}=this;n.add(u?u.call(n,_):_?this._subscribe(n):this._trySubscribe(n))}),n}_trySubscribe(i){try{return this._subscribe(i)}catch(a){i.error(a)}}forEach(i,a){return a=LC(a),new a((s,n)=>{let u=new eh({next:_=>{try{i(_)}catch(g){n(g),u.unsubscribe()}},error:n,complete:s});this.subscribe(u)})}_subscribe(i){var a;return(a=this.source)===null||a===void 0?void 0:a.subscribe(i)}[xd](){return this}pipe(...i){return lN(i)(this)}toPromise(i){return i=LC(i),new i((a,s)=>{let n;this.subscribe(u=>n=u,u=>s(u),()=>a(n))})}}return e.create=t=>new e(t),e})();function LC(e){var t;return(t=e??Tn.Promise)!==null&&t!==void 0?t:Promise}function cN(e){return e&&m0(e.next)&&m0(e.error)&&m0(e.complete)}function uN(e){return e&&e instanceof Ad||cN(e)&&Fy(e)}function hN(e){return m0(e?.lift)}function Bn(e){return t=>{if(hN(t))return t.lift(function(i){try{return e(i,this)}catch(a){this.error(a)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ga(e,t,i,a,s){return new dN(e,t,i,a,s)}var dN=class extends Ad{constructor(e,t,i,a,s,n){super(e),this.onFinalize=s,this.shouldUnsubscribe=n,this._next=t?function(u){try{t(u)}catch(_){e.error(_)}}:super._next,this._error=a?function(u){try{a(u)}catch(_){e.error(_)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},_N=Vy(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Mn=(()=>{class e extends C5{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let a=new HC(this,this);return a.operator=i,a}_throwIfClosed(){if(this.closed)throw new _N}next(i){e6(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let a of this.currentObservers)a.next(i)}})}error(i){e6(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:a}=this;for(;a.length;)a.shift().error(i)}})}complete(){e6(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:a,isStopped:s,observers:n}=this;return a||s?Py:(this.currentObservers=null,n.push(i),new qa(()=>{this.currentObservers=null,y6(n,i)}))}_checkFinalizedStatuses(i){let{hasError:a,thrownError:s,isStopped:n}=this;a?i.error(s):n&&i.complete()}asObservable(){let i=new C5;return i.source=this,i}}return e.create=(t,i)=>new HC(t,i),e})(),HC=class extends Mn{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.next)===null||i===void 0||i.call(t,e)}error(e){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.error)===null||i===void 0||i.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,i;return(i=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&i!==void 0?i:Py}},pN=class extends Mn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:i}=this;if(e)throw t;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}},Sd={now(){return(Sd.delegate||Date).now()},delegate:void 0},vN=class extends Mn{constructor(e=1/0,t=1/0,i=Sd){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:i,_infiniteTimeWindow:a,_timestampProvider:s,_windowTime:n}=this;t||(i.push(e),!a&&i.push(s.now()+n)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:a}=this,s=a.slice();for(let n=0;n<s.length&&!e.closed;n+=i?1:2)e.next(s[n]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:i,_infiniteTimeWindow:a}=this,s=(a?1:2)*e;if(e<1/0&&s<i.length&&i.splice(0,i.length-s),!a){let n=t.now(),u=0;for(let _=1;_<i.length&&i[_]<=n;_+=2)u=_;u&&i.splice(0,u+1)}}},mN=class extends qa{constructor(e,t){super()}schedule(e,t=0){return this}},x6={setInterval(e,t,...i){let{delegate:a}=x6;return a?.setInterval?a.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){let{delegate:t}=x6;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},gN=class extends mN{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var i;if(this.closed)return this;this.state=e;let a=this.id,s=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(s,a,t)),this.pending=!0,this.delay=t,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,i=0){return x6.setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return t;t!=null&&x6.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(e,t);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i=!1,a;try{this.work(e)}catch(s){i=!0,a=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,y6(i,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},th=class jy{constructor(t,i=jy.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,a){return new this.schedulerActionCtor(this,t).schedule(a,i)}};th.now=Sd.now;var fN=class extends th{constructor(e,t=th.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}},bN=new fN(gN),CN=new C5(e=>e.complete());function wN(e){return e&&m0(e.schedule)}function Id(e){return e[e.length-1]}function yN(e){return m0(Id(e))?e.pop():void 0}function AN(e){return wN(Id(e))?e.pop():void 0}function xN(e,t){return typeof Id(e)=="number"?e.pop():t}function SN(e,t,i,a){function s(n){return n instanceof i?n:new i(function(u){u(n)})}return new(i||(i=Promise))(function(n,u){function _(I){try{C(a.next(I))}catch(x){u(x)}}function g(I){try{C(a.throw(I))}catch(x){u(x)}}function C(I){I.done?n(I.value):s(I.value).then(_,g)}C((a=a.apply(e,t||[])).next())})}function DC(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],a=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Is(e){return this instanceof Is?(this.v=e,this):new Is(e)}function IN(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(e,t||[]),s,n=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),_("next"),_("throw"),_("return",u),s[Symbol.asyncIterator]=function(){return this},s;function u(M){return function(Z){return Promise.resolve(Z).then(M,x)}}function _(M,Z){a[M]&&(s[M]=function(P){return new Promise(function(R,B){n.push([M,P,R,B])>1||g(M,P)})},Z&&(s[M]=Z(s[M])))}function g(M,Z){try{C(a[M](Z))}catch(P){L(n[0][3],P)}}function C(M){M.value instanceof Is?Promise.resolve(M.value.v).then(I,x):L(n[0][2],M)}function I(M){g("next",M)}function x(M){g("throw",M)}function L(M,Z){M(Z),n.shift(),n.length&&g(n[0][0],n[0][1])}}function TN(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof DC=="function"?DC(e):e[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(n){i[n]=e[n]&&function(u){return new Promise(function(_,g){u=e[n](u),s(_,g,u.done,u.value)})}}function s(n,u,_,g){Promise.resolve(g).then(function(C){n({value:C,done:_})},u)}}var Wy=e=>e&&typeof e.length=="number"&&typeof e!="function";function qy(e){return m0(e?.then)}function Gy(e){return m0(e[xd])}function Xy(e){return Symbol.asyncIterator&&m0(e?.[Symbol.asyncIterator])}function $y(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function BN(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ky=BN();function Yy(e){return m0(e?.[Ky])}function Qy(e){return IN(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:i,done:a}=yield Is(t.read());if(a)return yield Is(void 0);yield yield Is(i)}}finally{t.releaseLock()}})}function Jy(e){return m0(e?.getReader)}function io(e){if(e instanceof C5)return e;if(e!=null){if(Gy(e))return MN(e);if(Wy(e))return EN(e);if(qy(e))return ZN(e);if(Xy(e))return eA(e);if(Yy(e))return kN(e);if(Jy(e))return LN(e)}throw $y(e)}function MN(e){return new C5(t=>{let i=e[xd]();if(m0(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function EN(e){return new C5(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}function ZN(e){return new C5(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,zy)})}function kN(e){return new C5(t=>{for(let i of e)if(t.next(i),t.closed)return;t.complete()})}function eA(e){return new C5(t=>{HN(e,t).catch(i=>t.error(i))})}function LN(e){return eA(Qy(e))}function HN(e,t){var i,a,s,n;return SN(this,void 0,void 0,function*(){try{for(i=TN(e);a=yield i.next(),!a.done;){let u=a.value;if(t.next(u),t.closed)return}}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=i.return)&&(yield n.call(i))}finally{if(s)throw s.error}}t.complete()})}function Xo(e,t,i,a=0,s=!1){let n=t.schedule(function(){i(),s?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(n),!s)return n}function tA(e,t=0){return Bn((i,a)=>{i.subscribe(Ga(a,s=>Xo(a,e,()=>a.next(s),t),()=>Xo(a,e,()=>a.complete(),t),s=>Xo(a,e,()=>a.error(s),t)))})}function iA(e,t=0){return Bn((i,a)=>{a.add(e.schedule(()=>i.subscribe(a),t))})}function DN(e,t){return io(e).pipe(iA(t),tA(t))}function RN(e,t){return io(e).pipe(iA(t),tA(t))}function ON(e,t){return new C5(i=>{let a=0;return t.schedule(function(){a===e.length?i.complete():(i.next(e[a++]),i.closed||this.schedule())})})}function NN(e,t){return new C5(i=>{let a;return Xo(i,t,()=>{a=e[Ky](),Xo(i,t,()=>{let s,n;try{({value:s,done:n}=a.next())}catch(u){i.error(u);return}n?i.complete():i.next(s)},0,!0)}),()=>m0(a?.return)&&a.return()})}function aA(e,t){if(!e)throw new Error("Iterable cannot be null");return new C5(i=>{Xo(i,t,()=>{let a=e[Symbol.asyncIterator]();Xo(i,t,()=>{a.next().then(s=>{s.done?i.complete():i.next(s.value)})},0,!0)})})}function VN(e,t){return aA(Qy(e),t)}function PN(e,t){if(e!=null){if(Gy(e))return DN(e,t);if(Wy(e))return ON(e,t);if(qy(e))return RN(e,t);if(Xy(e))return aA(e,t);if(Yy(e))return NN(e,t);if(Jy(e))return VN(e,t)}throw $y(e)}function oA(e,t){return t?PN(e,t):io(e)}function l8(e,t){return Bn((i,a)=>{let s=0;i.subscribe(Ga(a,n=>{a.next(e.call(t,n,s++))}))})}var{isArray:FN}=Array;function zN(e,t){return FN(t)?e(...t):e(t)}function UN(e){return l8(t=>zN(e,t))}var{isArray:jN}=Array,{getPrototypeOf:WN,prototype:qN,keys:GN}=Object;function XN(e){if(e.length===1){let t=e[0];if(jN(t))return{args:t,keys:null};if($N(t)){let i=GN(t);return{args:i.map(a=>t[a]),keys:i}}}return{args:e,keys:null}}function $N(e){return e&&typeof e=="object"&&WN(e)===qN}function KN(e,t){return e.reduce((i,a,s)=>(i[a]=t[s],i),{})}function YN(e,t,i,a,s,n,u,_){let g=[],C=0,I=0,x=!1,L=()=>{x&&!g.length&&!C&&t.complete()},M=P=>C<a?Z(P):g.push(P),Z=P=>{n&&t.next(P),C++;let R=!1;io(i(P,I++)).subscribe(Ga(t,B=>{s?.(B),n?M(B):t.next(B)},()=>{R=!0},void 0,()=>{if(R)try{for(C--;g.length&&C<a;){let B=g.shift();u?Xo(t,u,()=>Z(B)):Z(B)}L()}catch(B){t.error(B)}}))};return e.subscribe(Ga(t,M,()=>{x=!0,L()})),()=>{_?.()}}function rA(e,t,i=1/0){return m0(t)?rA((a,s)=>l8((n,u)=>t(a,n,s,u))(io(e(a,s))),i):(typeof t=="number"&&(i=t),Bn((a,s)=>YN(a,s,e,i)))}function QN(e=1/0){return rA(Uy,e)}function JN(...e){let t=yN(e),{args:i,keys:a}=XN(e),s=new C5(n=>{let{length:u}=i;if(!u){n.complete();return}let _=new Array(u),g=u,C=u;for(let I=0;I<u;I++){let x=!1;io(i[I]).subscribe(Ga(n,L=>{x||(x=!0,C--),_[I]=L},()=>g--,void 0,()=>{(!g||!x)&&(C||n.next(a?KN(a,_):_),n.complete())}))}});return t?s.pipe(UN(t)):s}function eV(...e){let t=AN(e),i=xN(e,1/0),a=e;return a.length?a.length===1?io(a[0]):QN(i)(oA(a,t)):CN}function tV(e,t=bN){return Bn((i,a)=>{let s=null,n=null,u=null,_=()=>{if(s){s.unsubscribe(),s=null;let C=n;n=null,a.next(C)}};function g(){let C=u+e,I=t.now();if(I<C){s=this.schedule(void 0,C-I),a.add(s);return}_()}i.subscribe(Ga(a,C=>{n=C,u=t.now(),s||(s=t.schedule(g,e),a.add(s))},()=>{_(),a.complete()},void 0,()=>{n=s=null}))})}function iV(e,t){return Bn((i,a)=>{let s=null,n=0,u=!1,_=()=>u&&!s&&a.complete();i.subscribe(Ga(a,g=>{s?.unsubscribe();let C=0,I=n++;io(e(g,I)).subscribe(s=Ga(a,x=>a.next(t?t(g,x,I,C++):x),()=>{s=null,_()}))},()=>{u=!0,_()}))})}function aV(e){return Bn((t,i)=>{io(e).subscribe(Ga(i,()=>i.complete(),Ju)),!i.closed&&t.subscribe(i)})}var ih;function nA(){return ih}function Go(e){let t=ih;return ih=e,t}var oV=Symbol("NotFound");function Td(e){return e===oV||e?.name==="\u0275NotFound"}function rV(e){let t=t1(null);try{return e()}finally{t1(t)}}var sA="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",V1=class extends Error{code;constructor(e,t){super(lA(e,t)),this.code=e}};function nV(e){return`NG0${Math.abs(e)}`}function lA(e,t){return`${nV(e)}${t?": "+t:""}`}function yt(e){for(let t in e)if(e[t]===yt)return t;throw Error("")}function sV(e,t){for(let i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function cA(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(cA).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let i=e.toString();if(i==null)return""+i;let a=i.indexOf(`
|
|
117
117
|
`);return a>=0?i.slice(0,a):i}function ah(e,t){return e?t?`${e} ${t}`:e:t||""}var lV=yt({__forward_ref__:yt});function e7(e){return e.__forward_ref__=e7,e}function t5(e){return uA(e)?e():e}function uA(e){return typeof e=="function"&&e.hasOwnProperty(lV)&&e.__forward_ref__===e7}function q0(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function hA(e){return{providers:e.providers||[],imports:e.imports||[]}}function Bd(e){return cV(e,dA)}function cV(e,t){return e.hasOwnProperty(t)&&e[t]||null}function uV(e){return(e?.[dA]??null)||null}function RC(e){return e&&e.hasOwnProperty(OC)?e[OC]:null}var dA=yt({\u0275prov:yt}),OC=yt({\u0275inj:yt}),ot=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=q0({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _A(e){return e&&!!e.\u0275providers}var hV=yt({\u0275cmp:yt}),dV=yt({\u0275dir:yt}),_V=yt({\u0275pipe:yt}),S6=yt({\u0275fac:yt}),T3=yt({__NG_ELEMENT_ID__:yt}),NC=yt({__NG_ENV_ID__:yt});function M3(e){return Ed(e,"@Component"),e[hV]||null}function Md(e){return Ed(e,"@Directive"),e[dV]||null}function pV(e){return Ed(e,"@Pipe"),e[_V]||null}function Ed(e,t){if(e==null)throw new V1(-919,!1)}function Zd(e){return typeof e=="string"?e:e==null?"":String(e)}var pA=yt({ngErrorCode:yt}),vV=yt({ngErrorMessage:yt}),mV=yt({ngTokenPath:yt});function vA(e,t){return mA("",-200,t)}function kd(e,t){throw new V1(-201,!1)}function mA(e,t,i){let a=new V1(t,e);return a[pA]=t,a[vV]=e,i&&(a[mV]=i),a}function gV(e){return e[pA]}var oh;function gA(){return oh}function $i(e){let t=oh;return oh=e,t}function fA(e,t,i){let a=Bd(e);if(a&&a.providedIn=="root")return a.value===void 0?a.value=a.factory():a.value;if(i&8)return null;if(t!==void 0)return t;kd(e,"")}var fV={},un=fV,bV="__NG_DI_FLAG__",CV=class{injector;constructor(e){this.injector=e}retrieve(e,t){let i=E3(t)||0;try{return this.injector.get(e,i&8?null:un,i)}catch(a){if(Td(a))return a;throw a}}};function wV(e,t=0){let i=nA();if(i===void 0)throw new V1(-203,!1);if(i===null)return fA(e,void 0,t);{let a=yV(t),s=i.retrieve(e,a);if(Td(s)){if(a.optional)return null;throw s}return s}}function Ut(e,t=0){return(gA()||wV)(t5(e),t)}function Me(e,t){return Ut(e,E3(t))}function E3(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yV(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function rh(e){let t=[];for(let i=0;i<e.length;i++){let a=t5(e[i]);if(Array.isArray(a)){if(a.length===0)throw new V1(900,!1);let s,n=0;for(let u=0;u<a.length;u++){let _=a[u],g=AV(_);typeof g=="number"?g===-1?s=_.token:n|=g:s=_}t.push(Ut(s,n))}else t.push(Ut(a))}return t}function AV(e){return e[bV]}function ks(e,t){return e.hasOwnProperty(S6)?e[S6]:null}function xV(e,t,i){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let s=e[a],n=t[a];if(i&&(s=i(s),n=i(n)),n!==s)return!1}return!0}function SV(e){return e.flat(Number.POSITIVE_INFINITY)}function Ld(e,t){e.forEach(i=>Array.isArray(i)?Ld(i,t):t(i))}function bA(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function I6(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function IV(e,t){let i=[];for(let a=0;a<e;a++)i.push(t);return i}function TV(e,t,i,a){let s=e.length;if(s==t)e.push(i,a);else if(s===1)e.push(a,e[0]),e[0]=i;else{for(s--,e.push(e[s-1],e[s]);s>t;){let n=s-2;e[s]=e[n],s--}e[t]=i,e[t+1]=a}}function c8(e,t,i){let a=J3(e,t);return a>=0?e[a|1]=i:(a=~a,TV(e,a,t,i)),a}function mu(e,t){let i=J3(e,t);if(i>=0)return e[i|1]}function J3(e,t){return BV(e,t,1)}function BV(e,t,i){let a=0,s=e.length>>i;for(;s!==a;){let n=a+(s-a>>1),u=e[n<<i];if(t===u)return n<<i;u>t?s=n:a=n+1}return~(s<<i)}var X2={},P5=[],Hd=new ot(""),CA=new ot("",-1),wA=new ot(""),yA=class{get(e,t=un){if(t===un){let i=mA("",-201);throw i.name="\u0275NotFound",i}return t}};function MV(...e){return{\u0275providers:AA(!0,e),\u0275fromNgModule:!0}}function AA(e,...t){let i=[],a=new Set,s,n=u=>{i.push(u)};return Ld(t,u=>{let _=u;nh(_,n,[],a)&&(s||=[],s.push(_))}),s!==void 0&&xA(s,n),i}function xA(e,t){for(let i=0;i<e.length;i++){let{ngModule:a,providers:s}=e[i];Dd(s,n=>{t(n,a)})}}function nh(e,t,i,a){if(e=t5(e),!e)return!1;let s=null,n=RC(e),u=!n&&M3(e);if(!n&&!u){let g=e.ngModule;if(n=RC(g),n)s=g;else return!1}else{if(u&&!u.standalone)return!1;s=e}let _=a.has(s);if(u){if(_)return!1;if(a.add(s),u.dependencies){let g=typeof u.dependencies=="function"?u.dependencies():u.dependencies;for(let C of g)nh(C,t,i,a)}}else if(n){if(n.imports!=null&&!_){a.add(s);let C;Ld(n.imports,I=>{nh(I,t,i,a)&&(C||=[],C.push(I))}),C!==void 0&&xA(C,t)}if(!_){let C=ks(s)||(()=>new s);t({provide:s,useFactory:C,deps:P5},s),t({provide:wA,useValue:s,multi:!0},s),t({provide:Hd,useValue:()=>Ut(s),multi:!0},s)}let g=n.providers;if(g!=null&&!_){let C=e;Dd(g,I=>{t(I,C)})}}else return!1;return s!==e&&e.providers!==void 0}function Dd(e,t){for(let i of e)_A(i)&&(i=i.\u0275providers),Array.isArray(i)?Dd(i,t):t(i)}var EV=yt({provide:String,useValue:yt});function SA(e){return e!==null&&typeof e=="object"&&EV in e}function ZV(e){return!!(e&&e.useExisting)}function kV(e){return!!(e&&e.useFactory)}function Ls(e){return typeof e=="function"}function LV(e){return!!e.useClass}var Rd=new ot(""),t6={},VC={},gu;function Od(){return gu===void 0&&(gu=new yA),gu}var Jo=class{},Nd=class extends Jo{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,i,a){super(),this.parent=t,this.source=i,this.scopes=a,lh(e,n=>this.processProvider(n)),this.records.set(CA,ws(void 0,this)),a.has("environment")&&this.records.set(Jo,ws(void 0,this));let s=this.records.get(Rd);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(wA,P5,{self:!0}))}retrieve(e,t){let i=E3(t)||0;try{return this.get(e,un,i)}catch(a){if(Td(a))return a;throw a}}destroy(){m3(this),this._destroyed=!0;let e=t1(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),t1(e)}}onDestroy(e){return m3(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){m3(this);let t=Go(this),i=$i(void 0),a;try{return e()}finally{Go(t),$i(i)}}get(e,t=un,i){if(m3(this),e.hasOwnProperty(NC))return e[NC](this);let a=E3(i),s,n=Go(this),u=$i(void 0);try{if(!(a&4)){let g=this.records.get(e);if(g===void 0){let C=NV(e)&&Bd(e);C&&this.injectableDefInScope(C)?g=ws(sh(e),t6):g=null,this.records.set(e,g)}if(g!=null)return this.hydrate(e,g,a)}let _=a&2?Od():this.parent;return t=a&8&&t===un?null:t,_.get(e,t)}catch(_){let g=gV(_);throw g===-200||g===-201?new V1(g,null):_}finally{$i(u),Go(n)}}resolveInjectorInitializers(){let e=t1(null),t=Go(this),i=$i(void 0),a;try{let s=this.get(Hd,P5,{self:!0});for(let n of s)n()}finally{Go(t),$i(i),t1(e)}}toString(){return"R3Injector[...]"}processProvider(e){e=t5(e);let t=Ls(e)?e:t5(e&&e.provide),i=DV(e);if(!Ls(e)&&e.multi===!0){let a=this.records.get(t);a||(a=ws(void 0,t6,!0),a.factory=()=>rh(a.multi),this.records.set(t,a)),t=e,a.multi.push(e)}this.records.set(t,i)}hydrate(e,t,i){let a=t1(null);try{if(t.value===VC)throw vA("");return t.value===t6&&(t.value=VC,t.value=t.factory(void 0,i)),typeof t.value=="object"&&t.value&&OV(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{t1(a)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=t5(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function sh(e){let t=Bd(e),i=t!==null?t.factory:ks(e);if(i!==null)return i;if(e instanceof ot)throw new V1(-204,!1);if(e instanceof Function)return HV(e);throw new V1(-204,!1)}function HV(e){if(e.length>0)throw new V1(-204,!1);let t=uV(e);return t!==null?()=>t.factory(e):()=>new e}function DV(e){if(SA(e))return ws(void 0,e.useValue);{let t=IA(e);return ws(t,t6)}}function IA(e,t,i){let a;if(Ls(e)){let s=t5(e);return ks(s)||sh(s)}else if(SA(e))a=()=>t5(e.useValue);else if(kV(e))a=()=>e.useFactory(...rh(e.deps||[]));else if(ZV(e))a=(s,n)=>Ut(t5(e.useExisting),n!==void 0&&n&8?8:void 0);else{let s=t5(e&&(e.useClass||e.provide));if(RV(e))a=()=>new s(...rh(e.deps));else return ks(s)||sh(s)}return a}function m3(e){if(e.destroyed)throw new V1(-205,!1)}function ws(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function RV(e){return!!e.deps}function OV(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function NV(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function lh(e,t){for(let i of e)Array.isArray(i)?lh(i,t):i&&_A(i)?lh(i.\u0275providers,t):t(i)}function h0(e,t){let i;e instanceof Nd?(m3(e),i=e):i=new CV(e);let a,s=Go(i),n=$i(void 0);try{return t()}finally{Go(s),$i(n)}}function VV(){return gA()!==void 0||nA()!=null}var ao=0,Qe=1,i1=2,i5=3,w2=4,ui=5,Hs=6,T6=7,H0=8,er=9,$2=10,l0=11,Z3=12,PC=13,t7=14,Ii=15,hn=16,ys=17,Xa=18,tr=19,TA=20,$o=21,fu=22,dn=23,Qi=24,Ts=25,_n=26,f0=27,BA=1,FC=6,pn=7,B6=8,Ds=9,g0=10;function Ko(e){return Array.isArray(e)&&typeof e[BA]=="object"}function oo(e){return Array.isArray(e)&&e[BA]===!0}function MA(e){return(e.flags&4)!==0}function En(e){return e.componentOffset>-1}function Vd(e){return(e.flags&1)===1}function K2(e){return!!e.template}function M6(e){return(e[i1]&512)!==0}function i7(e){return(e[i1]&256)===256}var PV="svg",FV="math";function Y2(e){for(;Array.isArray(e);)e=e[ao];return e}function EA(e,t){return Y2(t[e])}function ra(e,t){return Y2(t[e.index])}function Pd(e,t){return e.data[t]}function ZA(e,t){return e[t]}function kA(e,t,i,a){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=a}function Q2(e,t){let i=t[e];return Ko(i)?i:i[ao]}function Fd(e){return(e[i1]&128)===128}function zV(e){return oo(e[i5])}function $a(e,t){return t==null?null:e[t]}function LA(e){e[ys]=0}function zd(e){e[i1]&1024||(e[i1]|=1024,Fd(e)&&a7(e))}function UV(e,t){for(;e>0;)t=t[t7],e--;return t}function k3(e){return!!(e[i1]&9216||e[Qi]?.dirty)}function ch(e){e[$2].changeDetectionScheduler?.notify(8),e[i1]&64&&(e[i1]|=1024),k3(e)&&a7(e)}function a7(e){e[$2].changeDetectionScheduler?.notify(0);let t=vn(e);for(;t!==null&&!(t[i1]&8192||(t[i1]|=8192,!Fd(t)));)t=vn(t)}function HA(e,t){if(i7(e))throw new V1(911,!1);e[$o]===null&&(e[$o]=[]),e[$o].push(t)}function jV(e,t){if(e[$o]===null)return;let i=e[$o].indexOf(t);i!==-1&&e[$o].splice(i,1)}function vn(e){let t=e[i5];return oo(t)?t[i5]:t}function DA(e){return e[T6]??=[]}function RA(e){return e.cleanup??=[]}function WV(e,t,i,a){let s=DA(t);s.push(i),e.firstCreatePass&&RA(e).push(a,s.length-1)}var y1={lFrame:$A(null),bindingsEnabled:!0,skipHydrationRootTNode:null},uh=!1;function qV(){return y1.lFrame.elementDepthCount}function GV(){y1.lFrame.elementDepthCount++}function OA(){y1.lFrame.elementDepthCount--}function XV(){return y1.bindingsEnabled}function NA(){return y1.skipHydrationRootTNode!==null}function VA(e){return y1.skipHydrationRootTNode===e}function PA(){y1.skipHydrationRootTNode=null}function E1(){return y1.lFrame.lView}function s5(){return y1.lFrame.tView}function z1(e){return y1.lFrame.contextLView=e,e[H0]}function U1(e){return y1.lFrame.contextLView=null,e}function n2(){let e=FA();for(;e!==null&&e.type===64;)e=e.parent;return e}function FA(){return y1.lFrame.currentTNode}function $V(){let e=y1.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function o7(e,t){let i=y1.lFrame;i.currentTNode=e,i.isParent=t}function zA(){return y1.lFrame.isParent}function UA(){y1.lFrame.isParent=!1}function jA(){return y1.lFrame.contextLView}function WA(){return uh}function E6(e){let t=uh;return uh=e,t}function KV(){let e=y1.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function YV(e){return y1.lFrame.bindingIndex=e}function e4(){return y1.lFrame.bindingIndex++}function qA(e){let t=y1.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function QV(){return y1.lFrame.inI18n}function JV(e,t){let i=y1.lFrame;i.bindingIndex=i.bindingRootIndex=e,hh(t)}function eP(){return y1.lFrame.currentDirectiveIndex}function hh(e){y1.lFrame.currentDirectiveIndex=e}function tP(e){let t=y1.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function iP(){return y1.lFrame.currentQueryIndex}function Ud(e){y1.lFrame.currentQueryIndex=e}function aP(e){let t=e[Qe];return t.type===2?t.declTNode:t.type===1?e[ui]:null}function GA(e,t,i){if(i&4){let s=t,n=e;for(;(s=s.parent,s===null&&!(i&1))&&(s=aP(n),!(s===null||(n=n[t7],s.type&10))););if(s===null)return!1;t=s,e=n}let a=y1.lFrame=XA();return a.currentTNode=t,a.lView=e,!0}function jd(e){let t=XA(),i=e[Qe];y1.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function XA(){let e=y1.lFrame,t=e===null?null:e.child;return t===null?$A(e):t}function $A(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function KA(){let e=y1.lFrame;return y1.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var YA=KA;function Wd(){let e=KA();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function oP(e){return(y1.lFrame.contextLView=UV(e,y1.lFrame.contextLView))[H0]}function ro(){return y1.lFrame.selectedIndex}function mn(e){y1.lFrame.selectedIndex=e}function QA(){let e=y1.lFrame;return Pd(e.tView,e.selectedIndex)}function rP(){return y1.lFrame.currentNamespace}var JA=!0;function qd(){return JA}function Gd(e){JA=e}function zC(e,t=null,i=null,a){let s=nP(e,t,i,a);return s.resolveInjectorInitializers(),s}function nP(e,t=null,i=null,a,s=new Set){let n=[i||P5,MV(e)],u;return new Nd(n,t||Od(),u||null,s)}var Lt=class ex{static THROW_IF_NOT_FOUND=un;static NULL=new yA;static create(t,i){if(Array.isArray(t))return zC({name:""},i,t,"");{let a=t.name??"";return zC({name:a},t.parent,t.providers,a)}}static \u0275prov=q0({token:ex,providedIn:"any",factory:()=>Ut(CA)});static __NG_ELEMENT_ID__=-1},r7=new ot(""),n7=(()=>{class e{static __NG_ELEMENT_ID__=sP;static __NG_ENV_ID__=i=>i}return e})(),tx=class extends n7{_lView;constructor(e){super(),this._lView=e}get destroyed(){return i7(this._lView)}onDestroy(e){let t=this._lView;return HA(t,e),()=>jV(t,e)}};function sP(){return new tx(E1())}var lP=!1,cP=new ot(""),u8=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new pN(!1);debugTaskTracker=Me(cP,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new C5(i=>{i.next(!1),i.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),this.debugTaskTracker?.add(i),i}has(i){return this.pendingTasks.has(i)}remove(i){this.pendingTasks.delete(i),this.debugTaskTracker?.remove(i),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=q0({token:e,providedIn:"root",factory:()=>new e})}return e})(),uP=class extends Mn{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,VV()&&(this.destroyRef=Me(n7,{optional:!0})??void 0,this.pendingTasks=Me(u8,{optional:!0})??void 0)}emit(e){let t=t1(null);try{super.next(e)}finally{t1(t)}}subscribe(e,t,i){let a=e,s=t||(()=>null),n=i;if(e&&typeof e=="object"){let _=e;a=_.next?.bind(_),s=_.error?.bind(_),n=_.complete?.bind(_)}this.__isAsync&&(s=this.wrapInTimeout(s),a&&(a=this.wrapInTimeout(a)),n&&(n=this.wrapInTimeout(n)));let u=super.subscribe({next:a,error:s,complete:n});return e instanceof qa&&e.add(u),u}wrapInTimeout(e){return t=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},Yi=uP;function Z6(...e){}function ix(e){let t,i;function a(){e=Z6;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),a()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{e(),a()})),()=>a()}function hP(e){return queueMicrotask(()=>e()),()=>{e=Z6}}var Xd="isAngularZone",k6=Xd+"_ID",dP=0,no=class dh{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Yi(!1);onMicrotaskEmpty=new Yi(!1);onStable=new Yi(!1);onError=new Yi(!1);constructor(t){let{enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:a=!1,shouldCoalesceRunChangeDetection:s=!1,scheduleInRootZone:n=lP}=t;if(typeof Zone>"u")throw new V1(908,!1);Zone.assertZonePatched();let u=this;u._nesting=0,u._outer=u._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(u._inner=u._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(u._inner=u._inner.fork(Zone.longStackTraceZoneSpec)),u.shouldCoalesceEventChangeDetection=!s&&a,u.shouldCoalesceRunChangeDetection=s,u.callbackScheduled=!1,u.scheduleInRootZone=n,vP(u)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Xd)===!0}static assertInAngularZone(){if(!dh.isInAngularZone())throw new V1(909,!1)}static assertNotInAngularZone(){if(dh.isInAngularZone())throw new V1(909,!1)}run(t,i,a){return this._inner.run(t,i,a)}runTask(t,i,a,s){let n=this._inner,u=n.scheduleEventTask("NgZoneEvent: "+s,t,_P,Z6,Z6);try{return n.runTask(u,i,a)}finally{n.cancelTask(u)}}runGuarded(t,i,a){return this._inner.runGuarded(t,i,a)}runOutsideAngular(t){return this._outer.run(t)}},_P={};function $d(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pP(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ix(()=>{e.callbackScheduled=!1,_h(e),e.isCheckStableRunning=!0,$d(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),_h(e)}function vP(e){let t=()=>{pP(e)},i=dP++;e._inner=e._inner.fork({name:"angular",properties:{[Xd]:!0,[k6]:i,[k6+i]:!0},onInvokeTask:(a,s,n,u,_,g)=>{if(gP(g))return a.invokeTask(n,u,_,g);try{return UC(e),a.invokeTask(n,u,_,g)}finally{(e.shouldCoalesceEventChangeDetection&&u.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jC(e)}},onInvoke:(a,s,n,u,_,g,C)=>{try{return UC(e),a.invoke(n,u,_,g,C)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!fP(g)&&t(),jC(e)}},onHasTask:(a,s,n,u)=>{a.hasTask(n,u),s===n&&(u.change=="microTask"?(e._hasPendingMicrotasks=u.microTask,_h(e),$d(e)):u.change=="macroTask"&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(a,s,n,u)=>(a.handleError(n,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}function _h(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function UC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jC(e){e._nesting--,$d(e)}var mP=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Yi;onMicrotaskEmpty=new Yi;onStable=new Yi;onError=new Yi;run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,a){return e.apply(t,i)}};function gP(e){return ax(e,"__ignore_ng_zone__")}function fP(e){return ax(e,"__scheduler_tick__")}function ax(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var s7=class{_console=console;handleError(e){this._console.error("ERROR",e)}},h8=new ot("",{factory:()=>{let e=Me(no),t=Me(Jo),i;return a=>{e.runOutsideAngular(()=>{t.destroyed&&!i?setTimeout(()=>{throw a}):(i??=t.get(s7),i.handleError(a))})}}}),bP={provide:Hd,useValue:()=>{let e=Me(s7,{optional:!0})},multi:!0};function xi(e,t){let[i,a,s]=XO(e,t?.equal),n=i,u=n[Si];return n.set=a,n.update=s,n.asReadonly=CP.bind(n),n}function CP(){let e=this[Si];if(e.readonlyFn===void 0){let t=()=>this();t[Si]=e,e.readonlyFn=t}return e.readonlyFn}var Kd=(()=>{class e{view;node;constructor(i,a){this.view=i,this.node=a}static __NG_ELEMENT_ID__=wP}return e})();function wP(){return new Kd(E1(),n2())}var t4=class{},Yd=new ot("",{factory:()=>!0}),yP=new ot(""),ox=(()=>{class e{static \u0275prov=q0({token:e,providedIn:"root",factory:()=>new AP})}return e})(),AP=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,i=this.queues.get(t);i.has(e)&&(i.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let i=this.queues.get(t);i.has(e)||i.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,i]of this.queues)t===null?e||=this.flushQueue(i):e||=t.run(()=>this.flushQueue(i));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let i of e)i.dirty&&(this.dirtyEffectCount--,t=!0,i.run());return t}},xP=class{[Si];constructor(e){this[Si]=e}destroy(){this[Si].destroy()}};function t0(e,t){let i=t?.injector??Me(Lt),a=t?.manualCleanup!==!0?i.get(n7):null,s,n=i.get(Kd,null,{optional:!0}),u=i.get(t4);return n!==null?(s=TP(n.view,u,e),a instanceof tx&&a._lView===n.view&&(a=null)):s=BP(e,i.get(ox),u),s.injector=i,a!==null&&(s.onDestroyFns=[a.onDestroy(()=>s.destroy())]),new xP(s)}var rx=C1(Te({},QO),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=E6(!1);try{JO(this)}finally{E6(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=t1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],t1(e)}}}),SP=C1(Te({},rx),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(s8(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),IP=C1(Te({},rx),{consumerMarkedDirty(){this.view[i1]|=8192,a7(this.view),this.notifier.notify(13)},destroy(){if(s8(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[dn]?.delete(this)}});function TP(e,t,i){let a=Object.create(IP);return a.view=e,a.zone=typeof Zone<"u"?Zone.current:null,a.notifier=t,a.fn=nx(a,i),e[dn]??=new Set,e[dn].add(a),a.consumerMarkedDirty(a),a}function BP(e,t,i){let a=Object.create(SP);return a.fn=nx(a,e),a.scheduler=t,a.notifier=i,a.zone=typeof Zone<"u"?Zone.current:null,a.scheduler.add(a),a.notifier.notify(12),a}function nx(e,t){return()=>{t(i=>(e.cleanupFns??=[]).push(i))}}function d8(e){return{toString:e}.toString()}function MP(e){return typeof e=="function"}function sx(e,t,i,a){t!==null?t.applyValueToInputSignal(t,a):e[i]=a}var EP=class{previousValue;currentValue;firstChange;constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}},lx=(()=>{let e=()=>cx;return e.ngInherit=!0,e})();function cx(e){return e.type.prototype.ngOnChanges&&(e.setInput=kP),ZP}function ZP(){let e=hx(this),t=e?.current;if(t){let i=e.previous;if(i===X2)e.previous=t;else for(let a in t)i[a]=t[a];e.current=null,this.ngOnChanges(t)}}function kP(e,t,i,a,s){let n=this.declaredInputs[a],u=hx(e)||LP(e,{previous:X2,current:null}),_=u.current||(u.current={}),g=u.previous,C=g[n];_[n]=new EP(C&&C.currentValue,i,g===X2),sx(e,t,s,i)}var ux="__ngSimpleChanges__";function hx(e){return e[ux]||null}function LP(e,t){return e[ux]=t}var WC=[],vt=function(e,t=null,i){for(let a=0;a<WC.length;a++){let s=WC[a];s(e,t,i)}},et=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(et||{});function HP(e,t,i){let{ngOnChanges:a,ngOnInit:s,ngDoCheck:n}=t.type.prototype;if(a){let u=cx(t);(i.preOrderHooks??=[]).push(e,u),(i.preOrderCheckHooks??=[]).push(e,u)}s&&(i.preOrderHooks??=[]).push(0-e,s),n&&((i.preOrderHooks??=[]).push(e,n),(i.preOrderCheckHooks??=[]).push(e,n))}function DP(e,t){for(let i=t.directiveStart,a=t.directiveEnd;i<a;i++){let s=e.data[i].type.prototype,{ngAfterContentInit:n,ngAfterContentChecked:u,ngAfterViewInit:_,ngAfterViewChecked:g,ngOnDestroy:C}=s;n&&(e.contentHooks??=[]).push(-i,n),u&&((e.contentHooks??=[]).push(i,u),(e.contentCheckHooks??=[]).push(i,u)),_&&(e.viewHooks??=[]).push(-i,_),g&&((e.viewHooks??=[]).push(i,g),(e.viewCheckHooks??=[]).push(i,g)),C!=null&&(e.destroyHooks??=[]).push(i,C)}}function i6(e,t,i){dx(e,t,3,i)}function a6(e,t,i,a){(e[i1]&3)===i&&dx(e,t,i,a)}function bu(e,t){let i=e[i1];(i&3)===t&&(i&=16383,i+=1,e[i1]=i)}function dx(e,t,i,a){let s=a!==void 0?e[ys]&65535:0,n=a??-1,u=t.length-1,_=0;for(let g=s;g<u;g++)if(typeof t[g+1]=="number"){if(_=t[g],a!=null&&_>=a)break}else t[g]<0&&(e[ys]+=65536),(_<n||n==-1)&&(RP(e,i,t,g),e[ys]=(e[ys]&4294901760)+g+2),g++}function qC(e,t){vt(et.LifecycleHookStart,e,t);let i=t1(null);try{t.call(e)}finally{t1(i),vt(et.LifecycleHookEnd,e,t)}}function RP(e,t,i,a){let s=i[a]<0,n=i[a+1],u=s?-i[a]:i[a],_=e[u];s?e[i1]>>14<e[ys]>>16&&(e[i1]&3)===t&&(e[i1]+=16384,qC(_,n)):qC(_,n)}var Bs=-1,i4=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,i,a){this.factory=e,this.name=a,this.canSeeViewProviders=t,this.injectImpl=i}};function OP(e){return(e.flags&8)!==0}function NP(e){return(e.flags&16)!==0}function VP(e,t,i){let a=0;for(;a<i.length;){let s=i[a];if(typeof s=="number"){if(s!==0)break;a++;let n=i[a++],u=i[a++],_=i[a++];e.setAttribute(t,u,_,n)}else{let n=s,u=i[++a];FP(n)?e.setProperty(t,n,u):e.setAttribute(t,n,u),a++}}return a}function PP(e){return e===3||e===4||e===6}function FP(e){return e.charCodeAt(0)===64}function Rs(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let i=-1;for(let a=0;a<t.length;a++){let s=t[a];typeof s=="number"?i=s:i===0||(i===-1||i===2?GC(e,i,s,null,t[++a]):GC(e,i,s,null,null))}}return e}function GC(e,t,i,a,s){let n=0,u=e.length;if(t===-1)u=-1;else for(;n<e.length;){let _=e[n++];if(typeof _=="number"){if(_===t){u=-1;break}else if(_>t){u=n-1;break}}}for(;n<e.length;){let _=e[n];if(typeof _=="number")break;if(_===i){s!==null&&(e[n+1]=s);return}n++,s!==null&&n++}u!==-1&&(e.splice(u,0,t),n=u+1),e.splice(n++,0,i),s!==null&&e.splice(n++,0,s)}function _x(e){return e!==Bs}function L6(e){return e&32767}function zP(e){return e>>16}function H6(e,t){let i=zP(e),a=t;for(;i>0;)a=a[t7],i--;return a}var ph=!0;function XC(e){let t=ph;return ph=e,t}var UP=256,px=UP-1,vx=5,jP=0,G2={};function WP(e,t,i){let a;typeof i=="string"?a=i.charCodeAt(0)||0:i.hasOwnProperty(T3)&&(a=i[T3]),a==null&&(a=i[T3]=jP++);let s=a&px,n=1<<s;t.data[e+(s>>vx)]|=n}function D6(e,t){let i=mx(e,t);if(i!==-1)return i;let a=t[Qe];a.firstCreatePass&&(e.injectorIndex=t.length,Cu(a.data,e),Cu(t,null),Cu(a.blueprint,null));let s=Qd(e,t),n=e.injectorIndex;if(_x(s)){let u=L6(s),_=H6(s,t),g=_[Qe].data;for(let C=0;C<8;C++)t[n+C]=_[u+C]|g[u+C]}return t[n+8]=s,n}function Cu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function mx(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Qd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let i=0,a=null,s=t;for(;s!==null;){if(a=yx(s),a===null)return Bs;if(i++,s=s[t7],a.injectorIndex!==-1)return a.injectorIndex|i<<16}return Bs}function vh(e,t,i){WP(e,t,i)}function gx(e,t,i){if(i&8||e!==void 0)return e;kd(t,"NodeInjector")}function fx(e,t,i,a){if(i&8&&a===void 0&&(a=null),(i&3)===0){let s=e[er],n=$i(void 0);try{return s?s.get(t,a,i&8):fA(t,a,i&8)}finally{$i(n)}}return gx(a,t,i)}function bx(e,t,i,a=0,s){if(e!==null){if(t[i1]&2048&&!(a&2)){let u=$P(e,t,i,a,G2);if(u!==G2)return u}let n=Cx(e,t,i,a,G2);if(n!==G2)return n}return fx(t,i,a,s)}function Cx(e,t,i,a,s){let n=GP(i);if(typeof n=="function"){if(!GA(t,e,a))return a&1?gx(s,i,a):fx(t,i,a,s);try{let u;if(u=n(a),u==null&&!(a&8))kd(i);else return u}finally{YA()}}else if(typeof n=="number"){let u=null,_=mx(e,t),g=Bs,C=a&1?t[Ii][ui]:null;for((_===-1||a&4)&&(g=_===-1?Qd(e,t):t[_+8],g===Bs||!KC(a,!1)?_=-1:(u=t[Qe],_=L6(g),t=H6(g,t)));_!==-1;){let I=t[Qe];if($C(n,_,I.data)){let x=qP(_,t,i,u,a,C);if(x!==G2)return x}g=t[_+8],g!==Bs&&KC(a,t[Qe].data[_+8]===C)&&$C(n,_,t)?(u=I,_=L6(g),t=H6(g,t)):_=-1}}return s}function qP(e,t,i,a,s,n){let u=t[Qe],_=u.data[e+8],g=a==null?En(_)&&ph:a!=u&&(_.type&3)!==0,C=s&1&&n===_,I=o6(_,u,i,g,C);return I!==null?L3(t,u,I,_,s):G2}function o6(e,t,i,a,s){let n=e.providerIndexes,u=t.data,_=n&1048575,g=e.directiveStart,C=e.directiveEnd,I=n>>20,x=a?_:_+I,L=s?_+I:C;for(let M=x;M<L;M++){let Z=u[M];if(M<g&&i===Z||M>=g&&Z.type===i)return M}if(s){let M=u[g];if(M&&K2(M)&&M.type===i)return g}return null}function L3(e,t,i,a,s){let n=e[i],u=t.data;if(n instanceof i4){let _=n;if(_.resolving)throw vA("");let g=XC(_.canSeeViewProviders);_.resolving=!0;let C=u[i].type||u[i],I,x=_.injectImpl?$i(_.injectImpl):null,L=GA(e,a,0);try{n=e[i]=_.factory(void 0,s,u,e,a),t.firstCreatePass&&i>=a.directiveStart&&HP(i,u[i],t)}finally{x!==null&&$i(x),XC(g),_.resolving=!1,YA()}}return n}function GP(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(T3)?e[T3]:void 0;return typeof t=="number"?t>=0?t&px:XP:t}function $C(e,t,i){let a=1<<e;return!!(i[t+(e>>vx)]&a)}function KC(e,t){return!(e&2)&&!(e&1&&t)}var B3=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return bx(this._tNode,this._lView,e,E3(i),t)}};function XP(){return new B3(n2(),E1())}function wx(e){return d8(()=>{let t=e.prototype.constructor,i=t[S6]||mh(t),a=Object.prototype,s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==a;){let n=s[S6]||mh(s);if(n&&n!==i)return n;s=Object.getPrototypeOf(s)}return n=>new n})}function mh(e){return uA(e)?()=>{let t=mh(t5(e));return t&&t()}:ks(e)}function $P(e,t,i,a,s){let n=e,u=t;for(;n!==null&&u!==null&&u[i1]&2048&&!M6(u);){let _=Cx(n,u,i,a|2,G2);if(_!==G2)return _;let g=n.parent;if(!g){let C=u[TA];if(C){let I=C.get(i,G2,a&-5);if(I!==G2)return I}g=yx(u),u=u[t7]}n=g}return s}function yx(e){let t=e[Qe],i=t.type;return i===2?t.declTNode:i===1?e[ui]:null}function KP(){return l7(n2(),E1())}function l7(e,t){return new Ht(ra(e,t))}var Ht=(()=>{class e{nativeElement;constructor(i){this.nativeElement=i}static __NG_ELEMENT_ID__=KP}return e})();function YP(e){return e instanceof Ht?e.nativeElement:e}function QP(){return this._results[Symbol.iterator]()}var JP=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Mn}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let i=SV(e);(this._changesDetected=!xV(this._results,i,t))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=QP};function Ax(e){return(e.flags&128)===128}var xx=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(xx||{}),Sx=new Map,eF=0;function tF(){return eF++}function iF(e){Sx.set(e[tr],e)}function gh(e){Sx.delete(e[tr])}var YC="__ngContext__";function Os(e,t){Ko(t)?(e[YC]=t[tr],iF(t)):e[YC]=t}function Ix(e){return Bx(e[Z3])}function Tx(e){return Bx(e[w2])}function Bx(e){for(;e!==null&&!oo(e);)e=e[w2];return e}var aF;function oF(e){aF=e}var Mx=new ot("",{factory:()=>rF}),rF="ng",Ex=new ot(""),Zx=new ot("",{providedIn:"platform",factory:()=>"unknown"}),kx=new ot("",{factory:()=>Me(r7).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),nF="r",sF="di",Lx=!1,lF=new ot("",{factory:()=>Lx}),QC=new WeakMap;function cF(e,t){if(e==null||typeof e!="object")return;let i=QC.get(e);i||(i=new WeakSet,QC.set(e,i)),i.add(t)}var uF=(e,t,i,a)=>{};function hF(e,t,i,a){uF(e,t,i,a)}function Jd(e){return(e.flags&32)===32}var dF=()=>null;function Hx(e,t,i=!1){return dF(e,t,i)}function Dx(e,t){let i=e.contentQueries;if(i!==null){let a=t1(null);try{for(let s=0;s<i.length;s+=2){let n=i[s],u=i[s+1];if(u!==-1){let _=e.data[u];Ud(n),_.contentQueries(2,t[u],u)}}}finally{t1(a)}}}function fh(e,t,i){Ud(0);let a=t1(null);try{t(e,i)}finally{t1(a)}}function Rx(e,t,i){if(MA(t)){let a=t1(null);try{let s=t.directiveStart,n=t.directiveEnd;for(let u=s;u<n;u++){let _=e.data[u];if(_.contentQueries){let g=i[u];_.contentQueries(1,g,u)}}}finally{t1(a)}}}var ja=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(ja||{}),Ox=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${sA})`}};function _8(e){return e instanceof Ox?e.changingThisBreaksApplicationSecurity:e}function _F(e,t){let i=pF(e);if(i!=null&&i!==t){if(i==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${sA})`)}return i===t}function pF(e){return e instanceof Ox&&e.getTypeName()||null}var vF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mF(e){return e=String(e),e.match(vF)?e:"unsafe:"+e}function gF(e,t){return e.createText(t)}function fF(e,t,i){e.setValue(t,i)}function Nx(e,t,i){return e.createElement(t,i)}function R6(e,t,i,a,s){e.insertBefore(t,i,a,s)}function Vx(e,t,i){e.appendChild(t,i)}function JC(e,t,i,a,s){a!==null?R6(e,t,i,a,s):Vx(e,t,i)}function Px(e,t,i,a){e.removeChild(null,t,i,a)}function bF(e,t,i){e.setAttribute(t,"style",i)}function CF(e,t,i){i===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function Fx(e,t,i){let{mergedAttrs:a,classes:s,styles:n}=i;a!==null&&VP(e,t,a),s!==null&&CF(e,t,s),n!==null&&bF(e,t,n)}var zx=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(zx||{});function wF(e){let t=yF();return t?t.sanitize(zx.URL,e)||"":_F(e,"URL")?_8(e):mF(Zd(e))}function yF(){let e=E1();return e&&e[$2].sanitizer}function AF(e,t,i){let a=e.length;for(;;){let s=e.indexOf(t,i);if(s===-1)return s;if(s===0||e.charCodeAt(s-1)<=32){let n=t.length;if(s+n===a||e.charCodeAt(s+n)<=32)return s}i=s+1}}var Ux="ng-template";function xF(e,t,i,a){let s=0;if(a){for(;s<t.length&&typeof t[s]=="string";s+=2)if(t[s]==="class"&&AF(t[s+1].toLowerCase(),i,0)!==-1)return!0}else if(e_(e))return!1;if(s=t.indexOf(1,s),s>-1){let n;for(;++s<t.length&&typeof(n=t[s])=="string";)if(n.toLowerCase()===i)return!0}return!1}function e_(e){return e.type===4&&e.value!==Ux}function SF(e,t,i){let a=e.type===4&&!i?Ux:e.value;return t===a}function IF(e,t,i){let a=4,s=e.attrs,n=s!==null?MF(s):0,u=!1;for(let _=0;_<t.length;_++){let g=t[_];if(typeof g=="number"){if(!u&&!f2(a)&&!f2(g))return!1;if(u&&f2(g))continue;u=!1,a=g|a&1;continue}if(!u)if(a&4){if(a=2|a&1,g!==""&&!SF(e,g,i)||g===""&&t.length===1){if(f2(a))return!1;u=!0}}else if(a&8){if(s===null||!xF(e,s,g,i)){if(f2(a))return!1;u=!0}}else{let C=t[++_],I=TF(g,s,e_(e),i);if(I===-1){if(f2(a))return!1;u=!0;continue}if(C!==""){let x;if(I>n?x="":x=s[I+1].toLowerCase(),a&2&&C!==x){if(f2(a))return!1;u=!0}}}}return f2(a)||u}function f2(e){return(e&1)===0}function TF(e,t,i,a){if(t===null)return-1;let s=0;if(a||!i){let n=!1;for(;s<t.length;){let u=t[s];if(u===e)return s;if(u===3||u===6)n=!0;else if(u===1||u===2){let _=t[++s];for(;typeof _=="string";)_=t[++s];continue}else{if(u===4)break;if(u===0){s+=4;continue}}s+=n?1:2}return-1}else return EF(t,e)}function jx(e,t,i=!1){for(let a=0;a<t.length;a++)if(IF(e,t[a],i))return!0;return!1}function BF(e){let t=e.attrs;if(t!=null){let i=t.indexOf(5);if((i&1)===0)return t[i+1]}return null}function MF(e){for(let t=0;t<e.length;t++){let i=e[t];if(PP(i))return t}return e.length}function EF(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){let a=e[i];if(typeof a=="number")return-1;if(a===t)return i;i++}return-1}function ZF(e,t){e:for(let i=0;i<t.length;i++){let a=t[i];if(e.length===a.length){for(let s=0;s<e.length;s++)if(e[s]!==a[s])continue e;return!0}}return!1}function ew(e,t){return e?":not("+t.trim()+")":t}function kF(e){let t=e[0],i=1,a=2,s="",n=!1;for(;i<e.length;){let u=e[i];if(typeof u=="string")if(a&2){let _=e[++i];s+="["+u+(_.length>0?'="'+_+'"':"")+"]"}else a&8?s+="."+u:a&4&&(s+=" "+u);else s!==""&&!f2(u)&&(t+=ew(n,s),s=""),a=u,n=n||!f2(a);i++}return s!==""&&(t+=ew(n,s)),t}function LF(e){return e.map(kF).join(",")}function HF(e){let t=[],i=[],a=1,s=2;for(;a<e.length;){let n=e[a];if(typeof n=="string")s===2?n!==""&&t.push(n,e[++a]):s===8&&i.push(n);else{if(!f2(s))break;s=n}a++}return i.length&&t.push(1,...i),t}var x2={};function t_(e,t,i,a,s,n,u,_,g,C,I){let x=f0+a,L=x+s,M=DF(x,L),Z=typeof C=="function"?C():C;return M[Qe]={type:e,blueprint:M,template:i,queries:null,viewQuery:_,declTNode:t,data:M.slice().fill(null,x),bindingStartIndex:x,expandoStartIndex:L,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof n=="function"?n():n,pipeRegistry:typeof u=="function"?u():u,firstChild:null,schemas:g,consts:Z,incompleteFirstPass:!1,ssrId:I}}function DF(e,t){let i=[];for(let a=0;a<t;a++)i.push(a<e?null:x2);return i}function RF(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=t_(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function i_(e,t,i,a,s,n,u,_,g,C,I){let x=t.blueprint.slice();return x[ao]=s,x[i1]=a|4|128|8|64|1024,(C!==null||e&&e[i1]&2048)&&(x[i1]|=2048),LA(x),x[i5]=x[t7]=e,x[H0]=i,x[$2]=u||e&&e[$2],x[l0]=_||e&&e[l0],x[er]=g||e&&e[er]||null,x[ui]=n,x[tr]=tF(),x[Hs]=I,x[TA]=C,x[Ii]=t.type==2?e[Ii]:x,x}function OF(e,t,i){let a=ra(t,e),s=RF(i),n=e[$2].rendererFactory,u=a_(e,i_(e,s,null,Wx(i),a,t,null,n.createRenderer(a,i),null,null,null));return e[t.index]=u}function Wx(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function qx(e,t,i,a){if(i===0)return-1;let s=t.length;for(let n=0;n<i;n++)t.push(a),e.blueprint.push(a),e.data.push(null);return s}function a_(e,t){return e[Z3]?e[PC][w2]=t:e[Z3]=t,e[PC]=t,t}function Pe(e=1){Gx(s5(),E1(),ro()+e,!1)}function Gx(e,t,i,a){if(!a)if((t[i1]&3)===3){let s=e.preOrderCheckHooks;s!==null&&i6(t,s,i)}else{let s=e.preOrderHooks;s!==null&&a6(t,s,0,i)}mn(i)}var p8=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(p8||{});function bh(e,t,i,a){let s=t1(null);try{let[n,u,_]=e.inputs[i],g=null;(u&p8.SignalBased)!==0&&(g=t[n][Si]),g!==null&&g.transformFn!==void 0?a=g.transformFn(a):_!==null&&(a=_.call(t,a)),e.setInput!==null?e.setInput(t,g,a,i,n):sx(t,g,n,a)}finally{t1(s)}}var cn=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(cn||{}),NF;function o_(e,t){return NF(e,t)}var b8e=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function",Ch=new WeakMap,g3=new WeakSet;function VF(e,t){let i=Ch.get(e);if(!i||i.length===0)return;let a=t.parentNode,s=t.previousSibling;for(let n=i.length-1;n>=0;n--){let u=i[n],_=u.parentNode;u===t?(i.splice(n,1),g3.add(u),u.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(s&&u===s||_&&a&&_!==a)&&(i.splice(n,1),u.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),u.parentNode?.removeChild(u))}}function PF(e,t){let i=Ch.get(e);i?i.includes(t)||i.push(t):Ch.set(e,[t])}var H3=new Set,r_=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(r_||{}),c7=new ot(""),tw=new Set;function Zn(e){tw.has(e)||(tw.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Xx=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=q0({token:e,providedIn:"root",factory:()=>new e})}return e})(),FF=[0,1,2,3],zF=(()=>{class e{ngZone=Me(no);scheduler=Me(t4);errorHandler=Me(s7,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){Me(c7,{optional:!0})}execute(){let i=this.sequences.size>0;i&&vt(et.AfterRenderHooksStart),this.executing=!0;for(let a of FF)for(let s of this.sequences)if(!(s.erroredOrDestroyed||!s.hooks[a]))try{s.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let n=s.hooks[a];return n(s.pipelinedValue)},s.snapshot))}catch(n){s.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let a of this.sequences)a.afterRun(),a.once&&(this.sequences.delete(a),a.destroy());for(let a of this.deferredRegistrations)this.sequences.add(a);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),i&&vt(et.AfterRenderHooksEnd)}register(i){let{view:a}=i;a!==void 0?((a[Ts]??=[]).push(i),a7(a),a[i1]|=8192):this.executing?this.deferredRegistrations.add(i):this.addSequence(i)}addSequence(i){this.sequences.add(i),this.scheduler.notify(7)}unregister(i){this.executing&&this.sequences.has(i)?(i.erroredOrDestroyed=!0,i.pipelinedValue=void 0,i.once=!0):(this.sequences.delete(i),this.deferredRegistrations.delete(i))}maybeTrace(i,a){return a?a.run(r_.AFTER_NEXT_RENDER,i):i()}static \u0275prov=q0({token:e,providedIn:"root",factory:()=>new e})}return e})(),UF=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,i,a,s,n=null){this.impl=e,this.hooks=t,this.view=i,this.once=a,this.snapshot=n,this.unregisterOnDestroy=s?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[Ts];e&&(this.view[Ts]=e.filter(t=>t!==this))}};function jF(e,t){let i=t?.injector??Me(Lt);return Zn("NgAfterNextRender"),qF(e,i,t,!0)}function WF(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function qF(e,t,i,a){let s=t.get(Xx);s.impl??=t.get(zF);let n=t.get(c7,null,{optional:!0}),u=i?.manualCleanup!==!0?t.get(n7):null,_=t.get(Kd,null,{optional:!0}),g=new UF(s.impl,WF(e),_?.view,a,u,n?.snapshot(null));return s.impl.register(g),g}var $x=new ot("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:Me(Jo)})});function Kx(e,t,i){let a=e.get($x);if(Array.isArray(t))for(let s of t)a.queue.add(s),i?.detachedLeaveAnimationFns?.push(s);else a.queue.add(t),i?.detachedLeaveAnimationFns?.push(t);a.scheduler&&a.scheduler(e)}function GF(e,t){let i=e.get($x);if(t.detachedLeaveAnimationFns){for(let a of t.detachedLeaveAnimationFns)i.queue.delete(a);t.detachedLeaveAnimationFns=void 0}}function XF(e,t){for(let[i,a]of t)Kx(e,a.animateFns)}function iw(e,t,i,a){let s=e?.[_n]?.enter;t!==null&&s&&s.has(i.index)&&XF(a,s)}function As(e,t,i,a,s,n,u,_){if(s!=null){let g,C=!1;oo(s)?g=s:Ko(s)&&(C=!0,s=s[ao]);let I=Y2(s);e===0&&a!==null?(iw(_,a,n,i),u==null?Vx(t,a,I):R6(t,a,I,u||null,!0)):e===1&&a!==null?(iw(_,a,n,i),R6(t,a,I,u||null,!0),VF(n,I)):e===2?(_?.[_n]?.leave?.has(n.index)&&PF(n,I),g3.delete(I),aw(_,n,i,x=>{if(g3.has(I)){g3.delete(I);return}Px(t,I,C,x)})):e===3&&(g3.delete(I),aw(_,n,i,()=>{t.destroyNode(I)})),g!=null&&rz(t,e,i,g,n,a,u)}}function $F(e,t){Yx(e,t),t[ao]=null,t[ui]=null}function KF(e,t,i,a,s,n){a[ao]=s,a[ui]=t,m8(e,a,i,1,s,n)}function Yx(e,t){t[$2].changeDetectionScheduler?.notify(9),m8(e,t,t[l0],2,null,null)}function YF(e){let t=e[Z3];if(!t)return wu(e[Qe],e);for(;t;){let i=null;if(Ko(t))i=t[Z3];else{let a=t[g0];a&&(i=a)}if(!i){for(;t&&!t[w2]&&t!==e;)Ko(t)&&wu(t[Qe],t),t=t[i5];t===null&&(t=e),Ko(t)&&wu(t[Qe],t),i=t&&t[w2]}t=i}}function n_(e,t){let i=e[Ds],a=i.indexOf(t);i.splice(a,1)}function v8(e,t){if(i7(t))return;let i=t[l0];i.destroyNode&&m8(e,t,i,3,null,null),YF(t)}function wu(e,t){if(i7(t))return;let i=t1(null);try{t[i1]&=-129,t[i1]|=256,t[Qi]&&s8(t[Qi]),ez(e,t),JF(e,t),t[Qe].type===1&&t[l0].destroy();let a=t[hn];if(a!==null&&oo(t[i5])){a!==t[i5]&&n_(a,t);let s=t[Xa];s!==null&&s.detachView(e)}gh(t)}finally{t1(i)}}function aw(e,t,i,a){let s=e?.[_n];if(s==null||s.leave==null||!s.leave.has(t.index))return a(!1);e&&H3.add(e[tr]),Kx(i,()=>{if(s.leave&&s.leave.has(t.index)){let n=s.leave.get(t.index),u=[];if(n){for(let _=0;_<n.animateFns.length;_++){let g=n.animateFns[_],{promise:C}=g();u.push(C)}s.detachedLeaveAnimationFns=void 0}s.running=Promise.allSettled(u),QF(e,a)}else e&&H3.delete(e[tr]),a(!1)},s)}function QF(e,t){let i=e[_n]?.running;if(i){i.then(()=>{e[_n].running=void 0,H3.delete(e[tr]),t(!0)});return}t(!1)}function JF(e,t){let i=e.cleanup,a=t[T6];if(i!==null)for(let u=0;u<i.length-1;u+=2)if(typeof i[u]=="string"){let _=i[u+3];_>=0?a[_]():a[-_].unsubscribe(),u+=2}else{let _=a[i[u+1]];i[u].call(_)}a!==null&&(t[T6]=null);let s=t[$o];if(s!==null){t[$o]=null;for(let u=0;u<s.length;u++){let _=s[u];_()}}let n=t[dn];if(n!==null){t[dn]=null;for(let u of n)u.destroy()}}function ez(e,t){let i;if(e!=null&&(i=e.destroyHooks)!=null)for(let a=0;a<i.length;a+=2){let s=t[i[a]];if(!(s instanceof i4)){let n=i[a+1];if(Array.isArray(n))for(let u=0;u<n.length;u+=2){let _=s[n[u]],g=n[u+1];vt(et.LifecycleHookStart,_,g);try{g.call(_)}finally{vt(et.LifecycleHookEnd,_,g)}}else{vt(et.LifecycleHookStart,s,n);try{n.call(s)}finally{vt(et.LifecycleHookEnd,s,n)}}}}}function Qx(e,t,i){return tz(e,t.parent,i)}function tz(e,t,i){let a=t;for(;a!==null&&a.type&168;)t=a,a=t.parent;if(a===null)return i[ao];if(En(a)){let{encapsulation:s}=e.data[a.directiveStart+a.componentOffset];if(s===ja.None||s===ja.Emulated)return null}return ra(a,i)}function Jx(e,t,i){return az(e,t,i)}function iz(e,t,i){return e.type&40?ra(e,i):null}var az=iz,ow;function s_(e,t,i,a){let s=Qx(e,a,t),n=t[l0],u=a.parent||t[ui],_=Jx(u,a,t);if(s!=null)if(Array.isArray(i))for(let g=0;g<i.length;g++)JC(n,s,i[g],_,!1);else JC(n,s,i,_,!1);ow!==void 0&&ow(n,a,t,i,s)}function f3(e,t){if(t!==null){let i=t.type;if(i&3)return ra(t,e);if(i&4)return wh(-1,e[t.index]);if(i&8){let a=t.child;if(a!==null)return f3(e,a);{let s=e[t.index];return oo(s)?wh(-1,s):Y2(s)}}else{if(i&128)return f3(e,t.next);if(i&32)return o_(t,e)()||Y2(e[t.index]);{let a=eS(e,t);if(a!==null){if(Array.isArray(a))return a[0];let s=vn(e[Ii]);return f3(s,a)}else return f3(e,t.next)}}}return null}function eS(e,t){if(t!==null){let i=e[Ii][ui],a=t.projection;return i.projection[a]}return null}function wh(e,t){let i=g0+e+1;if(i<t.length){let a=t[i],s=a[Qe].firstChild;if(s!==null)return f3(a,s)}return t[pn]}function l_(e,t,i,a,s,n,u){for(;i!=null;){let _=a[er];if(i.type===128){i=i.next;continue}let g=a[i.index],C=i.type;if(u&&t===0&&(g&&Os(Y2(g),a),i.flags|=2),!Jd(i))if(C&8)l_(e,t,i.child,a,s,n,!1),As(t,e,_,s,g,i,n,a);else if(C&32){let I=o_(i,a),x;for(;x=I();)As(t,e,_,s,x,i,n,a);As(t,e,_,s,g,i,n,a)}else C&16?tS(e,t,a,i,s,n):As(t,e,_,s,g,i,n,a);i=u?i.projectionNext:i.next}}function m8(e,t,i,a,s,n){l_(i,a,e.firstChild,t,s,n,!1)}function oz(e,t,i){let a=t[l0],s=Qx(e,i,t),n=i.parent||t[ui],u=Jx(n,i,t);tS(a,0,t,i,s,u)}function tS(e,t,i,a,s,n){let u=i[Ii],_=u[ui].projection[a.projection];if(Array.isArray(_))for(let g=0;g<_.length;g++){let C=_[g];As(t,e,i[er],s,C,a,n,i)}else{let g=_,C=u[i5];Ax(a)&&(g.flags|=128),l_(e,t,g,C,s,n,!0)}}function rz(e,t,i,a,s,n,u){let _=a[pn],g=Y2(a);_!==g&&As(t,e,i,n,_,s,u);for(let C=g0;C<a.length;C++){let I=a[C];m8(I[Qe],I,e,t,n,_)}}function nz(e,t,i,a,s){if(t)s?e.addClass(i,a):e.removeClass(i,a);else{let n=a.indexOf("-")===-1?void 0:cn.DashCase;s==null?e.removeStyle(i,a,n):(typeof s=="string"&&s.endsWith("!important")&&(s=s.slice(0,-10),n|=cn.Important),e.setStyle(i,a,s,n))}}function iS(e,t,i,a,s){let n=ro(),u=a&2;try{mn(-1),u&&t.length>f0&&Gx(e,t,f0,!1);let _=u?et.TemplateUpdateStart:et.TemplateCreateStart;vt(_,s,i),i(a,s)}finally{mn(n);let _=u?et.TemplateUpdateEnd:et.TemplateCreateEnd;vt(_,s,i)}}function aS(e,t,i){pz(e,t,i),(i.flags&64)===64&&vz(e,t,i)}function c_(e,t,i=ra){let a=t.localNames;if(a!==null){let s=t.index+1;for(let n=0;n<a.length;n+=2){let u=a[n+1],_=u===-1?i(t,e):e[u];e[s++]=_}}}function sz(e,t,i,a){let s=a.get(lF,Lx)||i===ja.ShadowDom||i===ja.ExperimentalIsolatedShadowDom,n=e.selectRootElement(t,s);return lz(n),n}function lz(e){cz(e)}var cz=()=>null;function uz(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function hz(e,t,i,a,s,n){let u=t[Qe];if(u_(e,u,t,i,a)){En(e)&&_z(t,e.index);return}e.type&3&&(i=uz(i)),dz(e,t,i,a,s,n)}function dz(e,t,i,a,s,n){if(e.type&3){let u=ra(e,t);a=n!=null?n(a,e.value||"",i):a,s.setProperty(u,i,a)}else e.type&12}function _z(e,t){let i=Q2(t,e);i[i1]&16||(i[i1]|=64)}function pz(e,t,i){let a=i.directiveStart,s=i.directiveEnd;En(i)&&OF(t,i,e.data[a+i.componentOffset]),e.firstCreatePass||D6(i,t);let n=i.initialInputs;for(let u=a;u<s;u++){let _=e.data[u],g=L3(t,e,u,i);if(Os(g,t),n!==null&&Cz(t,u-a,g,_,i,n),K2(_)){let C=Q2(i.index,t);C[H0]=L3(t,e,u,i)}}}function vz(e,t,i){let a=i.directiveStart,s=i.directiveEnd,n=i.index,u=eP();try{mn(n);for(let _=a;_<s;_++){let g=e.data[_],C=t[_];hh(_),(g.hostBindings!==null||g.hostVars!==0||g.hostAttrs!==null)&&mz(g,C)}}finally{mn(-1),hh(u)}}function mz(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function gz(e,t){let i=e.directiveRegistry,a=null;if(i)for(let s=0;s<i.length;s++){let n=i[s];jx(t,n.selectors,!1)&&(a??=[],K2(n)?a.unshift(n):a.push(n))}return a}function fz(e,t,i,a,s,n){let u=ra(e,t);bz(t[l0],u,n,e.value,i,a,s)}function bz(e,t,i,a,s,n,u){if(n==null)e.removeAttribute(t,s,i);else{let _=u==null?Zd(n):u(n,a||"",s);e.setAttribute(t,s,_,i)}}function Cz(e,t,i,a,s,n){let u=n[t];if(u!==null)for(let _=0;_<u.length;_+=2){let g=u[_],C=u[_+1];bh(a,i,g,C)}}function oS(e,t,i,a,s){let n=f0+i,u=t[Qe],_=s(u,t,e,a,i);t[n]=_,o7(e,!0);let g=e.type===2;return g?(Fx(t[l0],_,e),(qV()===0||Vd(e))&&Os(_,t),GV()):Os(_,t),qd()&&(!g||!Jd(e))&&s_(u,t,_,e),e}function rS(e){let t=e;return zA()?UA():(t=t.parent,o7(t,!1)),t}function wz(e,t){let i=e[er];if(!i)return;let a;try{a=i.get(h8,null)}catch{a=null}a?.(t)}function u_(e,t,i,a,s){let n=e.inputs?.[a],u=e.hostDirectiveInputs?.[a],_=!1;if(u)for(let g=0;g<u.length;g+=2){let C=u[g],I=u[g+1],x=t.data[C];bh(x,i[C],I,s),_=!0}if(n)for(let g of n){let C=i[g],I=t.data[g];bh(I,C,a,s),_=!0}return _}function yz(e,t){let i=Q2(t,e),a=i[Qe];Az(a,i);let s=i[ao];s!==null&&i[Hs]===null&&(i[Hs]=Hx(s,i[er])),vt(et.ComponentStart);try{h_(a,i,i[H0])}finally{vt(et.ComponentEnd,i[H0])}}function Az(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}function h_(e,t,i){jd(t);try{let a=e.viewQuery;a!==null&&fh(1,a,i);let s=e.template;s!==null&&iS(e,t,s,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),t[Xa]?.finishViewCreation(e),e.staticContentQueries&&Dx(e,t),e.staticViewQueries&&fh(2,e.viewQuery,i);let n=e.components;n!==null&&xz(t,n)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),a}finally{t[i1]&=-5,Wd()}}function xz(e,t){for(let i=0;i<t.length;i++)yz(e,t[i])}function a4(e,t,i,a){let s=t1(null);try{let n=t.tView,u=e[i1]&4096?4096:16,_=i_(e,n,i,u,null,t,null,null,a?.injector??null,a?.embeddedViewInjector??null,a?.dehydratedView??null),g=e[t.index];_[hn]=g;let C=e[Xa];return C!==null&&(_[Xa]=C.createEmbeddedView(n)),h_(n,_,i),_}finally{t1(s)}}function Ns(e,t){return!t||t.firstChild===null||Ax(e)}function O6(e,t,i,a,s=!1){for(;i!==null;){if(i.type===128){i=s?i.projectionNext:i.next;continue}let n=t[i.index];n!==null&&a.push(Y2(n)),oo(n)&&Sz(n,a);let u=i.type;if(u&8)O6(e,t,i.child,a);else if(u&32){let _=o_(i,t),g;for(;g=_();)a.push(g)}else if(u&16){let _=eS(t,i);if(Array.isArray(_))a.push(..._);else{let g=vn(t[Ii]);O6(g[Qe],g,_,a,!0)}}i=s?i.projectionNext:i.next}return a}function Sz(e,t){for(let i=g0;i<e.length;i++){let a=e[i],s=a[Qe].firstChild;s!==null&&O6(a[Qe],a,s,t)}e[pn]!==e[ao]&&t.push(e[pn])}function nS(e){if(e[Ts]!==null){for(let t of e[Ts])t.impl.addSequence(t);e[Ts].length=0}}var sS=[];function Iz(e){return e[Qi]??Tz(e)}function Tz(e){let t=sS.pop()??Object.create(Mz);return t.lView=e,t}function Bz(e){e.lView[Qi]!==e&&(e.lView=null,sS.push(e))}var Mz=C1(Te({},Q3),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{a7(e.lView)},consumerOnSignalRead(){this.lView[Qi]=this}});function Ez(e){let t=e[Qi]??Object.create(Zz);return t.lView=e,t}var Zz=C1(Te({},Q3),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=vn(e.lView);for(;t&&!lS(t[Qe]);)t=vn(t);t&&zd(t)},consumerOnSignalRead(){this.lView[Qi]=this}});function lS(e){return e.type!==2}function cS(e){if(e[dn]===null)return;let t=!0;for(;t;){let i=!1;for(let a of e[dn])a.dirty&&(i=!0,a.zone===null||Zone.current===a.zone?a.run():a.zone.run(()=>a.run()));t=i&&!!(e[i1]&8192)}}var kz=100;function uS(e,t=0){let i=e[$2].rendererFactory,a=!1;a||i.begin?.();try{Lz(e,t)}finally{a||i.end?.()}}function Lz(e,t){let i=WA();try{E6(!0),yh(e,t);let a=0;for(;k3(e);){if(a===kz)throw new V1(103,!1);a++,yh(e,1)}}finally{E6(i)}}function Hz(e,t,i,a){if(i7(t))return;let s=t[i1],n=!1,u=!1;jd(t);let _=!0,g=null,C=null;n||(lS(e)?(C=Iz(t),g=w6(C)):NO()===null?(_=!1,C=Ez(t),g=w6(C)):t[Qi]&&(s8(t[Qi]),t[Qi]=null));try{LA(t),YV(e.bindingStartIndex),i!==null&&iS(e,t,i,2,a);let I=(s&3)===3;if(!n)if(I){let M=e.preOrderCheckHooks;M!==null&&i6(t,M,null)}else{let M=e.preOrderHooks;M!==null&&a6(t,M,0,null),bu(t,0)}if(u||Dz(t),cS(t),hS(t,0),e.contentQueries!==null&&Dx(e,t),!n)if(I){let M=e.contentCheckHooks;M!==null&&i6(t,M)}else{let M=e.contentHooks;M!==null&&a6(t,M,1),bu(t,1)}Oz(e,t);let x=e.components;x!==null&&_S(t,x,0);let L=e.viewQuery;if(L!==null&&fh(2,L,a),!n)if(I){let M=e.viewCheckHooks;M!==null&&i6(t,M)}else{let M=e.viewHooks;M!==null&&a6(t,M,2),bu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[fu]){for(let M of t[fu])M();t[fu]=null}n||(nS(t),t[i1]&=-73)}catch(I){throw n||a7(t),I}finally{C!==null&&(fd(C,g),_&&Bz(C)),Wd()}}function hS(e,t){for(let i=Ix(e);i!==null;i=Tx(i))for(let a=g0;a<i.length;a++){let s=i[a];dS(s,t)}}function Dz(e){for(let t=Ix(e);t!==null;t=Tx(t)){if(!(t[i1]&2))continue;let i=t[Ds];for(let a=0;a<i.length;a++){let s=i[a];zd(s)}}}function Rz(e,t,i){vt(et.ComponentStart);let a=Q2(t,e);try{dS(a,i)}finally{vt(et.ComponentEnd,a[H0])}}function dS(e,t){Fd(e)&&yh(e,t)}function yh(e,t){let i=e[Qe],a=e[i1],s=e[Qi],n=!!(t===0&&a&16);if(n||=!!(a&64&&t===0),n||=!!(a&1024),n||=!!(s?.dirty&&bd(s)),n||=!1,s&&(s.dirty=!1),e[i1]&=-9217,n)Hz(i,e,i.template,e[H0]);else if(a&8192){let u=t1(null);try{cS(e),hS(e,1);let _=i.components;_!==null&&_S(e,_,1),nS(e)}finally{t1(u)}}}function _S(e,t,i){for(let a=0;a<t.length;a++)Rz(e,t[a],i)}function Oz(e,t){let i=e.hostBindingOpCodes;if(i!==null)try{for(let a=0;a<i.length;a++){let s=i[a];if(s<0)mn(~s);else{let n=s,u=i[++a],_=i[++a];JV(u,n);let g=t[n];vt(et.HostBindingsUpdateStart,g);try{_(2,g)}finally{vt(et.HostBindingsUpdateEnd,g)}}}}finally{mn(-1)}}function d_(e,t){let i=WA()?64:1088;for(e[$2].changeDetectionScheduler?.notify(t);e;){e[i1]|=i;let a=vn(e);if(M6(e)&&!a)return e;e=a}return null}function pS(e,t,i,a){return[e,!0,0,t,null,a,null,i,null,null]}function vS(e,t){let i=g0+t;if(i<e.length)return e[i]}function o4(e,t,i,a=!0){let s=t[Qe];if(Nz(s,t,e,i),a){let u=wh(i,e),_=t[l0],g=_.parentNode(e[pn]);g!==null&&KF(s,e[ui],_,t,g,u)}let n=t[Hs];n!==null&&n.firstChild!==null&&(n.firstChild=null)}function mS(e,t){let i=D3(e,t);return i!==void 0&&v8(i[Qe],i),i}function D3(e,t){if(e.length<=g0)return;let i=g0+t,a=e[i];if(a){let s=a[hn];s!==null&&s!==e&&n_(s,a),t>0&&(e[i-1][w2]=a[w2]);let n=I6(e,g0+t);$F(a[Qe],a);let u=n[Xa];u!==null&&u.detachView(n[Qe]),a[i5]=null,a[w2]=null,a[i1]&=-129}return a}function Nz(e,t,i,a){let s=g0+a,n=i.length;a>0&&(i[s-1][w2]=t),a<n-g0?(t[w2]=i[s],bA(i,g0+a,t)):(i.push(t),t[w2]=null),t[i5]=i;let u=t[hn];u!==null&&i!==u&&gS(u,t);let _=t[Xa];_!==null&&_.insertView(e),ch(t),t[i1]|=128}function gS(e,t){let i=e[Ds],a=t[i5];if(Ko(a))e[i1]|=2;else{let s=a[i5][Ii];t[Ii]!==s&&(e[i1]|=2)}i===null?e[Ds]=[t]:i.push(t)}var R3=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[Qe];return O6(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[H0]}set context(e){this._lView[H0]=e}get destroyed(){return i7(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[i5];if(oo(e)){let t=e[B6],i=t?t.indexOf(this):-1;i>-1&&(D3(e,i),I6(t,i))}this._attachedToViewContainer=!1}v8(this._lView[Qe],this._lView)}onDestroy(e){HA(this._lView,e)}markForCheck(){d_(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[i1]&=-129}reattach(){ch(this._lView),this._lView[i1]|=128}detectChanges(){this._lView[i1]|=1024,uS(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new V1(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=M6(this._lView),t=this._lView[hn];t!==null&&!e&&n_(t,this._lView),Yx(this._lView[Qe],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new V1(902,!1);this._appRef=e;let t=M6(this._lView),i=this._lView[hn];i!==null&&!t&&gS(i,this._lView),ch(this._lView)}};function Vz(e){return k3(e._lView)||!!(e._lView[i1]&64)}function Pz(e){zd(e._lView)}var N6=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Fz;constructor(i,a,s){this._declarationLView=i,this._declarationTContainer=a,this.elementRef=s}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,a){return this.createEmbeddedViewImpl(i,a)}createEmbeddedViewImpl(i,a,s){let n=a4(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:a,dehydratedView:s});return new R3(n)}}return e})();function Fz(){return __(n2(),E1())}function __(e,t){return e.type&4?new N6(t,e,l7(e,t)):null}function u7(e,t,i,a,s){let n=e.data[t];if(n===null)n=zz(e,t,i,a,s),QV()&&(n.flags|=32);else if(n.type&64){n.type=i,n.value=a,n.attrs=s;let u=$V();n.injectorIndex=u===null?-1:u.injectorIndex}return o7(n,!0),n}function zz(e,t,i,a,s){let n=FA(),u=zA(),_=u?n:n&&n.parent,g=e.data[t]=jz(e,_,i,t,a,s);return Uz(e,g,n,u),g}function Uz(e,t,i,a){e.firstChild===null&&(e.firstChild=t),i!==null&&(a?i.child==null&&t.parent!==null&&(i.child=t):i.next===null&&(i.next=t,t.prev=i))}function jz(e,t,i,a,s,n){let u=t?t.injectorIndex:-1,_=0;return NA()&&(_|=128),{type:i,index:a,insertBeforeIndex:null,injectorIndex:u,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:_,providerIndexes:0,value:s,attrs:n,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Wz(e){let t=e[FC]??[],i=e[i5][l0],a=[];for(let s of t)s.data[sF]!==void 0?a.push(s):qz(s,i);e[FC]=a}function qz(e,t){let i=0,a=e.firstChild;if(a){let s=e.data[nF];for(;i<s;){let n=a.nextSibling;Px(t,a,!1),a=n,i++}}}var Gz=()=>null,Xz=()=>null;function V6(e,t){return Gz(e,t)}function fS(e,t,i){return Xz(e,t,i)}var $z=class{},bS=class{},Kz=class{resolveComponentFactory(e){throw new V1(917,!1)}},r4=class{static NULL=new Kz},p_=class{},CS=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Yz()}return e})();function Yz(){let e=E1(),t=n2(),i=Q2(t.index,e);return(Ko(i)?i:e)[l0]}var Qz=(()=>{class e{static \u0275prov=q0({token:e,providedIn:"root",factory:()=>null})}return e})(),yu={},Jz=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){let a=this.injector.get(e,yu,i);return a!==yu||t===yu?a:this.parentInjector.get(e,t,i)}};function P6(e,t,i){let a=i?e.styles:null,s=i?e.classes:null,n=0;if(t!==null)for(let u=0;u<t.length;u++){let _=t[u];if(typeof _=="number")n=_;else if(n==1)s=ah(s,_);else if(n==2){let g=_,C=t[++u];a=ah(a,g+": "+C+";")}}i?e.styles=a:e.stylesWithoutHost=a,i?e.classes=s:e.classesWithoutHost=s}function U0(e,t=0){let i=E1();if(i===null)return Ut(e,t);let a=n2();return bx(a,i,t5(e),t)}function eU(e,t,i,a,s){let n=a===null?null:{"":-1},u=s(e,i);if(u!==null){let _=u,g=null,C=null;for(let I of u)if(I.resolveHostDirectives!==null){[_,g,C]=I.resolveHostDirectives(u);break}aU(e,t,i,_,n,g,C)}n!==null&&a!==null&&tU(i,a,n)}function tU(e,t,i){let a=e.localNames=[];for(let s=0;s<t.length;s+=2){let n=i[t[s+1]];if(n==null)throw new V1(-301,!1);a.push(t[s],n)}}function iU(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function aU(e,t,i,a,s,n,u){let _=a.length,g=null;for(let L=0;L<_;L++){let M=a[L];g===null&&K2(M)&&(g=M,iU(e,i,L)),vh(D6(i,t),e,M.type)}cU(i,e.data.length,_),g?.viewProvidersResolver&&g.viewProvidersResolver(g);for(let L=0;L<_;L++){let M=a[L];M.providersResolver&&M.providersResolver(M)}let C=!1,I=!1,x=qx(e,t,_,null);_>0&&(i.directiveToIndex=new Map);for(let L=0;L<_;L++){let M=a[L];if(i.mergedAttrs=Rs(i.mergedAttrs,M.hostAttrs),rU(e,i,t,x,M),lU(x,M,s),u!==null&&u.has(M)){let[P,R]=u.get(M);i.directiveToIndex.set(M.type,[x,P+i.directiveStart,R+i.directiveStart])}else(n===null||!n.has(M))&&i.directiveToIndex.set(M.type,x);M.contentQueries!==null&&(i.flags|=4),(M.hostBindings!==null||M.hostAttrs!==null||M.hostVars!==0)&&(i.flags|=64);let Z=M.type.prototype;!C&&(Z.ngOnChanges||Z.ngOnInit||Z.ngDoCheck)&&((e.preOrderHooks??=[]).push(i.index),C=!0),!I&&(Z.ngOnChanges||Z.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(i.index),I=!0),x++}oU(e,i,n)}function oU(e,t,i){for(let a=t.directiveStart;a<t.directiveEnd;a++){let s=e.data[a];if(i===null||!i.has(s))rw(0,t,s,a),rw(1,t,s,a),sw(t,a,!1);else{let n=i.get(s);nw(0,t,n,a),nw(1,t,n,a),sw(t,a,!0)}}}function rw(e,t,i,a){let s=e===0?i.inputs:i.outputs;for(let n in s)if(s.hasOwnProperty(n)){let u;e===0?u=t.inputs??={}:u=t.outputs??={},u[n]??=[],u[n].push(a),wS(t,n)}}function nw(e,t,i,a){let s=e===0?i.inputs:i.outputs;for(let n in s)if(s.hasOwnProperty(n)){let u=s[n],_;e===0?_=t.hostDirectiveInputs??={}:_=t.hostDirectiveOutputs??={},_[u]??=[],_[u].push(a,n),wS(t,u)}}function wS(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function sw(e,t,i){let{attrs:a,inputs:s,hostDirectiveInputs:n}=e;if(a===null||!i&&s===null||i&&n===null||e_(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let u=null,_=0;for(;_<a.length;){let g=a[_];if(g===0){_+=4;continue}else if(g===5){_+=2;continue}else if(typeof g=="number")break;if(!i&&s.hasOwnProperty(g)){let C=s[g];for(let I of C)if(I===t){u??=[],u.push(g,a[_+1]);break}}else if(i&&n.hasOwnProperty(g)){let C=n[g];for(let I=0;I<C.length;I+=2)if(C[I]===t){u??=[],u.push(C[I+1],a[_+1]);break}}_+=2}e.initialInputs??=[],e.initialInputs.push(u)}function rU(e,t,i,a,s){e.data[a]=s;let n=s.factory||(s.factory=ks(s.type,!0)),u=new i4(n,K2(s),U0,null);e.blueprint[a]=u,i[a]=u,nU(e,t,a,qx(e,i,s.hostVars,x2),s)}function nU(e,t,i,a,s){let n=s.hostBindings;if(n){let u=e.hostBindingOpCodes;u===null&&(u=e.hostBindingOpCodes=[]);let _=~t.index;sU(u)!=_&&u.push(_),u.push(i,a,n)}}function sU(e){let t=e.length;for(;t>0;){let i=e[--t];if(typeof i=="number"&&i<0)return i}return 0}function lU(e,t,i){if(i){if(t.exportAs)for(let a=0;a<t.exportAs.length;a++)i[t.exportAs[a]]=e;K2(t)&&(i[""]=e)}}function cU(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}function yS(e,t,i,a,s,n,u,_){let g=t[Qe],C=g.consts,I=$a(C,u),x=u7(g,e,i,a,I);return n&&eU(g,t,x,$a(C,_),s),x.mergedAttrs=Rs(x.mergedAttrs,x.attrs),x.attrs!==null&&P6(x,x.attrs,!1),x.mergedAttrs!==null&&P6(x,x.mergedAttrs,!0),g.queries!==null&&g.queries.elementStart(g,x),x}function AS(e,t){DP(e,t),MA(t)&&e.queries.elementEnd(t)}function uU(e,t,i,a,s,n){let u=t.consts,_=$a(u,s),g=u7(t,e,i,a,_);if(g.mergedAttrs=Rs(g.mergedAttrs,g.attrs),n!=null){let C=$a(u,n);g.localNames=[];for(let I=0;I<C.length;I+=2)g.localNames.push(C[I],-1)}return g.attrs!==null&&P6(g,g.attrs,!1),g.mergedAttrs!==null&&P6(g,g.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,g),g}function hU(e,t,i){return e[t]=i}function dU(e,t){return e[t]}function kn(e,t,i){if(i===x2)return!1;let a=e[t];return Object.is(a,i)?!1:(e[t]=i,!0)}function Au(e,t,i){return function a(s){let n=a.__ngNativeEl__;n!==void 0&&cF(s,n);let u=En(e)?Q2(e.index,t):t;d_(u,5);let _=t[H0],g=lw(t,_,i,s),C=a.__ngNextListenerFn__;for(;C;)g=lw(t,_,C,s)&&g,C=C.__ngNextListenerFn__;return g}}function lw(e,t,i,a){let s=t1(null);try{return vt(et.OutputStart,t,i),i(a)!==!1}catch(n){return wz(e,n),!1}finally{vt(et.OutputEnd,t,i),t1(s)}}function _U(e,t,i,a,s,n,u,_){let g=Vd(e),C=!1,I=null;if(!a&&g&&(I=vU(t,i,n,e.index)),I!==null){let x=I.__ngLastListenerFn__||I;x.__ngNextListenerFn__=u,I.__ngLastListenerFn__=u,C=!0}else{let x=ra(e,i),L=a?a(x):x;hF(i,L,n,_),a||(_.__ngNativeEl__=x);let M=s.listen(L,n,_);if(!pU(n)){let Z=a?P=>a(Y2(P[e.index])):e.index;xS(Z,t,i,n,_,M,!1)}}return C}function pU(e){return e.startsWith("animation")||e.startsWith("transition")}function vU(e,t,i,a){let s=e.cleanup;if(s!=null)for(let n=0;n<s.length-1;n+=2){let u=s[n];if(u===i&&s[n+1]===a){let _=t[T6],g=s[n+2];return _&&_.length>g?_[g]:null}typeof u=="string"&&(n+=2)}return null}function xS(e,t,i,a,s,n,u){let _=t.firstCreatePass?RA(t):null,g=DA(i),C=g.length;g.push(s,n),_&&_.push(a,e,C,(C+1)*(u?-1:1))}function cw(e,t,i,a,s,n){let u=t[i],_=t[Qe],g=_.data[i].outputs[a],C=u[g].subscribe(n);xS(e.index,_,t,s,n,C,!0)}var Ah=Symbol("BINDING");function SS(e){return e.debugInfo?.className||e.type.name||null}var mU=class extends r4{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=M3(e);return new IS(t,this.ngModule)}};function gU(e){return Object.keys(e).map(t=>{let[i,a,s]=e[t],n={propName:i,templateName:t,isSignal:(a&p8.SignalBased)!==0};return s&&(n.transform=s),n})}function fU(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function bU(e,t,i){let a=t instanceof Jo?t:t?.injector;return a&&e.getStandaloneInjector!==null&&(a=e.getStandaloneInjector(a)||a),a?new Jz(i,a):i}function CU(e){let t=e.get(p_,null);if(t===null)throw new V1(407,!1);let i=e.get(Qz,null),a=e.get(t4,null),s=e.get(c7,null,{optional:!0});return{rendererFactory:t,sanitizer:i,changeDetectionScheduler:a,ngReflect:!1,tracingService:s}}function wU(e,t){let i=yU(e);return Nx(t,i,i==="svg"?PV:i==="math"?FV:null)}function yU(e){return(e.selectors[0][0]||"div").toLowerCase()}var IS=class extends bS{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=gU(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=fU(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=LF(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,i,a,s,n){vt(et.DynamicComponentStart);let u=t1(null);try{let _=this.componentDef,g=bU(_,a||this.ngModule,e),C=CU(g),I=C.tracingService;return I&&I.componentCreate?I.componentCreate(SS(_),()=>this.createComponentRef(C,g,t,i,s,n)):this.createComponentRef(C,g,t,i,s,n)}finally{t1(u)}}createComponentRef(e,t,i,a,s,n){let u=this.componentDef,_=AU(a,u,n,s),g=e.rendererFactory.createRenderer(null,u),C=a?sz(g,a,u.encapsulation,t):wU(u,g),I=n?.some(uw)||s?.some(M=>typeof M!="function"&&M.bindings.some(uw)),x=i_(null,_,null,512|Wx(u),null,null,e,g,t,null,Hx(C,t,!0));x[f0]=C,jd(x);let L=null;try{let M=yS(f0,x,2,"#host",()=>_.directiveRegistry,!0,0);Fx(g,C,M),Os(C,x),aS(_,x,M),Rx(_,M,x),AS(_,M),i!==void 0&&IU(M,this.ngContentSelectors,i),L=Q2(M.index,x),x[H0]=L[H0],h_(_,x,null)}catch(M){throw L!==null&&gh(L),gh(x),M}finally{vt(et.DynamicComponentEnd),Wd()}return new SU(this.componentType,x,!!I)}};function AU(e,t,i,a){let s=e?["ng-version","21.2.12"]:HF(t.selectors[0]),n=null,u=null,_=0;if(i)for(let C of i)_+=C[Ah].requiredVars,C.create&&(C.targetIdx=0,(n??=[]).push(C)),C.update&&(C.targetIdx=0,(u??=[]).push(C));if(a)for(let C=0;C<a.length;C++){let I=a[C];if(typeof I!="function")for(let x of I.bindings){_+=x[Ah].requiredVars;let L=C+1;x.create&&(x.targetIdx=L,(n??=[]).push(x)),x.update&&(x.targetIdx=L,(u??=[]).push(x))}}let g=[t];if(a)for(let C of a){let I=typeof C=="function"?C:C.type,x=Md(I);g.push(x)}return t_(0,null,xU(n,u),1,_,g,null,null,null,[s],null)}function xU(e,t){return!e&&!t?null:i=>{if(i&1&&e)for(let a of e)a.create();if(i&2&&t)for(let a of t)a.update()}}function uw(e){let t=e[Ah].kind;return t==="input"||t==="twoWay"}var SU=class extends $z{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,i){super(),this._rootLView=t,this._hasInputBindings=i,this._tNode=Pd(t[Qe],f0),this.location=l7(this._tNode,t),this.instance=Q2(this._tNode.index,t)[H0],this.hostView=this.changeDetectorRef=new R3(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let a=this._rootLView,s=u_(i,a[Qe],a,e,t);this.previousInputValues.set(e,t);let n=Q2(i.index,a);d_(n,1)}get injector(){return new B3(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function IU(e,t,i){let a=e.projection=[];for(let s=0;s<t.length;s++){let n=i[s];a.push(n!=null&&n.length?Array.from(n):null)}}var v_=(()=>{class e{static __NG_ELEMENT_ID__=TU}return e})();function TU(){let e=n2();return BS(e,E1())}var BU=class TS extends v_{_lContainer;_hostTNode;_hostLView;constructor(t,i,a){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=a}get element(){return l7(this._hostTNode,this._hostLView)}get injector(){return new B3(this._hostTNode,this._hostLView)}get parentInjector(){let t=Qd(this._hostTNode,this._hostLView);if(_x(t)){let i=H6(t,this._hostLView),a=L6(t),s=i[Qe].data[a+8];return new B3(s,i)}else return new B3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let i=hw(this._lContainer);return i!==null&&i[t]||null}get length(){return this._lContainer.length-g0}createEmbeddedView(t,i,a){let s,n;typeof a=="number"?s=a:a!=null&&(s=a.index,n=a.injector);let u=V6(this._lContainer,t.ssrId),_=t.createEmbeddedViewImpl(i||{},n,u);return this.insertImpl(_,s,Ns(this._hostTNode,u)),_}createComponent(t,i,a,s,n,u,_){let g=t&&!MP(t),C;if(g)C=i;else{let R=i||{};C=R.index,a=R.injector,s=R.projectableNodes,n=R.environmentInjector||R.ngModuleRef,u=R.directives,_=R.bindings}let I=g?t:new IS(M3(t)),x=a||this.parentInjector;if(!n&&I.ngModule==null){let R=(g?x:this.parentInjector).get(Jo,null);R&&(n=R)}let L=M3(I.componentType??{}),M=V6(this._lContainer,L?.id??null),Z=M?.firstChild??null,P=I.create(x,s,Z,n,u,_);return this.insertImpl(P.hostView,C,Ns(this._hostTNode,M)),P}insert(t,i){return this.insertImpl(t,i,!0)}insertImpl(t,i,a){let s=t._lView;if(zV(s)){let _=this.indexOf(t);if(_!==-1)this.detach(_);else{let g=s[i5],C=new TS(g,g[ui],g[i5]);C.detach(C.indexOf(t))}}let n=this._adjustIndex(i),u=this._lContainer;return o4(u,s,n,a),t.attachToViewContainerRef(),bA(xu(u),n,t),t}move(t,i){return this.insert(t,i)}indexOf(t){let i=hw(this._lContainer);return i!==null?i.indexOf(t):-1}remove(t){let i=this._adjustIndex(t,-1),a=D3(this._lContainer,i);a&&(I6(xu(this._lContainer),i),v8(a[Qe],a))}detach(t){let i=this._adjustIndex(t,-1),a=D3(this._lContainer,i);return a&&I6(xu(this._lContainer),i)!=null?new R3(a):null}_adjustIndex(t,i=0){return t??this.length+i}};function hw(e){return e[B6]}function xu(e){return e[B6]||(e[B6]=[])}function BS(e,t){let i,a=t[e.index];return oo(a)?i=a:(i=pS(a,t,null,e),t[e.index]=i,a_(t,i)),EU(i,t,e,a),new BU(i,e,t)}function MU(e,t){let i=e[l0],a=i.createComment(""),s=ra(t,e),n=i.parentNode(s);return R6(i,n,a,i.nextSibling(s),!1),a}var EU=LU,ZU=()=>!1;function kU(e,t,i){return ZU(e,t,i)}function LU(e,t,i,a){if(e[pn])return;let s;i.type&8?s=Y2(a):s=MU(t,i),e[pn]=s}var HU=class MS{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new MS(this.queryList)}setDirty(){this.queryList.setDirty()}},DU=class ES{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let i=t.queries;if(i!==null){let a=t.contentQueries!==null?t.contentQueries[0]:i.length,s=[];for(let n=0;n<a;n++){let u=i.getByIndex(n),_=this.queries[u.indexInDeclarationView];s.push(_.clone())}return new ES(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)DS(t,i).matches!==null&&this.queries[i].setDirty()}},RU=class{flags;read;predicate;constructor(e,t,i=null){this.flags=t,this.read=i,typeof e=="string"?this.predicate=WU(e):this.predicate=e}},OU=class ZS{queries;constructor(t=[]){this.queries=t}elementStart(t,i){for(let a=0;a<this.queries.length;a++)this.queries[a].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let a=0;a<this.length;a++){let s=i!==null?i.length:0,n=this.getByIndex(a).embeddedTView(t,s);n&&(n.indexInDeclarationView=a,i!==null?i.push(n):i=[n])}return i!==null?new ZS(i):null}template(t,i){for(let a=0;a<this.queries.length;a++)this.queries[a].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},NU=class kS{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,i=-1){this.metadata=t,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new kS(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,a=t.parent;for(;a!==null&&a.type&8&&a.index!==i;)a=a.parent;return i===(a!==null?a.index:-1)}return this._appliesToNextNode}matchTNode(t,i){let a=this.metadata.predicate;if(Array.isArray(a))for(let s=0;s<a.length;s++){let n=a[s];this.matchTNodeWithReadOption(t,i,VU(i,n)),this.matchTNodeWithReadOption(t,i,o6(i,t,n,!1,!1))}else a===N6?i.type&4&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,o6(i,t,a,!1,!1))}matchTNodeWithReadOption(t,i,a){if(a!==null){let s=this.metadata.read;if(s!==null)if(s===Ht||s===v_||s===N6&&i.type&4)this.addMatch(i.index,-2);else{let n=o6(i,t,s,!1,!1);n!==null&&this.addMatch(i.index,n)}else this.addMatch(i.index,a)}}addMatch(t,i){this.matches===null?this.matches=[t,i]:this.matches.push(t,i)}};function VU(e,t){let i=e.localNames;if(i!==null){for(let a=0;a<i.length;a+=2)if(i[a]===t)return i[a+1]}return null}function PU(e,t){return e.type&11?l7(e,t):e.type&4?__(e,t):null}function FU(e,t,i,a){return i===-1?PU(t,e):i===-2?zU(e,t,a):L3(e,e[Qe],i,t)}function zU(e,t,i){if(i===Ht)return l7(t,e);if(i===N6)return __(t,e);if(i===v_)return BS(t,e)}function LS(e,t,i,a){let s=t[Xa].queries[a];if(s.matches===null){let n=e.data,u=i.matches,_=[];for(let g=0;u!==null&&g<u.length;g+=2){let C=u[g];if(C<0)_.push(null);else{let I=n[C];_.push(FU(t,I,u[g+1],i.metadata.read))}}s.matches=_}return s.matches}function xh(e,t,i,a){let s=e.queries.getByIndex(i),n=s.matches;if(n!==null){let u=LS(e,t,s,i);for(let _=0;_<n.length;_+=2){let g=n[_];if(g>0)a.push(u[_/2]);else{let C=n[_+1],I=t[-g];for(let x=g0;x<I.length;x++){let L=I[x];L[hn]===L[i5]&&xh(L[Qe],L,C,a)}if(I[Ds]!==null){let x=I[Ds];for(let L=0;L<x.length;L++){let M=x[L];xh(M[Qe],M,C,a)}}}}}return a}function HS(e,t){return e[Xa].queries[t].queryList}function UU(e,t,i){let a=new JP((i&4)===4);return WV(e,t,a,a.destroy),(t[Xa]??=new DU).queries.push(new HU(a))-1}function jU(e,t,i){let a=s5();return a.firstCreatePass&&(qU(a,new RU(e,t,i),-1),(t&2)===2&&(a.staticViewQueries=!0)),UU(a,E1(),t)}function WU(e){return e.split(",").map(t=>t.trim())}function qU(e,t,i){e.queries===null&&(e.queries=new OU),e.queries.track(new NU(t,i))}function DS(e,t){return e.queries.getByIndex(t)}function GU(e,t){let i=e[Qe],a=DS(i,t);return a.crossesNgTemplate?xh(i,e,t,[]):LS(i,e,a,t)}function RS(e,t,i){let a,s=Dy(()=>{a._dirtyCounter();let n=YU(a,e);if(t&&n===void 0)throw new V1(-951,!1);return n});return a=s[Si],a._dirtyCounter=xi(0),a._flatValue=void 0,s}function XU(e){return RS(!0,!1,e)}function $U(e){return RS(!0,!0,e)}function KU(e,t){let i=e[Si];i._lView=E1(),i._queryIndex=t,i._queryList=HS(i._lView,t),i._queryList.onDirty(()=>i._dirtyCounter.update(a=>a+1))}function YU(e,t){let i=e._lView,a=e._queryIndex;if(i===void 0||a===void 0||i[i1]&4)return t?void 0:P5;let s=HS(i,a),n=GU(i,a);return s.reset(n,YP),t?s.first:s._changesDetected||e._flatValue===void 0?e._flatValue=s.toArray():e._flatValue}var Sh=class{},OS=class extends Sh{injector;componentFactoryResolver=new mU(this);instance=null;constructor(e){super();let t=new Nd([...e.providers,{provide:Sh,useValue:this},{provide:r4,useValue:this.componentFactoryResolver}],e.parent||Od(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function QU(e,t,i=null){return new OS({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}var JU=(()=>{class e{_injector;cachedInjectors=new Map;constructor(i){this._injector=i}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let a=AA(!1,i.type),s=a.length>0?QU([a],this._injector,""):null;this.cachedInjectors.set(i,s)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=q0({token:e,providedIn:"environment",factory:()=>new e(Ut(Jo))})}return e})();function gt(e){return d8(()=>{let t=VS(e),i=C1(Te({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===xx.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?s=>s.get(JU).getOrCreateStandaloneInjector(i):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ja.Emulated,styles:e.styles||P5,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Zn("NgStandalone"),PS(i);let a=e.dependencies;return i.directiveDefs=dw(a,ej),i.pipeDefs=dw(a,pV),i.id=aj(i),i})}function ej(e){return M3(e)||Md(e)}function NS(e){return d8(()=>({type:e.type,bootstrap:e.bootstrap||P5,declarations:e.declarations||P5,imports:e.imports||P5,exports:e.exports||P5,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function tj(e,t){if(e==null)return X2;let i={};for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],n,u,_,g;Array.isArray(s)?(_=s[0],n=s[1],u=s[2]??n,g=s[3]||null):(n=s,u=s,_=p8.None,g=null),i[n]=[a,_,g],t[n]=u}return i}function ij(e){if(e==null)return X2;let t={};for(let i in e)e.hasOwnProperty(i)&&(t[e[i]]=i);return t}function so(e){return d8(()=>{let t=VS(e);return PS(t),t})}function VS(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||X2,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||P5,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:tj(e.inputs,t),outputs:ij(e.outputs),debugInfo:null}}function PS(e){e.features?.forEach(t=>t(e))}function dw(e,t){return e?()=>{let i=typeof e=="function"?e():e,a=[];for(let s of i){let n=t(s);n!==null&&a.push(n)}return a}:null}function aj(e){let t=0,i=typeof e.consts=="function"?"":e.consts,a=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,i,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let s of a.join("|"))t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function FS(e){let t=i=>{let a=Array.isArray(e);i.hostDirectives===null?(i.resolveHostDirectives=oj,i.hostDirectives=a?e.map(Ih):[e]):a?i.hostDirectives.unshift(...e.map(Ih)):i.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function oj(e){let t=[],i=!1,a=null,s=null;for(let n=0;n<e.length;n++){let u=e[n];if(u.hostDirectives!==null){let _=t.length;a??=new Map,s??=new Map,zS(u,t,a),s.set(u,[_,t.length-1])}n===0&&K2(u)&&(i=!0,t.push(u))}for(let n=i?1:0;n<e.length;n++)t.push(e[n]);return[t,a,s]}function zS(e,t,i){if(e.hostDirectives!==null)for(let a of e.hostDirectives)if(typeof a=="function"){let s=a();for(let n of s)_w(Ih(n),t,i)}else _w(a,t,i)}function _w(e,t,i){let a=Md(e.directive);rj(a.declaredInputs,e.inputs),zS(a,t,i),i.set(a,e),t.push(a)}function Ih(e){return typeof e=="function"?{directive:t5(e),inputs:X2,outputs:X2}:{directive:t5(e.directive),inputs:pw(e.inputs),outputs:pw(e.outputs)}}function pw(e){if(e===void 0||e.length===0)return X2;let t={};for(let i=0;i<e.length;i+=2)t[e[i]]=e[i+1];return t}function rj(e,t){for(let i in t)if(t.hasOwnProperty(i)){let a=t[i],s=e[i];e[a]=s}}function nj(e){return Object.getPrototypeOf(e.prototype).constructor}function lr(e){let t=nj(e.type),i=!0,a=[e];for(;t;){let s;if(K2(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new V1(903,!1);s=t.\u0275dir}if(s){if(i){a.push(s);let u=e;u.inputs=Su(e.inputs),u.declaredInputs=Su(e.declaredInputs),u.outputs=Su(e.outputs);let _=s.hostBindings;_&&hj(e,_);let g=s.viewQuery,C=s.contentQueries;if(g&&cj(e,g),C&&uj(e,C),sj(e,s),sV(e.outputs,s.outputs),K2(s)&&s.data.animation){let I=e.data;I.animation=(I.animation||[]).concat(s.data.animation)}}let n=s.features;if(n)for(let u=0;u<n.length;u++){let _=n[u];_&&_.ngInherit&&_(e),_===lr&&(i=!1)}}t=Object.getPrototypeOf(t)}lj(a)}function sj(e,t){for(let i in t.inputs){if(!t.inputs.hasOwnProperty(i)||e.inputs.hasOwnProperty(i))continue;let a=t.inputs[i];a!==void 0&&(e.inputs[i]=a,e.declaredInputs[i]=t.declaredInputs[i])}}function lj(e){let t=0,i=null;for(let a=e.length-1;a>=0;a--){let s=e[a];s.hostVars=t+=s.hostVars,s.hostAttrs=Rs(s.hostAttrs,i=Rs(i,s.hostAttrs))}}function Su(e){return e===X2?{}:e===P5?[]:e}function cj(e,t){let i=e.viewQuery;i?e.viewQuery=(a,s)=>{t(a,s),i(a,s)}:e.viewQuery=t}function uj(e,t){let i=e.contentQueries;i?e.contentQueries=(a,s,n)=>{t(a,s,n),i(a,s,n)}:e.contentQueries=t}function hj(e,t){let i=e.hostBindings;i?e.hostBindings=(a,s)=>{t(a,s),i(a,s)}:e.hostBindings=t}function dj(e,t,i,a,s,n,u,_){if(i.firstCreatePass){e.mergedAttrs=Rs(e.mergedAttrs,e.attrs);let I=e.tView=t_(2,e,s,n,u,i.directiveRegistry,i.pipeRegistry,null,i.schemas,i.consts,null);i.queries!==null&&(i.queries.template(i,e),I.queries=i.queries.embeddedTView(e))}_&&(e.flags|=_),o7(e,!1);let g=_j(i,t,e,a);qd()&&s_(i,t,g,e),Os(g,t);let C=pS(g,t,g,e);t[a+f0]=C,a_(t,C),kU(C,e,t)}function O3(e,t,i,a,s,n,u,_,g,C,I){let x=i+f0,L;if(t.firstCreatePass){if(L=u7(t,x,4,u||null,_||null),C!=null){let M=$a(t.consts,C);L.localNames=[];for(let Z=0;Z<M.length;Z+=2)L.localNames.push(M[Z],-1)}}else L=t.data[x];return dj(L,e,t,i,a,s,n,g),C!=null&&c_(e,L,I),L}var _j=pj;function pj(e,t,i,a){return Gd(!0),t[l0].createComment("")}function vj(e){return typeof e=="function"&&e[Si]!==void 0}var mj=new ot("");function m_(e){return!!e&&typeof e.then=="function"}function gj(e){return!!e&&typeof e.subscribe=="function"}var fj=new ot(""),US=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((i,a)=>{this.resolve=i,this.reject=a});appInits=Me(fj,{optional:!0})??[];injector=Me(Lt);constructor(){}runInitializers(){if(this.initialized)return;let i=[];for(let s of this.appInits){let n=h0(this.injector,s);if(m_(n))i.push(n);else if(gj(n)){let u=new Promise((_,g)=>{n.subscribe({complete:_,error:g})});i.push(u)}}let a=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{a()}).catch(s=>{this.reject(s)}),i.length===0&&a(),this.initialized=!0}static \u0275fac=function(i){return new(i||e)};static \u0275prov=q0({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bj=new ot("");function Cj(){qO(()=>{let e="";throw new V1(600,e)})}function wj(e){return e.isBoundToModule}var yj=10,F6=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Me(h8);afterRenderManager=Me(Xx);zonelessEnabled=Me(Yd);rootEffectScheduler=Me(ox);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Mn;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=Me(u8);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(l8(i=>!i))}constructor(){Me(c7,{optional:!0})}whenStable(){let i;return new Promise(a=>{i=this.isStable.subscribe({next:s=>{s&&a()}})}).finally(()=>{i.unsubscribe()})}_injector=Me(Jo);_rendererFactory=null;get injector(){return this._injector}bootstrap(i,a){return this.bootstrapImpl(i,a)}bootstrapImpl(i,a,s=Lt.NULL){return this._injector.get(no).run(()=>{vt(et.BootstrapComponentStart);let n=i instanceof bS;if(!this._injector.get(US).done){let L="";throw new V1(405,L)}let u;n?u=i:u=this._injector.get(r4).resolveComponentFactory(i),this.componentTypes.push(u.componentType);let _=wj(u)?void 0:this._injector.get(Sh),g=a||u.selector,C=u.create(s,[],g,_),I=C.location.nativeElement,x=C.injector.get(mj,null);return x?.registerApplication(I),C.onDestroy(()=>{this.detachView(C.hostView),r6(this.components,C),x?.unregisterApplication(I)}),this._loadComponent(C),vt(et.BootstrapComponentEnd,C),C})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){vt(et.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(r_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw vt(et.ChangeDetectionEnd),new V1(101,!1);let i=t1(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,t1(i),this.afterTick.next(),vt(et.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(p_,null,{optional:!0}));let i=0;for(;this.dirtyFlags!==0&&i++<yj;){vt(et.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{vt(et.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let i=!1;if(this.dirtyFlags&7){let a=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:s}of this.allViews){if(!a&&!k3(s))continue;let n=a&&!this.zonelessEnabled?0:1;uS(s,n),i=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}i||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:i})=>k3(i))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(i){let a=i;this._views.push(a),a.attachToAppRef(this)}detachView(i){let a=i;r6(this._views,a),a.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView);try{this.tick()}catch(a){this.internalErrorHandler(a)}this.components.push(i),this._injector.get(bj,[]).forEach(a=>a(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>r6(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new V1(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||e)};static \u0275prov=q0({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function r6(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}function c0(e,t,i,a){let s=E1(),n=e4();if(kn(s,n,t)){let u=s5(),_=QA();fz(_,s,e,t,i,a)}return c0}var Aj=class{destroy(e){}updateValue(e,t){}swap(e,t){let i=Math.min(e,t),a=Math.max(e,t),s=this.detach(a);if(a-i>1){let n=this.detach(i);this.attach(i,s),this.attach(a,n)}else this.attach(i,s)}move(e,t){this.attach(t,this.detach(e))}};function Iu(e,t,i,a,s){return e===i&&Object.is(t,a)?1:Object.is(s(e,t),s(i,a))?-1:0}function xj(e,t,i,a){let s,n,u=0,_=e.length-1,g;if(Array.isArray(t)){t1(a);let C=t.length-1;for(t1(null);u<=_&&u<=C;){let I=e.at(u),x=t[u],L=Iu(u,I,u,x,i);if(L!==0){L<0&&e.updateValue(u,x),u++;continue}let M=e.at(_),Z=t[C],P=Iu(_,M,C,Z,i);if(P!==0){P<0&&e.updateValue(_,Z),_--,C--;continue}let R=i(u,I),B=i(_,M),U=i(u,x);if(Object.is(U,B)){let E=i(C,Z);Object.is(E,R)?(e.swap(u,_),e.updateValue(_,Z),C--,_--):e.move(_,u),e.updateValue(u,x),u++;continue}if(s??=new gw,n??=mw(e,u,_,i),Th(e,s,u,U))e.updateValue(u,x),u++,_++;else if(n.has(U))s.set(R,e.detach(u)),_--;else{let E=e.create(u,t[u]);e.attach(u,E),u++,_++}}for(;u<=C;)vw(e,s,i,u,t[u]),u++}else if(t!=null){t1(a);let C=t[Symbol.iterator]();t1(null);let I=C.next();for(;!I.done&&u<=_;){let x=e.at(u),L=I.value,M=Iu(u,x,u,L,i);if(M!==0)M<0&&e.updateValue(u,L),u++,I=C.next();else{s??=new gw,n??=mw(e,u,_,i);let Z=i(u,L);if(Th(e,s,u,Z))e.updateValue(u,L),u++,_++,I=C.next();else if(!n.has(Z))e.attach(u,e.create(u,L)),u++,_++,I=C.next();else{let P=i(u,x);s.set(P,e.detach(u)),_--}}}for(;!I.done;)vw(e,s,i,e.length,I.value),I=C.next()}for(;u<=_;)e.destroy(e.detach(_--));s?.forEach(C=>{e.destroy(C)})}function Th(e,t,i,a){return t!==void 0&&t.has(a)?(e.attach(i,t.get(a)),t.delete(a),!0):!1}function vw(e,t,i,a,s){if(Th(e,t,a,i(a,s)))e.updateValue(a,s);else{let n=e.create(a,s);e.attach(a,n)}}function mw(e,t,i,a){let s=new Set;for(let n=t;n<=i;n++)s.add(a(n,e.at(n)));return s}var gw=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let a=this._vMap;for(;a.has(i);)i=a.get(i);a.set(i,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,i]of this.kvMap)if(e(i,t),this._vMap!==void 0){let a=this._vMap;for(;a.has(i);)i=a.get(i),e(i,t)}}};function Jt(e,t,i,a,s,n,u,_){Zn("NgControlFlow");let g=E1(),C=s5(),I=$a(C.consts,n);return O3(g,C,e,t,i,a,s,I,256,u,_),jS}function jS(e,t,i,a,s,n,u,_){Zn("NgControlFlow");let g=E1(),C=s5(),I=$a(C.consts,n);return O3(g,C,e,t,i,a,s,I,512,u,_),jS}function e0(e,t){Zn("NgControlFlow");let i=E1(),a=e4(),s=i[a]!==x2?i[a]:-1,n=s!==-1?z6(i,f0+s):void 0,u=0;if(kn(i,a,e)){let _=t1(null);try{if(n!==void 0&&mS(n,u),e!==-1){let g=f0+e,C=z6(i,g),I=Bh(i[Qe],g),x=fS(C,I,i),L=a4(i,I,t,{dehydratedView:x});o4(C,L,u,Ns(I,x))}}finally{t1(_)}}else if(n!==void 0){let _=vS(n,u);_!==void 0&&(_[H0]=t)}}var Sj=class{lContainer;$implicit;$index;constructor(e,t,i){this.lContainer=e,this.$implicit=t,this.$index=i}get $count(){return this.lContainer.length-g0}};function Ij(e){return e}function Tj(e,t){return t}var Bj=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,i){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=i}};function gn(e,t,i,a,s,n,u,_,g,C,I,x,L){Zn("NgControlFlow");let M=E1(),Z=s5(),P=g!==void 0,R=E1(),B=_?u.bind(R[Ii][H0]):u,U=new Bj(P,B);R[f0+e]=U,O3(M,Z,e+1,t,i,a,s,$a(Z.consts,n),256),P&&O3(M,Z,e+2,g,C,I,x,$a(Z.consts,L),512)}var Mj=class extends Aj{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,i){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=i}get length(){return this.lContainer.length-g0}at(e){return this.getLView(e)[H0].$implicit}attach(e,t){let i=t[Hs];this.needsIndexUpdate||=e!==this.length,o4(this.lContainer,t,e,Ns(this.templateTNode,i)),Ej(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Zj(this.lContainer,e),kj(this.lContainer,e)}create(e,t){let i=V6(this.lContainer,this.templateTNode.tView.ssrId);return a4(this.hostLView,this.templateTNode,new Sj(this.lContainer,t,e),{dehydratedView:i})}destroy(e){v8(e[Qe],e)}updateValue(e,t){this.getLView(e)[H0].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[H0].$index=e}getLView(e){return Lj(this.lContainer,e)}};function fn(e){let t=t1(null),i=ro();try{let a=E1(),s=a[Qe],n=a[i],u=i+1,_=z6(a,u);if(n.liveCollection===void 0){let C=Bh(s,u);n.liveCollection=new Mj(_,a,C)}else n.liveCollection.reset();let g=n.liveCollection;if(xj(g,e,n.trackByFn,t),g.updateIndexes(),n.hasEmptyBlock){let C=e4(),I=g.length===0;if(kn(a,C,I)){let x=i+2,L=z6(a,x);if(I){let M=Bh(s,x),Z=fS(L,M,a),P=a4(a,M,void 0,{dehydratedView:Z});o4(L,P,0,Ns(M,Z))}else s.firstUpdatePass&&Wz(L),mS(L,0)}}}finally{t1(t)}}function z6(e,t){return e[t]}function Ej(e,t){if(e.length<=g0)return;let i=g0+t,a=e[i],s=a?a[_n]:void 0;if(a&&s&&s.detachedLeaveAnimationFns&&s.detachedLeaveAnimationFns.length>0){let n=a[er];GF(n,s),H3.delete(a[tr]),s.detachedLeaveAnimationFns=void 0}}function Zj(e,t){if(e.length<=g0)return;let i=g0+t,a=e[i],s=a?a[_n]:void 0;s&&s.leave&&s.leave.size>0&&(s.detachedLeaveAnimationFns=[])}function kj(e,t){return D3(e,t)}function Lj(e,t){return vS(e,t)}function Bh(e,t){return Pd(e,t)}function v1(e,t,i){let a=E1(),s=e4();if(kn(a,s,t)){let n=s5(),u=QA();hz(u,a,e,t,a[l0],i)}return v1}function Mh(e,t,i,a,s){u_(t,e,i,s?"class":"style",a)}function Ve(e,t,i,a){let s=E1(),n=s[Qe],u=e+f0,_=n.firstCreatePass?yS(u,s,2,t,gz,XV(),i,a):n.data[u];if(En(_)){let g=s[$2].tracingService;if(g&&g.componentCreate){let C=n.data[_.directiveStart+_.componentOffset];return g.componentCreate(SS(C),()=>(fw(e,t,s,_,a),Ve))}}return fw(e,t,s,_,a),Ve}function fw(e,t,i,a,s){if(oS(a,i,e,t,GS),Vd(a)){let n=i[Qe];aS(n,i,a),Rx(n,a,i)}s!=null&&c_(i,a)}function Ue(){let e=s5(),t=n2(),i=rS(t);return e.firstCreatePass&&AS(e,i),VA(i)&&PA(),OA(),i.classesWithoutHost!=null&&OP(i)&&Mh(e,i,E1(),i.classesWithoutHost,!0),i.stylesWithoutHost!=null&&NP(i)&&Mh(e,i,E1(),i.stylesWithoutHost,!1),Ue}function na(e,t,i,a){return Ve(e,t,i,a),Ue(),na}function WS(e,t,i,a){let s=E1(),n=s[Qe],u=e+f0,_=n.firstCreatePass?uU(u,n,2,t,i,a):n.data[u];return oS(_,s,e,t,GS),a!=null&&c_(s,_),WS}function qS(){let e=n2(),t=rS(e);return VA(t)&&PA(),OA(),qS}var GS=(e,t,i,a,s)=>(Gd(!0),Nx(t[l0],a,rP()));function I5(){return E1()}var U6="en-US",Hj=U6;function Dj(e){typeof e=="string"&&(Hj=e.toLowerCase().replace(/_/g,"-"))}function at(e,t,i){let a=E1(),s=s5(),n=n2();return Rj(s,a,a[l0],n,e,t,i),at}function Rj(e,t,i,a,s,n,u){let _=!0,g=null;if((a.type&3||u)&&(g??=Au(a,t,n),_U(a,e,t,u,i,s,n,g)&&(_=!1)),_){let C=a.outputs?.[s],I=a.hostDirectiveOutputs?.[s];if(I&&I.length)for(let x=0;x<I.length;x+=2){let L=I[x],M=I[x+1];g??=Au(a,t,n),cw(a,t,L,M,s,g)}if(C&&C.length)for(let x of C)g??=Au(a,t,n),cw(a,t,x,s,s,g)}}function Se(e=1){return oP(e)}function Oj(e,t){let i=null,a=BF(e);for(let s=0;s<t.length;s++){let n=t[s];if(n==="*"){i=s;continue}if(a===null?jx(e,n,!0):ZF(a,n))return s}return i}function R0(e){let t=E1()[Ii][ui];if(!t.projection){let i=e?e.length:1,a=t.projection=IV(i,null),s=a.slice(),n=t.child;for(;n!==null;){if(n.type!==128){let u=e?Oj(n,e):0;u!==null&&(s[u]?s[u].projectionNext=n:a[u]=n,s[u]=n)}n=n.next}}}function O0(e,t=0,i,a,s,n){let u=E1(),_=s5(),g=a?e+1:null;g!==null&&O3(u,_,g,a,s,n,null,i);let C=u7(_,f0+e,16,null,i||null);C.projection===null&&(C.projection=t),UA();let I=!u[Hs]||NA();u[Ii][ui].projection[C.projection]===null&&g!==null?Nj(u,_,g):I&&!Jd(C)&&oz(_,u,C)}function Nj(e,t,i){let a=f0+i,s=t.data[a],n=e[a],u=V6(n,s.tView.ssrId),_=a4(e,s,void 0,{dehydratedView:u});o4(n,_,0,Ns(s,u))}function XS(e,t,i,a){return KU(e,jU(t,i,a)),XS}function Vj(e=1){Ud(iP()+e)}function $S(e){let t=jA();return ZA(t,f0+e)}function Ul(e,t){return e<<17|t<<2}function bn(e){return e>>17&32767}function Pj(e){return(e&2)==2}function Fj(e,t){return e&131071|t<<17}function Eh(e){return e|2}function Vs(e){return(e&131068)>>2}function Tu(e,t){return e&-131069|t<<2}function zj(e){return(e&1)===1}function Zh(e){return e|1}function Uj(e,t,i,a,s,n){let u=n?t.classBindings:t.styleBindings,_=bn(u),g=Vs(u);e[a]=i;let C=!1,I;if(Array.isArray(i)){let x=i;I=x[1],(I===null||J3(x,I)>0)&&(C=!0)}else I=i;if(s)if(g!==0){let x=bn(e[_+1]);e[a+1]=Ul(x,_),x!==0&&(e[x+1]=Tu(e[x+1],a)),e[_+1]=Fj(e[_+1],a)}else e[a+1]=Ul(_,0),_!==0&&(e[_+1]=Tu(e[_+1],a)),_=a;else e[a+1]=Ul(g,0),_===0?_=a:e[g+1]=Tu(e[g+1],a),g=a;C&&(e[a+1]=Eh(e[a+1])),bw(e,I,a,!0),bw(e,I,a,!1),jj(t,I,e,a,n),u=Ul(_,g),n?t.classBindings=u:t.styleBindings=u}function jj(e,t,i,a,s){let n=s?e.residualClasses:e.residualStyles;n!=null&&typeof t=="string"&&J3(n,t)>=0&&(i[a+1]=Zh(i[a+1]))}function bw(e,t,i,a){let s=e[i+1],n=t===null,u=a?bn(s):Vs(s),_=!1;for(;u!==0&&(_===!1||n);){let g=e[u],C=e[u+1];Wj(g,t)&&(_=!0,e[u+1]=a?Zh(C):Eh(C)),u=a?bn(C):Vs(C)}_&&(e[i+1]=a?Eh(s):Zh(s))}function Wj(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?J3(e,t)>=0:!1}var L0={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function KS(e){return e.substring(L0.key,L0.keyEnd)}function qj(e){return e.substring(L0.value,L0.valueEnd)}function Gj(e){return JS(e),YS(e,Ps(e,0,L0.textEnd))}function YS(e,t){let i=L0.textEnd;return i===t?-1:(t=L0.keyEnd=$j(e,L0.key=t,i),Ps(e,t,i))}function Xj(e){return JS(e),QS(e,Ps(e,0,L0.textEnd))}function QS(e,t){let i=L0.textEnd,a=L0.key=Ps(e,t,i);return i===a?-1:(a=L0.keyEnd=Kj(e,a,i),a=Cw(e,a,i,58),a=L0.value=Ps(e,a,i),a=L0.valueEnd=Yj(e,a,i),Cw(e,a,i,59))}function JS(e){L0.key=0,L0.keyEnd=0,L0.value=0,L0.valueEnd=0,L0.textEnd=e.length}function Ps(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function $j(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}function Kj(e,t,i){let a;for(;t<i&&((a=e.charCodeAt(t))===45||a===95||(a&-33)>=65&&(a&-33)<=90||a>=48&&a<=57);)t++;return t}function Cw(e,t,i,a){return t=Ps(e,t,i),t<i&&t++,t}function Yj(e,t,i){let a=-1,s=-1,n=-1,u=t,_=u;for(;u<i;){let g=e.charCodeAt(u++);if(g===59)return _;g===34||g===39?_=u=ww(e,g,u,i):t===u-4&&n===85&&s===82&&a===76&&g===40?_=u=ww(e,41,u,i):g>32&&(_=u),n=s,s=a,a=g&-33}return _}function ww(e,t,i,a){let s=-1,n=i;for(;n<a;){let u=e.charCodeAt(n++);if(u==t&&s!==92)return n;u==92&&s===92?s=0:s=u}throw new Error}function g8(e,t,i){return eI(e,t,i,!1),g8}function n4(e,t){return eI(e,t,null,!0),n4}function Qj(e){tI(oI,Jj,e,!1)}function Jj(e,t){for(let i=Xj(t);i>=0;i=QS(t,i))oI(e,KS(t),qj(t))}function eW(e){tI(sW,tW,e,!0)}function tW(e,t){for(let i=Gj(t);i>=0;i=YS(t,i))c8(e,KS(t),!0)}function eI(e,t,i,a){let s=E1(),n=s5(),u=qA(2);if(n.firstUpdatePass&&aI(n,e,u,a),t!==x2&&kn(s,u,t)){let _=n.data[ro()];rI(n,_,s,s[l0],e,s[u+1]=cW(t,i),a,u)}}function tI(e,t,i,a){let s=s5(),n=qA(2);s.firstUpdatePass&&aI(s,null,n,a);let u=E1();if(i!==x2&&kn(u,n,i)){let _=s.data[ro()];if(nI(_,a)&&!iI(s,n)){let g=a?_.classesWithoutHost:_.stylesWithoutHost;g!==null&&(i=ah(g,i||"")),Mh(s,_,u,i,a)}else lW(s,_,u,u[l0],u[n+1],u[n+1]=nW(e,t,i),a,n)}}function iI(e,t){return t>=e.expandoStartIndex}function aI(e,t,i,a){let s=e.data;if(s[i+1]===null){let n=s[ro()],u=iI(e,i);nI(n,a)&&t===null&&!u&&(t=!1),t=iW(s,n,t,a),Uj(s,n,t,i,u,a)}}function iW(e,t,i,a){let s=tP(e),n=a?t.residualClasses:t.residualStyles;if(s===null)(a?t.classBindings:t.styleBindings)===0&&(i=Bu(null,e,t,i,a),i=N3(i,t.attrs,a),n=null);else{let u=t.directiveStylingLast;if(u===-1||e[u]!==s)if(i=Bu(s,e,t,i,a),n===null){let _=aW(e,t,a);_!==void 0&&Array.isArray(_)&&(_=Bu(null,e,t,_[1],a),_=N3(_,t.attrs,a),oW(e,t,a,_))}else n=rW(e,t,a)}return n!==void 0&&(a?t.residualClasses=n:t.residualStyles=n),i}function aW(e,t,i){let a=i?t.classBindings:t.styleBindings;if(Vs(a)!==0)return e[bn(a)]}function oW(e,t,i,a){let s=i?t.classBindings:t.styleBindings;e[bn(s)]=a}function rW(e,t,i){let a,s=t.directiveEnd;for(let n=1+t.directiveStylingLast;n<s;n++){let u=e[n].hostAttrs;a=N3(a,u,i)}return N3(a,t.attrs,i)}function Bu(e,t,i,a,s){let n=null,u=i.directiveEnd,_=i.directiveStylingLast;for(_===-1?_=i.directiveStart:_++;_<u&&(n=t[_],a=N3(a,n.hostAttrs,s),n!==e);)_++;return e!==null&&(i.directiveStylingLast=_),a}function N3(e,t,i){let a=i?1:2,s=-1;if(t!==null)for(let n=0;n<t.length;n++){let u=t[n];typeof u=="number"?s=u:s===a&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),c8(e,u,i?!0:t[++n]))}return e===void 0?null:e}function nW(e,t,i){if(i==null||i==="")return P5;let a=[],s=_8(i);if(Array.isArray(s))for(let n=0;n<s.length;n++)e(a,s[n],!0);else if(s instanceof Set)for(let n of s)e(a,n,!0);else if(typeof s=="object")for(let n in s)s.hasOwnProperty(n)&&e(a,n,s[n]);else typeof s=="string"&&t(a,s);return a}function oI(e,t,i){c8(e,t,_8(i))}function sW(e,t,i){let a=String(t);a!==""&&!a.includes(" ")&&c8(e,a,i)}function lW(e,t,i,a,s,n,u,_){s===x2&&(s=P5);let g=0,C=0,I=0<s.length?s[0]:null,x=0<n.length?n[0]:null;for(;I!==null||x!==null;){let L=g<s.length?s[g+1]:void 0,M=C<n.length?n[C+1]:void 0,Z=null,P;I===x?(g+=2,C+=2,L!==M&&(Z=x,P=M)):x===null||I!==null&&I<x?(g+=2,Z=I):(C+=2,Z=x,P=M),Z!==null&&rI(e,t,i,a,Z,P,u,_),I=g<s.length?s[g]:null,x=C<n.length?n[C]:null}}function rI(e,t,i,a,s,n,u,_){if(!(t.type&3))return;let g=e.data,C=g[_+1],I=zj(C)?yw(g,t,i,s,Vs(C),u):void 0;if(!j6(I)){j6(n)||Pj(C)&&(n=yw(g,null,i,s,_,u));let x=EA(ro(),i);nz(a,u,x,s,n)}}function yw(e,t,i,a,s,n){let u=t===null,_;for(;s>0;){let g=e[s],C=Array.isArray(g),I=C?g[1]:g,x=I===null,L=i[s+1];L===x2&&(L=x?P5:void 0);let M=x?mu(L,a):I===a?L:void 0;if(C&&!j6(M)&&(M=mu(g,a)),j6(M)&&(_=M,u))return _;let Z=e[s+1];s=u?bn(Z):Vs(Z)}if(t!==null){let g=n?t.residualClasses:t.residualStyles;g!=null&&(_=mu(g,a))}return _}function j6(e){return e!==void 0}function cW(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=cA(_8(e)))),e}function nI(e,t){return(e.flags&(t?8:16))!==0}function M1(e,t=""){let i=E1(),a=s5(),s=e+f0,n=a.firstCreatePass?u7(a,s,1,t,null):a.data[s],u=uW(a,i,n,t);i[s]=u,qd()&&s_(a,i,u,n),o7(n,!1)}var uW=(e,t,i,a)=>(Gd(!0),gF(t[l0],a));function hW(e,t,i,a=""){return kn(e,e4(),i)?t+Zd(i)+a:x2}function T5(e){return si("",e),T5}function si(e,t,i){let a=E1(),s=hW(a,e,t,i);return s!==x2&&dW(a,ro(),s),si}function dW(e,t,i){let a=EA(t,e);fF(e[l0],a,i)}var sI={};function lI(e){Zn("NgLet");let t=s5(),i=E1(),a=e+f0,s=u7(t,a,128,null,null);return o7(s,!1),kA(t,i,a,sI),lI}function _W(e){let t=s5(),i=E1(),a=ro();return kA(t,i,a,e),e}function g_(e){let t=jA(),i=ZA(t,f0+e);if(i===sI)throw new V1(314,!1);return i}function Aw(e,t,i){let a=s5();a.firstCreatePass&&cI(t,a.data,a.blueprint,K2(e),i)}function cI(e,t,i,a,s){if(e=t5(e),Array.isArray(e))for(let n=0;n<e.length;n++)cI(e[n],t,i,a,s);else{let n=s5(),u=E1(),_=n2(),g=Ls(e)?e:t5(e.provide),C=IA(e),I=_.providerIndexes&1048575,x=_.directiveStart,L=_.providerIndexes>>20;if(Ls(e)||!e.multi){let M=new i4(C,s,U0,null),Z=Eu(g,t,s?I:I+L,x);Z===-1?(vh(D6(_,u),n,g),Mu(n,e,t.length),t.push(g),_.directiveStart++,_.directiveEnd++,s&&(_.providerIndexes+=1048576),i.push(M),u.push(M)):(i[Z]=M,u[Z]=M)}else{let M=Eu(g,t,I+L,x),Z=Eu(g,t,I,I+L),P=M>=0&&i[M],R=Z>=0&&i[Z];if(s&&!R||!s&&!P){vh(D6(_,u),n,g);let B=mW(s?vW:pW,i.length,s,a,C,e);!s&&R&&(i[Z].providerFactory=B),Mu(n,e,t.length,0),t.push(g),_.directiveStart++,_.directiveEnd++,s&&(_.providerIndexes+=1048576),i.push(B),u.push(B)}else{let B=uI(i[s?Z:M],C,!s&&a);Mu(n,e,M>-1?M:Z,B)}!s&&a&&R&&i[Z].componentProviders++}}}function Mu(e,t,i,a){let s=Ls(t),n=LV(t);if(s||n){let u=(n?t5(t.useClass):t).prototype.ngOnDestroy;if(u){let _=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){let g=_.indexOf(i);g===-1?_.push(i,[a,u]):_[g+1].push(a,u)}else _.push(i,u)}}}function uI(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Eu(e,t,i,a){for(let s=i;s<a;s++)if(t[s]===e)return s;return-1}function pW(e,t,i,a,s){return kh(this.multi,[])}function vW(e,t,i,a,s){let n=this.multi,u;if(this.providerFactory){let _=this.providerFactory.componentProviders,g=L3(a,a[Qe],this.providerFactory.index,s);u=g.slice(0,_),kh(n,u);for(let C=_;C<g.length;C++)u.push(g[C])}else u=[],kh(n,u);return u}function kh(e,t){for(let i=0;i<e.length;i++){let a=e[i];t.push(a())}return t}function mW(e,t,i,a,s,n){let u=new i4(e,i,U0,null);return u.multi=[],u.index=t,u.componentProviders=0,uI(u,s,a&&!i),u}function f8(e,t){return i=>{i.providersResolver=(a,s)=>Aw(a,s?s(e):e,!1),t&&(i.viewProvidersResolver=(a,s)=>Aw(a,s?s(t):t,!0))}}function W6(e,t){let i=KV()+e,a=E1();return a[i]===x2?hU(a,i,t()):dU(a,i)}var gW=(()=>{class e{applicationErrorHandler=Me(h8);appRef=Me(F6);taskService=Me(u8);ngZone=Me(no);zonelessEnabled=Me(Yd);tracing=Me(c7,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new qa;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(k6):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Me(yP,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let i=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(i);return}this.switchToMicrotaskScheduler(),this.taskService.remove(i)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let i=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})})}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let a=this.useMicrotaskScheduler?hP:ix;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>a(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>a(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(k6+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(a){this.applicationErrorHandler(a)}finally{this.taskService.remove(i),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=q0({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fW(){return[{provide:t4,useExisting:gW},{provide:no,useClass:mP},{provide:Yd,useValue:!0}]}function bW(){return typeof $localize<"u"&&$localize.locale||U6}var hI=new ot("",{factory:()=>Me(hI,{optional:!0,skipSelf:!0})||bW()}),CW=class{destroyed=!1;listeners=null;errorHandler=Me(s7,{optional:!0});destroyRef=Me(n7);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new V1(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let t=this.listeners?.indexOf(e);t!==void 0&&t!==-1&&this.listeners?.splice(t,1)}}}emit(e){if(this.destroyed){console.warn(lA(953,!1));return}if(this.listeners===null)return;let t=t1(null);try{for(let i of this.listeners)try{i(e)}catch(a){this.errorHandler?.handleError(a)}}finally{t1(t)}}};function Qr(e){return rV(e)}function N1(e,t){return Dy(e,t?.equal)}var dI=Symbol("InputSignalNode#UNSET"),wW=C1(Te({},Ny),{transformFn:void 0,applyValueToInputSignal(e,t){wd(e,t)}});function _I(e,t){let i=Object.create(wW);i.value=e,i.transformFn=t?.transform;function a(){if(gd(i),i.value===dI){let s=null;throw new V1(-950,s)}return i.value}return a[Si]=i,a}function c1(e){return new CW}function xw(e,t){return _I(e,t)}function yW(e){return _I(dI,e)}var Q=(xw.required=yW,xw);function Sw(e,t){return XU(t)}function AW(e,t){return $U(t)}var xW=(Sw.required=AW,Sw),Lh=new ot(""),SW=new ot("");function d3(e){return!e.moduleRef}function IW(e){let t=d3(e)?e.r3Injector:e.moduleRef.injector,i=t.get(no);return i.run(()=>{d3(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let a=t.get(h8),s;if(i.runOutsideAngular(()=>{s=i.onError.subscribe({next:a})}),d3(e)){let n=()=>t.destroy(),u=e.platformInjector.get(Lh);u.add(n),t.onDestroy(()=>{s.unsubscribe(),u.delete(n)})}else{let n=()=>e.moduleRef.destroy(),u=e.platformInjector.get(Lh);u.add(n),e.moduleRef.onDestroy(()=>{r6(e.allPlatformModules,e.moduleRef),s.unsubscribe(),u.delete(n)})}return BW(a,i,()=>{let n=t.get(u8),u=n.add(),_=t.get(US);return _.runInitializers(),_.donePromise.then(()=>{let g=t.get(hI,U6);if(Dj(g||U6),!t.get(SW,!0))return d3(e)?t.get(F6):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(d3(e)){let C=t.get(F6);return e.rootComponent!==void 0&&C.bootstrap(e.rootComponent),C}else return TW?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{n.remove(u)})})})}var TW;function BW(e,t,i){try{let a=i();return m_(a)?a.catch(s=>{throw t.runOutsideAngular(()=>e(s)),s}):a}catch(a){throw t.runOutsideAngular(()=>e(a)),a}}var n6=null;function MW(e=[],t){return Lt.create({name:t,providers:[{provide:Rd,useValue:"platform"},{provide:Lh,useValue:new Set([()=>n6=null])},...e]})}function EW(e=[]){if(n6)return n6;let t=MW(e);return n6=t,Cj(),ZW(t),t}function ZW(e){let t=e.get(Ex,null);h0(e,()=>{t?.forEach(i=>i())})}var kW=1e4,C8e=kW-1e3,LW=(()=>{class e{static __NG_ELEMENT_ID__=HW}return e})();function HW(e){return DW(n2(),E1(),(e&16)===16)}function DW(e,t,i){if(En(e)&&!i){let a=Q2(e.index,t);return new R3(a,a)}else if(e.type&175){let a=t[Ii];return new R3(a,t)}return null}function RW(e){let{rootComponent:t,appProviders:i,platformProviders:a,platformRef:s}=e;vt(et.BootstrapApplicationStart);try{let n=s?.injector??EW(a),u=[fW(),bP,...i||[]],_=new OS({providers:u,parent:n,debugName:"",runEnvironmentInitializers:!1});return IW({r3Injector:_.injector,platformInjector:n,rootComponent:t})}catch(n){return Promise.reject(n)}finally{vt(et.BootstrapApplicationEnd)}}function H1(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function OW(){return m("div",{part:"root",role:"region",class:{"ui5-card-root":!0,"ui5-card--interactive":this._hasHeader&&this.header[0].interactive,"ui5-card--nocontent":!this.content.length},"aria-label":this._getAriaLabel,children:m(J0,{id:`${this._id}-busyIndicator`,delay:this.loadingDelay,active:this.loading,class:"ui5-card-busy-indicator",children:N("div",{class:"ui5-card-inner",children:[this._hasHeader&&m("div",{class:"ui5-card-header-root",children:m("slot",{name:"header"})}),m("div",{role:"group","aria-label":this._ariaCardContentLabel,part:"content",children:m("slot",{})})]})})})}j("@ui5/webcomponents-theming","sap_horizon",async()=>ue);j("@ui5/webcomponents","sap_horizon",async()=>He,"host");var NW=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block;width:100%}.ui5-card-root{width:100%;height:100%;color:var(--sapGroup_TitleTextColor);background:var(--sapTile_Background);box-shadow:var(--_ui5_card_box_shadow);border-radius:var(--_ui5_card_border-radius);border:var(--_ui5_card_border);overflow:hidden;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);box-sizing:border-box}.ui5-card-busy-indicator{width:100%;height:100%;border-radius:var(--_ui5_card_border-radius)}.ui5-card-inner{width:100%;height:100%}.ui5-card-root.ui5-card--interactive:hover{box-shadow:var(--_ui5_card_hover_box_shadow)}.ui5-card-root.ui5-card--interactive:active{box-shadow:var(--_ui5_card_box_shadow)}.ui5-card-root.ui5-card--nocontent{height:auto}.ui5-card-root.ui5-card--nocontent .ui5-card-header-root{border-bottom:none}.ui5-card--nocontent ::slotted([ui5-card-header]){--_ui5_card_header_focus_bottom_radius: var(--_ui5_card_header_focus_radius)}.ui5-card-root .ui5-card-header-root{border-bottom:var(--_ui5_card_header_border)}
|
|
118
118
|
`,cr=function(e,t,i,a){var s=arguments.length,n=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,a);else for(var _=e.length-1;_>=0;_--)(u=e[_])&&(n=(s<3?u(n):s>3?u(t,i,n):u(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},s6,J2=s6=class extends we{constructor(){super(...arguments),this.loading=!1,this.loadingDelay=1e3}get _hasHeader(){return!!this.header.length}get _getAriaLabel(){let e=Q0(this),t=e?` ${e}`:"";return s6.i18nBundle.getText(Qv)+t}get _ariaCardContentLabel(){return s6.i18nBundle.getText(Yv)}};cr([b()],J2.prototype,"accessibleName",void 0);cr([b()],J2.prototype,"accessibleNameRef",void 0);cr([oe({type:HTMLElement,default:!0})],J2.prototype,"content",void 0);cr([oe({type:HTMLElement,invalidateOnChildChange:!0})],J2.prototype,"header",void 0);cr([b({type:Boolean})],J2.prototype,"loading",void 0);cr([b({type:Number})],J2.prototype,"loadingDelay",void 0);cr([Le("@ui5/webcomponents")],J2,"i18nBundle",void 0);J2=s6=cr([ce({tag:"ui5-card",languageAware:!0,renderer:fe,template:OW,styles:NW})],J2);J2.define();var VW=["*"],PW=(()=>{class e{constructor(){this.accessibleName=Q(),this.accessibleNameRef=Q(),this.loading=Q(!1,{transform:H1}),this.loadingDelay=Q(1e3),this.slots=[{name:"default",description:"Defines the content of the component."},{name:"header",description:"Defines the header of the component.\n\n**Note:** Use `ui5-card-header` for the intended design.",since:"1.0.0-rc.15"}],this.elementRef=Me(Ht),this.injector=Me(Lt)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let i=this.element,a=["accessibleName","accessibleNameRef","loading","loadingDelay"];for(let s of a){let n=s.replace(/-./g,u=>u[1].toUpperCase());this[n]&&typeof this[n]=="function"&&h0(this.injector,()=>{t0(()=>{let u=this[n]();i&&(i[s]=u)})})}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=gt({type:e,selectors:[["ui5-card"],["","ui5-card",""]],inputs:{accessibleName:[1,"accessibleName"],accessibleNameRef:[1,"accessibleNameRef"],loading:[1,"loading"],loadingDelay:[1,"loadingDelay"]},exportAs:["ui5Card"],ngContentSelectors:VW,decls:1,vars:0,template:function(i,a){i&1&&(R0(),O0(0))},encapsulation:2,changeDetection:0})}}return e})();function FW(){return N("div",{id:`${this._id}--header`,class:{"ui5-card-header":!0,"ui5-card-header--interactive":this.interactive,"ui5-card-header--active":this.interactive&&this._headerActive,"ui5-card-header-ff":Wg()},part:"root",onClick:this._click,onKeyDown:this._keydown,onKeyUp:this._keyup,children:[N("div",{class:"ui5-card-header-focusable-element","aria-labelledby":this.ariaLabelledBy,"aria-roledescription":this.ariaRoleDescription,role:this.ariaRoleFocusableElement,"data-sap-focus-ref":!0,tabindex:0,children:[this.hasAvatar&&m("div",{id:`${this._id}-avatar`,class:"ui5-card-header-avatar","aria-label":this.ariaCardAvatarLabel,children:m("slot",{name:"avatar"})}),N("div",{class:"ui5-card-header-text",children:[N("div",{class:"ui5-card-header-first-line",children:[this.titleText&&m("div",{id:`${this._id}-title`,class:"ui5-card-header-title",part:"title",role:"heading","aria-level":3,children:this.titleText}),this.additionalText&&m("div",{class:"ui5-card-header-additionalText",children:m("span",{id:`${this._id}-additionalText`,part:"additional-text",dir:"auto",children:this.additionalText})})]}),this.subtitleText&&m("div",{id:`${this._id}-subtitle`,class:"ui5-card-header-subtitle",part:"subtitle",children:this.subtitleText})]})]}),this.hasAction&&m("div",{class:"ui5-card-header-action",onFocusIn:this._actionsFocusin,onFocusOut:this._actionsFocusout,children:m("slot",{name:"action"})})]})}j("@ui5/webcomponents-theming","sap_horizon",async()=>ue);j("@ui5/webcomponents","sap_horizon",async()=>He,"host");var zW=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}.ui5-card-header{position:relative;display:flex;align-items:center;padding:var(--_ui5_card_header_padding);outline:none}:host([subtitleText]) .ui5-card-header{align-items:flex-start}:host([desktop]) .ui5-card-header.ui5-card-header-ff:not(.ui5-card-header-hide-focus):focus-within:before,.ui5-card-header.ui5-card-header-ff:not(.ui5-card-header-hide-focus):focus-visible:before{outline:none;content:"";position:absolute;border:var(--_ui5_card_header_focus_border);pointer-events:none;top:var(--_ui5_card_header_focus_offset);left:var(--_ui5_card_header_focus_offset);right:var(--_ui5_card_header_focus_offset);bottom:var(--_ui5_card_header_focus_offset);border-top-left-radius:var(--_ui5_card_header_focus_radius);border-top-right-radius:var(--_ui5_card_header_focus_radius);border-bottom-left-radius:var(--_ui5_card_header_focus_bottom_radius);border-bottom-right-radius:var(--_ui5_card_header_focus_bottom_radius)}:host([desktop]) .ui5-card-header:not(.ui5-card-header-ff):not(.ui5-card-header-hide-focus):has(.ui5-card-header-focusable-element:focus):before,.ui5-card-header:not(.ui5-card-header-ff):not(.ui5-card-header-hide-focus):has(.ui5-card-header-focusable-element:focus-visible):before{outline:none;content:"";position:absolute;border:var(--_ui5_card_header_focus_border);pointer-events:none;top:var(--_ui5_card_header_focus_offset);left:var(--_ui5_card_header_focus_offset);right:var(--_ui5_card_header_focus_offset);bottom:var(--_ui5_card_header_focus_offset);border-top-left-radius:var(--_ui5_card_header_focus_radius);border-top-right-radius:var(--_ui5_card_header_focus_radius);border-bottom-left-radius:var(--_ui5_card_header_focus_bottom_radius);border-bottom-right-radius:var(--_ui5_card_header_focus_bottom_radius)}.ui5-card-header-focusable-element{outline:none}.ui5-card-header-focusable-element{display:inherit;align-items:inherit;flex:1;min-width:0}.ui5-card-header.ui5-card-header--interactive:hover{cursor:pointer;background:var(--_ui5_card_header_hover_bg)}.ui5-card-header.ui5-card-header--active,.ui5-card-header.ui5-card-header--interactive:active{background:var(--_ui5_card_header_active_bg)}.ui5-card-header .ui5-card-header-text{flex:1;min-width:0;pointer-events:none}.ui5-card-header-first-line{display:flex;flex-flow:row;justify-content:space-between}.ui5-card-header-additionalText{flex:none}.ui5-card-header .ui5-card-header-avatar{height:3rem;width:3rem;display:flex;align-items:center;justify-content:center;margin-inline-end:.75rem;pointer-events:none;align-self:flex-start}::slotted([ui5-icon]){width:1.5rem;height:1.5rem;color:var(--sapTile_IconColor)}::slotted(img[slot="avatar"]){width:100%;height:100%;border-radius:50%}.ui5-card-header .ui5-card-header-additionalText{display:inline-block;font-family:var(--sapFontFamily);font-size:var(--sapFontSmallSize);color:var(--sapTile_TextColor);text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle;margin-inline-start:1rem;margin-block-start:.125rem}.ui5-card-header .ui5-card-header-text .ui5-card-header-title{font-family:var(--_ui5_card_header_title_font_family);font-size:var(--_ui5_card_header_title_font_size);font-weight:var(--_ui5_card_header_title_font_weight);color:var(--sapTile_TitleTextColor);max-height:3.5rem;align-self:flex-end}.ui5-card-header .ui5-card-header-text .ui5-card-header-subtitle{font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;color:var(--sapTile_TextColor);margin-top:var(--_ui5_card_header_subtitle_margin_top)}.ui5-card-header .ui5-card-header-text .ui5-card-header-title,.ui5-card-header .ui5-card-header-text .ui5-card-header-subtitle{text-align:start;text-overflow:ellipsis;white-space:normal;word-wrap:break-word;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;max-width:100%}.ui5-card-header .ui5-card-header-text .ui5-card-header-title{-webkit-line-clamp:3}.ui5-card-header-action{display:flex;padding-inline-start:1rem;align-self:flex-start}
|
|
119
|
-
`,sa=function(e,t,i,a){var s=arguments.length,n=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,a);else for(var _=e.length-1;_>=0;_--)(u=e[_])&&(n=(s<3?u(n):s>3?u(t,i,n):u(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},b3,Ji=b3=class extends we{constructor(){super(...arguments),this.interactive=!1,this._ariaLevel=3,this._headerActive=!1}onEnterDOM(){tt()&&this.setAttribute("desktop","")}get _root(){return this.shadowRoot.querySelector(".ui5-card-header")}get ariaRoleDescription(){return this.interactive?b3.i18nBundle.getText(em):b3.i18nBundle.getText(Jv)}get ariaRoleFocusableElement(){return this.interactive?"button":"group"}get ariaCardAvatarLabel(){return b3.i18nBundle.getText(r9)}get ariaLabelledBy(){let e=[];return this.titleText&&e.push(`${this._id}-title`),this.subtitleText&&e.push(`${this._id}-subtitle`),this.additionalText&&e.push(`${this._id}-additionalText`),this.hasAvatar&&e.push(`${this._id}-avatar`),e.length!==0?e.join(" "):void 0}get hasAvatar(){return!!this.avatar.length}get hasAction(){return!!this.action.length}_actionsFocusin(){this._root.classList.add("ui5-card-header-hide-focus")}_actionsFocusout(){this._root.classList.remove("ui5-card-header-hide-focus")}_click(e){e.stopImmediatePropagation(),this.interactive&&this._root.contains(e.target)&&this.fireDecoratorEvent("click")}_keydown(e){if(!this.interactive||!this._root.contains(e.target))return;let t=qe(e),i=Ee(e);if(this._headerActive=t||i,t){this.fireDecoratorEvent("click");return}i&&e.preventDefault()}_keyup(e){if(!this.interactive||!this._root.contains(e.target))return;let t=Ee(e);this._headerActive=!1,t&&this.fireDecoratorEvent("click")}};sa([b()],Ji.prototype,"titleText",void 0);sa([b()],Ji.prototype,"subtitleText",void 0);sa([b()],Ji.prototype,"additionalText",void 0);sa([b({type:Boolean})],Ji.prototype,"interactive",void 0);sa([b({type:Number})],Ji.prototype,"_ariaLevel",void 0);sa([b({type:Boolean,noAttribute:!0})],Ji.prototype,"_headerActive",void 0);sa([oe()],Ji.prototype,"avatar",void 0);sa([oe()],Ji.prototype,"action",void 0);sa([Le("@ui5/webcomponents")],Ji,"i18nBundle",void 0);Ji=b3=sa([ce({tag:"ui5-card-header",languageAware:!0,renderer:fe,template:FW,styles:zW}),ee("click",{bubbles:!0})],Ji);Ji.define();var UW=["*"],jW=(()=>{class e{constructor(){this.titleText=Q(),this.subtitleText=Q(),this.additionalText=Q(),this.interactive=Q(!1,{transform:H1}),this.ui5Click=c1(),this.slots=[{name:"avatar",description:"Defines an avatar image, displayed in the left most part of the header."},{name:"action",description:"Defines an action, displayed in the right most part of the header."}],this.elementRef=Me(Ht),this.injector=Me(Lt)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let i=this.element,a=["titleText","subtitleText","additionalText","interactive"];for(let n of a){let u=n.replace(/-./g,_=>_[1].toUpperCase());this[u]&&typeof this[u]=="function"&&h0(this.injector,()=>{t0(()=>{let _=this[u]();i&&(i[n]=_)})})}let s=["ui5Click"];for(let n of s){let u=n.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[n]&&typeof this[n].emit=="function"&&i.addEventListener&&i.addEventListener(u,_=>{this[n].emit(_)})}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=gt({type:e,selectors:[["ui5-card-header"],["","ui5-card-header",""]],inputs:{titleText:[1,"titleText"],subtitleText:[1,"subtitleText"],additionalText:[1,"additionalText"],interactive:[1,"interactive"]},outputs:{ui5Click:"ui5Click"},exportAs:["ui5CardHeader"],ngContentSelectors:UW,decls:1,vars:0,template:function(i,a){i&1&&(R0(),O0(0))},encapsulation:2,changeDetection:0})}}return e})(),WW=["*"],b8=(()=>{class e{constructor(){this.design=Q("Default"),this.name=Q(),this.accessibleName=Q(),this.showTooltip=Q(!1,{transform:H1}),this.mode=Q("Decorative"),this.ui5Click=c1(),this.elementRef=Me(Ht),this.injector=Me(Lt)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let i=this.element,a=["design","name","accessibleName","showTooltip","mode"];for(let n of a){let u=n.replace(/-./g,_=>_[1].toUpperCase());this[u]&&typeof this[u]=="function"&&h0(this.injector,()=>{t0(()=>{let _=this[u]();i&&(i[n]=_)})})}let s=["ui5Click"];for(let n of s){let u=n.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[n]&&typeof this[n].emit=="function"&&i.addEventListener&&i.addEventListener(u,_=>{this[n].emit(_)})}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=gt({type:e,selectors:[["ui5-icon"],["","ui5-icon",""]],inputs:{design:[1,"design"],name:[1,"name"],accessibleName:[1,"accessibleName"],showTooltip:[1,"showTooltip"],mode:[1,"mode"]},outputs:{ui5Click:"ui5Click"},exportAs:["ui5Icon"],ngContentSelectors:WW,decls:1,vars:0,template:function(i,a){i&1&&(R0(),O0(0))},encapsulation:2,changeDetection:0})}}return e})(),Iw=async e=>{let t;if(e==="SAP-icons-v5"?t=(await Promise.resolve().then(()=>(AC(),yC))).default:t=(await Promise.resolve().then(()=>(EC(),MC))).default,typeof t=="string"&&t.endsWith(".json"))throw new Error('[icons] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the "Assets" documentation for more information.');return t},qW=()=>{H9("SAP-icons-v4",Iw),H9("SAP-icons-v5",Iw)};qW();var GW=class Hh{serviceType=Q.required();serviceName=Q.required();serviceDescription=Q.required();serviceIcon=Q.required();path=Q.required();cardClick=c1();static \u0275fac=function(t){return new(t||Hh)};static \u0275cmp=gt({type:Hh,selectors:[["mfp-visited-service-card"]],inputs:{serviceType:[1,"serviceType"],serviceName:[1,"serviceName"],serviceDescription:[1,"serviceDescription"],serviceIcon:[1,"serviceIcon"],path:[1,"path"]},outputs:{cardClick:"cardClick"},decls:6,vars:5,consts:[["role","button","tabindex","0",1,"visited-card-wrapper",3,"click","keydown.enter"],[1,"visited-card__type-badge"],[1,"visited-card"],["slot","header",3,"interactive","subtitleText","titleText"],["slot","avatar",1,"visited-card__icon",3,"name"]],template:function(t,i){t&1&&(Ve(0,"div",0),at("click",function(){return i.cardClick.emit(i.path())})("keydown.enter",function(){return i.cardClick.emit(i.path())}),Ve(1,"span",1),M1(2),Ue(),Ve(3,"ui5-card",2)(4,"ui5-card-header",3),na(5,"ui5-icon",4),Ue()()()),t&2&&(Pe(2),T5(i.serviceType()),Pe(2),v1("interactive",!0)("subtitleText",i.serviceDescription())("titleText",i.serviceName()),Pe(),v1("name",i.serviceIcon()))},dependencies:[PW,jW,b8],styles:[`:host{display:block}.visited-card-wrapper{position:relative;
|
|
119
|
+
`,sa=function(e,t,i,a){var s=arguments.length,n=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,a);else for(var _=e.length-1;_>=0;_--)(u=e[_])&&(n=(s<3?u(n):s>3?u(t,i,n):u(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},b3,Ji=b3=class extends we{constructor(){super(...arguments),this.interactive=!1,this._ariaLevel=3,this._headerActive=!1}onEnterDOM(){tt()&&this.setAttribute("desktop","")}get _root(){return this.shadowRoot.querySelector(".ui5-card-header")}get ariaRoleDescription(){return this.interactive?b3.i18nBundle.getText(em):b3.i18nBundle.getText(Jv)}get ariaRoleFocusableElement(){return this.interactive?"button":"group"}get ariaCardAvatarLabel(){return b3.i18nBundle.getText(r9)}get ariaLabelledBy(){let e=[];return this.titleText&&e.push(`${this._id}-title`),this.subtitleText&&e.push(`${this._id}-subtitle`),this.additionalText&&e.push(`${this._id}-additionalText`),this.hasAvatar&&e.push(`${this._id}-avatar`),e.length!==0?e.join(" "):void 0}get hasAvatar(){return!!this.avatar.length}get hasAction(){return!!this.action.length}_actionsFocusin(){this._root.classList.add("ui5-card-header-hide-focus")}_actionsFocusout(){this._root.classList.remove("ui5-card-header-hide-focus")}_click(e){e.stopImmediatePropagation(),this.interactive&&this._root.contains(e.target)&&this.fireDecoratorEvent("click")}_keydown(e){if(!this.interactive||!this._root.contains(e.target))return;let t=qe(e),i=Ee(e);if(this._headerActive=t||i,t){this.fireDecoratorEvent("click");return}i&&e.preventDefault()}_keyup(e){if(!this.interactive||!this._root.contains(e.target))return;let t=Ee(e);this._headerActive=!1,t&&this.fireDecoratorEvent("click")}};sa([b()],Ji.prototype,"titleText",void 0);sa([b()],Ji.prototype,"subtitleText",void 0);sa([b()],Ji.prototype,"additionalText",void 0);sa([b({type:Boolean})],Ji.prototype,"interactive",void 0);sa([b({type:Number})],Ji.prototype,"_ariaLevel",void 0);sa([b({type:Boolean,noAttribute:!0})],Ji.prototype,"_headerActive",void 0);sa([oe()],Ji.prototype,"avatar",void 0);sa([oe()],Ji.prototype,"action",void 0);sa([Le("@ui5/webcomponents")],Ji,"i18nBundle",void 0);Ji=b3=sa([ce({tag:"ui5-card-header",languageAware:!0,renderer:fe,template:FW,styles:zW}),ee("click",{bubbles:!0})],Ji);Ji.define();var UW=["*"],jW=(()=>{class e{constructor(){this.titleText=Q(),this.subtitleText=Q(),this.additionalText=Q(),this.interactive=Q(!1,{transform:H1}),this.ui5Click=c1(),this.slots=[{name:"avatar",description:"Defines an avatar image, displayed in the left most part of the header."},{name:"action",description:"Defines an action, displayed in the right most part of the header."}],this.elementRef=Me(Ht),this.injector=Me(Lt)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let i=this.element,a=["titleText","subtitleText","additionalText","interactive"];for(let n of a){let u=n.replace(/-./g,_=>_[1].toUpperCase());this[u]&&typeof this[u]=="function"&&h0(this.injector,()=>{t0(()=>{let _=this[u]();i&&(i[n]=_)})})}let s=["ui5Click"];for(let n of s){let u=n.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[n]&&typeof this[n].emit=="function"&&i.addEventListener&&i.addEventListener(u,_=>{this[n].emit(_)})}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=gt({type:e,selectors:[["ui5-card-header"],["","ui5-card-header",""]],inputs:{titleText:[1,"titleText"],subtitleText:[1,"subtitleText"],additionalText:[1,"additionalText"],interactive:[1,"interactive"]},outputs:{ui5Click:"ui5Click"},exportAs:["ui5CardHeader"],ngContentSelectors:UW,decls:1,vars:0,template:function(i,a){i&1&&(R0(),O0(0))},encapsulation:2,changeDetection:0})}}return e})(),WW=["*"],b8=(()=>{class e{constructor(){this.design=Q("Default"),this.name=Q(),this.accessibleName=Q(),this.showTooltip=Q(!1,{transform:H1}),this.mode=Q("Decorative"),this.ui5Click=c1(),this.elementRef=Me(Ht),this.injector=Me(Lt)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let i=this.element,a=["design","name","accessibleName","showTooltip","mode"];for(let n of a){let u=n.replace(/-./g,_=>_[1].toUpperCase());this[u]&&typeof this[u]=="function"&&h0(this.injector,()=>{t0(()=>{let _=this[u]();i&&(i[n]=_)})})}let s=["ui5Click"];for(let n of s){let u=n.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[n]&&typeof this[n].emit=="function"&&i.addEventListener&&i.addEventListener(u,_=>{this[n].emit(_)})}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=gt({type:e,selectors:[["ui5-icon"],["","ui5-icon",""]],inputs:{design:[1,"design"],name:[1,"name"],accessibleName:[1,"accessibleName"],showTooltip:[1,"showTooltip"],mode:[1,"mode"]},outputs:{ui5Click:"ui5Click"},exportAs:["ui5Icon"],ngContentSelectors:WW,decls:1,vars:0,template:function(i,a){i&1&&(R0(),O0(0))},encapsulation:2,changeDetection:0})}}return e})(),Iw=async e=>{let t;if(e==="SAP-icons-v5"?t=(await Promise.resolve().then(()=>(AC(),yC))).default:t=(await Promise.resolve().then(()=>(EC(),MC))).default,typeof t=="string"&&t.endsWith(".json"))throw new Error('[icons] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the "Assets" documentation for more information.');return t},qW=()=>{H9("SAP-icons-v4",Iw),H9("SAP-icons-v5",Iw)};qW();var GW=class Hh{serviceType=Q.required();serviceName=Q.required();serviceDescription=Q.required();serviceIcon=Q.required();path=Q.required();cardClick=c1();static \u0275fac=function(t){return new(t||Hh)};static \u0275cmp=gt({type:Hh,selectors:[["mfp-visited-service-card"]],inputs:{serviceType:[1,"serviceType"],serviceName:[1,"serviceName"],serviceDescription:[1,"serviceDescription"],serviceIcon:[1,"serviceIcon"],path:[1,"path"]},outputs:{cardClick:"cardClick"},decls:6,vars:5,consts:[["role","button","tabindex","0",1,"visited-card-wrapper",3,"click","keydown.enter"],[1,"visited-card__type-badge"],[1,"visited-card"],["slot","header",3,"interactive","subtitleText","titleText"],["slot","avatar",1,"visited-card__icon",3,"name"]],template:function(t,i){t&1&&(Ve(0,"div",0),at("click",function(){return i.cardClick.emit(i.path())})("keydown.enter",function(){return i.cardClick.emit(i.path())}),Ve(1,"span",1),M1(2),Ue(),Ve(3,"ui5-card",2)(4,"ui5-card-header",3),na(5,"ui5-icon",4),Ue()()()),t&2&&(Pe(2),T5(i.serviceType()),Pe(2),v1("interactive",!0)("subtitleText",i.serviceDescription())("titleText",i.serviceName()),Pe(),v1("name",i.serviceIcon()))},dependencies:[PW,jW,b8],styles:[`:host{display:block}.visited-card-wrapper{position:relative;cursor:pointer}.visited-card{width:100%}.visited-card__type-badge{position:absolute;top:-.625rem;right:.75rem;display:inline-block;padding:.125rem .625rem;border-radius:.75rem;background-color:#e8f3ff;color:#0070f2;font-size:var(--sapFontSmallSize, .75rem);font-weight:700;white-space:nowrap;z-index:1}.visited-card__icon{width:2.5rem;height:2.5rem;color:var(--sapHighlightColor, #0070f2)}
|
|
120
120
|
`],encapsulation:3})},XW={schedule(e,t){let i=setTimeout(e,t);return()=>clearTimeout(i)}};function $W(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function KW(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Zu;function YW(e,t){if(!Zu){let i=Element.prototype;Zu=i.matches||i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Zu.call(e,t):!1}function QW(e){let t={};return e.forEach(({propName:i,templateName:a,transform:s})=>{t[$W(a)]=[i,s]}),t}function JW(e,t){return t.get(r4).resolveComponentFactory(e).inputs}function eq(e,t){let i=e.childNodes,a=t.map(()=>[]),s=-1;t.some((n,u)=>n==="*"?(s=u,!0):!1);for(let n=0,u=i.length;n<u;++n){let _=i[n],g=tq(_,t,s);g!==-1&&a[g].push(_)}return a}function tq(e,t,i){let a=i;return KW(e)&&t.some((s,n)=>s!=="*"&&YW(e,s)?(a=n,!0):!1),a}var iq=10,aq=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(r4).resolveComponentFactory(e);for(let i of this.componentFactory.inputs)this.inputMap.set(i.propName,i.templateName)}create(e){return new oq(this.componentFactory,e,this.inputMap)}},oq=class{componentFactory;injector;inputMap;eventEmitters=new vN(1);events=this.eventEmitters.pipe(iV(e=>eV(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,i){this.componentFactory=e,this.injector=t,this.inputMap=i,this.ngZone=this.injector.get(no),this.appRef=this.injector.get(F6),this.cdScheduler=t.get(t4),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=XW.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},iq))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),Vz(this.componentRef.hostView)&&(Pz(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=Lt.create({providers:[],parent:this.injector}),i=eq(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:i,templateName:a})=>{let s=e.instance[i];return new C5(n=>{let u=s.subscribe(_=>n.next({name:a,value:_}));return()=>u.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},rq=class extends HTMLElement{ngElementEventsSubscription=null};function jl(e,t){let i=JW(e,t.injector),a=t.strategyFactory||new aq(e,t.injector),s=QW(i);class n extends rq{injector;static observedAttributes=Object.keys(s);get ngElementStrategy(){if(!this._ngElementStrategy){let _=this._ngElementStrategy=a.create(this.injector||t.injector);i.forEach(({propName:g,transform:C})=>{if(!this.hasOwnProperty(g))return;let I=this[g];delete this[g],_.setInputValue(g,I,C)})}return this._ngElementStrategy}_ngElementStrategy;constructor(_){super(),this.injector=_}attributeChangedCallback(_,g,C,I){let[x,L]=s[_];this.ngElementStrategy.setInputValue(x,C,L)}connectedCallback(){let _=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),_=!0),this.ngElementStrategy.connect(this),_||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(_=>{let g=new CustomEvent(_.name,{detail:_.value});this.dispatchEvent(g)})}}return i.forEach(({propName:u,transform:_,isSignal:g})=>{Object.defineProperty(n.prototype,u,{get(){let C=this.ngElementStrategy.getInputValue(u);return g&&vj(C)?C():C},set(C){this.ngElementStrategy.setInputValue(u,C,_)},configurable:!0,enumerable:!0})}),n}var pI=null;function q6(){return pI}function nq(e){pI??=e}var sq=class{};function lq(e,t){t=encodeURIComponent(t);for(let i of e.split(";")){let a=i.indexOf("="),[s,n]=a==-1?[i,""]:[i.slice(0,a),i.slice(a+1)];if(s.trim()===t)return decodeURIComponent(n)}return null}var cq=class{},uq="browser",vI=class{_doc;constructor(e){this._doc=e}manager},Dh=(()=>{class e extends vI{constructor(i){super(i)}supports(i){return!0}addEventListener(i,a,s,n){return i.addEventListener(a,s,n),()=>this.removeEventListener(i,a,s,n)}removeEventListener(i,a,s,n){return i.removeEventListener(a,s,n)}static \u0275fac=function(i){return new(i||e)(Ut(r7))};static \u0275prov=q0({token:e,factory:e.\u0275fac})}return e})(),Rh=new ot(""),mI=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(i,a){this._zone=a,i.forEach(u=>{u.manager=this});let s=i.filter(u=>!(u instanceof Dh));this._plugins=s.slice().reverse();let n=i.find(u=>u instanceof Dh);n&&this._plugins.push(n)}addEventListener(i,a,s,n){return this._findPluginFor(a).addEventListener(i,a,s,n)}getZone(){return this._zone}_findPluginFor(i){let a=this._eventNameToPlugin.get(i);if(a)return a;if(a=this._plugins.find(s=>s.supports(i)),!a)throw new V1(5101,!1);return this._eventNameToPlugin.set(i,a),a}static \u0275fac=function(i){return new(i||e)(Ut(Rh),Ut(no))};static \u0275prov=q0({token:e,factory:e.\u0275fac})}return e})(),ku="ng-app-id";function Tw(e){for(let t of e)t.remove()}function Bw(e,t){let i=t.createElement("style");return i.textContent=e,i}function hq(e,t,i,a){let s=e.head?.querySelectorAll(`style[${ku}="${t}"],link[${ku}="${t}"]`);if(s)for(let n of s)n.removeAttribute(ku),n instanceof HTMLLinkElement?a.set(n.href.slice(n.href.lastIndexOf("/")+1),{usage:0,elements:[n]}):n.textContent&&i.set(n.textContent,{usage:0,elements:[n]})}function Oh(e,t){let i=t.createElement("link");return i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),i}var gI=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(i,a,s,n={}){this.doc=i,this.appId=a,this.nonce=s,hq(i,a,this.inline,this.external),this.hosts.add(i.head)}addStyles(i,a){for(let s of i)this.addUsage(s,this.inline,Bw);a?.forEach(s=>this.addUsage(s,this.external,Oh))}removeStyles(i,a){for(let s of i)this.removeUsage(s,this.inline);a?.forEach(s=>this.removeUsage(s,this.external))}addUsage(i,a,s){let n=a.get(i);n?n.usage++:a.set(i,{usage:1,elements:[...this.hosts].map(u=>this.addElement(u,s(i,this.doc)))})}removeUsage(i,a){let s=a.get(i);s&&(s.usage--,s.usage<=0&&(Tw(s.elements),a.delete(i)))}ngOnDestroy(){for(let[,{elements:i}]of[...this.inline,...this.external])Tw(i);this.hosts.clear()}addHost(i){this.hosts.add(i);for(let[a,{elements:s}]of this.inline)s.push(this.addElement(i,Bw(a,this.doc)));for(let[a,{elements:s}]of this.external)s.push(this.addElement(i,Oh(a,this.doc)))}removeHost(i){this.hosts.delete(i)}addElement(i,a){return this.nonce&&a.setAttribute("nonce",this.nonce),i.appendChild(a)}static \u0275fac=function(i){return new(i||e)(Ut(r7),Ut(Mx),Ut(kx,8),Ut(Zx))};static \u0275prov=q0({token:e,factory:e.\u0275fac})}return e})(),Lu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},f_=/%COMP%/g,fI="%COMP%",dq=`_nghost-${fI}`,_q=`_ngcontent-${fI}`,pq=!0,vq=new ot("",{factory:()=>pq});function mq(e){return _q.replace(f_,e)}function gq(e){return dq.replace(f_,e)}function bI(e,t){return t.map(i=>i.replace(f_,e))}var Mw=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(i,a,s,n,u,_,g=null,C=null){this.eventManager=i,this.sharedStylesHost=a,this.appId=s,this.removeStylesOnCompDestroy=n,this.doc=u,this.ngZone=_,this.nonce=g,this.tracingService=C,this.defaultRenderer=new b_(i,u,_,this.tracingService)}createRenderer(i,a){if(!i||!a)return this.defaultRenderer;let s=this.getOrCreateRenderer(i,a);return s instanceof kw?s.applyToHost(i):s instanceof Nh&&s.applyStyles(),s}getOrCreateRenderer(i,a){let s=this.rendererByCompId,n=s.get(a.id);if(!n){let u=this.doc,_=this.ngZone,g=this.eventManager,C=this.sharedStylesHost,I=this.removeStylesOnCompDestroy,x=this.tracingService;switch(a.encapsulation){case ja.Emulated:n=new kw(g,C,a,this.appId,I,u,_,x);break;case ja.ShadowDom:return new Zw(g,i,a,u,_,this.nonce,x,C);case ja.ExperimentalIsolatedShadowDom:return new Zw(g,i,a,u,_,this.nonce,x);default:n=new Nh(g,C,a,I,u,_,x);break}s.set(a.id,n)}return n}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(i){this.rendererByCompId.delete(i)}static \u0275fac=function(i){return new(i||e)(Ut(mI),Ut(gI),Ut(Mx),Ut(vq),Ut(r7),Ut(no),Ut(kx),Ut(c7,8))};static \u0275prov=q0({token:e,factory:e.\u0275fac})}return e})(),b_=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,i,a){this.eventManager=e,this.doc=t,this.ngZone=i,this.tracingService=a}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Lu[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Ew(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(Ew(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){t.remove()}selectRootElement(e,t){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new V1(-5104,!1);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,a){if(a){t=a+":"+t;let s=Lu[a];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){let a=Lu[i];a?e.removeAttributeNS(a,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,a){a&(cn.DashCase|cn.Important)?e.style.setProperty(t,i,a&cn.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&cn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e!=null&&(e[t]=i)}setValue(e,t){e.nodeValue=t}listen(e,t,i,a){if(typeof e=="string"&&(e=q6().getGlobalEventTarget(this.doc,e),!e))throw new V1(5102,!1);let s=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(e,t,s)),this.eventManager.addEventListener(e,t,s,a)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function Ew(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Zw=class extends b_{hostEl;sharedStylesHost;shadowRoot;constructor(e,t,i,a,s,n,u,_){super(e,a,s,u),this.hostEl=t,this.sharedStylesHost=_,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let g=i.styles;g=bI(i.id,g);for(let I of g){let x=document.createElement("style");n&&x.setAttribute("nonce",n),x.textContent=I,this.shadowRoot.appendChild(x)}let C=i.getExternalStyles?.();if(C)for(let I of C){let x=Oh(I,a);n&&x.setAttribute("nonce",n),this.shadowRoot.appendChild(x)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Nh=class extends b_{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,i,a,s,n,u,_){super(e,s,n,u),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=a;let g=i.styles;this.styles=_?bI(_,g):g,this.styleUrls=i.getExternalStyles?.(_)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&H3.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},kw=class extends Nh{contentAttr;hostAttr;constructor(e,t,i,a,s,n,u,_){let g=a+"-"+i.id;super(e,t,i,s,n,u,_,g),this.contentAttr=mq(g),this.hostAttr=gq(g)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}},fq=class CI extends sq{supportsDOMEvents=!0;static makeCurrent(){nq(new CI)}onAndCancel(t,i,a,s){return t.addEventListener(i,a,s),()=>{t.removeEventListener(i,a,s)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.remove()}createElement(t,i){return i=i||this.getDefaultDocument(),i.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return i==="window"?window:i==="document"?t:i==="body"?t.body:null}getBaseHref(t){let i=bq();return i==null?null:Cq(i)}resetBaseElement(){C3=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return lq(document.cookie,t)}},C3=null;function bq(){return C3=C3||document.head.querySelector("base"),C3?C3.getAttribute("href"):null}function Cq(e){return new URL(e,document.baseURI).pathname}var wq=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||e)};static \u0275prov=q0({token:e,factory:e.\u0275fac})}return e})(),Lw=["alt","control","meta","shift"],yq={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Aq={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},xq=(()=>{class e extends vI{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,a,s,n){let u=e.parseEventName(a),_=e.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>q6().onAndCancel(i,u.domEventName,_,n))}static parseEventName(i){let a=i.toLowerCase().split("."),s=a.shift();if(a.length===0||!(s==="keydown"||s==="keyup"))return null;let n=e._normalizeKey(a.pop()),u="",_=a.indexOf("code");if(_>-1&&(a.splice(_,1),u="code."),Lw.forEach(C=>{let I=a.indexOf(C);I>-1&&(a.splice(I,1),u+=C+".")}),u+=n,a.length!=0||n.length===0)return null;let g={};return g.domEventName=s,g.fullKey=u,g}static matchEventFullKeyCode(i,a){let s=yq[i.key]||i.key,n="";return a.indexOf("code.")>-1&&(s=i.code,n="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Lw.forEach(u=>{if(u!==s){let _=Aq[u];_(i)&&(n+=u+".")}}),n+=s,n===a)}static eventCallback(i,a,s){return n=>{e.matchEventFullKeyCode(n,i)&&s.runGuarded(()=>a(n))}}static _normalizeKey(i){return i==="esc"?"escape":i}static \u0275fac=function(i){return new(i||e)(Ut(r7))};static \u0275prov=q0({token:e,factory:e.\u0275fac})}return e})();async function Sq(e,t){return RW(Iq(e,t))}function Iq(e,t){return{platformRef:t?.platformRef,appProviders:[...Zq,...e?.providers??[]],platformProviders:Eq}}function Tq(){fq.makeCurrent()}function Bq(){return new s7}function Mq(){return oF(document),document}var Eq=[{provide:Zx,useValue:uq},{provide:Ex,useValue:Tq,multi:!0},{provide:r7,useFactory:Mq}],Zq=[{provide:Rd,useValue:"root"},{provide:s7,useFactory:Bq},{provide:Rh,useClass:Dh,multi:!0},{provide:Rh,useClass:xq,multi:!0},Mw,gI,mI,{provide:p_,useExisting:Mw},{provide:cq,useClass:wq},[]],Hw=e=>e==="true"?!0:e==="false"?!1:isNaN(Number(e))?e:Number(e),kq=(e,t)=>{let i=Hw(t),a=Hw(e.if.value);switch(e.if.condition){case"equals":return i===a;case"notEquals":return i!==a;case"greaterThan":return i>a;case"greaterThanOrEqual":return i>=a;case"lessThan":return i<a;case"lessThanOrEqual":return i<=a;case"contains":return Array.isArray(i)||typeof i=="string"&&typeof a=="string"?i.includes(a):!1}return!1},Lq=(e,t)=>t?t.reduce((i,a)=>kq(a,e)?Te(Te({},i),a.styles):i,{}):{},Hq=oc(DO(),1),C_=(e,t)=>{let i=t.jsonPathExpression||t.property;if(!i)return;if(i instanceof Array){console.error(`Property defined as an array: ${JSON.stringify(i)}, provide "jsonPathExpression" field to properly ready resource value`);return}let a=i.startsWith("$.")?"":"$.",s=Hq.default.query(e,`${a}${i}`),n=s.length?s[0]:void 0;return n&&t.propertyField?Dq(n[t.propertyField.key],t.propertyField.transform):n},Dq=(e,t)=>e==null||t==null||!t.length?e:t.reduce((i,a)=>{if(i==null)return i;switch(a){case"uppercase":return i.toUpperCase();case"lowercase":return i.toLowerCase();case"capitalize":{let s=String(i);return s.length?s.charAt(0).toUpperCase()+s.slice(1):s}case"decode":try{return Oq(i)}catch{return i}case"encode":try{return Rq(i)}catch{return i}default:return i}},e),Rq=e=>{try{let t=new TextEncoder().encode(e),i=Array.from(t,a=>String.fromCharCode(a)).join("");return btoa(i)}catch(t){throw console.error("Base64 encoding failed:",t),new Error("Failed to encode string to Base64")}},Oq=e=>{try{let t=atob(e),i=Uint8Array.from(t,a=>a.charCodeAt(0));return new TextDecoder().decode(i)}catch(t){throw console.error("Base64 decoding failed:",t),new Error("Failed to decode Base64 string")}};function Nq(e,t){return t?C_(t,e)??e.value:e.value}var Vq="Positive",Pq="Negative",Fq="accept",zq="decline",Uq=class Vh{boolValue=Q.required();testId=Q("boolean-value-icon");iconDesign=N1(()=>this.boolValue()?Vq:Pq);iconName=N1(()=>this.boolValue()?Fq:zq);static \u0275fac=function(t){return new(t||Vh)};static \u0275cmp=gt({type:Vh,selectors:[["mfp-boolean-value"]],inputs:{boolValue:[1,"boolValue"],testId:[1,"testId"]},decls:1,vars:3,consts:[[3,"design","name"]],template:function(t,i){t&1&&na(0,"ui5-icon",0),t&2&&(v1("design",i.iconDesign())("name",i.iconName()),c0("test-id",i.testId()))},dependencies:[b8],encapsulation:2,changeDetection:0})},jq=["*"],Wq=(()=>{class e{constructor(){this.disabled=Q(!1,{transform:H1}),this.tooltip=Q(),this.href=Q(),this.target=Q(),this.design=Q("Default"),this.interactiveAreaSize=Q("Normal"),this.wrappingType=Q("Normal"),this.accessibleName=Q(),this.accessibleNameRef=Q(),this.accessibleRole=Q("Link"),this.accessibilityAttributes=Q({}),this.accessibleDescription=Q(),this.icon=Q(),this.endIcon=Q(),this.ui5Click=c1(),this.slots=[{name:"default",description:`Defines the text of the component.
|
|
121
121
|
|
|
122
122
|
**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.`}],this.elementRef=Me(Ht),this.injector=Me(Lt)}get element(){return this.elementRef.nativeElement}ngAfterViewInit(){let i=this.element,a=["disabled","tooltip","href","target","design","interactiveAreaSize","wrappingType","accessibleName","accessibleNameRef","accessibleRole","accessibilityAttributes","accessibleDescription","icon","endIcon"];for(let n of a){let u=n.replace(/-./g,_=>_[1].toUpperCase());this[u]&&typeof this[u]=="function"&&h0(this.injector,()=>{t0(()=>{let _=this[u]();i&&(i[n]=_)})})}let s=["ui5Click"];for(let n of s){let u=n.replace("ui5","").replace(/([A-Z])/g,"-$1").toLowerCase().substring(1);this[n]&&typeof this[n].emit=="function"&&i.addEventListener&&i.addEventListener(u,_=>{this[n].emit(_)})}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=gt({type:e,selectors:[["ui5-link"],["","ui5-link",""]],inputs:{disabled:[1,"disabled"],tooltip:[1,"tooltip"],href:[1,"href"],target:[1,"target"],design:[1,"design"],interactiveAreaSize:[1,"interactiveAreaSize"],wrappingType:[1,"wrappingType"],accessibleName:[1,"accessibleName"],accessibleNameRef:[1,"accessibleNameRef"],accessibleRole:[1,"accessibleRole"],accessibilityAttributes:[1,"accessibilityAttributes"],accessibleDescription:[1,"accessibleDescription"],icon:[1,"icon"],endIcon:[1,"endIcon"]},outputs:{ui5Click:"ui5Click"},exportAs:["ui5Link"],ngContentSelectors:jq,decls:1,vars:0,template:function(i,a){i&1&&(R0(),O0(0))},encapsulation:2,changeDetection:0})}}return e})(),qq=class Ph{urlValue=Q.required();testId=Q("link-value-link");stopPropagation(t){t.stopPropagation()}static \u0275fac=function(t){return new(t||Ph)};static \u0275cmp=gt({type:Ph,selectors:[["mfp-link-value"]],inputs:{urlValue:[1,"urlValue"],testId:[1,"testId"]},decls:2,vars:3,consts:[["target","_blank",3,"click","href","tooltip"]],template:function(t,i){t&1&&(Ve(0,"ui5-link",0),at("click",function(a){return i.stopPropagation(a)}),M1(1,"Link"),Ue()),t&2&&(v1("href",i.urlValue())("tooltip",i.urlValue()),c0("test-id",i.testId()))},dependencies:[Wq],encapsulation:2,changeDetection:0})};function Gq(e,t){if(e&1&&M1(0),e&2){let i=Se();si(" ",i.value()," ")}}function Xq(e,t){if(e&1&&M1(0),e&2){let i=Se();si(" ",i.maskedValue()," ")}}var $q=class Fh{value=Q.required();isVisible=Q(!1);testId=Q("secret-value");maskedValue=N1(()=>"*".repeat(this.value().length||8));static \u0275fac=function(t){return new(t||Fh)};static \u0275cmp=gt({type:Fh,selectors:[["mfp-secret-value"]],inputs:{value:[1,"value"],isVisible:[1,"isVisible"],testId:[1,"testId"]},decls:3,vars:4,consts:[[1,"secret-value"]],template:function(t,i){t&1&&(WS(0,"span",0),Jt(1,Gq,1,1)(2,Xq,1,1),qS()),t&2&&(n4("masked",!i.isVisible()),c0("test-id",i.testId()),Pe(),e0(i.isVisible()?1:2))},styles:[".secret-value[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}.masked[_ngcontent-%COMP%]{transform:translateY(.2em);display:flex}"],changeDetection:0})},Kq="sys-help-2",Yq="M8 0c1.104 0 2.14.208 3.11.625a8.215 8.215 0 0 1 2.546 1.703 7.852 7.852 0 0 1 1.719 2.547c.417.98.625 2.02.625 3.125 0 1.104-.208 2.14-.625 3.11a8.082 8.082 0 0 1-1.719 2.546 8.082 8.082 0 0 1-2.547 1.719A7.785 7.785 0 0 1 8 16a7.897 7.897 0 0 1-3.125-.625 7.852 7.852 0 0 1-2.547-1.719A8.215 8.215 0 0 1 .625 11.11 7.786 7.786 0 0 1 0 8c0-1.104.208-2.146.625-3.125a7.977 7.977 0 0 1 1.703-2.547A7.977 7.977 0 0 1 4.875.625 7.897 7.897 0 0 1 8 0Zm-.156 13.281c.312 0 .583-.114.812-.344.23-.229.344-.5.344-.812a1.06 1.06 0 0 0-.344-.797A1.136 1.136 0 0 0 7.844 11c-.313 0-.578.11-.797.328a1.085 1.085 0 0 0-.328.797c0 .313.11.583.328.813.219.229.484.343.797.343ZM11 5.812c0-.666-.281-1.26-.844-1.78-.562-.522-1.364-.782-2.406-.782-.958 0-1.714.25-2.266.75s-.859 1.115-.921 1.844h1.625c.104-.5.286-.839.546-1.016.26-.177.63-.266 1.11-.266.479 0 .843.13 1.093.391.25.26.376.547.376.86 0 .208-.027.354-.079.437-.052.083-.192.24-.421.469l-.626.531c-.312.25-.552.469-.718.656-.167.188-.287.38-.36.578-.073.198-.12.417-.14.657-.021.24-.032.526-.032.859H8.5c0-.25.005-.448.016-.594.01-.146.041-.276.093-.39a1.12 1.12 0 0 1 .235-.329c.104-.104.26-.24.469-.406l.843-.781.5-.563.281-.5.063-.625Z",Qq=!0,Jq="0 0 16 16",eG="SAP-icons-v4",tG="@ui5/webcomponents-icons";he(Kq,{pathData:Yq,ltr:Qq,viewBox:Jq,collection:eG,packageName:tG});var iG="sys-help-2",aG="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm.2-8A3.194 3.194 0 0 0 5 6.2a1 1 0 0 0 1.995.103C6.995 5.619 7.443 5 8.2 5c.668 0 1.2.533 1.2 1.2 0 .41-.136.684-.322.859-.19.179-.528.341-1.078.341a1 1 0 0 0-.995.898S7 8.448 7 9a1 1 0 0 0 1.956.291 3.214 3.214 0 0 0 1.491-.774c.64-.6.953-1.428.953-2.317C11.4 4.428 9.972 3 8.2 3Z",oG=!0,rG="0 0 16 16",nG="SAP-icons-v5",sG="@ui5/webcomponents-icons";he(iG,{pathData:aG,ltr:oG,viewBox:rG,collection:nG,packageName:sG});var wI=(function(e){return e.Set1="Set1",e.Set2="Set2",e.Neutral="Neutral",e.Information="Information",e.Positive="Positive",e.Negative="Negative",e.Critical="Critical",e})(wI||{}),j2=wI;function lG(){return m(ge,{children:this.interactive?m("button",{class:"ui5-tag-root",title:this._title,"aria-roledescription":this._roleDescription,"aria-description":this._valueState,onClick:this._onclick,part:"root",children:Dw.call(this)}):m("div",{class:"ui5-tag-root",title:this._title,part:"root",children:Dw.call(this)})})}function Dw(){return N(ge,{children:[m("slot",{name:"icon"}),this._semanticIconName&&m(Ae,{class:"ui5-tag-semantic-icon",name:this._semanticIconName}),m("span",{class:"ui5-hidden-text",children:this.tagDescription}),this.hasText&&m("span",{class:"ui5-tag-text",children:m("slot",{})})]})}j("@ui5/webcomponents-theming","sap_horizon",async()=>ue);j("@ui5/webcomponents","sap_horizon",async()=>He,"host");var cG=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block}:host{font-size:var(--sapFontSmallSize);font-family:var(--sapFontBoldFamily);font-weight:var(--_ui5-tag-font-weight);letter-spacing:var(--_ui5-tag-letter-spacing);line-height:var(--_ui5-tag-height)}.ui5-tag-root{display:flex;align-items:baseline;justify-content:center;width:100%;min-width:1.125em;max-width:100%;box-sizing:border-box;padding:var(--_ui5-tag-text-padding);border:.0625rem solid;border-radius:var(--sapButton_BorderCornerRadius);white-space:normal;font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit}:host([interactive]) .ui5-tag-root:active{text-shadow:var(--ui5-tag-text-shadow)}:host([interactive]) .ui5-tag-root{cursor:pointer}:host([desktop][interactive]) .ui5-tag-root:focus,:host([interactive]) .ui5-tag-root:focus-visible{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:1px}:host([wrapping-type="None"]) .ui5-tag-root{white-space:nowrap}:host([_icon-only]) .ui5-tag-root{padding-inline:var(--_ui5-tag-padding-inline-icon-only)}.ui5-tag-text{text-transform:var(--_ui5-tag-text-transform);text-align:start;pointer-events:none;overflow:hidden;text-overflow:ellipsis}:host([_has-icon]) .ui5-tag-text{padding-inline-start:var(--_ui5-tag-icon-gap)}[ui5-icon],::slotted([ui5-icon]){width:var(--_ui5-tag-icon-width);min-width:var(--_ui5-tag-icon-width);color:inherit;pointer-events:none;align-self:flex-start}.ui5-tag-root{background-color:var(--sapNeutralBackground);border-color:var(--sapNeutralBorderColor);color:var(--sapTextColor);text-shadow:var(--ui5-tag-text-shadow)}:host([interactive]) .ui5-tag-root:hover{background-color:var(--sapButton_Neutral_Hover_Background);border-color:var(--sapButton_Neutral_Hover_BorderColor);color:var(--sapButton_Neutral_Hover_TextColor)}:host([interactive]) .ui5-tag-root:active{background-color:var(--sapButton_Neutral_Active_Background);border-color:var(--sapButton_Neutral_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]) .ui5-tag-root{background-color:var(--sapButton_Success_Background);border-color:var(--sapButton_Success_BorderColor);color:var(--sapButton_Success_TextColor);text-shadow:var(--ui5-tag-contrast-text-shadow)}:host([interactive][design="Positive"]) .ui5-tag-root:hover{background-color:var(--sapButton_Success_Hover_Background);border-color:var(--sapButton_Success_Hover_BorderColor);color:var(--sapButton_Success_Hover_TextColor)}:host([interactive][design="Positive"]) .ui5-tag-root:active{background-color:var(--sapButton_Success_Active_Background);border-color:var(--sapButton_Success_Active_BorderColor);color:var(--sapButton_Accept_Selected_TextColor)}:host([design="Negative"]) .ui5-tag-root{background-color:var(--sapButton_Negative_Background);border-color:var(--sapButton_Negative_BorderColor);color:var(--sapButton_Negative_TextColor);text-shadow:var(--ui5-tag-contrast-text-shadow)}:host([interactive][design="Negative"]) .ui5-tag-root:hover{background-color:var(--sapButton_Negative_Hover_Background);border-color:var(--sapButton_Negative_Hover_BorderColor);color:var(--sapButton_Negative_Hover_TextColor)}:host([interactive][design="Negative"]) .ui5-tag-root:active{background-color:var(--sapButton_Negative_Active_Background);border-color:var(--sapButton_Negative_Active_BorderColor);color:var(--sapButton_Reject_Selected_TextColor)}:host([design="Critical"]) .ui5-tag-root{background-color:var(--sapButton_Critical_Background);border-color:var(--sapButton_Critical_BorderColor);color:var(--sapButton_Critical_TextColor);text-shadow:var(--ui5-tag-contrast-text-shadow)}:host([interactive][design="Critical"]) .ui5-tag-root:hover{background-color:var(--sapButton_Critical_Hover_Background);border-color:var(--sapButton_Critical_Hover_BorderColor);color:var(--sapButton_Critical_Hover_TextColor)}:host([interactive][design="Critical"]) .ui5-tag-root:active{background-color:var(--sapButton_Critical_Active_Background);border-color:var(--sapButton_Critical_Active_BorderColor);color:var(--sapButton_Attention_Selected_TextColor)}:host([design="Information"]) .ui5-tag-root{background-color:var(--sapButton_Information_Background);border-color:var(--sapButton_Information_BorderColor);color:var(--sapButton_Information_TextColor);text-shadow:var(--ui5-tag-information-text-shadow)}:host([interactive][design="Information"]) .ui5-tag-root:hover{background-color:var(--sapButton_Information_Hover_Background);border-color:var(--sapButton_Information_Hover_BorderColor);color:var(--sapButton_Information_Hover_TextColor)}:host([interactive][design="Information"]) .ui5-tag-root:active{background-color:var(--sapButton_Information_Active_Background);border-color:var(--sapButton_Information_Active_BorderColor);color:var(--sapButton_Selected_TextColor)}:host([design="Set1"]) .ui5-tag-root{text-shadow:var(--ui5-tag-contrast-text-shadow)}:host([design="Set1"]) .ui5-tag-root,:host([interactive][design="Set1"]) .ui5-tag-root{background-color:var(--sapIndicationColor_1_Background);border-color:var(--sapIndicationColor_1_BorderColor);color:var(--sapIndicationColor_1_TextColor)}:host([interactive][design="Set1"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_1_Hover_Background)}:host([interactive][design="Set1"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_1_Active_Background);border-color:var(--sapIndicationColor_1_Active_BorderColor);color:var(--sapIndicationColor_1_Active_TextColor)}:host([design="Set1"][color-scheme="2"]) .ui5-tag-root{background-color:var(--sapIndicationColor_2_Background);border-color:var(--sapIndicationColor_2_BorderColor);color:var(--sapIndicationColor_2_TextColor)}:host([interactive][design="Set1"][color-scheme="2"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_2_Hover_Background)}:host([interactive][design="Set1"][color-scheme="2"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_2_Active_Background);border-color:var(--sapIndicationColor_2_Active_BorderColor);color:var(--sapIndicationColor_2_Active_TextColor)}:host([design="Set1"][color-scheme="3"]) .ui5-tag-root{background-color:var(--sapIndicationColor_3_Background);border-color:var(--sapIndicationColor_3_BorderColor);color:var(--sapIndicationColor_3_TextColor)}:host([interactive][design="Set1"][color-scheme="3"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_3_Hover_Background)}:host([interactive][design="Set1"][color-scheme="3"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_3_Active_Background);border-color:var(--sapIndicationColor_3_Active_BorderColor);color:var(--sapIndicationColor_3_Active_TextColor)}:host([design="Set1"][color-scheme="4"]) .ui5-tag-root{background-color:var(--sapIndicationColor_4_Background);border-color:var(--sapIndicationColor_4_BorderColor);color:var(--sapIndicationColor_4_TextColor)}:host([interactive][design="Set1"][color-scheme="4"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_4_Hover_Background)}:host([interactive][design="Set1"][color-scheme="4"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_4_Active_Background);border-color:var(--sapIndicationColor_4_Active_BorderColor);color:var(--sapIndicationColor_4_Active_TextColor)}:host([design="Set1"][color-scheme="5"]) .ui5-tag-root{background-color:var(--sapIndicationColor_5_Background);border-color:var(--sapIndicationColor_5_BorderColor);color:var(--sapIndicationColor_5_TextColor)}:host([interactive][design="Set1"][color-scheme="5"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_5_Hover_Background)}:host([interactive][design="Set1"][color-scheme="5"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_5_Active_Background);border-color:var(--sapIndicationColor_5_Active_BorderColor);color:var(--sapIndicationColor_5_Active_TextColor)}:host([design="Set1"][color-scheme="6"]) .ui5-tag-root{background-color:var(--sapIndicationColor_6_Background);border-color:var(--sapIndicationColor_6_BorderColor);color:var(--sapIndicationColor_6_TextColor)}:host([interactive][design="Set1"][color-scheme="6"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_6_Hover_Background)}:host([interactive][design="Set1"][color-scheme="6"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_6_Active_Background);border-color:var(--sapIndicationColor_6_Active_BorderColor);color:var(--sapIndicationColor_6_Active_TextColor)}:host([design="Set1"][color-scheme="7"]) .ui5-tag-root{background-color:var(--sapIndicationColor_7_Background);border-color:var(--sapIndicationColor_7_BorderColor);color:var(--sapIndicationColor_7_TextColor)}:host([interactive][design="Set1"][color-scheme="7"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_7_Hover_Background)}:host([interactive][design="Set1"][color-scheme="7"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_7_Active_Background);border-color:var(--sapIndicationColor_7_Active_BorderColor);color:var(--sapIndicationColor_7_Active_TextColor)}:host([design="Set1"][color-scheme="8"]) .ui5-tag-root{background-color:var(--sapIndicationColor_8_Background);border-color:var(--sapIndicationColor_8_BorderColor);color:var(--sapIndicationColor_8_TextColor)}:host([interactive][design="Set1"][color-scheme="8"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_8_Hover_Background)}:host([interactive][design="Set1"][color-scheme="8"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_8_Active_Background);border-color:var(--sapIndicationColor_8_Active_BorderColor);color:var(--sapIndicationColor_8_Active_TextColor)}:host([design="Set1"][color-scheme="9"]) .ui5-tag-root{background-color:var(--sapIndicationColor_9_Background);border-color:var(--sapIndicationColor_9_BorderColor);color:var(--sapIndicationColor_9_TextColor)}:host([interactive][design="Set1"][color-scheme="9"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_9_Hover_Background)}:host([interactive][design="Set1"][color-scheme="9"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_9_Active_Background);border-color:var(--sapIndicationColor_9_Active_BorderColor);color:var(--sapIndicationColor_9_Active_TextColor)}:host([design="Set1"][color-scheme="10"]) .ui5-tag-root{background-color:var(--sapIndicationColor_10_Background);border-color:var(--sapIndicationColor_10_BorderColor);color:var(--sapIndicationColor_10_TextColor)}:host([interactive][design="Set1"][color-scheme="10"]) .ui5-tag-root:hover{background-color:var(--sapIndicationColor_10_Hover_Background)}:host([interactive][design="Set1"][color-scheme="10"]) .ui5-tag-root:active{background-color:var(--sapIndicationColor_10_Active_Background);border-color:var(--sapIndicationColor_10_Active_BorderColor);color:var(--sapIndicationColor_10_Active_TextColor)}:host([design="Set2"]) .ui5-tag-root{text-shadow:var(--ui5-tag-text-shadow)}:host([design="Set2"]) .ui5-tag-root,:host([interactive][design="Set2"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-1-background);border-color:var(--ui5-tag-set2-color-scheme-1-border);color:var(--ui5-tag-set2-color-scheme-1-color)}:host([interactive][design="Set2"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-1-hover-background)}:host([interactive][design="Set2"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-1-active-background);border-color:var(--ui5-tag-set2-color-scheme-1-active-border);color:var(--ui5-tag-set2-color-scheme-1-active-color)}:host([design="Set2"][color-scheme="2"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-2-background);border-color:var(--ui5-tag-set2-color-scheme-2-border);color:var(--ui5-tag-set2-color-scheme-2-color)}:host([design="Set2"][color-scheme="3"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-3-background);border-color:var(--ui5-tag-set2-color-scheme-3-border);color:var(--ui5-tag-set2-color-scheme-3-color)}:host([interactive][design="Set2"][color-scheme="3"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-3-hover-background)}:host([interactive][design="Set2"][color-scheme="3"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-3-active-background);border-color:var(--ui5-tag-set2-color-scheme-3-active-border);color:var(--ui5-tag-set2-color-scheme-3-active-color)}:host([design="Set2"][color-scheme="4"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-4-background);border-color:var(--ui5-tag-set2-color-scheme-4-border);color:var(--ui5-tag-set2-color-scheme-4-color)}:host([interactive][design="Set2"][color-scheme="4"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-4-hover-background)}:host([interactive][design="Set2"][color-scheme="4"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-4-active-background);border-color:var(--ui5-tag-set2-color-scheme-4-active-border);color:var(--ui5-tag-set2-color-scheme-4-active-color)}:host([design="Set2"][color-scheme="5"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-5-background);border-color:var(--ui5-tag-set2-color-scheme-5-border);color:var(--ui5-tag-set2-color-scheme-5-color)}:host([interactive][design="Set2"][color-scheme="5"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-5-hover-background)}:host([interactive][design="Set2"][color-scheme="5"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-5-active-background);border-color:var(--ui5-tag-set2-color-scheme-5-active-border);color:var(--ui5-tag-set2-color-scheme-5-active-color)}:host([design="Set2"][color-scheme="6"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-6-background);border-color:var(--ui5-tag-set2-color-scheme-6-border);color:var(--ui5-tag-set2-color-scheme-6-color)}:host([interactive][design="Set2"][color-scheme="6"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-6-hover-background)}:host([interactive][design="Set2"][color-scheme="6"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-6-active-background);border-color:var(--ui5-tag-set2-color-scheme-6-active-border);color:var(--ui5-tag-set2-color-scheme-6-active-color)}:host([design="Set2"][color-scheme="7"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-7-background);border-color:var(--ui5-tag-set2-color-scheme-7-border);color:var(--ui5-tag-set2-color-scheme-7-color)}:host([interactive][design="Set2"][color-scheme="7"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-7-hover-background)}:host([interactive][design="Set2"][color-scheme="7"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-7-active-background);border-color:var(--ui5-tag-set2-color-scheme-7-active-border);color:var(--ui5-tag-set2-color-scheme-7-active-color)}:host([design="Set2"][color-scheme="8"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-8-background);border-color:var(--ui5-tag-set2-color-scheme-8-border);color:var(--ui5-tag-set2-color-scheme-8-color)}:host([interactive][design="Set2"][color-scheme="8"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-8-hover-background)}:host([interactive][design="Set2"][color-scheme="8"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-8-active-background);border-color:var(--ui5-tag-set2-color-scheme-8-active-border);color:var(--ui5-tag-set2-color-scheme-8-active-color)}:host([design="Set2"][color-scheme="9"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-9-background);border-color:var(--ui5-tag-set2-color-scheme-9-border);color:var(--ui5-tag-set2-color-scheme-9-color)}:host([interactive][design="Set2"][color-scheme="9"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-9-hover-background)}:host([interactive][design="Set2"][color-scheme="9"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-9-active-background);border-color:var(--ui5-tag-set2-color-scheme-9-active-border);color:var(--ui5-tag-set2-color-scheme-9-active-color)}:host([interactive][design="Set2"][color-scheme="10"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-10-hover-background)}:host([interactive][design="Set2"][color-scheme="10"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-10-active-background);border-color:var(--ui5-tag-set2-color-scheme-10-active-border);color:var(--ui5-tag-set2-color-scheme-10-active-color)}:host([design="Set2"][color-scheme="10"]) .ui5-tag-root{background-color:var(--ui5-tag-set2-color-scheme-10-background);border-color:var(--ui5-tag-set2-color-scheme-10-border);color:var(--ui5-tag-set2-color-scheme-10-color)}:host([interactive][design="Set2"][color-scheme="2"]) .ui5-tag-root:hover{background-color:var(--ui5-tag-set2-color-scheme-2-hover-background)}:host([interactive][design="Set2"][color-scheme="2"]) .ui5-tag-root:active{background-color:var(--ui5-tag-set2-color-scheme-2-active-background);border-color:var(--ui5-tag-set2-color-scheme-2-active-border);color:var(--ui5-tag-set2-color-scheme-2-active-color)}:host([size="L"]){font-family:var(--sapFontSemiboldDuplexFamily);line-height:var(--_ui5-tag-height_size_l)}:host([size="L"]) .ui5-tag-root{font-size:var(--_ui5-tag-font-size_size_l);min-width:var(--_ui5-tag-min-width_size_l);padding:var(--_ui5-tag-text_padding_size_l)}:host([size="L"]) [ui5-icon],:host([size="L"]) ::slotted([ui5-icon]){min-width:var(--_ui5-tag-icon_min_width_size_l);min-height:var(--_ui5-tag-icon_min_height_size_l);height:var(--_ui5-tag-icon_height_size_l)}
|