@sdkgen/playground 0.0.0-dev.20240112194550 → 0.0.0-dev.20240305214633
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{3661:(Ee,y,b)=>{"use strict";b.d(y,{m:()=>U});var a=b(7481),i=b(1322),te=b(9462),q=b(6086),v=b(7950),C=b(1238);function E(X,le){1&X&&(i.ynx(0),i._uU(1,"info_outline"),i.BQk())}function A(X,le){1&X&&(i.ynx(0),i._uU(1,"error"),i.BQk())}function R(X,le){1&X&&(i.ynx(0),i._uU(1,"public"),i.BQk())}function S(X,le){1&X&&(i.ynx(0),i._uU(1,"warning"),i.BQk())}function P(X,le){1&X&&(i.ynx(0),i._uU(1,"bug_report"),i.BQk())}function x(X,le){if(1&X&&i._UZ(0,"ngx-json-viewer",6),2&X){const Q=i.oxw().$implicit;i.Q6J("json",Q.details)("expanded",!1)}}function w(X,le){if(1&X&&(i.TgZ(0,"li",2)(1,"mat-icon",3),i.YNc(2,E,2,0,"ng-container",4)(3,A,2,0,"ng-container",4)(4,R,2,0,"ng-container",4)(5,S,2,0,"ng-container",4)(6,P,2,0,"ng-container",4),i.qZA(),i.TgZ(7,"span"),i._uU(8),i.qZA(),i.YNc(9,x,1,2,"ngx-json-viewer",5),i.qZA()),2&X){const Q=le.$implicit,ce=i.oxw();i.Q6J("ngClass",Q.type),i.xp6(1),i.Q6J("ngSwitch",Q.type)("ngClass",Q.type),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.INFO),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.ERROR),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.NETWORK),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.WARN),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.DEBUG),i.xp6(2),i.Oqu(Q.message),i.xp6(1),i.Q6J("ngIf",Q.details)}}let U=(()=>{class X{constructor(){this.itemTypes=a.p,this.items=[]}static#e=this.\u0275fac=function(ce){return new(ce||X)};static#t=this.\u0275cmp=i.Xpm({type:X,selectors:[["app-console"]],inputs:{items:"items"},decls:9,vars:1,consts:[["mat-icon-button","",3,"click"],["class","console-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"console-item",3,"ngClass"],[3,"ngSwitch","ngClass"],[4,"ngSwitchCase"],[3,"json","expanded",4,"ngIf"],[3,"json","expanded"]],template:function(ce,Be){1&ce&&(i.TgZ(0,"header")(1,"strong"),i._uU(2,"CONSOLE"),i.qZA(),i._UZ(3,"s"),i.TgZ(4,"button",0),i.NdJ("click",function(){return Be.items.splice(0,Be.items.length)}),i.TgZ(5,"mat-icon"),i._uU(6,"delete"),i.qZA()()(),i.TgZ(7,"ul"),i.YNc(8,w,10,10,"li",1),i.qZA()),2&ce&&(i.xp6(8),i.Q6J("ngForOf",Be.items))},dependencies:[te.mk,te.sg,te.O5,te.RF,te.n9,q.Y,v.RK,C.Hw],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid rgb(231,231,231);line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})}return X})()},7481:(Ee,y,b)=>{"use strict";b.d(y,{p:()=>a});var a=function(i){return i.INFO="info",i.ERROR="error",i.WARN="warn",i.DEBUG="debug",i.NETWORK="network",i}(a||{})},3855:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>SdkgenService});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5861),_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1611),_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__),_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6068),_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1625),_angular_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1322);let SdkgenService=(()=>{class SdkgenService{constructor(){this.state$=new rxjs__WEBPACK_IMPORTED_MODULE_2__.X(null)}buildJsonObject(Ee,y=new Set){const b=a=>{switch(a.constructor){case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StringPrimitiveType:return"";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.IntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.FloatPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BigIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.MoneyPrimitiveType:return 0;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DecimalPrimitiveType:return"0.00";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BoolPrimitiveType:return Math.random()>.5;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.VoidPrimitiveType:return null;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CpfPrimitiveType:return"000.000.001-91";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CnpjPrimitiveType:return"00.000.001/0001-91";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EmailPrimitiveType:return"joao@acme.com";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UrlPrimitiveType:return"https://www.google.com/";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BytesPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.Base64PrimitiveType:return"0a=";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.XmlPrimitiveType:return"<xml></xml>";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.JsonPrimitiveType:return{};case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StructType:return y.has(a.name)?{}:this.buildJsonObject(a.fields,new Set([...y,a.name]));case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.OptionalType:return null;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.TypeReference:return b(a.type);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.ArrayType:return[b(a.base),b(a.base),b(a.base)];case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EnumType:return a.values[0].value;default:return null}};return Ee.reduce((a,i)=>(a[i.name]=b(i.type),a),{})}getTypeScriptCode(Ee,y){return`await client.${Ee}(${JSON.stringify(y,null,2)});\n`}buildKotlinString(Ee,y=0){const b=a=>{switch(a.constructor){case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StringPrimitiveType:return'""';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.IntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.FloatPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BigIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.MoneyPrimitiveType:return 0;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DecimalPrimitiveType:return'BigDecimal("0.00")';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DatePrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DateTimePrimitiveType:return"Calendar.getInstance()";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BoolPrimitiveType:return Math.random()>.5?"true":"false";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.VoidPrimitiveType:return"null";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CpfPrimitiveType:return'"000.000.001-91"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CnpjPrimitiveType:return'"00.000.001/0001-91"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EmailPrimitiveType:return'"joao@acme.com"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UrlPrimitiveType:return'"https://www.google.com/"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BytesPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.Base64PrimitiveType:return'"0a="';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.XmlPrimitiveType:return'"<xml></xml>"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.JsonPrimitiveType:return"json {}";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StructType:return`${a.name}(\n${this.buildKotlinString(a.fields,y+1)}\n${" ".repeat(y+1)})`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.OptionalType:return"null";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.TypeReference:return b(a.type);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.ArrayType:y++;const i=b(a.base);return y--,`arrayOf(\n${" ".repeat(y+2)}${i},\n${" ".repeat(y+2)}${i}\n${" ".repeat(y+1)})`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EnumType:return`"${a.values[0].value}"`;default:return"<>()"}};return Ee.map(a=>`${" ".repeat(y+1)}${b(a.type)}`).join(",\n")}getKotlinCode(Ee,y){return 0===y.length?`client.${Ee}().await();`:`client.${Ee}(\n${this.buildKotlinString(y)}\n).await();`}getDartCode(Ee,y){return'print("todo");'}getSwiftCode(Ee,y){return'print("todo");'}getSdkgenClient(url,ast){const errorFns=ast.errors.reduce((acc,cur)=>{function errorClass(type,base){return eval(`(\n (sup) => class ${type} extends sup {\n type = "${type}";\n message = "";\n ${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?", data":""}) {\n super(message${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenError):acc[cur[0]]=errorClass(cur[0],_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData),acc},{}),clientInstance=new _sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(Ee,y)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(y.toString())?clientInstance[y.toString()]:function(){var b=(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.Z)(function*(a){return clientInstance.makeRequest(y.toString(),a)});return function(a){return b.apply(this,arguments)}}()})}static#_=this.\u0275fac=function Ee(y){return new(y||SdkgenService)};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_4__.Yz7({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})}return SdkgenService})()},2311:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>SimpleCallComponent});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5861),_angular_forms__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8832),_console_console_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7481),_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9086),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1322),_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3855),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9309),ngx_json_viewer__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6086),angular_split__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(534),_angular_material_button__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7950),_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1238),_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7361),_console_console_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3661);let SimpleCallComponent=(()=>{class SimpleCallComponent{constructor(Ee){this.sdkgen=Ee,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.initialExtras='{\n "key": "value"\n}\n',this.extras=this.initialExtras,this.busy=!1,this.selected=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ee=>{Ee&&(this.generateFunctionCode(Ee.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Ee.url,Ee.astJson))})}ngOnDestroy(){this.state$?.unsubscribe()}run(){var _this=this;return(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__.Z)(function*(){try{_this.busy=!0;{const events=_this.consoleItems;eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.Y)}if(_this.extras&&_this.extras!==_this.initialExtras){const Ee=JSON.parse(_this.extras),y=Object.keys(Ee);for(const b of y)_this.client?.extra.set(b,Ee[b])}const exec=_this.client[_this.fn](JSON.parse(_this.code));_this.response={result:yield exec}}catch(Ee){_this.consoleItems.push({type:_console_console_types__WEBPACK_IMPORTED_MODULE_0__.p.ERROR,message:Ee.toString()}),delete Ee.toString,_this.response={error:{type:Ee.type,message:Ee.message,data:Ee.data}}}finally{eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.W),_this.selected.setValue(2),_this.busy=!1}})()}generateFunctionCode(Ee,y){const b=Ee.operations.find(a=>a.name===y)?.args;b&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(b),null,2))}static#_=this.\u0275fac=function Ee(y){return new(y||SimpleCallComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Y36(_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__.G))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Xpm({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:14,vars:10,consts:[["direction","vertical"],["animationDuration","0ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"disabled","click"],[3,"options","ngModel","ngModelChange"],["label","Extras"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function Ee(y,b){1&y&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(0,"as-split",0)(1,"as-split-area")(2,"mat-tab-group",1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("selectedIndexChange",function(i){return b.selected.setValue(i)}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(3,"mat-tab",2)(4,"button",3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("click",function(){return b.run()}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(5,"mat-icon"),_angular_core__WEBPACK_IMPORTED_MODULE_6__._uU(6,"play_arrow"),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(7,"ngx-monaco-editor",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return b.code=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(8,"mat-tab",5)(9,"ngx-monaco-editor",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return b.extras=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(10,"mat-tab",6),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(11,"ngx-json-viewer",7),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(12,"as-split-area",8),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(13,"app-console",9),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()),2&y&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("selectedIndex",b.selected.value),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",b.busy),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",b.editorOptions)("ngModel",b.code),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",b.editorOptions)("ngModel",b.extras),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",!b.response),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("json",b.response),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("size",30),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("items",b.consoleItems))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_3__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.On,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.T2,ngx_json_viewer__WEBPACK_IMPORTED_MODULE_8__.Y,angular_split__WEBPACK_IMPORTED_MODULE_9__.Mq,angular_split__WEBPACK_IMPORTED_MODULE_9__.zE,_angular_material_button__WEBPACK_IMPORTED_MODULE_10__.cs,_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__.Hw,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__.uX,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__.SP,_console_console_component__WEBPACK_IMPORTED_MODULE_2__.m],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .ngx-json-viewer{overflow:inherit!important}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%] ngx-json-viewer[_ngcontent-%COMP%]{display:block;height:100%;width:100%;overflow-y:auto;scrollbar-width:thin}"]})}return SimpleCallComponent})()},3101:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>TabEditorComponent});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5861),_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5747),_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__),_console_console_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7481),_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9086),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1322),_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3855),_angular_forms__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(8832),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9309),angular_split__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(534),_angular_material_button__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7950),_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1238),_console_console_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3661);let TabEditorComponent=(()=>{class TabEditorComponent{constructor(Ee){this.sdkgen=Ee,this.code="",this.busy=!1,this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:_console_console_types__WEBPACK_IMPORTED_MODULE_1__.p.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ee=>{if(!Ee)return;const y=`${this.patchBrowserClientSource((0,_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__.generateBrowserClientSource)(Ee.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Ee.url,Ee.astJson),monaco.languages.typescript.typescriptDefaults.getCompilerOptions().target=monaco.languages.typescript.ScriptTarget.ESNext,monaco.languages.typescript.typescriptDefaults.getCompilerOptions().module=monaco.languages.typescript.ModuleKind.ESNext,monaco.languages.typescript.typescriptDefaults.getDiagnosticsOptions().diagnosticCodesToIgnore=[1375];const b=monaco.editor.getModels().find(i=>i.uri.toString().endsWith("client.d.ts"));b?b.setValue(y):monaco.editor.createModel(y,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[a]=Ee.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(a.name,this.sdkgen.buildJsonObject(a.args))})}ngOnDestroy(){this.state$?.unsubscribe()}patchBrowserClientSource(Ee){return`declare namespace sdkgen {\n${Ee.substring(95,Ee.indexOf("const errClasses")).replace(/ extends SdkgenError/g," extends Error").replace(/ extends SdkgenHttpClient/g,"").replace(/{ return this.makeRequest\(.*$/gm,"").replace(/ {\n {8}super\(baseUrl, astJson, errClasses\);\n {4}}/g,"").replace("constructor(","\n baseUrl: string;\n extra = new Map<string, any>();\n successHook: (result: any, name: string, args: any) => void = () => undefined;\n errorHook: (result: any, name: string, args: any) => void = () => undefined;\n async makeRequest(functionName: string, args: unknown): Promise<any>;\n \nconstructor(")}\n}\n`}run(){var _this=this;return(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__.Z)(function*(){try{_this.busy=!0,yield eval(`\n (async (client, events) => {\n ${_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.Y}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.W))}catch(Ee){_this.consoleItems.push({type:_console_console_types__WEBPACK_IMPORTED_MODULE_1__.p.ERROR,message:Ee.toString()})}_this.busy=!1})()}static#_=this.\u0275fac=function Ee(y){return new(y||TabEditorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Y36(_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__.G))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Xpm({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:5,consts:[["mat-fab","",1,"run-fab",3,"disabled","click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function Ee(y,b){1&y&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(0,"button",0),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("click",function(){return b.run()}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(1,"mat-icon"),_angular_core__WEBPACK_IMPORTED_MODULE_6__._uU(2,"play_arrow"),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(3,"as-split",1)(4,"as-split-area",2)(5,"ngx-monaco-editor",3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return b.code=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(6,"as-split-area",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(7,"app-console",5),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()),2&y&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",b.busy),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",b.editorOptions)("ngModel",b.code),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("size",30),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("items",b.consoleItems))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_7__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_7__.On,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_8__.T2,angular_split__WEBPACK_IMPORTED_MODULE_9__.Mq,angular_split__WEBPACK_IMPORTED_MODULE_9__.zE,_angular_material_button__WEBPACK_IMPORTED_MODULE_10__.cs,_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__.Hw,_console_console_component__WEBPACK_IMPORTED_MODULE_3__.m],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 4px);margin-top:4px} .scroll-decoration{display:none}.o-hidden[_ngcontent-%COMP%]{overflow:hidden!important}"]})}return TabEditorComponent})()},9086:(Ee,y,b)=>{"use strict";b.d(y,{W:()=>i,Y:()=>a});const a='\n window.___originalXmlHttpRequestOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function() {\n const event = { type: "network", message: `XHR: ${Array.prototype.join.call(arguments, " ")}` };\n events.push(event);\n\n const send = this.send;\n this.send = function() {\n try {\n event.details = { req: JSON.parse(arguments[0]) };\n } catch (e) {\n event.details = { req: arguments[0] };\n }\n\n const onreadystatechange = this.onreadystatechange;\n this.onreadystatechange = function() {\n const result = onreadystatechange.apply(this, arguments);\n\n if (this.readyState === 4) {\n try {\n event.details = { ...event.details, res: JSON.parse(this.responseText) };\n } catch (e) {\n event.details = { ...event.details, res: this.responseText };\n }\n }\n\n return result;\n };\n\n return send.apply(this, arguments);\n };\n\n return ___originalXmlHttpRequestOpen.apply(this, arguments);\n };\n\n window.__originalConsole = [console.log, console.error, console.warn, console.debug, console.info];\n\n for (const method of window.__originalConsole) {\n console[method.name] = function() {\n const event = { type: method.name === "log" ? "info" : method.name, message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return method.apply(this, arguments);\n }\n }\n',i="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n for (const method of window.__originalConsole) {\n console[method.name] = method;\n }\n"},4301:(Ee,y,b)=>{"use strict";var a=b(4707),i=b(1322),te=b(9272),q=b(8832),v=b(7950),C=b(5988),E=b(9462),A=b(9021),R=b(8654),S=b(9453),P=b(4991),x=b(3581),w=b(5779),U=b(19),X=b(2835),le=b(7605),Q=b(4877),ce=b(6e3);function On(h,l){1&h&&(i.TgZ(0,"span",7),i.Hsn(1,1),i.qZA())}function Ln(h,l){1&h&&(i.TgZ(0,"span",8),i.Hsn(1,2),i.qZA())}const Bn=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],We=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],kt=["*"],gn=new i.OlP("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[le.K5]})}),qt=new i.OlP("MatChipAvatar"),Dt=new i.OlP("MatChipTrailingIcon"),Ci=new i.OlP("MatChipRemove"),mi=new i.OlP("MatChip");class ao{}const tr=(0,A.sb)(ao,-1);let Qt=(()=>{class h extends tr{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(o){this._disabled=(0,C.Ig)(o)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(o,c){super(),this._elementRef=o,this._parentChip=c,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===o.nativeElement.nodeName&&o.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(o){!this.disabled&&this.isInteractive&&this._isPrimary&&(o.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(o){(o.keyCode===le.K5||o.keyCode===le.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(o.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(mi))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(c,u){1&c&&i.NdJ("click",function(T){return u._handleClick(T)})("keydown",function(T){return u._handleKeydown(T)}),2&c&&(i.uIk("tabindex",u._getTabindex())("disabled",u._getDisabledAttribute())("aria-disabled",u.disabled),i.ekj("mdc-evolution-chip__action--primary",u._isPrimary)("mdc-evolution-chip__action--presentational",!u.isInteractive)("mdc-evolution-chip__action--trailing",!u._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[i.qOj]})}return h})(),Lo=0;const yo=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor(h){this._elementRef=h}})),"primary"),-1);let di=(()=>{class h extends yo{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(o){this._value=o}get removable(){return this._removable}set removable(o){this._removable=(0,C.Ig)(o)}get highlighted(){return this._highlighted}set highlighted(o){this._highlighted=(0,C.Ig)(o)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(o){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,o)}constructor(o,c,u,p,T,Z,fe,ye){super(c),this._changeDetectorRef=o,this._ngZone=u,this._focusMonitor=p,this._globalRippleOptions=fe,this._onFocus=new S.x,this._onBlur=new S.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+Lo++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new i.vpe,this.destroyed=new i.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,i.f3M)(A.Fq),this._document=T,this._animationsDisabled="NoopAnimations"===Z,null!=ye&&(this.tabIndex=parseInt(ye)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const o=this._elementRef.nativeElement;this._isBasicChip=o.hasAttribute(this.basicChipAttrName)||o.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,P.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(o){(o.keyCode===le.ZH||o.keyCode===le.yY)&&(o.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(o){return this._getActions().find(c=>{const u=c._elementRef.nativeElement;return u===o||u.contains(o)})}_getActions(){const o=[];return this.primaryAction&&o.push(this.primaryAction),this.removeIcon&&o.push(this.removeIcon),this.trailingIcon&&o.push(this.trailingIcon),o}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(o=>{const c=null!==o;c!==this._hasFocusInternal&&(this._hasFocusInternal=c,c?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(R.tE),i.Y36(E.K0),i.Y36(i.QbO,8),i.Y36(A.Y2,8),i.$8M("tabindex"))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,qt,5),i.Suo(p,Dt,5),i.Suo(p,Ci,5),i.Suo(p,qt,5),i.Suo(p,Dt,5),i.Suo(p,Ci,5)),2&c){let T;i.iGM(T=i.CRH())&&(u.leadingIcon=T.first),i.iGM(T=i.CRH())&&(u.trailingIcon=T.first),i.iGM(T=i.CRH())&&(u.removeIcon=T.first),i.iGM(T=i.CRH())&&(u._allLeadingIcons=T),i.iGM(T=i.CRH())&&(u._allTrailingIcons=T),i.iGM(T=i.CRH())&&(u._allRemoveIcons=T)}},viewQuery:function(c,u){if(1&c&&i.Gf(Qt,5),2&c){let p;i.iGM(p=i.CRH())&&(u.primaryAction=p.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(c,u){1&c&&i.NdJ("keydown",function(T){return u._handleKeydown(T)}),2&c&&(i.Ikx("id",u.id),i.uIk("role",u.role)("tabindex",u.role?u.tabIndex:null)("aria-label",u.ariaLabel),i.ekj("mdc-evolution-chip",!u._isBasicChip)("mdc-evolution-chip--disabled",u.disabled)("mdc-evolution-chip--with-trailing-action",u._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",u.leadingIcon)("mdc-evolution-chip--with-primary-icon",u.leadingIcon)("mdc-evolution-chip--with-avatar",u.leadingIcon)("mat-mdc-chip-with-avatar",u.leadingIcon)("mat-mdc-chip-highlighted",u.highlighted)("mat-mdc-chip-disabled",u.disabled)("mat-mdc-basic-chip",u._isBasicChip)("mat-mdc-standard-chip",!u._isBasicChip)("mat-mdc-chip-with-trailing-icon",u._hasTrailingIcon())("_mat-animation-noopable",u._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[i._Bn([{provide:mi,useExisting:h}]),i.qOj],ngContentSelectors:We,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(c,u){1&c&&(i.F$t(Bn),i._UZ(0,"span",0),i.TgZ(1,"span",1)(2,"span",2),i.YNc(3,On,2,0,"span",3),i.TgZ(4,"span",4),i.Hsn(5),i._UZ(6,"span",5),i.qZA()()(),i.YNc(7,Ln,2,0,"span",6)),2&c&&(i.xp6(2),i.Q6J("isInteractive",!1),i.xp6(1),i.um2(3,u.leadingIcon?3:-1),i.xp6(4),i.um2(7,u._hasTrailingIcon()?7:-1))},dependencies:[Qt],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return h})();class ve{constructor(l){}}const Re=(0,A.sb)(ve);let qe=(()=>{class h extends Re{get chipFocusChanges(){return this._getChipStream(o=>o._onFocus)}get chipDestroyedChanges(){return this._getChipStream(o=>o.destroyed)}get disabled(){return this._disabled}set disabled(o){this._disabled=(0,C.Ig)(o),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(o){this._explicitRole=o}get focused(){return this._hasFocusedChip()}constructor(o,c,u){super(o),this._elementRef=o,this._changeDetectorRef=c,this._dir=u,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new S.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new i.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(o=>o._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(o=>{o.disabled=this._disabled,o._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(o){this._originatesFromChip(o)&&this._keyManager.onKeydown(o)}_isValidIndex(o){return o>=0&&o<this._chips.length}_allowFocusEscape(){if(-1!==this.tabIndex){const o=this.tabIndex;this.tabIndex=-1,setTimeout(()=>this.tabIndex=o)}}_getChipStream(o){return this._chips.changes.pipe((0,U.O)(null),(0,X.w)(()=>(0,P.T)(...this._chips.map(o))))}_originatesFromChip(o){let c=o.target;for(;c&&c!==this._elementRef.nativeElement;){if(c.classList.contains("mat-mdc-chip"))return!0;c=c.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,U.O)(this._chips)).subscribe(o=>{const c=[];o.forEach(u=>u._getActions().forEach(p=>c.push(p))),this._chipActions.reset(c),this._chipActions.notifyOnChanges()}),this._keyManager=new R.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(o=>this._skipPredicate(o)),this.chipFocusChanges.pipe((0,w.R)(this._destroyed)).subscribe(({chip:o})=>{const c=o._getSourceAction(document.activeElement);c&&this._keyManager.updateActiveItem(c)}),this._dir?.change.pipe((0,w.R)(this._destroyed)).subscribe(o=>this._keyManager.withHorizontalOrientation(o))}_skipPredicate(o){return!o.isInteractive||o.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,U.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,w.R)(this._destroyed)).subscribe(o=>{const u=this._chips.toArray().indexOf(o.chip);this._isValidIndex(u)&&o.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=u)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const o=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),c=this._chips.toArray()[o];c.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():c.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Q.Is,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-chip-set"]],contentQueries:function(c,u,p){if(1&c&&i.Suo(p,di,5),2&c){let T;i.iGM(T=i.CRH())&&(u._chips=T)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(c,u){1&c&&i.NdJ("keydown",function(T){return u._handleKeydown(T)}),2&c&&i.uIk("role",u.role)},inputs:{disabled:"disabled",role:"role"},features:[i.qOj],ngContentSelectors:kt,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(c,u){1&c&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return h})(),en=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[A.rD,{provide:gn,useValue:{separatorKeyCodes:[le.K5]}}],imports:[A.BQ,A.si,A.BQ]})}return h})();var Zt=b(9467),pn=b(3844),ti=b(1497),on=b(6512),ni=b(9592);const wo=(0,pn.Mq)();class qi{constructor(l,o){this._viewportRuler=l,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){const l=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=l.style.left||"",this._previousHTMLStyles.top=l.style.top||"",l.style.left=(0,C.HM)(-this._previousScrollPosition.left),l.style.top=(0,C.HM)(-this._previousScrollPosition.top),l.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const l=this._document.documentElement,c=l.style,u=this._document.body.style,p=c.scrollBehavior||"",T=u.scrollBehavior||"";this._isEnabled=!1,c.left=this._previousHTMLStyles.left,c.top=this._previousHTMLStyles.top,l.classList.remove("cdk-global-scrollblock"),wo&&(c.scrollBehavior=u.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),wo&&(c.scrollBehavior=p,u.scrollBehavior=T)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const o=this._document.body,c=this._viewportRuler.getViewportSize();return o.scrollHeight>c.height||o.scrollWidth>c.width}}class Fi{constructor(l,o,c,u){this._scrollDispatcher=l,this._ngZone=o,this._viewportRuler=c,this._config=u,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(l){this._overlayRef=l}enable(){if(this._scrollSubscription)return;const l=this._scrollDispatcher.scrolled(0).pipe((0,ti.h)(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=l.subscribe(()=>{const o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=l.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Kn{enable(){}disable(){}attach(){}}function Co(h,l){return l.some(o=>h.bottom<o.top||h.top>o.bottom||h.right<o.left||h.left>o.right)}function Tr(h,l){return l.some(o=>h.top<o.top||h.bottom>o.bottom||h.left<o.left||h.right>o.right)}class Hs{constructor(l,o,c,u){this._scrollDispatcher=l,this._viewportRuler=o,this._ngZone=c,this._config=u,this._scrollSubscription=null}attach(l){this._overlayRef=l}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:c,height:u}=this._viewportRuler.getViewportSize();Co(o,[{width:c,height:u,bottom:u,right:c,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Wa=(()=>{class h{constructor(o,c,u,p){this._scrollDispatcher=o,this._viewportRuler=c,this._ngZone=u,this.noop=()=>new Kn,this.close=T=>new Fi(this._scrollDispatcher,this._ngZone,this._viewportRuler,T),this.block=()=>new qi(this._viewportRuler,this._document),this.reposition=T=>new Hs(this._scrollDispatcher,this._viewportRuler,this._ngZone,T),this._document=p}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Zt.mF),i.LFG(Zt.rL),i.LFG(i.R0b),i.LFG(E.K0))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class xo{constructor(l){if(this.scrollStrategy=new Kn,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,l){const o=Object.keys(l);for(const c of o)void 0!==l[c]&&(this[c]=l[c])}}}class Ji{constructor(l,o){this.connectionPair=l,this.scrollableViewProperties=o}}let Er=(()=>{class h{constructor(o){this._attachedOverlays=[],this._document=o}ngOnDestroy(){this.detach()}add(o){this.remove(o),this._attachedOverlays.push(o)}remove(o){const c=this._attachedOverlays.indexOf(o);c>-1&&this._attachedOverlays.splice(c,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(E.K0))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),tn=(()=>{class h extends Er{constructor(o,c){super(o),this._ngZone=c,this._keydownListener=u=>{const p=this._attachedOverlays;for(let T=p.length-1;T>-1;T--)if(p[T]._keydownEvents.observers.length>0){const Z=p[T]._keydownEvents;this._ngZone?this._ngZone.run(()=>Z.next(u)):Z.next(u);break}}}add(o){super.add(o),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(E.K0),i.LFG(i.R0b,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),nr=(()=>{class h extends Er{constructor(o,c,u){super(o),this._platform=c,this._ngZone=u,this._cursorStyleIsSet=!1,this._pointerDownListener=p=>{this._pointerDownEventTarget=(0,pn.sA)(p)},this._clickListener=p=>{const T=(0,pn.sA)(p),Z="click"===p.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:T;this._pointerDownEventTarget=null;const fe=this._attachedOverlays.slice();for(let ye=fe.length-1;ye>-1;ye--){const Ne=fe[ye];if(Ne._outsidePointerEvents.observers.length<1||!Ne.hasAttached())continue;if(Ne.overlayElement.contains(T)||Ne.overlayElement.contains(Z))break;const Ye=Ne._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ye.next(p)):Ye.next(p)}}}add(o){if(super.add(o),!this._isAttached){const c=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(c)):this._addEventListeners(c),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const o=this._document.body;o.removeEventListener("pointerdown",this._pointerDownListener,!0),o.removeEventListener("click",this._clickListener,!0),o.removeEventListener("auxclick",this._clickListener,!0),o.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(o.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(o){o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(E.K0),i.LFG(pn.t4),i.LFG(i.R0b,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Ni=(()=>{class h{constructor(o,c){this._platform=c,this._document=o}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o="cdk-overlay-container";if(this._platform.isBrowser||(0,pn.Oy)()){const u=this._document.querySelectorAll(`.${o}[platform="server"], .${o}[platform="test"]`);for(let p=0;p<u.length;p++)u[p].remove()}const c=this._document.createElement("div");c.classList.add(o),(0,pn.Oy)()?c.setAttribute("platform","test"):this._platform.isBrowser||c.setAttribute("platform","server"),this._document.body.appendChild(c),this._containerElement=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(E.K0),i.LFG(pn.t4))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class Qi{constructor(l,o,c,u,p,T,Z,fe,ye,Ne=!1){this._portalOutlet=l,this._host=o,this._pane=c,this._config=u,this._ngZone=p,this._keyboardDispatcher=T,this._document=Z,this._location=fe,this._outsideClickDispatcher=ye,this._animationsDisabled=Ne,this._backdropElement=null,this._backdropClick=new S.x,this._attachments=new S.x,this._detachments=new S.x,this._locationChanges=ni.w0.EMPTY,this._backdropClickHandler=Ye=>this._backdropClick.next(Ye),this._backdropTransitionendHandler=Ye=>{this._disposeBackdrop(Ye.target)},this._keydownEvents=new S.x,this._outsidePointerEvents=new S.x,u.scrollStrategy&&(this._scrollStrategy=u.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=u.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(l){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const o=this._portalOutlet.attach(l);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof o?.onDestroy&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const l=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),l}dispose(){const l=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,l&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(l){l!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=l,this.hasAttached()&&(l.attach(this),this.updatePosition()))}updateSize(l){this._config={...this._config,...l},this._updateElementSize()}setDirection(l){this._config={...this._config,direction:l},this._updateElementDirection()}addPanelClass(l){this._pane&&this._toggleClasses(this._pane,l,!0)}removePanelClass(l){this._pane&&this._toggleClasses(this._pane,l,!1)}getDirection(){const l=this._config.direction;return l?"string"==typeof l?l:l.value:"ltr"}updateScrollStrategy(l){l!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=l,this.hasAttached()&&(l.attach(this),l.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const l=this._pane.style;l.width=(0,C.HM)(this._config.width),l.height=(0,C.HM)(this._config.height),l.minWidth=(0,C.HM)(this._config.minWidth),l.minHeight=(0,C.HM)(this._config.minHeight),l.maxWidth=(0,C.HM)(this._config.maxWidth),l.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(l){this._pane.style.pointerEvents=l?"":"none"}_attachBackdrop(){const l="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(l)})}):this._backdropElement.classList.add(l)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const l=this._backdropElement;if(l){if(this._animationsDisabled)return void this._disposeBackdrop(l);l.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{l.addEventListener("transitionend",this._backdropTransitionendHandler)}),l.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(l)},500))}}_toggleClasses(l,o,c){const u=(0,C.Eq)(o||[]).filter(p=>!!p);u.length&&(c?l.classList.add(...u):l.classList.remove(...u))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const l=this._ngZone.onStable.pipe((0,w.R)((0,P.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),l.unsubscribe())})})}_disposeScrollStrategy(){const l=this._scrollStrategy;l&&(l.disable(),l.detach&&l.detach())}_disposeBackdrop(l){l&&(l.removeEventListener("click",this._backdropClickHandler),l.removeEventListener("transitionend",this._backdropTransitionendHandler),l.remove(),this._backdropElement===l&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ir="cdk-overlay-connected-position-bounding-box",zs=/([A-Za-z%]+)$/;class Mr{get positions(){return this._preferredPositions}constructor(l,o,c,u,p){this._viewportRuler=o,this._document=c,this._platform=u,this._overlayContainer=p,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new S.x,this._resizeSubscription=ni.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(l)}attach(l){this._validatePositions(),l.hostElement.classList.add(ir),this._overlayRef=l,this._boundingBox=l.hostElement,this._pane=l.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const l=this._originRect,o=this._overlayRect,c=this._viewportRect,u=this._containerRect,p=[];let T;for(let Z of this._preferredPositions){let fe=this._getOriginPoint(l,u,Z),ye=this._getOverlayPoint(fe,o,Z),Ne=this._getOverlayFit(ye,o,c,Z);if(Ne.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Z,fe);this._canFitWithFlexibleDimensions(Ne,ye,c)?p.push({position:Z,origin:fe,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(fe,Z)}):(!T||T.overlayFit.visibleArea<Ne.visibleArea)&&(T={overlayFit:Ne,overlayPoint:ye,originPoint:fe,position:Z,overlayRect:o})}if(p.length){let Z=null,fe=-1;for(const ye of p){const Ne=ye.boundingBoxRect.width*ye.boundingBoxRect.height*(ye.position.weight||1);Ne>fe&&(fe=Ne,Z=ye)}return this._isPushed=!1,void this._applyPosition(Z.position,Z.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(T.position,T.originPoint);this._applyPosition(T.position,T.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Un(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ir),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const l=this._lastPosition;if(l){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._getOriginPoint(this._originRect,this._containerRect,l);this._applyPosition(l,o)}else this.apply()}withScrollableContainers(l){return this._scrollables=l,this}withPositions(l){return this._preferredPositions=l,-1===l.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(l){return this._viewportMargin=l,this}withFlexibleDimensions(l=!0){return this._hasFlexibleDimensions=l,this}withGrowAfterOpen(l=!0){return this._growAfterOpen=l,this}withPush(l=!0){return this._canPush=l,this}withLockedPosition(l=!0){return this._positionLocked=l,this}setOrigin(l){return this._origin=l,this}withDefaultOffsetX(l){return this._offsetX=l,this}withDefaultOffsetY(l){return this._offsetY=l,this}withTransformOriginOn(l){return this._transformOriginSelector=l,this}_getOriginPoint(l,o,c){let u,p;if("center"==c.originX)u=l.left+l.width/2;else{const T=this._isRtl()?l.right:l.left,Z=this._isRtl()?l.left:l.right;u="start"==c.originX?T:Z}return o.left<0&&(u-=o.left),p="center"==c.originY?l.top+l.height/2:"top"==c.originY?l.top:l.bottom,o.top<0&&(p-=o.top),{x:u,y:p}}_getOverlayPoint(l,o,c){let u,p;return u="center"==c.overlayX?-o.width/2:"start"===c.overlayX?this._isRtl()?-o.width:0:this._isRtl()?0:-o.width,p="center"==c.overlayY?-o.height/2:"top"==c.overlayY?0:-o.height,{x:l.x+u,y:l.y+p}}_getOverlayFit(l,o,c,u){const p=Ai(o);let{x:T,y:Z}=l,fe=this._getOffset(u,"x"),ye=this._getOffset(u,"y");fe&&(T+=fe),ye&&(Z+=ye);let lt=0-Z,_t=Z+p.height-c.height,pt=this._subtractOverflows(p.width,0-T,T+p.width-c.width),Ct=this._subtractOverflows(p.height,lt,_t),Wt=pt*Ct;return{visibleArea:Wt,isCompletelyWithinViewport:p.width*p.height===Wt,fitsInViewportVertically:Ct===p.height,fitsInViewportHorizontally:pt==p.width}}_canFitWithFlexibleDimensions(l,o,c){if(this._hasFlexibleDimensions){const u=c.bottom-o.y,p=c.right-o.x,T=Do(this._overlayRef.getConfig().minHeight),Z=Do(this._overlayRef.getConfig().minWidth);return(l.fitsInViewportVertically||null!=T&&T<=u)&&(l.fitsInViewportHorizontally||null!=Z&&Z<=p)}return!1}_pushOverlayOnScreen(l,o,c){if(this._previousPushAmount&&this._positionLocked)return{x:l.x+this._previousPushAmount.x,y:l.y+this._previousPushAmount.y};const u=Ai(o),p=this._viewportRect,T=Math.max(l.x+u.width-p.width,0),Z=Math.max(l.y+u.height-p.height,0),fe=Math.max(p.top-c.top-l.y,0),ye=Math.max(p.left-c.left-l.x,0);let Ne=0,Ye=0;return Ne=u.width<=p.width?ye||-T:l.x<this._viewportMargin?p.left-c.left-l.x:0,Ye=u.height<=p.height?fe||-Z:l.y<this._viewportMargin?p.top-c.top-l.y:0,this._previousPushAmount={x:Ne,y:Ye},{x:l.x+Ne,y:l.y+Ye}}_applyPosition(l,o){if(this._setTransformOrigin(l),this._setOverlayElementStyles(o,l),this._setBoundingBoxStyles(o,l),l.panelClass&&this._addPanelClasses(l.panelClass),this._lastPosition=l,this._positionChanges.observers.length){const c=this._getScrollVisibility(),u=new Ji(l,c);this._positionChanges.next(u)}this._isInitialRender=!1}_setTransformOrigin(l){if(!this._transformOriginSelector)return;const o=this._boundingBox.querySelectorAll(this._transformOriginSelector);let c,u=l.overlayY;c="center"===l.overlayX?"center":this._isRtl()?"start"===l.overlayX?"right":"left":"start"===l.overlayX?"left":"right";for(let p=0;p<o.length;p++)o[p].style.transformOrigin=`${c} ${u}`}_calculateBoundingBoxRect(l,o){const c=this._viewportRect,u=this._isRtl();let p,T,Z,Ne,Ye,lt;if("top"===o.overlayY)T=l.y,p=c.height-T+this._viewportMargin;else if("bottom"===o.overlayY)Z=c.height-l.y+2*this._viewportMargin,p=c.height-Z+this._viewportMargin;else{const _t=Math.min(c.bottom-l.y+c.top,l.y),pt=this._lastBoundingBoxSize.height;p=2*_t,T=l.y-_t,p>pt&&!this._isInitialRender&&!this._growAfterOpen&&(T=l.y-pt/2)}if("end"===o.overlayX&&!u||"start"===o.overlayX&&u)lt=c.width-l.x+this._viewportMargin,Ne=l.x-this._viewportMargin;else if("start"===o.overlayX&&!u||"end"===o.overlayX&&u)Ye=l.x,Ne=c.right-l.x;else{const _t=Math.min(c.right-l.x+c.left,l.x),pt=this._lastBoundingBoxSize.width;Ne=2*_t,Ye=l.x-_t,Ne>pt&&!this._isInitialRender&&!this._growAfterOpen&&(Ye=l.x-pt/2)}return{top:T,left:Ye,bottom:Z,right:lt,width:Ne,height:p}}_setBoundingBoxStyles(l,o){const c=this._calculateBoundingBoxRect(l,o);!this._isInitialRender&&!this._growAfterOpen&&(c.height=Math.min(c.height,this._lastBoundingBoxSize.height),c.width=Math.min(c.width,this._lastBoundingBoxSize.width));const u={};if(this._hasExactPosition())u.top=u.left="0",u.bottom=u.right=u.maxHeight=u.maxWidth="",u.width=u.height="100%";else{const p=this._overlayRef.getConfig().maxHeight,T=this._overlayRef.getConfig().maxWidth;u.height=(0,C.HM)(c.height),u.top=(0,C.HM)(c.top),u.bottom=(0,C.HM)(c.bottom),u.width=(0,C.HM)(c.width),u.left=(0,C.HM)(c.left),u.right=(0,C.HM)(c.right),u.alignItems="center"===o.overlayX?"center":"end"===o.overlayX?"flex-end":"flex-start",u.justifyContent="center"===o.overlayY?"center":"bottom"===o.overlayY?"flex-end":"flex-start",p&&(u.maxHeight=(0,C.HM)(p)),T&&(u.maxWidth=(0,C.HM)(T))}this._lastBoundingBoxSize=c,Un(this._boundingBox.style,u)}_resetBoundingBoxStyles(){Un(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Un(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(l,o){const c={},u=this._hasExactPosition(),p=this._hasFlexibleDimensions,T=this._overlayRef.getConfig();if(u){const Ne=this._viewportRuler.getViewportScrollPosition();Un(c,this._getExactOverlayY(o,l,Ne)),Un(c,this._getExactOverlayX(o,l,Ne))}else c.position="static";let Z="",fe=this._getOffset(o,"x"),ye=this._getOffset(o,"y");fe&&(Z+=`translateX(${fe}px) `),ye&&(Z+=`translateY(${ye}px)`),c.transform=Z.trim(),T.maxHeight&&(u?c.maxHeight=(0,C.HM)(T.maxHeight):p&&(c.maxHeight="")),T.maxWidth&&(u?c.maxWidth=(0,C.HM)(T.maxWidth):p&&(c.maxWidth="")),Un(this._pane.style,c)}_getExactOverlayY(l,o,c){let u={top:"",bottom:""},p=this._getOverlayPoint(o,this._overlayRect,l);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,c)),"bottom"===l.overlayY?u.bottom=this._document.documentElement.clientHeight-(p.y+this._overlayRect.height)+"px":u.top=(0,C.HM)(p.y),u}_getExactOverlayX(l,o,c){let T,u={left:"",right:""},p=this._getOverlayPoint(o,this._overlayRect,l);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,c)),T=this._isRtl()?"end"===l.overlayX?"left":"right":"end"===l.overlayX?"right":"left","right"===T?u.right=this._document.documentElement.clientWidth-(p.x+this._overlayRect.width)+"px":u.left=(0,C.HM)(p.x),u}_getScrollVisibility(){const l=this._getOriginRect(),o=this._pane.getBoundingClientRect(),c=this._scrollables.map(u=>u.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Tr(l,c),isOriginOutsideView:Co(l,c),isOverlayClipped:Tr(o,c),isOverlayOutsideView:Co(o,c)}}_subtractOverflows(l,...o){return o.reduce((c,u)=>c-Math.max(u,0),l)}_getNarrowedViewportRect(){const l=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+l-this._viewportMargin,bottom:c.top+o-this._viewportMargin,width:l-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(l,o){return"x"===o?null==l.offsetX?this._offsetX:l.offsetX:null==l.offsetY?this._offsetY:l.offsetY}_validatePositions(){}_addPanelClasses(l){this._pane&&(0,C.Eq)(l).forEach(o=>{""!==o&&-1===this._appliedPanelClasses.indexOf(o)&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(l=>{this._pane.classList.remove(l)}),this._appliedPanelClasses=[])}_getOriginRect(){const l=this._origin;if(l instanceof i.SBq)return l.nativeElement.getBoundingClientRect();if(l instanceof Element)return l.getBoundingClientRect();const o=l.width||0,c=l.height||0;return{top:l.y,bottom:l.y+c,left:l.x,right:l.x+o,height:c,width:o}}}function Un(h,l){for(let o in l)l.hasOwnProperty(o)&&(h[o]=l[o]);return h}function Do(h){if("number"!=typeof h&&null!=h){const[l,o]=h.split(zs);return o&&"px"!==o?null:parseFloat(l)}return h||null}function Ai(h){return{top:Math.floor(h.top),right:Math.floor(h.right),bottom:Math.floor(h.bottom),left:Math.floor(h.left),width:Math.floor(h.width),height:Math.floor(h.height)}}const Ho="cdk-global-overlay-wrapper";class ho{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(l){const o=l.getConfig();this._overlayRef=l,this._width&&!o.width&&l.updateSize({width:this._width}),this._height&&!o.height&&l.updateSize({height:this._height}),l.hostElement.classList.add(Ho),this._isDisposed=!1}top(l=""){return this._bottomOffset="",this._topOffset=l,this._alignItems="flex-start",this}left(l=""){return this._xOffset=l,this._xPosition="left",this}bottom(l=""){return this._topOffset="",this._bottomOffset=l,this._alignItems="flex-end",this}right(l=""){return this._xOffset=l,this._xPosition="right",this}start(l=""){return this._xOffset=l,this._xPosition="start",this}end(l=""){return this._xOffset=l,this._xPosition="end",this}width(l=""){return this._overlayRef?this._overlayRef.updateSize({width:l}):this._width=l,this}height(l=""){return this._overlayRef?this._overlayRef.updateSize({height:l}):this._height=l,this}centerHorizontally(l=""){return this.left(l),this._xPosition="center",this}centerVertically(l=""){return this.top(l),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const l=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),{width:u,height:p,maxWidth:T,maxHeight:Z}=c,fe=!("100%"!==u&&"100vw"!==u||T&&"100%"!==T&&"100vw"!==T),ye=!("100%"!==p&&"100vh"!==p||Z&&"100%"!==Z&&"100vh"!==Z),Ne=this._xPosition,Ye=this._xOffset,lt="rtl"===this._overlayRef.getConfig().direction;let _t="",pt="",Ct="";fe?Ct="flex-start":"center"===Ne?(Ct="center",lt?pt=Ye:_t=Ye):lt?"left"===Ne||"end"===Ne?(Ct="flex-end",_t=Ye):("right"===Ne||"start"===Ne)&&(Ct="flex-start",pt=Ye):"left"===Ne||"start"===Ne?(Ct="flex-start",_t=Ye):("right"===Ne||"end"===Ne)&&(Ct="flex-end",pt=Ye),l.position=this._cssPosition,l.marginLeft=fe?"0":_t,l.marginTop=ye?"0":this._topOffset,l.marginBottom=this._bottomOffset,l.marginRight=fe?"0":pt,o.justifyContent=Ct,o.alignItems=ye?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const l=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,c=o.style;o.classList.remove(Ho),c.justifyContent=c.alignItems=l.marginTop=l.marginBottom=l.marginLeft=l.marginRight=l.position="",this._overlayRef=null,this._isDisposed=!0}}let Gs=(()=>{class h{constructor(o,c,u,p){this._viewportRuler=o,this._document=c,this._platform=u,this._overlayContainer=p}global(){return new ho}flexibleConnectedTo(o){return new Mr(o,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Zt.rL),i.LFG(E.K0),i.LFG(pn.t4),i.LFG(Ni))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Ws=0,Pn=(()=>{class h{constructor(o,c,u,p,T,Z,fe,ye,Ne,Ye,lt,_t){this.scrollStrategies=o,this._overlayContainer=c,this._componentFactoryResolver=u,this._positionBuilder=p,this._keyboardDispatcher=T,this._injector=Z,this._ngZone=fe,this._document=ye,this._directionality=Ne,this._location=Ye,this._outsideClickDispatcher=lt,this._animationsModuleType=_t}create(o){const c=this._createHostElement(),u=this._createPaneElement(c),p=this._createPortalOutlet(u),T=new xo(o);return T.direction=T.direction||this._directionality.value,new Qi(p,c,u,T,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(o){const c=this._document.createElement("div");return c.id="cdk-overlay-"+Ws++,c.classList.add("cdk-overlay-pane"),o.appendChild(c),c}_createHostElement(){const o=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalOutlet(o){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new on.u0(o,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Wa),i.LFG(Ni),i.LFG(i._Vd),i.LFG(Gs),i.LFG(tn),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(E.K0),i.LFG(Q.Is),i.LFG(E.Ye),i.LFG(nr),i.LFG(i.QbO,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const es={provide:new i.OlP("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.reposition()}}),deps:[Pn],useFactory:function Xr(h){return()=>h.scrollStrategies.reposition()}};let Rn=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Pn,es],imports:[Q.vT,on.eL,Zt.Cl,Zt.Cl]})}return h})();var or=b(7371),Zs=b(8299);function ts(h){return new or.y(l=>{(0,Zs.Xf)(h()).subscribe(l)})}var jo=b(9627);function Ya(h,l){}class fo{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Uo=(()=>{class h extends on.en{constructor(o,c,u,p,T,Z,fe,ye){super(),this._elementRef=o,this._focusTrapFactory=c,this._config=p,this._interactivityChecker=T,this._ngZone=Z,this._overlayRef=fe,this._focusMonitor=ye,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Ne=>{this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachDomPortal(Ne);return this._contentAttached(),Ye},this._document=u,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const c=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),c}attachTemplatePortal(o){this._portalOutlet.hasAttached();const c=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),c}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,c){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const u=()=>{o.removeEventListener("blur",u),o.removeEventListener("mousedown",u),o.removeAttribute("tabindex")};o.addEventListener("blur",u),o.addEventListener("mousedown",u)})),o.focus(c)}_focusByCssSelector(o,c){let u=this._elementRef.nativeElement.querySelector(o);u&&this._forceFocus(u,c)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(c=>{c||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const o=this._config.restoreFocus;let c=null;if("string"==typeof o?c=this._document.querySelector(o):"boolean"==typeof o?c=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(c=o),this._config.restoreFocus&&c&&"function"==typeof c.focus){const u=(0,pn.ht)(),p=this._elementRef.nativeElement;(!u||u===this._document.body||u===p||p.contains(u))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,c=(0,pn.ht)();return o===c||o.contains(c)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,pn.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(R.qV),i.Y36(E.K0,8),i.Y36(fo),i.Y36(R.ic),i.Y36(i.R0b),i.Y36(Qi),i.Y36(R.tE))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-dialog-container"]],viewQuery:function(c,u){if(1&c&&i.Gf(on.Pl,7),2&c){let p;i.iGM(p=i.CRH())&&(u._portalOutlet=p.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(c,u){2&c&&i.uIk("id",u._config.id||null)("role",u._config.role)("aria-modal",u._config.ariaModal)("aria-labelledby",u._config.ariaLabel?null:u._ariaLabelledByQueue[0])("aria-label",u._config.ariaLabel)("aria-describedby",u._config.ariaDescribedBy||null)},standalone:!0,features:[i.qOj,i.jDz],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(c,u){1&c&&i.YNc(0,Ya,0,0,"ng-template",0)},dependencies:[on.eL,on.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return h})();class Sr{constructor(l,o){this.overlayRef=l,this.config=o,this.closed=new S.x,this.disableClose=o.disableClose,this.backdropClick=l.backdropClick(),this.keydownEvents=l.keydownEvents(),this.outsidePointerEvents=l.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(c=>{c.keyCode===le.hY&&!this.disableClose&&!(0,le.Vb)(c)&&(c.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=l.detachments().subscribe(()=>{!1!==o.closeOnOverlayDetachments&&this.close()})}close(l,o){if(this.containerInstance){const c=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),c.next(l),c.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(l="",o=""){return this.overlayRef.updateSize({width:l,height:o}),this}addPanelClass(l){return this.overlayRef.addPanelClass(l),this}removePanelClass(l){return this.overlayRef.removePanelClass(l),this}}const Ar=new i.OlP("DialogScrollStrategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.block()}}),ns=new i.OlP("DialogData"),qs=new i.OlP("DefaultDialogConfig");let is=0,os=(()=>{class h{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(o,c,u,p,T,Z){this._overlay=o,this._injector=c,this._defaultOptions=u,this._parentDialog=p,this._overlayContainer=T,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new S.x,this._afterOpenedAtThisLevel=new S.x,this._ariaHiddenElements=new Map,this.afterAllClosed=ts(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,U.O)(void 0))),this._scrollStrategy=Z}open(o,c){(c={...this._defaultOptions||new fo,...c}).id=c.id||"cdk-dialog-"+is++,c.id&&this.getDialogById(c.id);const p=this._getOverlayConfig(c),T=this._overlay.create(p),Z=new Sr(T,c),fe=this._attachContainer(T,Z,c);return Z.containerInstance=fe,this._attachDialogContent(o,Z,fe,c),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Z),Z.closed.subscribe(()=>this._removeOpenDialog(Z,!0)),this.afterOpened.next(Z),Z}closeAll(){Yt(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(c=>c.id===o)}ngOnDestroy(){Yt(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),Yt(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const c=new xo({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(c.backdropClass=o.backdropClass),c}_attachContainer(o,c,u){const p=u.injector||u.viewContainerRef?.injector,T=[{provide:fo,useValue:u},{provide:Sr,useValue:c},{provide:Qi,useValue:o}];let Z;u.container?"function"==typeof u.container?Z=u.container:(Z=u.container.type,T.push(...u.container.providers(u))):Z=Uo;const fe=new on.C5(Z,u.viewContainerRef,i.zs3.create({parent:p||this._injector,providers:T}),u.componentFactoryResolver);return o.attach(fe).instance}_attachDialogContent(o,c,u,p){if(o instanceof i.Rgc){const T=this._createInjector(p,c,u,void 0);let Z={$implicit:p.data,dialogRef:c};p.templateContext&&(Z={...Z,..."function"==typeof p.templateContext?p.templateContext():p.templateContext}),u.attachTemplatePortal(new on.UE(o,null,Z,T))}else{const T=this._createInjector(p,c,u,this._injector),Z=u.attachComponentPortal(new on.C5(o,p.viewContainerRef,T,p.componentFactoryResolver));c.componentRef=Z,c.componentInstance=Z.instance}}_createInjector(o,c,u,p){const T=o.injector||o.viewContainerRef?.injector,Z=[{provide:ns,useValue:o.data},{provide:Sr,useValue:c}];return o.providers&&("function"==typeof o.providers?Z.push(...o.providers(c,o,u)):Z.push(...o.providers)),o.direction&&(!T||!T.get(Q.Is,null,{optional:!0}))&&Z.push({provide:Q.Is,useValue:{value:o.direction,change:(0,jo.of)()}}),i.zs3.create({parent:T||p,providers:Z})}_removeOpenDialog(o,c){const u=this.openDialogs.indexOf(o);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((p,T)=>{p?T.setAttribute("aria-hidden",p):T.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),c&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const c=o.parentElement.children;for(let u=c.length-1;u>-1;u--){const p=c[u];p!==o&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Pn),i.LFG(i.zs3),i.LFG(qs,8),i.LFG(h,12),i.LFG(Ni),i.LFG(Ar))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();function Yt(h,l){let o=h.length;for(;o--;)l(h[o])}let $n=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[os],imports:[Rn,on.eL,R.rt,Uo,on.eL]})}return h})();function Hn(h,l){}class Bi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const jn="mdc-dialog--open",rs="mdc-dialog--opening",Qs="mdc-dialog--closing";let as=(()=>{class h extends Uo{constructor(o,c,u,p,T,Z,fe,ye,Ne){super(o,c,u,p,T,Z,fe,Ne),this._animationMode=ye,this._animationStateChanged=new i.vpe,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?at(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?at(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(En,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(rs,jn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(jn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(jn),this._animationsEnabled?(this._hostElement.style.setProperty(En,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Qs)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(rs,Qs)}_waitForAnimationToComplete(o,c){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(c,o)}_requestAnimationFrame(o){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(o):o()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(o){const c=super.attachComponentPortal(o);return c.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(R.qV),i.Y36(E.K0,8),i.Y36(Bi),i.Y36(R.ic),i.Y36(i.R0b),i.Y36(Qi),i.Y36(i.QbO,8),i.Y36(R.tE))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(c,u){2&c&&(i.Ikx("id",u._config.id),i.uIk("aria-modal",u._config.ariaModal)("role",u._config.role)("aria-labelledby",u._config.ariaLabel?null:u._ariaLabelledByQueue[0])("aria-label",u._config.ariaLabel)("aria-describedby",u._config.ariaDescribedBy||null),i.ekj("_mat-animation-noopable",!u._animationsEnabled))},standalone:!0,features:[i.qOj,i.jDz],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(c,u){1&c&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Hn,0,0,"ng-template",2),i.qZA()())},dependencies:[on.eL,on.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return h})();const En="--mat-dialog-transition-duration";function at(h){return null==h?null:"number"==typeof h?h:h.endsWith("ms")?(0,C.su)(h.substring(0,h.length-2)):h.endsWith("s")?1e3*(0,C.su)(h.substring(0,h.length-1)):"0"===h?0:null}class It{constructor(l,o,c){this._ref=l,this._containerInstance=c,this._afterOpened=new S.x,this._beforeClosed=new S.x,this._state=0,this.disableClose=o.disableClose,this.id=l.id,c._animationStateChanged.pipe((0,ti.h)(u=>"opened"===u.state),(0,x.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),c._animationStateChanged.pipe((0,ti.h)(u=>"closed"===u.state),(0,x.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),l.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,P.T)(this.backdropClick(),this.keydownEvents().pipe((0,ti.h)(u=>u.keyCode===le.hY&&!this.disableClose&&!(0,le.Vb)(u)))).subscribe(u=>{this.disableClose||(u.preventDefault(),k(this,"keydown"===u.type?"keyboard":"mouse"))})}close(l){this._result=l,this._containerInstance._animationStateChanged.pipe((0,ti.h)(o=>"closing"===o.state),(0,x.q)(1)).subscribe(o=>{this._beforeClosed.next(l),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(l){let o=this._ref.config.positionStrategy;return l&&(l.left||l.right)?l.left?o.left(l.left):o.right(l.right):o.centerHorizontally(),l&&(l.top||l.bottom)?l.top?o.top(l.top):o.bottom(l.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(l="",o=""){return this._ref.updateSize(l,o),this}addPanelClass(l){return this._ref.addPanelClass(l),this}removePanelClass(l){return this._ref.removePanelClass(l),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function k(h,l,o){return h._closeInteractionType=l,h.close(o)}const N=new i.OlP("MatMdcDialogData"),D=new i.OlP("mat-mdc-dialog-default-options"),ee=new i.OlP("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.block()}});let Rt=0,Sn=(()=>{class h{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(o,c,u,p,T,Z,fe,ye){this._overlay=o,this._defaultOptions=p,this._scrollStrategy=T,this._parentDialog=Z,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new S.x,this._afterOpenedAtThisLevel=new S.x,this.dialogConfigClass=Bi,this.afterAllClosed=ts(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,U.O)(void 0))),this._dialog=c.get(os),this._dialogRefConstructor=It,this._dialogContainerType=as,this._dialogDataToken=N}open(o,c){let u;(c={...this._defaultOptions||new Bi,...c}).id=c.id||"mat-mdc-dialog-"+Rt++,c.scrollStrategy=c.scrollStrategy||this._scrollStrategy();const p=this._dialog.open(o,{...c,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:c},{provide:fo,useValue:c}]},templateContext:()=>({dialogRef:u}),providers:(T,Z,fe)=>(u=new this._dialogRefConstructor(T,c,fe),u.updatePosition(c?.position),[{provide:this._dialogContainerType,useValue:fe},{provide:this._dialogDataToken,useValue:Z.data},{provide:this._dialogRefConstructor,useValue:u}])});return u.componentRef=p.componentRef,u.componentInstance=p.componentInstance,this.openDialogs.push(u),this.afterOpened.next(u),u.afterClosed().subscribe(()=>{const T=this.openDialogs.indexOf(u);T>-1&&(this.openDialogs.splice(T,1),this.openDialogs.length||this._getAfterAllClosed().next())}),u}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(c=>c.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let c=o.length;for(;c--;)o[c].close()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Pn),i.LFG(i.zs3),i.LFG(E.Ye,8),i.LFG(D,8),i.LFG(ee),i.LFG(h,12),i.LFG(Ni),i.LFG(i.QbO,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Bt=0,Xi=(()=>{class h{constructor(o,c,u){this.dialogRef=o,this._elementRef=c,this._dialog=u,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=rr(this._elementRef,this._dialog.openDialogs))}ngOnChanges(o){const c=o._matDialogClose||o._matDialogCloseResult;c&&(this.dialogResult=c.currentValue)}_onButtonClick(o){k(this.dialogRef,0===o.screenX&&0===o.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(It,8),i.Y36(i.SBq),i.Y36(Sn))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(c,u){1&c&&i.NdJ("click",function(T){return u._onButtonClick(T)}),2&c&&i.uIk("aria-label",u.ariaLabel||null)("type",u.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[i.TTD]})}return h})(),qa=(()=>{class h{constructor(o,c,u){this._dialogRef=o,this._elementRef=c,this._dialog=u,this.id="mat-mdc-dialog-title-"+Bt++}ngOnInit(){this._dialogRef||(this._dialogRef=rr(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const o=this._dialogRef?._containerInstance?._ariaLabelledByQueue;o&&Promise.resolve().then(()=>{const c=o.indexOf(this.id);c>-1&&o.splice(c,1)})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(It,8),i.Y36(i.SBq),i.Y36(Sn))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(c,u){2&c&&i.Ikx("id",u.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0})}return h})();function rr(h,l){let o=h.nativeElement.parentElement;for(;o&&!o.classList.contains("mat-mdc-dialog-container");)o=o.parentElement;return o?l.find(c=>c.id===o.id):null}let po=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Sn],imports:[$n,Rn,on.eL,A.BQ,as,A.BQ]})}return h})();var pi=b(1238),Pr=b(4453),go=b(6589),Vt=b(9925),ls=b(4049),sr=b(2829),Vi=b(1952),Rr=b(8412),ar=b(5123);function Zn(h,l){return l?o=>(0,Vt.z)(l.pipe((0,x.q)(1),function kr(){return(0,ls.e)((h,l)=>{h.subscribe((0,sr.x)(l,Vi.Z))})}()),o.pipe(Zn(h))):(0,ar.z)((o,c)=>(0,Zs.Xf)(h(o,c)).pipe((0,x.q)(1),function Nn(h){return(0,Rr.U)(()=>h)}(o)))}var qn=b(5117);function Xs(h,l=go.z){const o=(0,qn.H)(h,l);return Zn(()=>o)}const cr=["mat-menu-item",""];function ea(h,l){1&h&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"polygon",4),i.qZA())}const eo=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Qa=["mat-icon, [matMenuItemIcon]","*"];function Tl(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._handleKeydown(u))})("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.closed.emit("click"))})("@transformMenu.start",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._onAnimationStart(u))})("@transformMenu.done",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._onAnimationDone(u))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("id",o.panelId)("ngClass",o._classList)("@transformMenu",o._panelAnimationState),i.uIk("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null)("aria-describedby",o.ariaDescribedby||null)}}const uu=["*"],Fr=new i.OlP("MAT_MENU_PANEL");let Nr=(()=>{class h{constructor(o,c,u,p,T){this._elementRef=o,this._document=c,this._focusMonitor=u,this._parentMenu=p,this._changeDetectorRef=T,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new S.x,this._focused=new S.x,this._highlighted=!1,this._triggersSubmenu=!1,p?.addItem?.(this)}focus(o,c){this._focusMonitor&&o?this._focusMonitor.focusVia(this._getHostElement(),o,c):this._getHostElement().focus(c),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(o){this.disabled&&(o.preventDefault(),o.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const o=this._elementRef.nativeElement.cloneNode(!0),c=o.querySelectorAll("mat-icon, .material-icons");for(let u=0;u<c.length;u++)c[u].remove();return o.textContent?.trim()||""}_setHighlighted(o){this._highlighted=o,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(o){this._triggersSubmenu=o,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(E.K0),i.Y36(R.tE),i.Y36(Fr,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(c,u){1&c&&i.NdJ("click",function(T){return u._checkDisabled(T)})("mouseenter",function(){return u._handleMouseEnter()}),2&c&&(i.uIk("role",u.role)("tabindex",u._getTabIndex())("aria-disabled",u.disabled)("disabled",u.disabled||null),i.ekj("mat-mdc-menu-item-highlighted",u._highlighted)("mat-mdc-menu-item-submenu-trigger",u._triggersSubmenu))},inputs:{role:"role",disabled:["disabled","disabled",i.VuI],disableRipple:["disableRipple","disableRipple",i.VuI]},exportAs:["matMenuItem"],features:[i.Xq5],attrs:cr,ngContentSelectors:Qa,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(c,u){1&c&&(i.F$t(eo),i.Hsn(0),i.TgZ(1,"span",0),i.Hsn(2,1),i.qZA(),i._UZ(3,"div",1),i.YNc(4,ea,2,0,":svg:svg",2)),2&c&&(i.xp6(3),i.Q6J("matRippleDisabled",u.disableRipple||u.disabled)("matRippleTrigger",u._getHostElement()),i.xp6(1),i.um2(4,u._triggersSubmenu?4:-1))},dependencies:[A.wG],encapsulation:2,changeDetection:0})}return h})();const Nf=new i.OlP("MatMenuContent"),Xa={transformMenu:(0,ce.X$)("transformMenu",[(0,ce.SB)("void",(0,ce.oB)({opacity:0,transform:"scale(0.8)"})),(0,ce.eR)("void => enter",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ce.oB)({opacity:1,transform:"scale(1)"}))),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))]),fadeInItems:(0,ce.X$)("fadeInItems",[(0,ce.SB)("showing",(0,ce.oB)({opacity:1})),(0,ce.eR)("void => *",[(0,ce.oB)({opacity:0}),(0,ce.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Lf=0;const Bf=new i.OlP("mat-menu-default-options",{providedIn:"root",factory:function ta(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let na=(()=>{class h{get xPosition(){return this._xPosition}set xPosition(o){this._xPosition=o,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(o){this._yPosition=o,this.setPositionClasses()}set panelClass(o){const c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=o,o&&o.length&&(o.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(o){this.panelClass=o}constructor(o,c,u,p){this._elementRef=o,this._ngZone=c,this._changeDetectorRef=p,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new i.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new S.x,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Lf++,this.overlayPanelClass=u.overlayPanelClass||"",this._xPosition=u.xPosition,this._yPosition=u.yPosition,this.backdropClass=u.backdropClass,this.overlapTrigger=u.overlapTrigger,this.hasBackdrop=u.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new R.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,X.w)(o=>(0,P.T)(...o.map(c=>c._focused)))).subscribe(o=>this._keyManager.updateActiveItem(o)),this._directDescendantItems.changes.subscribe(o=>{const c=this._keyManager;if("enter"===this._panelAnimationState&&c.activeItem?._hasFocus()){const u=o.toArray(),p=Math.max(0,Math.min(u.length-1,c.activeItemIndex||0));u[p]&&!u[p].disabled?c.setActiveItem(p):c.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,X.w)(c=>(0,P.T)(...c.map(u=>u._hovered))))}addItem(o){}removeItem(o){}_handleKeydown(o){const c=o.keyCode,u=this._keyManager;switch(c){case le.hY:(0,le.Vb)(o)||(o.preventDefault(),this.closed.emit("keydown"));break;case le.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case le.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(c===le.LH||c===le.JH)&&u.setFocusOrigin("keyboard"),void u.onKeydown(o)}o.stopPropagation()}focusFirstItem(o="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>{let c=null;if(this._directDescendantItems.length&&(c=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!c||!c.contains(document.activeElement)){const u=this._keyManager;u.setFocusOrigin(o).setFirstItemActive(),!u.activeItem&&c&&c.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(o){const c=Math.min(this._baseElevation+o,24),u=`${this._elevationPrefix}${c}`,p=Object.keys(this._classList).find(T=>T.startsWith(this._elevationPrefix));(!p||p===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(o=this.xPosition,c=this.yPosition){const u=this._classList;u["mat-menu-before"]="before"===o,u["mat-menu-after"]="after"===o,u["mat-menu-above"]="above"===c,u["mat-menu-below"]="below"===c,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(o){this._animationDone.next(o),this._isAnimating=!1}_onAnimationStart(o){this._isAnimating=!0,"enter"===o.toState&&0===this._keyManager.activeItemIndex&&(o.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,U.O)(this._allItems)).subscribe(o=>{this._directDescendantItems.reset(o.filter(c=>c._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Bf),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-menu"]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,Nf,5),i.Suo(p,Nr,5),i.Suo(p,Nr,4)),2&c){let T;i.iGM(T=i.CRH())&&(u.lazyContent=T.first),i.iGM(T=i.CRH())&&(u._allItems=T),i.iGM(T=i.CRH())&&(u.items=T)}},viewQuery:function(c,u){if(1&c&&i.Gf(i.Rgc,5),2&c){let p;i.iGM(p=i.CRH())&&(u.templateRef=p.first)}},hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(c,u){2&c&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:["overlapTrigger","overlapTrigger",i.VuI],hasBackdrop:["hasBackdrop","hasBackdrop",o=>null==o?null:(0,i.VuI)(o)],panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i._Bn([{provide:Fr,useExisting:h}]),i.Xq5],ngContentSelectors:uu,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(c,u){1&c&&(i.F$t(),i.YNc(0,Tl,3,6,"ng-template"))},dependencies:[E.mk],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Xa.transformMenu,Xa.fadeInItems]},changeDetection:0})}return h})();const _=new i.OlP("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.reposition()}}),M={provide:_,deps:[Pn],useFactory:function W(h){return()=>h.scrollStrategies.reposition()}},B=(0,pn.i$)({passive:!0});let je=(()=>{class h{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(o){this.menu=o}get menu(){return this._menu}set menu(o){o!==this._menu&&(this._menu=o,this._menuCloseSubscription.unsubscribe(),o&&(this._menuCloseSubscription=o.close.subscribe(c=>{this._destroyMenu(c),("click"===c||"tab"===c)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(c)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(o,c,u,p,T,Z,fe,ye,Ne){this._overlay=o,this._element=c,this._viewContainerRef=u,this._menuItemInstance=Z,this._dir=fe,this._focusMonitor=ye,this._ngZone=Ne,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ni.w0.EMPTY,this._hoverSubscription=ni.w0.EMPTY,this._menuCloseSubscription=ni.w0.EMPTY,this._changeDetectorRef=(0,i.f3M)(i.sBO),this._handleTouchStart=Ye=>{(0,R.yG)(Ye)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=p,this._parentMaterialMenu=T instanceof na?T:void 0,c.nativeElement.addEventListener("touchstart",this._handleTouchStart,B)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const o=this.menu;if(this._menuOpen||!o)return;const c=this._createOverlay(o),u=c.getConfig(),p=u.positionStrategy;this._setPosition(o,p),u.hasBackdrop=null==o.hasBackdrop?!this.triggersSubmenu():o.hasBackdrop,c.attach(this._getPortal(o)),o.lazyContent&&o.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(o),o instanceof na&&(o._startAnimation(),o._directDescendantItems.changes.pipe((0,w.R)(o.close)).subscribe(()=>{p.withLockedPosition(!1).reapplyLastPosition(),p.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(o,c){this._focusMonitor&&o?this._focusMonitor.focusVia(this._element,o,c):this._element.nativeElement.focus(c)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(o){if(!this._overlayRef||!this.menuOpen)return;const c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===o||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof na?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe((0,ti.h)(u=>"void"===u.toState),(0,x.q)(1),(0,w.R)(c.lazyContent._attached)).subscribe({next:()=>c.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c?.lazyContent?.detach())}_initMenu(o){o.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,o.direction=this.dir,this._setMenuElevation(o),o.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(o){if(o.setElevation){let c=0,u=o.parentMenu;for(;u;)c++,u=u.parentMenu;o.setElevation(c)}}_setIsMenuOpen(o){o!==this._menuOpen&&(this._menuOpen=o,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(o),this._changeDetectorRef.markForCheck())}_createOverlay(o){if(!this._overlayRef){const c=this._getOverlayConfig(o);this._subscribeToPositions(o,c.positionStrategy),this._overlayRef=this._overlay.create(c),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(o){return new xo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:o.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:o.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(o,c){o.setPositionClasses&&c.positionChanges.subscribe(u=>{const p="start"===u.connectionPair.overlayX?"after":"before",T="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>o.setPositionClasses(p,T)):o.setPositionClasses(p,T)})}_setPosition(o,c){let[u,p]="before"===o.xPosition?["end","start"]:["start","end"],[T,Z]="above"===o.yPosition?["bottom","top"]:["top","bottom"],[fe,ye]=[T,Z],[Ne,Ye]=[u,p],lt=0;if(this.triggersSubmenu()){if(Ye=u="before"===o.xPosition?"start":"end",p=Ne="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const _t=this._parentMaterialMenu.items.first;this._parentInnerPadding=_t?_t._getHostElement().offsetTop:0}lt="bottom"===T?this._parentInnerPadding:-this._parentInnerPadding}}else o.overlapTrigger||(fe="top"===T?"bottom":"top",ye="top"===Z?"bottom":"top");c.withPositions([{originX:u,originY:fe,overlayX:Ne,overlayY:T,offsetY:lt},{originX:p,originY:fe,overlayX:Ye,overlayY:T,offsetY:lt},{originX:u,originY:ye,overlayX:Ne,overlayY:Z,offsetY:-lt},{originX:p,originY:ye,overlayX:Ye,overlayY:Z,offsetY:-lt}])}_menuClosingActions(){const o=this._overlayRef.backdropClick(),c=this._overlayRef.detachments(),u=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,jo.of)(),p=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ti.h)(T=>T!==this._menuItemInstance),(0,ti.h)(()=>this._menuOpen)):(0,jo.of)();return(0,P.T)(o,u,p,c)}_handleMousedown(o){(0,R.X6)(o)||(this._openedBy=0===o.button?"mouse":void 0,this.triggersSubmenu()&&o.preventDefault())}_handleKeydown(o){const c=o.keyCode;(c===le.K5||c===le.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(c===le.SV&&"ltr"===this.dir||c===le.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(o){this.triggersSubmenu()?(o.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ti.h)(o=>o===this._menuItemInstance&&!o.disabled),Xs(0,Pr.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof na&&this.menu._isAnimating?this.menu._animationDone.pipe((0,x.q)(1),Xs(0,Pr.E),(0,w.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(o){return(!this._portal||this._portal.templateRef!==o.templateRef)&&(this._portal=new on.UE(o.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Pn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(_),i.Y36(Fr,8),i.Y36(Nr,10),i.Y36(Q.Is,8),i.Y36(R.tE),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(c,u){1&c&&i.NdJ("click",function(T){return u._handleClick(T)})("mousedown",function(T){return u._handleMousedown(T)})("keydown",function(T){return u._handleKeydown(T)}),2&c&&i.uIk("aria-haspopup",u.menu?"menu":null)("aria-expanded",u.menuOpen)("aria-controls",u.menuOpen?u.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return h})(),tt=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[M],imports:[E.ez,A.si,A.BQ,Rn,Zt.ZD,A.BQ]})}return h})();class hn extends or.y{constructor(l,o){super(),this.source=l,this.subjectFactory=o,this._subject=null,this._refCount=0,this._connection=null,(0,ls.A)(l)&&(this.lift=l.lift)}_subscribe(l){return this.getSubject().subscribe(l)}getSubject(){const l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:l}=this;this._subject=this._connection=null,l?.unsubscribe()}connect(){let l=this._connection;if(!l){l=this._connection=new ni.w0;const o=this.getSubject();l.add(this.source.subscribe((0,sr.x)(o,void 0,()=>{this._teardown(),o.complete()},c=>{this._teardown(),o.error(c)},()=>this._teardown()))),l.closed&&(this._connection=null,l=ni.w0.EMPTY)}return l}refCount(){return function vt(){return(0,ls.e)((h,l)=>{let o=null;h._refCount++;const c=(0,sr.x)(l,void 0,void 0,void 0,()=>{if(!h||h._refCount<=0||0<--h._refCount)return void(o=null);const u=h._connection,p=o;o=null,u&&(!p||u===p)&&u.unsubscribe(),l.unsubscribe()});h.subscribe(c),c.closed||(o=h.connect())})}()(this)}}function fn(h){return h&&"function"==typeof h.connect&&!(h instanceof hn)}class An{applyChanges(l,o,c,u,p){l.forEachOperation((T,Z,fe)=>{let ye,Ne;if(null==T.previousIndex){const Ye=c(T,Z,fe);ye=o.createEmbeddedView(Ye.templateRef,Ye.context,Ye.index),Ne=1}else null==fe?(o.remove(Z),Ne=3):(ye=o.get(Z),o.move(ye,fe),Ne=2);p&&p({context:ye?.context,operation:Ne,record:T})})}detach(){}}const Ii=new i.OlP("_ViewRepeater");var Eo=b(107),ii=b(1625),to=b(3276);const ds=[[["caption"]],[["colgroup"],["col"]]],Vf=["caption","colgroup, col"];function ia(h){return class extends h{get sticky(){return this._sticky}set sticky(l){const o=this._sticky;this._sticky=(0,C.Ig)(l),this._hasStickyChanged=o!==this._sticky}hasStickyChanged(){const l=this._hasStickyChanged;return this._hasStickyChanged=!1,l}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...l){super(...l),this._sticky=!1,this._hasStickyChanged=!1}}}const Mo=new i.OlP("CDK_TABLE");let us=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkCellDef",""]]})}return h})(),So=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkHeaderCellDef",""]]})}return h})(),Go=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkFooterCellDef",""]]})}return h})();class $i{}const $f=ia($i);let bo=(()=>{class h extends $f{get name(){return this._name}set name(o){this._setNameInput(o)}get stickyEnd(){return this._stickyEnd}set stickyEnd(o){o!==this._stickyEnd&&(this._stickyEnd=o,this._hasStickyChanged=!0)}constructor(o){super(),this._table=o,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkColumnDef",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,us,5),i.Suo(p,So,5),i.Suo(p,Go,5)),2&c){let T;i.iGM(T=i.CRH())&&(u.cell=T.first),i.iGM(T=i.CRH())&&(u.headerCell=T.first),i.iGM(T=i.CRH())&&(u.footerCell=T.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:["stickyEnd","stickyEnd",i.VuI]},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),i.Xq5,i.qOj]})}return h})();class Ml{constructor(l,o){o.nativeElement.classList.add(...l._columnCssClassName)}}let no=(()=>{class h extends Ml{constructor(o,c){super(o,c)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(bo),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]})}return h})(),Al=(()=>{class h extends Ml{constructor(o,c){if(super(o,c),1===o._table?._elementRef.nativeElement.nodeType){const u=o._table._elementRef.nativeElement.getAttribute("role");c.nativeElement.setAttribute("role","grid"===u||"treegrid"===u?"gridcell":"cell")}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(bo),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]})}return h})();class Il{constructor(){this.tasks=[],this.endTasks=[]}}const ec=new i.OlP("_COALESCED_STYLE_SCHEDULER");let tc=(()=>{class h{constructor(o){this._ngZone=o,this._currentSchedule=null,this._destroyed=new S.x}schedule(o){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(o)}scheduleEnd(o){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(o)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Il,this._getScheduleObservable().pipe((0,w.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const o=this._currentSchedule;this._currentSchedule=new Il;for(const c of o.tasks)c();for(const c of o.endTasks)c()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Eo.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,x.q)(1))}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(i.R0b))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})(),hs=(()=>{class h{constructor(o,c){this.template=o,this._differs=c}ngOnChanges(o){if(!this._columnsDiffer){const c=o.columns&&o.columns.currentValue||[];this._columnsDiffer=this._differs.find(c).create(),this._columnsDiffer.diff(c)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(o){return this instanceof fs?o.headerCell.template:this instanceof oa?o.footerCell.template:o.cell.template}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4))};static#t=this.\u0275dir=i.lG2({type:h,features:[i.TTD]})}return h})();class Ol extends hs{}const Ut=ia(Ol);let fs=(()=>{class h extends Ut{constructor(o,c,u){super(o,c),this._table=u}ngOnChanges(o){super.ngOnChanges(o)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]})}return h})();class C_ extends hs{}const Hf=ia(C_);let oa=(()=>{class h extends Hf{constructor(o,c,u){super(o,c),this._table=u}ngOnChanges(o){super.ngOnChanges(o)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]})}return h})(),ic=(()=>{class h extends hs{constructor(o,c,u){super(o,c),this._table=u}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]})}return h})(),Ao=(()=>{class h{static#e=this.mostRecentCellOutlet=null;constructor(o){this._viewContainer=o,h.mostRecentCellOutlet=this}ngOnDestroy(){h.mostRecentCellOutlet===this&&(h.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b))};static#n=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkCellOutlet",""]]})}return h})(),lr=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),kl=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),oc=(()=>{class h{constructor(o){this.templateRef=o,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["ng-template","cdkNoDataRow",""]]})}return h})();const hu=["top","bottom","left","right"];class jf{constructor(l,o,c,u,p=!0,T=!0,Z){this._isNativeHtmlTable=l,this._stickCellCss=o,this.direction=c,this._coalescedStyleScheduler=u,this._isBrowser=p,this._needsPositionStickyOnElement=T,this._positionListener=Z,this._cachedCellWidths=[],this._borderCellCss={top:`${o}-border-elem-top`,bottom:`${o}-border-elem-bottom`,left:`${o}-border-elem-left`,right:`${o}-border-elem-right`}}clearStickyPositioning(l,o){const c=[];for(const u of l)if(u.nodeType===u.ELEMENT_NODE){c.push(u);for(let p=0;p<u.children.length;p++)c.push(u.children[p])}this._coalescedStyleScheduler.schedule(()=>{for(const u of c)this._removeStickyStyle(u,o)})}updateStickyColumns(l,o,c,u=!0){if(!l.length||!this._isBrowser||!o.some(lt=>lt)&&!c.some(lt=>lt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const p=l[0],T=p.children.length,Z=this._getCellWidths(p,u),fe=this._getStickyStartColumnPositions(Z,o),ye=this._getStickyEndColumnPositions(Z,c),Ne=o.lastIndexOf(!0),Ye=c.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const lt="rtl"===this.direction,_t=lt?"right":"left",pt=lt?"left":"right";for(const Ct of l)for(let Wt=0;Wt<T;Wt++){const Fn=Ct.children[Wt];o[Wt]&&this._addStickyStyle(Fn,_t,fe[Wt],Wt===Ne),c[Wt]&&this._addStickyStyle(Fn,pt,ye[Wt],Wt===Ye)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ne?[]:Z.slice(0,Ne+1).map((Ct,Wt)=>o[Wt]?Ct:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ye?[]:Z.slice(Ye).map((Ct,Wt)=>c[Wt+Ye]?Ct:null).reverse()}))})}stickRows(l,o,c){if(!this._isBrowser)return;const u="bottom"===c?l.slice().reverse():l,p="bottom"===c?o.slice().reverse():o,T=[],Z=[],fe=[];for(let Ne=0,Ye=0;Ne<u.length;Ne++){if(!p[Ne])continue;T[Ne]=Ye;const lt=u[Ne];fe[Ne]=this._isNativeHtmlTable?Array.from(lt.children):[lt];const _t=lt.getBoundingClientRect().height;Ye+=_t,Z[Ne]=_t}const ye=p.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Ne=0;Ne<u.length;Ne++){if(!p[Ne])continue;const Ye=T[Ne],lt=Ne===ye;for(const _t of fe[Ne])this._addStickyStyle(_t,c,Ye,lt)}"top"===c?this._positionListener?.stickyHeaderRowsUpdated({sizes:Z,offsets:T,elements:fe}):this._positionListener?.stickyFooterRowsUpdated({sizes:Z,offsets:T,elements:fe})})}updateStickyFooterContainer(l,o){if(!this._isNativeHtmlTable)return;const c=l.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{o.some(u=>!u)?this._removeStickyStyle(c,["bottom"]):this._addStickyStyle(c,"bottom",0,!1)})}_removeStickyStyle(l,o){for(const u of o)l.style[u]="",l.classList.remove(this._borderCellCss[u]);hu.some(u=>-1===o.indexOf(u)&&l.style[u])?l.style.zIndex=this._getCalculatedZIndex(l):(l.style.zIndex="",this._needsPositionStickyOnElement&&(l.style.position=""),l.classList.remove(this._stickCellCss))}_addStickyStyle(l,o,c,u){l.classList.add(this._stickCellCss),u&&l.classList.add(this._borderCellCss[o]),l.style[o]=`${c}px`,l.style.zIndex=this._getCalculatedZIndex(l),this._needsPositionStickyOnElement&&(l.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(l){const o={top:100,bottom:10,left:1,right:1};let c=0;for(const u of hu)l.style[u]&&(c+=o[u]);return c?`${c}`:""}_getCellWidths(l,o=!0){if(!o&&this._cachedCellWidths.length)return this._cachedCellWidths;const c=[],u=l.children;for(let p=0;p<u.length;p++)c.push(u[p].getBoundingClientRect().width);return this._cachedCellWidths=c,c}_getStickyStartColumnPositions(l,o){const c=[];let u=0;for(let p=0;p<l.length;p++)o[p]&&(c[p]=u,u+=l[p]);return c}_getStickyEndColumnPositions(l,o){const c=[];let u=0;for(let p=l.length;p>0;p--)o[p]&&(c[p]=u,u+=l[p]);return c}}const ra=new i.OlP("CDK_SPL");let sc=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","rowOutlet",""]]})}return h})(),Fl=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","headerRowOutlet",""]]})}return h})(),sa=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","footerRowOutlet",""]]})}return h})(),oi=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","noDataRowOutlet",""]]})}return h})(),Hi=(()=>{class h{get trackBy(){return this._trackByFn}set trackBy(o){this._trackByFn=o}get dataSource(){return this._dataSource}set dataSource(o){this._dataSource!==o&&this._switchDataSource(o)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(o){this._multiTemplateDataRows=o,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(o){this._fixedLayout=o,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(o,c,u,p,T,Z,fe,ye,Ne,Ye,lt,_t){this._differs=o,this._changeDetectorRef=c,this._elementRef=u,this._dir=T,this._platform=fe,this._viewRepeater=ye,this._coalescedStyleScheduler=Ne,this._viewportRuler=Ye,this._stickyPositioningListener=lt,this._ngZone=_t,this._onDestroy=new S.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new ii.X({start:0,end:Number.MAX_VALUE}),p||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Z,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((o,c)=>this.trackBy?this.trackBy(c.dataIndex,c.data):c),this._viewportRuler.change().pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const c=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||c,this._forceRecalculateCellWidths=c,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(o=>{o.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),fn(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();const c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,c,(u,p,T)=>this._getEmbeddedViewArgs(u.item,T),u=>u.item.data,u=>{1===u.operation&&u.context&&this._renderCellTemplateForItem(u.record.item.rowDef,u.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(u=>{c.get(u.currentIndex).context.$implicit=u.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,x.q)(1),(0,w.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(o){this._customColumnDefs.add(o)}removeColumnDef(o){this._customColumnDefs.delete(o)}addRowDef(o){this._customRowDefs.add(o)}removeRowDef(o){this._customRowDefs.delete(o)}addHeaderRowDef(o){this._customHeaderRowDefs.add(o),this._headerRowDefChanged=!0}removeHeaderRowDef(o){this._customHeaderRowDefs.delete(o),this._headerRowDefChanged=!0}addFooterRowDef(o){this._customFooterRowDefs.add(o),this._footerRowDefChanged=!0}removeFooterRowDef(o){this._customFooterRowDefs.delete(o),this._footerRowDefChanged=!0}setNoDataRow(o){this._customNoDataRow=o}updateStickyHeaderRowStyles(){const o=this._getRenderedRows(this._headerRowOutlet),u=this._elementRef.nativeElement.querySelector("thead");u&&(u.style.display=o.length?"":"none");const p=this._headerRowDefs.map(T=>T.sticky);this._stickyStyler.clearStickyPositioning(o,["top"]),this._stickyStyler.stickRows(o,p,"top"),this._headerRowDefs.forEach(T=>T.resetStickyChanged())}updateStickyFooterRowStyles(){const o=this._getRenderedRows(this._footerRowOutlet),u=this._elementRef.nativeElement.querySelector("tfoot");u&&(u.style.display=o.length?"":"none");const p=this._footerRowDefs.map(T=>T.sticky);this._stickyStyler.clearStickyPositioning(o,["bottom"]),this._stickyStyler.stickRows(o,p,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,p),this._footerRowDefs.forEach(T=>T.resetStickyChanged())}updateStickyColumnStyles(){const o=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),u=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...o,...c,...u],["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach((p,T)=>{this._addStickyColumnStyles([p],this._headerRowDefs[T])}),this._rowDefs.forEach(p=>{const T=[];for(let Z=0;Z<c.length;Z++)this._renderRows[Z].rowDef===p&&T.push(c[Z]);this._addStickyColumnStyles(T,p)}),u.forEach((p,T)=>{this._addStickyColumnStyles([p],this._footerRowDefs[T])}),Array.from(this._columnDefsByName.values()).forEach(p=>p.resetStickyChanged())}_getAllRenderRows(){const o=[],c=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let u=0;u<this._data.length;u++){let p=this._data[u];const T=this._getRenderRowsForData(p,u,c.get(p));this._cachedRenderRowsMap.has(p)||this._cachedRenderRowsMap.set(p,new WeakMap);for(let Z=0;Z<T.length;Z++){let fe=T[Z];const ye=this._cachedRenderRowsMap.get(fe.data);ye.has(fe.rowDef)?ye.get(fe.rowDef).push(fe):ye.set(fe.rowDef,[fe]),o.push(fe)}}return o}_getRenderRowsForData(o,c,u){return this._getRowDefs(o,c).map(T=>{const Z=u&&u.has(T)?u.get(T):[];if(Z.length){const fe=Z.shift();return fe.dataIndex=c,fe}return{data:o,rowDef:T,dataIndex:c}})}_cacheColumnDefs(){this._columnDefsByName.clear(),io(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(c=>{this._columnDefsByName.has(c.name),this._columnDefsByName.set(c.name,c)})}_cacheRowDefs(){this._headerRowDefs=io(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=io(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=io(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const o=this._rowDefs.filter(c=>!c.when);this._defaultRowDef=o[0]}_renderUpdatedColumns(){const o=(T,Z)=>T||!!Z.getColumnsDiff(),c=this._rowDefs.reduce(o,!1);c&&this._forceRenderDataRows();const u=this._headerRowDefs.reduce(o,!1);u&&this._forceRenderHeaderRows();const p=this._footerRowDefs.reduce(o,!1);return p&&this._forceRenderFooterRows(),c||u||p}_switchDataSource(o){this._data=[],fn(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),o||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=o}_observeRenderChanges(){if(!this.dataSource)return;let o;fn(this.dataSource)?o=this.dataSource.connect(this):function zo(h){return!!h&&(h instanceof or.y||(0,to.m)(h.lift)&&(0,to.m)(h.subscribe))}(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,jo.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,w.R)(this._onDestroy)).subscribe(c=>{this._data=c||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((o,c)=>this._renderRow(this._headerRowOutlet,o,c)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((o,c)=>this._renderRow(this._footerRowOutlet,o,c)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(o,c){const u=Array.from(c.columns||[]).map(Z=>this._columnDefsByName.get(Z)),p=u.map(Z=>Z.sticky),T=u.map(Z=>Z.stickyEnd);this._stickyStyler.updateStickyColumns(o,p,T,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(o){const c=[];for(let u=0;u<o.viewContainer.length;u++){const p=o.viewContainer.get(u);c.push(p.rootNodes[0])}return c}_getRowDefs(o,c){if(1==this._rowDefs.length)return[this._rowDefs[0]];let u=[];if(this.multiTemplateDataRows)u=this._rowDefs.filter(p=>!p.when||p.when(c,o));else{let p=this._rowDefs.find(T=>T.when&&T.when(c,o))||this._defaultRowDef;p&&u.push(p)}return u}_getEmbeddedViewArgs(o,c){return{templateRef:o.rowDef.template,context:{$implicit:o.data},index:c}}_renderRow(o,c,u,p={}){const T=o.viewContainer.createEmbeddedView(c.template,p,u);return this._renderCellTemplateForItem(c,p),T}_renderCellTemplateForItem(o,c){for(let u of this._getCellTemplates(o))Ao.mostRecentCellOutlet&&Ao.mostRecentCellOutlet._viewContainer.createEmbeddedView(u,c);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const o=this._rowOutlet.viewContainer;for(let c=0,u=o.length;c<u;c++){const T=o.get(c).context;T.count=u,T.first=0===c,T.last=c===u-1,T.even=c%2==0,T.odd=!T.even,this.multiTemplateDataRows?(T.dataIndex=this._renderRows[c].dataIndex,T.renderIndex=c):T.index=this._renderRows[c].dataIndex}}_getCellTemplates(o){return o&&o.columns?Array.from(o.columns,c=>{const u=this._columnDefsByName.get(c);return o.extractCellTemplate(u)}):[]}_applyNativeTableSections(){const o=this._document.createDocumentFragment(),c=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const u of c){const p=this._document.createElement(u.tag);p.setAttribute("role","rowgroup");for(const T of u.outlets)p.appendChild(T.elementRef.nativeElement);o.appendChild(p)}this._elementRef.nativeElement.appendChild(o)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const o=(c,u)=>c||u.hasStickyChanged();this._headerRowDefs.reduce(o,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(o,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(o,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new jf(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,jo.of)()).pipe((0,w.R)(this._onDestroy)).subscribe(c=>{this._stickyStyler.direction=c,this.updateStickyColumnStyles()})}_getOwnDefs(o){return o.filter(c=>!c._table||c._table===this)}_updateNoDataRow(){const o=this._customNoDataRow||this._noDataRow;if(!o)return;const c=0===this._rowOutlet.viewContainer.length;if(c===this._isShowingNoDataRow)return;const u=this._noDataRowOutlet.viewContainer;if(c){const p=u.createEmbeddedView(o.templateRef),T=p.rootNodes[0];1===p.rootNodes.length&&T?.nodeType===this._document.ELEMENT_NODE&&(T.setAttribute("role","row"),T.classList.add(o._contentClassName))}else u.clear();this._isShowingNoDataRow=c,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Q.Is,8),i.Y36(E.K0),i.Y36(pn.t4),i.Y36(Ii),i.Y36(ec),i.Y36(Zt.rL),i.Y36(ra,12),i.Y36(i.R0b,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,oc,5),i.Suo(p,bo,5),i.Suo(p,ic,5),i.Suo(p,fs,5),i.Suo(p,oa,5)),2&c){let T;i.iGM(T=i.CRH())&&(u._noDataRow=T.first),i.iGM(T=i.CRH())&&(u._contentColumnDefs=T),i.iGM(T=i.CRH())&&(u._contentRowDefs=T),i.iGM(T=i.CRH())&&(u._contentHeaderRowDefs=T),i.iGM(T=i.CRH())&&(u._contentFooterRowDefs=T)}},viewQuery:function(c,u){if(1&c&&(i.Gf(sc,7),i.Gf(Fl,7),i.Gf(sa,7),i.Gf(oi,7)),2&c){let p;i.iGM(p=i.CRH())&&(u._rowOutlet=p.first),i.iGM(p=i.CRH())&&(u._headerRowOutlet=p.first),i.iGM(p=i.CRH())&&(u._footerRowOutlet=p.first),i.iGM(p=i.CRH())&&(u._noDataRowOutlet=p.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("cdk-table-fixed-layout",u.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:["multiTemplateDataRows","multiTemplateDataRows",i.VuI],fixedLayout:["fixedLayout","fixedLayout",i.VuI]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Mo,useExisting:h},{provide:Ii,useClass:An},{provide:ec,useClass:tc},{provide:ra,useValue:null}]),i.Xq5],ngContentSelectors:Vf,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(c,u){1&c&&(i.F$t(ds),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[sc,Fl,sa,oi],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return h})();function io(h,l){return h.concat(Array.from(l))}let Kf=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({imports:[Zt.Cl]})}return h})();const Zf=[[["caption"]],[["colgroup"],["col"]]],Nl=["caption","colgroup, col"];let Vl=(()=>{class h extends Hi{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("mdc-table-fixed-layout",u.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:Hi,useExisting:h},{provide:Mo,useExisting:h},{provide:ec,useClass:tc},{provide:Ii,useClass:An},{provide:ra,useValue:null}]),i.qOj],ngContentSelectors:Nl,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(c,u){1&c&&(i.F$t(Zf),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[sc,Fl,sa,oi],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return h})(),aa=(()=>{class h extends us{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:us,useExisting:h}]),i.qOj]})}return h})(),ms=(()=>{class h extends So{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:So,useExisting:h}]),i.qOj]})}return h})(),ca=(()=>{class h extends bo{get name(){return this._name}set name(o){this._setNameInput(o)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:bo,useExisting:h},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),i.qOj]})}return h})(),la=(()=>{class h extends no{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.qOj]})}return h})(),ps=(()=>{class h extends Al{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.qOj]})}return h})(),ri=(()=>{class h extends fs{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:fs,useExisting:h}]),i.qOj]})}return h})(),xn=(()=>{class h extends ic{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:ic,useExisting:h}]),i.qOj]})}return h})(),ac=(()=>{class h extends lr{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:lr,useExisting:h}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),$l=(()=>{class h extends kl{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i._Bn([{provide:kl,useExisting:h}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),cc=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({imports:[A.BQ,Kf,A.BQ]})}return h})();var Io=b(7361);const lc=["tooltip"],Hl=new i.OlP("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.reposition({scrollThrottle:20})}}),Xf={provide:Hl,deps:[Pn],useFactory:function bu(h){return()=>h.scrollStrategies.reposition({scrollThrottle:20})}},ua=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function gs(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dc="tooltip-panel",vu=(0,pn.i$)({passive:!0});let Br=(()=>{class h{get position(){return this._position}set position(o){o!==this._position&&(this._position=o,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(o){this._positionAtOrigin=(0,C.Ig)(o),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(o){this._disabled=(0,C.Ig)(o),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(o){this._showDelay=(0,C.su)(o)}get hideDelay(){return this._hideDelay}set hideDelay(o){this._hideDelay=(0,C.su)(o),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(o){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=o?String(o).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(o){this._tooltipClass=o,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(o,c,u,p,T,Z,fe,ye,Ne,Ye,lt,_t){this._overlay=o,this._elementRef=c,this._scrollDispatcher=u,this._viewContainerRef=p,this._ngZone=T,this._platform=Z,this._ariaDescriber=fe,this._focusMonitor=ye,this._dir=Ye,this._defaultOptions=lt,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=nm,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S.x,this._scrollStrategy=Ne,this._document=_t,lt&&(this._showDelay=lt.showDelay,this._hideDelay=lt.hideDelay,lt.position&&(this.position=lt.position),lt.positionAtOrigin&&(this.positionAtOrigin=lt.positionAtOrigin),lt.touchGestures&&(this.touchGestures=lt.touchGestures)),Ye.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(o=>{o?"keyboard"===o&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const o=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([c,u])=>{o.removeEventListener(c,u,vu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(o,this.message,"tooltip"),this._focusMonitor.stopMonitoring(o)}show(o=this.showDelay,c){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const u=this._createOverlay(c);this._detach(),this._portal=this._portal||new on.C5(this._tooltipComponent,this._viewContainerRef);const p=this._tooltipInstance=u.attach(this._portal).instance;p._triggerElement=this._elementRef.nativeElement,p._mouseLeaveHideDelay=this._hideDelay,p.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),p.show(o)}hide(o=this.hideDelay){const c=this._tooltipInstance;c&&(c.isVisible()?c.hide(o):(c._cancelPendingAnimations(),this._detach()))}toggle(o){this._isTooltipVisible()?this.hide():this.show(void 0,o)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(o){if(this._overlayRef){const p=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!o)&&p._origin instanceof i.SBq)return this._overlayRef;this._detach()}const c=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),u=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&o||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return u.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(p=>{this._updateCurrentPositionClass(p.connectionPair),this._tooltipInstance&&p.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:u,panelClass:`${this._cssClassPrefix}-${dc}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,w.R)(this._destroyed)).subscribe(p=>{this._isTooltipVisible()&&p.keyCode===le.hY&&!(0,le.Vb)(p)&&(p.preventDefault(),p.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(o){const c=o.getConfig().positionStrategy,u=this._getOrigin(),p=this._getOverlayPosition();c.withPositions([this._addOffset({...u.main,...p.main}),this._addOffset({...u.fallback,...p.fallback})])}_addOffset(o){const u=!this._dir||"ltr"==this._dir.value;return"top"===o.originY?o.offsetY=-8:"bottom"===o.originY?o.offsetY=8:"start"===o.originX?o.offsetX=u?-8:8:"end"===o.originX&&(o.offsetX=u?8:-8),o}_getOrigin(){const o=!this._dir||"ltr"==this._dir.value,c=this.position;let u;"above"==c||"below"==c?u={originX:"center",originY:"above"==c?"top":"bottom"}:"before"==c||"left"==c&&o||"right"==c&&!o?u={originX:"start",originY:"center"}:("after"==c||"right"==c&&o||"left"==c&&!o)&&(u={originX:"end",originY:"center"});const{x:p,y:T}=this._invertPosition(u.originX,u.originY);return{main:u,fallback:{originX:p,originY:T}}}_getOverlayPosition(){const o=!this._dir||"ltr"==this._dir.value,c=this.position;let u;"above"==c?u={overlayX:"center",overlayY:"bottom"}:"below"==c?u={overlayX:"center",overlayY:"top"}:"before"==c||"left"==c&&o||"right"==c&&!o?u={overlayX:"end",overlayY:"center"}:("after"==c||"right"==c&&o||"left"==c&&!o)&&(u={overlayX:"start",overlayY:"center"});const{x:p,y:T}=this._invertPosition(u.overlayX,u.overlayY);return{main:u,fallback:{overlayX:p,overlayY:T}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,x.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(o){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=o,this._tooltipInstance._markForCheck())}_invertPosition(o,c){return"above"===this.position||"below"===this.position?"top"===c?c="bottom":"bottom"===c&&(c="top"):"end"===o?o="start":"start"===o&&(o="end"),{x:o,y:c}}_updateCurrentPositionClass(o){const{overlayY:c,originX:u,originY:p}=o;let T;if(T="center"===c?this._dir&&"rtl"===this._dir.value?"end"===u?"left":"right":"start"===u?"left":"right":"bottom"===c&&"top"===p?"above":"below",T!==this._currentPosition){const Z=this._overlayRef;if(Z){const fe=`${this._cssClassPrefix}-${dc}-`;Z.removePanelClass(fe+this._currentPosition),Z.addPanelClass(fe+T)}this._currentPosition=T}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",o=>{let c;this._setupPointerExitEventsIfNeeded(),void 0!==o.x&&void 0!==o.y&&(c=o),this.show(void 0,c)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",o=>{const c=o.targetTouches?.[0],u=c?{x:c.clientX,y:c.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,u),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",c=>{const u=c.relatedTarget;(!u||!this._overlayRef?.overlayElement.contains(u))&&this.hide()}],["wheel",c=>this._wheelListener(c)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const c=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};o.push(["touchend",c],["touchcancel",c])}this._addListeners(o),this._passiveListeners.push(...o)}_addListeners(o){o.forEach(([c,u])=>{this._elementRef.nativeElement.addEventListener(c,u,vu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(o){if(this._isTooltipVisible()){const c=this._document.elementFromPoint(o.clientX,o.clientY),u=this._elementRef.nativeElement;c!==u&&!u.contains(c)&&this.hide()}}_disableNativeGesturesIfNecessary(){const o=this.touchGestures;if("off"!==o){const c=this._elementRef.nativeElement,u=c.style;("on"===o||"INPUT"!==c.nodeName&&"TEXTAREA"!==c.nodeName)&&(u.userSelect=u.msUserSelect=u.webkitUserSelect=u.MozUserSelect="none"),("on"===o||!c.draggable)&&(u.webkitUserDrag="none"),u.touchAction="none",u.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Pn),i.Y36(i.SBq),i.Y36(Zt.mF),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(pn.t4),i.Y36(R.$s),i.Y36(R.tE),i.Y36(Hl),i.Y36(Q.Is),i.Y36(ua,8),i.Y36(E.K0))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("mat-mdc-tooltip-disabled",u.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return h})(),nm=(()=>{class h{constructor(o,c,u){this._changeDetectorRef=o,this._elementRef=c,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new S.x,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===u}show(o){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},o)}hide(o){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},o)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:o}){(!o||!this._triggerElement.contains(o))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const o=this._elementRef.nativeElement.getBoundingClientRect();return o.height>24&&o.width>=200}_handleAnimationEnd({animationName:o}){(o===this._showAnimation||o===this._hideAnimation)&&this._finalizeAnimation(o===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(o){o?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(o){const c=this._tooltip.nativeElement,u=this._showAnimation,p=this._hideAnimation;if(c.classList.remove(o?p:u),c.classList.add(o?u:p),this._isVisible=o,o&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const T=getComputedStyle(c);("0s"===T.getPropertyValue("animation-duration")||"none"===T.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}o&&this._onShow(),this._animationsDisabled&&(c.classList.add("_mat-animation-noopable"),this._finalizeAnimation(o))}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-tooltip-component"]],viewQuery:function(c,u){if(1&c&&i.Gf(lc,7),2&c){let p;i.iGM(p=i.CRH())&&(u._tooltip=p.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(c,u){1&c&&i.NdJ("mouseleave",function(T){return u._handleMouseLeave(T)}),2&c&&i.Udp("zoom",u.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(c,u){1&c&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(T){return u._handleAnimationEnd(T)}),i.TgZ(2,"div",2),i._uU(3),i.qZA()()),2&c&&(i.ekj("mdc-tooltip--multiline",u._isMultiline),i.Q6J("ngClass",u.tooltipClass),i.xp6(3),i.Oqu(u.message))},dependencies:[E.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return h})(),Ul=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Xf],imports:[R.rt,E.ez,Rn,A.BQ,A.BQ,Zt.ZD]})}return h})();function im(h){return new i.vHH(3e3,!1)}function $r(h){switch(h.length){case 0:return new ce.ZN;case 1:return h[0];default:return new ce.ZE(h)}}function Ou(h,l,o=new Map,c=new Map){const u=[],p=[];let T=-1,Z=null;if(l.forEach(fe=>{const ye=fe.get("offset"),Ne=ye==T,Ye=Ne&&Z||new Map;fe.forEach((lt,_t)=>{let pt=_t,Ct=lt;if("offset"!==_t)switch(pt=h.normalizePropertyName(pt,u),Ct){case ce.k1:Ct=o.get(_t);break;case ce.l3:Ct=c.get(_t);break;default:Ct=h.normalizeStyleValue(_t,pt,Ct,u)}Ye.set(pt,Ct)}),Ne||p.push(Ye),Z=Ye,T=ye}),u.length)throw function Jn(h){return new i.vHH(3502,!1)}();return p}function Pu(h,l,o,c){switch(l){case"start":h.onStart(()=>c(o&&ku(o,"start",h)));break;case"done":h.onDone(()=>c(o&&ku(o,"done",h)));break;case"destroy":h.onDestroy(()=>c(o&&ku(o,"destroy",h)))}}function ku(h,l,o){const p=Ru(h.element,h.triggerName,h.fromState,h.toState,l||h.phaseName,o.totalTime??h.totalTime,!!o.disabled),T=h._data;return null!=T&&(p._data=T),p}function Ru(h,l,o,c,u="",p=0,T){return{element:h,triggerName:l,fromState:o,toState:c,phaseName:u,totalTime:p,disabled:!!T}}function oo(h,l,o){let c=h.get(l);return c||h.set(l,c=o),c}function um(h){const l=h.indexOf(":");return[h.substring(1,l),h.slice(l+1)]}const I_=(()=>typeof document>"u"?null:document.documentElement)();function hr(h){const l=h.parentNode||h.host||null;return l===I_?null:l}let Hr=null,Gn=!1;function Di(h,l){for(;l;){if(l===h)return!0;l=hr(l)}return!1}function jr(h,l,o){if(o)return Array.from(h.querySelectorAll(l));const c=h.querySelector(l);return c?[c]:[]}let xs=(()=>{class h{validateStyleProperty(o){return function fm(h){Hr||(Hr=function mm(){return typeof document<"u"?document.body:null}()||{},Gn=!!Hr.style&&"WebkitAppearance"in Hr.style);let l=!0;return Hr.style&&!function hm(h){return"ebkit"==h.substring(1,6)}(h)&&(l=h in Hr.style,!l&&Gn&&(l="Webkit"+h.charAt(0).toUpperCase()+h.slice(1)in Hr.style)),l}(o)}matchesElement(o,c){return!1}containsElement(o,c){return Di(o,c)}getParentElement(o){return hr(o)}query(o,c,u){return jr(o,c,u)}computeStyle(o,c,u){return u||""}animate(o,c,u,p,T,Z=[],fe){return new ce.ZN(u,p)}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})(),Ur=(()=>{class h{static#e=this.NOOP=new xs}return h})();class ha{}const Fu=1e3,fa="ng-enter",Yo="ng-leave",ql="ng-trigger",ma=".ng-trigger",Nu="ng-animating",Jl=".ng-animating";function Ko(h){if("number"==typeof h)return h;const l=h.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:Ql(parseFloat(l[1]),l[2])}function Ql(h,l){return"s"===l?h*Fu:h}function gc(h,l,o){return h.hasOwnProperty("duration")?h:function _m(h,l,o){let u,p=0,T="";if("string"==typeof h){const Z=h.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Z)return l.push(im()),{duration:0,delay:0,easing:""};u=Ql(parseFloat(Z[1]),Z[2]);const fe=Z[3];null!=fe&&(p=Ql(parseFloat(fe),Z[4]));const ye=Z[5];ye&&(T=ye)}else u=h;if(!o){let Z=!1,fe=l.length;u<0&&(l.push(function yu(){return new i.vHH(3100,!1)}()),Z=!0),p<0&&(l.push(function wu(){return new i.vHH(3101,!1)}()),Z=!0),Z&&l.splice(fe,0,im())}return{duration:u,delay:p,easing:T}}(h,l,o)}function zr(h,l={}){return Object.keys(h).forEach(o=>{l[o]=h[o]}),l}function pa(h){const l=new Map;return Object.keys(h).forEach(o=>{l.set(o,h[o])}),l}function fr(h,l=new Map,o){if(o)for(let[c,u]of o)l.set(c,u);for(let[c,u]of h)l.set(c,u);return l}function Ui(h,l,o){l.forEach((c,u)=>{const p=Wr(u);o&&!o.has(u)&&o.set(u,h.style[p]),h.style[p]=c})}function Gr(h,l){l.forEach((o,c)=>{const u=Wr(c);h.style[u]=""})}function Ds(h){return Array.isArray(h)?1==h.length?h[0]:(0,ce.vP)(h):h}const Ts=new RegExp("{{\\s*(.+?)\\s*}}","g");function ed(h){let l=[];if("string"==typeof h){let o;for(;o=Ts.exec(h);)l.push(o[1]);Ts.lastIndex=0}return l}function _a(h,l,o){const c=h.toString(),u=c.replace(Ts,(p,T)=>{let Z=l[T];return null==Z&&(o.push(function Oo(h){return new i.vHH(3003,!1)}()),Z=""),Z.toString()});return u==c?h:u}function _c(h){const l=[];let o=h.next();for(;!o.done;)l.push(o.value),o=h.next();return l}const Es=/-+([a-z0-9])/g;function Wr(h){return h.replace(Es,(...l)=>l[1].toUpperCase())}function zi(h,l,o){switch(l.type){case 7:return h.visitTrigger(l,o);case 0:return h.visitState(l,o);case 1:return h.visitTransition(l,o);case 2:return h.visitSequence(l,o);case 3:return h.visitGroup(l,o);case 4:return h.visitAnimate(l,o);case 5:return h.visitKeyframes(l,o);case 6:return h.visitStyle(l,o);case 8:return h.visitReference(l,o);case 9:return h.visitAnimateChild(l,o);case 10:return h.visitAnimateRef(l,o);case 11:return h.visitQuery(l,o);case 12:return h.visitStagger(l,o);default:throw function rm(h){return new i.vHH(3004,!1)}()}}function vm(h,l){return window.getComputedStyle(h)[l]}const ym=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Bu extends ha{normalizePropertyName(l,o){return Wr(l)}normalizeStyleValue(l,o,c,u){let p="";const T=c.toString().trim();if(ym.has(o)&&0!==c&&"0"!==c)if("number"==typeof c)p="px";else{const Z=c.match(/^[+-]?[\d\.]+([a-z]*)$/);Z&&0==Z[1].length&&u.push(function hc(h,l){return new i.vHH(3005,!1)}())}return T+p}}const bc="*";function Hu(h,l){const o=[];return"string"==typeof h?h.split(/\s*,\s*/).forEach(c=>function ju(h,l,o){if(":"==h[0]){const fe=function vc(h,l){switch(h){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,c)=>parseFloat(c)>parseFloat(o);case":decrement":return(o,c)=>parseFloat(c)<parseFloat(o);default:return l.push(function Mu(h){return new i.vHH(3016,!1)}()),"* => *"}}(h,o);if("function"==typeof fe)return void l.push(fe);h=fe}const c=h.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return o.push(function am(h){return new i.vHH(3015,!1)}()),l;const u=c[1],p=c[2],T=c[3];l.push(Uu(u,T));"<"==p[0]&&!(u==bc&&T==bc)&&l.push(Uu(T,u))}(c,o,l)):o.push(h),o}const nd=new Set(["true","1"]),Ms=new Set(["false","0"]);function Uu(h,l){const o=nd.has(h)||Ms.has(h),c=nd.has(l)||Ms.has(l);return(u,p)=>{let T=h==bc||h==u,Z=l==bc||l==p;return!T&&o&&"boolean"==typeof u&&(T=u?nd.has(h):Ms.has(h)),!Z&&c&&"boolean"==typeof p&&(Z=p?nd.has(l):Ms.has(l)),T&&Z}}const zu=new RegExp("s*:selfs*,?","g");function wc(h,l,o,c){return new Cm(h).build(l,o,c)}class Cm{constructor(l){this._driver=l}build(l,o,c){const u=new xm(o);return this._resetContextStyleTimingState(u),zi(this,Ds(l),u)}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles=new Map,l.collectedStyles.set("",new Map),l.currentTime=0}visitTrigger(l,o){let c=o.queryCount=0,u=o.depCount=0;const p=[],T=[];return"@"==l.name.charAt(0)&&o.errors.push(function Gl(){return new i.vHH(3006,!1)}()),l.definitions.forEach(Z=>{if(this._resetContextStyleTimingState(o),0==Z.type){const fe=Z,ye=fe.name;ye.toString().split(/\s*,\s*/).forEach(Ne=>{fe.name=Ne,p.push(this.visitState(fe,o))}),fe.name=ye}else if(1==Z.type){const fe=this.visitTransition(Z,o);c+=fe.queryCount,u+=fe.depCount,T.push(fe)}else o.errors.push(function Cu(){return new i.vHH(3007,!1)}())}),{type:7,name:l.name,states:p,transitions:T,queryCount:c,depCount:u,options:null}}visitState(l,o){const c=this.visitStyle(l.styles,o),u=l.options&&l.options.params||null;if(c.containsDynamicStyles){const p=new Set,T=u||{};c.styles.forEach(Z=>{Z instanceof Map&&Z.forEach(fe=>{ed(fe).forEach(ye=>{T.hasOwnProperty(ye)||p.add(ye)})})}),p.size&&(_c(p.values()),o.errors.push(function fc(h,l){return new i.vHH(3008,!1)}()))}return{type:0,name:l.name,style:c,options:u?{params:u}:null}}visitTransition(l,o){o.queryCount=0,o.depCount=0;const c=zi(this,Ds(l.animation),o);return{type:1,matchers:Hu(l.expr,o.errors),animation:c,queryCount:o.queryCount,depCount:o.depCount,options:gi(l.options)}}visitSequence(l,o){return{type:2,steps:l.steps.map(c=>zi(this,c,o)),options:gi(l.options)}}visitGroup(l,o){const c=o.currentTime;let u=0;const p=l.steps.map(T=>{o.currentTime=c;const Z=zi(this,T,o);return u=Math.max(u,o.currentTime),Z});return o.currentTime=u,{type:3,steps:p,options:gi(l.options)}}visitAnimate(l,o){const c=function xc(h,l){if(h.hasOwnProperty("duration"))return h;if("number"==typeof h)return pr(gc(h,l).duration,0,"");const o=h;if(o.split(/\s+/).some(p=>"{"==p.charAt(0)&&"{"==p.charAt(1))){const p=pr(0,0,"");return p.dynamic=!0,p.strValue=o,p}const u=gc(o,l);return pr(u.duration,u.delay,u.easing)}(l.timings,o.errors);o.currentAnimateTimings=c;let u,p=l.styles?l.styles:(0,ce.oB)({});if(5==p.type)u=this.visitKeyframes(p,o);else{let T=l.styles,Z=!1;if(!T){Z=!0;const ye={};c.easing&&(ye.easing=c.easing),T=(0,ce.oB)(ye)}o.currentTime+=c.duration+c.delay;const fe=this.visitStyle(T,o);fe.isEmptyStep=Z,u=fe}return o.currentAnimateTimings=null,{type:4,timings:c,style:u,options:null}}visitStyle(l,o){const c=this._makeStyleAst(l,o);return this._validateStyleAst(c,o),c}_makeStyleAst(l,o){const c=[],u=Array.isArray(l.styles)?l.styles:[l.styles];for(let Z of u)"string"==typeof Z?Z===ce.l3?c.push(Z):o.errors.push(new i.vHH(3002,!1)):c.push(pa(Z));let p=!1,T=null;return c.forEach(Z=>{if(Z instanceof Map&&(Z.has("easing")&&(T=Z.get("easing"),Z.delete("easing")),!p))for(let fe of Z.values())if(fe.toString().indexOf("{{")>=0){p=!0;break}}),{type:6,styles:c,easing:T,offset:l.offset,containsDynamicStyles:p,options:null}}_validateStyleAst(l,o){const c=o.currentAnimateTimings;let u=o.currentTime,p=o.currentTime;c&&p>0&&(p-=c.duration+c.delay),l.styles.forEach(T=>{"string"!=typeof T&&T.forEach((Z,fe)=>{const ye=o.collectedStyles.get(o.currentQuerySelector),Ne=ye.get(fe);let Ye=!0;Ne&&(p!=u&&p>=Ne.startTime&&u<=Ne.endTime&&(o.errors.push(function xu(h,l,o,c,u){return new i.vHH(3010,!1)}()),Ye=!1),p=Ne.startTime),Ye&&ye.set(fe,{startTime:p,endTime:u}),o.options&&function Xl(h,l,o){const c=l.params||{},u=ed(h);u.length&&u.forEach(p=>{c.hasOwnProperty(p)||o.push(function om(h){return new i.vHH(3001,!1)}())})}(Z,o.options,o.errors)})})}visitKeyframes(l,o){const c={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function Du(){return new i.vHH(3011,!1)}()),c;let p=0;const T=[];let Z=!1,fe=!1,ye=0;const Ne=l.steps.map(Fn=>{const Qn=this._makeStyleAst(Fn,o);let Ti=null!=Qn.offset?Qn.offset:function od(h){if("string"==typeof h)return null;let l=null;if(Array.isArray(h))h.forEach(o=>{if(o instanceof Map&&o.has("offset")){const c=o;l=parseFloat(c.get("offset")),c.delete("offset")}});else if(h instanceof Map&&h.has("offset")){const o=h;l=parseFloat(o.get("offset")),o.delete("offset")}return l}(Qn.styles),ui=0;return null!=Ti&&(p++,ui=Qn.offset=Ti),fe=fe||ui<0||ui>1,Z=Z||ui<ye,ye=ui,T.push(ui),Qn});fe&&o.errors.push(function Tu(){return new i.vHH(3012,!1)}()),Z&&o.errors.push(function Eu(){return new i.vHH(3200,!1)}());const Ye=l.steps.length;let lt=0;p>0&&p<Ye?o.errors.push(function sm(){return new i.vHH(3202,!1)}()):0==p&&(lt=1/(Ye-1));const _t=Ye-1,pt=o.currentTime,Ct=o.currentAnimateTimings,Wt=Ct.duration;return Ne.forEach((Fn,Qn)=>{const Ti=lt>0?Qn==_t?1:lt*Qn:T[Qn],ui=Ti*Wt;o.currentTime=pt+Ct.delay+ui,Ct.duration=ui,this._validateStyleAst(Fn,o),Fn.offset=Ti,c.styles.push(Fn)}),c}visitReference(l,o){return{type:8,animation:zi(this,Ds(l.animation),o),options:gi(l.options)}}visitAnimateChild(l,o){return o.depCount++,{type:9,options:gi(l.options)}}visitAnimateRef(l,o){return{type:10,animation:this.visitReference(l.animation,o),options:gi(l.options)}}visitQuery(l,o){const c=o.currentQuerySelector,u=l.options||{};o.queryCount++,o.currentQuery=l;const[p,T]=function id(h){const l=!!h.split(/\s*,\s*/).find(o=>":self"==o);return l&&(h=h.replace(zu,"")),h=h.replace(/@\*/g,ma).replace(/@\w+/g,o=>ma+"-"+o.slice(1)).replace(/:animating/g,Jl),[h,l]}(l.selector);o.currentQuerySelector=c.length?c+" "+p:p,oo(o.collectedStyles,o.currentQuerySelector,new Map);const Z=zi(this,Ds(l.animation),o);return o.currentQuery=null,o.currentQuerySelector=c,{type:11,selector:p,limit:u.limit||0,optional:!!u.optional,includeSelf:T,animation:Z,originalSelector:l.selector,options:gi(l.options)}}visitStagger(l,o){o.currentQuery||o.errors.push(function mc(){return new i.vHH(3013,!1)}());const c="full"===l.timings?{duration:0,delay:0,easing:"full"}:gc(l.timings,o.errors,!0);return{type:12,animation:zi(this,Ds(l.animation),o),timings:c,options:null}}}class xm{constructor(l){this.errors=l,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function gi(h){return h?(h=zr(h)).params&&(h.params=function Cc(h){return h?zr(h):null}(h.params)):h={},h}function pr(h,l,o){return{duration:h,delay:l,easing:o}}function va(h,l,o,c,u,p,T=null,Z=!1){return{type:1,element:h,keyframes:l,preStyleProps:o,postStyleProps:c,duration:u,delay:p,totalTime:u+p,easing:T,subTimeline:Z}}class Dc{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,o){let c=this._map.get(l);c||this._map.set(l,c=[]),c.push(...o)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const Ss=new RegExp(":enter","g"),Em=new RegExp(":leave","g");function rd(h,l,o,c,u,p=new Map,T=new Map,Z,fe,ye=[]){return(new sd).buildKeyframes(h,l,o,c,u,p,T,Z,fe,ye)}class sd{buildKeyframes(l,o,c,u,p,T,Z,fe,ye,Ne=[]){ye=ye||new Dc;const Ye=new ya(l,o,ye,u,p,Ne,[]);Ye.options=fe;const lt=fe.delay?Ko(fe.delay):0;Ye.currentTimeline.delayNextStep(lt),Ye.currentTimeline.setStyles([T],null,Ye.errors,fe),zi(this,c,Ye);const _t=Ye.timelines.filter(pt=>pt.containsAnimation());if(_t.length&&Z.size){let pt;for(let Ct=_t.length-1;Ct>=0;Ct--){const Wt=_t[Ct];if(Wt.element===o){pt=Wt;break}}pt&&!pt.allowOnlyTimelineStyles()&&pt.setStyles([Z],null,Ye.errors,fe)}return _t.length?_t.map(pt=>pt.buildKeyframes()):[va(o,[],[],[],0,lt,"",!1)]}visitTrigger(l,o){}visitState(l,o){}visitTransition(l,o){}visitAnimateChild(l,o){const c=o.subInstructions.get(o.element);if(c){const u=o.createSubContext(l.options),p=o.currentTimeline.currentTime,T=this._visitSubInstructions(c,u,u.options);p!=T&&o.transformIntoNewTimeline(T)}o.previousNode=l}visitAnimateRef(l,o){const c=o.createSubContext(l.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([l.options,l.animation.options],o,c),this.visitReference(l.animation,c),o.transformIntoNewTimeline(c.currentTimeline.currentTime),o.previousNode=l}_applyAnimationRefDelays(l,o,c){for(const u of l){const p=u?.delay;if(p){const T="number"==typeof p?p:Ko(_a(p,u?.params??{},o.errors));c.delayNextStep(T)}}}_visitSubInstructions(l,o,c){let p=o.currentTimeline.currentTime;const T=null!=c.duration?Ko(c.duration):null,Z=null!=c.delay?Ko(c.delay):null;return 0!==T&&l.forEach(fe=>{const ye=o.appendInstructionToTimeline(fe,T,Z);p=Math.max(p,ye.duration+ye.delay)}),p}visitReference(l,o){o.updateOptions(l.options,!0),zi(this,l.animation,o),o.previousNode=l}visitSequence(l,o){const c=o.subContextCount;let u=o;const p=l.options;if(p&&(p.params||p.delay)&&(u=o.createSubContext(p),u.transformIntoNewTimeline(),null!=p.delay)){6==u.previousNode.type&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Tc);const T=Ko(p.delay);u.delayNextStep(T)}l.steps.length&&(l.steps.forEach(T=>zi(this,T,u)),u.currentTimeline.applyStylesToKeyframe(),u.subContextCount>c&&u.transformIntoNewTimeline()),o.previousNode=l}visitGroup(l,o){const c=[];let u=o.currentTimeline.currentTime;const p=l.options&&l.options.delay?Ko(l.options.delay):0;l.steps.forEach(T=>{const Z=o.createSubContext(l.options);p&&Z.delayNextStep(p),zi(this,T,Z),u=Math.max(u,Z.currentTimeline.currentTime),c.push(Z.currentTimeline)}),c.forEach(T=>o.currentTimeline.mergeTimelineCollectedStyles(T)),o.transformIntoNewTimeline(u),o.previousNode=l}_visitTiming(l,o){if(l.dynamic){const c=l.strValue;return gc(o.params?_a(c,o.params,o.errors):c,o.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,o){const c=o.currentAnimateTimings=this._visitTiming(l.timings,o),u=o.currentTimeline;c.delay&&(o.incrementTime(c.delay),u.snapshotCurrentStyles());const p=l.style;5==p.type?this.visitKeyframes(p,o):(o.incrementTime(c.duration),this.visitStyle(p,o),u.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=l}visitStyle(l,o){const c=o.currentTimeline,u=o.currentAnimateTimings;!u&&c.hasCurrentStyleProperties()&&c.forwardFrame();const p=u&&u.easing||l.easing;l.isEmptyStep?c.applyEmptyStep(p):c.setStyles(l.styles,p,o.errors,o.options),o.previousNode=l}visitKeyframes(l,o){const c=o.currentAnimateTimings,u=o.currentTimeline.duration,p=c.duration,Z=o.createSubContext().currentTimeline;Z.easing=c.easing,l.styles.forEach(fe=>{Z.forwardTime((fe.offset||0)*p),Z.setStyles(fe.styles,fe.easing,o.errors,o.options),Z.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(Z),o.transformIntoNewTimeline(u+p),o.previousNode=l}visitQuery(l,o){const c=o.currentTimeline.currentTime,u=l.options||{},p=u.delay?Ko(u.delay):0;p&&(6===o.previousNode.type||0==c&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Tc);let T=c;const Z=o.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!u.optional,o.errors);o.currentQueryTotal=Z.length;let fe=null;Z.forEach((ye,Ne)=>{o.currentQueryIndex=Ne;const Ye=o.createSubContext(l.options,ye);p&&Ye.delayNextStep(p),ye===o.element&&(fe=Ye.currentTimeline),zi(this,l.animation,Ye),Ye.currentTimeline.applyStylesToKeyframe(),T=Math.max(T,Ye.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(T),fe&&(o.currentTimeline.mergeTimelineCollectedStyles(fe),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=l}visitStagger(l,o){const c=o.parentContext,u=o.currentTimeline,p=l.timings,T=Math.abs(p.duration),Z=T*(o.currentQueryTotal-1);let fe=T*o.currentQueryIndex;switch(p.duration<0?"reverse":p.easing){case"reverse":fe=Z-fe;break;case"full":fe=c.currentStaggerTime}const Ne=o.currentTimeline;fe&&Ne.delayNextStep(fe);const Ye=Ne.currentTime;zi(this,l.animation,o),o.previousNode=l,c.currentStaggerTime=u.currentTime-Ye+(u.startTime-c.currentTimeline.startTime)}}const Tc={};class ya{constructor(l,o,c,u,p,T,Z,fe){this._driver=l,this.element=o,this.subInstructions=c,this._enterClassName=u,this._leaveClassName=p,this.errors=T,this.timelines=Z,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=fe||new wa(this._driver,o,0),Z.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,o){if(!l)return;const c=l;let u=this.options;null!=c.duration&&(u.duration=Ko(c.duration)),null!=c.delay&&(u.delay=Ko(c.delay));const p=c.params;if(p){let T=u.params;T||(T=this.options.params={}),Object.keys(p).forEach(Z=>{(!o||!T.hasOwnProperty(Z))&&(T[Z]=_a(p[Z],T,this.errors))})}}_copyOptions(){const l={};if(this.options){const o=this.options.params;if(o){const c=l.params={};Object.keys(o).forEach(u=>{c[u]=o[u]})}}return l}createSubContext(l=null,o,c){const u=o||this.element,p=new ya(this._driver,u,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(u,c||0));return p.previousNode=this.previousNode,p.currentAnimateTimings=this.currentAnimateTimings,p.options=this._copyOptions(),p.updateOptions(l),p.currentQueryIndex=this.currentQueryIndex,p.currentQueryTotal=this.currentQueryTotal,p.parentContext=this,this.subContextCount++,p}transformIntoNewTimeline(l){return this.previousNode=Tc,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,o,c){const u={duration:o??l.duration,delay:this.currentTimeline.currentTime+(c??0)+l.delay,easing:""},p=new Mm(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,u,l.stretchStartingKeyframe);return this.timelines.push(p),u}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,o,c,u,p,T){let Z=[];if(u&&Z.push(this.element),l.length>0){l=(l=l.replace(Ss,"."+this._enterClassName)).replace(Em,"."+this._leaveClassName);let ye=this._driver.query(this.element,l,1!=c);0!==c&&(ye=c<0?ye.slice(ye.length+c,ye.length):ye.slice(0,c)),Z.push(...ye)}return!p&&0==Z.length&&T.push(function Vr(h){return new i.vHH(3014,!1)}()),Z}}class wa{constructor(l,o,c,u){this._driver=l,this.element=o,this.startTime=c,this._elementTimelineStylesLookup=u,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(l){const o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+l),o&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,o){return this.applyStylesToKeyframe(),new wa(this._driver,l,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,o){this._localTimelineStyles.set(l,o),this._globalTimelineStyles.set(l,o),this._styleSummary.set(l,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&this._previousKeyframe.set("easing",l);for(let[o,c]of this._globalTimelineStyles)this._backFill.set(o,c||ce.l3),this._currentKeyframe.set(o,ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,o,c,u){o&&this._previousKeyframe.set("easing",o);const p=u&&u.params||{},T=function Yu(h,l){const o=new Map;let c;return h.forEach(u=>{if("*"===u){c=c||l.keys();for(let p of c)o.set(p,ce.l3)}else fr(u,o)}),o}(l,this._globalTimelineStyles);for(let[Z,fe]of T){const ye=_a(fe,p,c);this._pendingStyles.set(Z,ye),this._localTimelineStyles.has(Z)||this._backFill.set(Z,this._globalTimelineStyles.get(Z)??ce.l3),this._updateStyle(Z,ye)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((l,o)=>{this._currentKeyframe.set(o,l)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((l,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,l)}))}snapshotCurrentStyles(){for(let[l,o]of this._localTimelineStyles)this._pendingStyles.set(l,o),this._updateStyle(l,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let o in this._currentKeyframe)l.push(o);return l}mergeTimelineCollectedStyles(l){l._styleSummary.forEach((o,c)=>{const u=this._styleSummary.get(c);(!u||o.time>u.time)&&this._updateStyle(c,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,o=new Set,c=1===this._keyframes.size&&0===this.duration;let u=[];this._keyframes.forEach((Z,fe)=>{const ye=fr(Z,new Map,this._backFill);ye.forEach((Ne,Ye)=>{Ne===ce.k1?l.add(Ye):Ne===ce.l3&&o.add(Ye)}),c||ye.set("offset",fe/this.duration),u.push(ye)});const p=l.size?_c(l.values()):[],T=o.size?_c(o.values()):[];if(c){const Z=u[0],fe=new Map(Z);Z.set("offset",0),fe.set("offset",1),u=[Z,fe]}return va(this.element,u,p,T,this.duration,this.startTime,this.easing,!1)}}class Mm extends wa{constructor(l,o,c,u,p,T,Z=!1){super(l,o,T.delay),this.keyframes=c,this.preStyleProps=u,this.postStyleProps=p,this._stretchStartingKeyframe=Z,this.timings={duration:T.duration,delay:T.delay,easing:T.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:o,duration:c,easing:u}=this.timings;if(this._stretchStartingKeyframe&&o){const p=[],T=c+o,Z=o/T,fe=fr(l[0]);fe.set("offset",0),p.push(fe);const ye=fr(l[0]);ye.set("offset",Wu(Z)),p.push(ye);const Ne=l.length-1;for(let Ye=1;Ye<=Ne;Ye++){let lt=fr(l[Ye]);const _t=lt.get("offset");lt.set("offset",Wu((o+_t*c)/T)),p.push(lt)}c=T,o=0,u="",l=p}return va(this.element,l,this.preStyleProps,this.postStyleProps,c,o,u,!0)}}function Wu(h,l=3){const o=Math.pow(10,l-1);return Math.round(h*o)/o}function Ku(h,l,o,c,u,p,T,Z,fe,ye,Ne,Ye,lt){return{type:0,element:h,triggerName:l,isRemovalTransition:u,fromState:o,fromStyles:p,toState:c,toStyles:T,timelines:Z,queriedElements:fe,preStyleProps:ye,postStyleProps:Ne,totalTime:Ye,errors:lt}}const Ec={};class Zu{constructor(l,o,c){this._triggerName=l,this.ast=o,this._stateStyles=c}match(l,o,c,u){return function N_(h,l,o,c,u){return h.some(p=>p(l,o,c,u))}(this.ast.matchers,l,o,c,u)}buildStyles(l,o,c){let u=this._stateStyles.get("*");return void 0!==l&&(u=this._stateStyles.get(l?.toString())||u),u?u.buildStyles(o,c):new Map}build(l,o,c,u,p,T,Z,fe,ye,Ne){const Ye=[],lt=this.ast.options&&this.ast.options.params||Ec,pt=this.buildStyles(c,Z&&Z.params||Ec,Ye),Ct=fe&&fe.params||Ec,Wt=this.buildStyles(u,Ct,Ye),Fn=new Set,Qn=new Map,Ti=new Map,ui="void"===u,Fs={params:qu(Ct,lt),delay:this.ast.options?.delay},Ro=Ne?[]:rd(l,o,this.ast.animation,p,T,pt,Wt,Fs,ye,Ye);let Ei=0;if(Ro.forEach(vr=>{Ei=Math.max(vr.duration+vr.delay,Ei)}),Ye.length)return Ku(o,this._triggerName,c,u,ui,pt,Wt,[],[],Qn,Ti,Ei,Ye);Ro.forEach(vr=>{const Gi=vr.element,Nh=oo(Qn,Gi,new Set);vr.preStyleProps.forEach(Ns=>Nh.add(Ns));const zc=oo(Ti,Gi,new Set);vr.postStyleProps.forEach(Ns=>zc.add(Ns)),Gi!==o&&Fn.add(Gi)});const br=_c(Fn.values());return Ku(o,this._triggerName,c,u,ui,pt,Wt,Ro,br,Qn,Ti,Ei)}}function qu(h,l){const o=zr(l);for(const c in h)h.hasOwnProperty(c)&&null!=h[c]&&(o[c]=h[c]);return o}class Ju{constructor(l,o,c){this.styles=l,this.defaultParams=o,this.normalizer=c}buildStyles(l,o){const c=new Map,u=zr(this.defaultParams);return Object.keys(l).forEach(p=>{const T=l[p];null!==T&&(u[p]=T)}),this.styles.styles.forEach(p=>{"string"!=typeof p&&p.forEach((T,Z)=>{T&&(T=_a(T,u,o));const fe=this.normalizer.normalizePropertyName(Z,o);T=this.normalizer.normalizeStyleValue(Z,fe,T,o),c.set(Z,T)})}),c}}class ad{constructor(l,o,c){this.name=l,this.ast=o,this._normalizer=c,this.transitionFactories=[],this.states=new Map,o.states.forEach(u=>{this.states.set(u.name,new Ju(u.style,u.options&&u.options.params||{},c))}),Ca(this.states,"true","1"),Ca(this.states,"false","0"),o.transitions.forEach(u=>{this.transitionFactories.push(new Zu(l,u,this.states))}),this.fallbackTransition=function Yr(h,l,o){return new Zu(h,{type:1,animation:{type:2,steps:[],options:null},matchers:[(T,Z)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,o,c,u){return this.transitionFactories.find(T=>T.match(l,o,c,u))||null}matchStyles(l,o,c){return this.fallbackTransition.buildStyles(l,o,c)}}function Ca(h,l,o){h.has(l)?h.has(o)||h.set(o,h.get(l)):h.has(o)&&h.set(l,h.get(o))}const Qu=new Dc;class xa{constructor(l,o,c){this.bodyNode=l,this._driver=o,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(l,o){const c=[],p=wc(this._driver,o,c,[]);if(c.length)throw function cm(h){return new i.vHH(3503,!1)}();this._animations.set(l,p)}_buildPlayer(l,o,c){const u=l.element,p=Ou(this._normalizer,l.keyframes,o,c);return this._driver.animate(u,p,l.duration,l.delay,l.easing,[],!0)}create(l,o,c={}){const u=[],p=this._animations.get(l);let T;const Z=new Map;if(p?(T=rd(this._driver,o,p,fa,Yo,new Map,new Map,c,Qu,u),T.forEach(Ne=>{const Ye=oo(Z,Ne.element,new Map);Ne.postStyleProps.forEach(lt=>Ye.set(lt,null))})):(u.push(function Au(){return new i.vHH(3300,!1)}()),T=[]),u.length)throw function Yl(h){return new i.vHH(3504,!1)}();Z.forEach((Ne,Ye)=>{Ne.forEach((lt,_t)=>{Ne.set(_t,this._driver.computeStyle(Ye,_t,ce.l3))})});const ye=$r(T.map(Ne=>{const Ye=Z.get(Ne.element);return this._buildPlayer(Ne,new Map,Ye)}));return this._playersById.set(l,ye),ye.onDestroy(()=>this.destroy(l)),this.players.push(ye),ye}destroy(l){const o=this._getPlayer(l);o.destroy(),this._playersById.delete(l);const c=this.players.indexOf(o);c>=0&&this.players.splice(c,1)}_getPlayer(l){const o=this._playersById.get(l);if(!o)throw function lm(h){return new i.vHH(3301,!1)}();return o}listen(l,o,c,u){const p=Ru(o,"","","");return Pu(this._getPlayer(l),c,p,u),()=>{}}command(l,o,c,u){if("register"==c)return void this.register(l,u[0]);if("create"==c)return void this.create(l,o,u[0]||{});const p=this._getPlayer(l);switch(c){case"play":p.play();break;case"pause":p.pause();break;case"reset":p.reset();break;case"restart":p.restart();break;case"finish":p.finish();break;case"init":p.init();break;case"setPosition":p.setPosition(parseFloat(u[0]));break;case"destroy":this.destroy(l)}}}const Xu="ng-animate-queued",Da="ng-animate-disabled",Im=[],cd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ld={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Po="__ng_removed";class dd{get params(){return this.options.params}constructor(l,o=""){this.namespaceId=o;const c=l&&l.hasOwnProperty("value");if(this.value=function As(h){return h??null}(c?l.value:l),c){const p=zr(l);delete p.value,this.options=p}else this.options={};this.options.params||(this.options.params={})}absorbOptions(l){const o=l.params;if(o){const c=this.options.params;Object.keys(o).forEach(u=>{null==c[u]&&(c[u]=o[u])})}}}const Ta="void",ud=new dd(Ta);class Om{constructor(l,o,c){this.id=l,this.hostElement=o,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,bi(o,this._hostClassName)}listen(l,o,c,u){if(!this._triggers.has(o))throw function Iu(h,l){return new i.vHH(3302,!1)}();if(null==c||0==c.length)throw function Kl(h){return new i.vHH(3303,!1)}();if(!function _r(h){return"start"==h||"done"==h}(c))throw function vs(h,l){return new i.vHH(3400,!1)}();const p=oo(this._elementListeners,l,[]),T={name:o,phase:c,callback:u};p.push(T);const Z=oo(this._engine.statesByElement,l,new Map);return Z.has(o)||(bi(l,ql),bi(l,ql+"-"+o),Z.set(o,ud)),()=>{this._engine.afterFlush(()=>{const fe=p.indexOf(T);fe>=0&&p.splice(fe,1),this._triggers.has(o)||Z.delete(o)})}}register(l,o){return!this._triggers.has(l)&&(this._triggers.set(l,o),!0)}_getTrigger(l){const o=this._triggers.get(l);if(!o)throw function ys(h){return new i.vHH(3401,!1)}();return o}trigger(l,o,c,u=!0){const p=this._getTrigger(o),T=new hd(this.id,o,l);let Z=this._engine.statesByElement.get(l);Z||(bi(l,ql),bi(l,ql+"-"+o),this._engine.statesByElement.set(l,Z=new Map));let fe=Z.get(o);const ye=new dd(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&fe&&ye.absorbOptions(fe.options),Z.set(o,ye),fe||(fe=ud),ye.value!==Ta&&fe.value===ye.value){if(!function oh(h,l){const o=Object.keys(h),c=Object.keys(l);if(o.length!=c.length)return!1;for(let u=0;u<o.length;u++){const p=o[u];if(!l.hasOwnProperty(p)||h[p]!==l[p])return!1}return!0}(fe.params,ye.params)){const Ct=[],Wt=p.matchStyles(fe.value,fe.params,Ct),Fn=p.matchStyles(ye.value,ye.params,Ct);Ct.length?this._engine.reportError(Ct):this._engine.afterFlush(()=>{Gr(l,Wt),Ui(l,Fn)})}return}const lt=oo(this._engine.playersByElement,l,[]);lt.forEach(Ct=>{Ct.namespaceId==this.id&&Ct.triggerName==o&&Ct.queued&&Ct.destroy()});let _t=p.matchTransition(fe.value,ye.value,l,ye.params),pt=!1;if(!_t){if(!u)return;_t=p.fallbackTransition,pt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:o,transition:_t,fromState:fe,toState:ye,player:T,isFallbackTransition:pt}),pt||(bi(l,Xu),T.onStart(()=>{Ea(l,Xu)})),T.onDone(()=>{let Ct=this.players.indexOf(T);Ct>=0&&this.players.splice(Ct,1);const Wt=this._engine.playersByElement.get(l);if(Wt){let Fn=Wt.indexOf(T);Fn>=0&&Wt.splice(Fn,1)}}),this.players.push(T),lt.push(T),T}deregister(l){this._triggers.delete(l),this._engine.statesByElement.forEach(o=>o.delete(l)),this._elementListeners.forEach((o,c)=>{this._elementListeners.set(c,o.filter(u=>u.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const o=this._engine.playersByElement.get(l);o&&(o.forEach(c=>c.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,o){const c=this._engine.driver.query(l,ma,!0);c.forEach(u=>{if(u[Po])return;const p=this._engine.fetchNamespacesByElement(u);p.size?p.forEach(T=>T.triggerLeaveAnimation(u,o,!1,!0)):this.clearElementCache(u)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(u=>this.clearElementCache(u)))}triggerLeaveAnimation(l,o,c,u){const p=this._engine.statesByElement.get(l),T=new Map;if(p){const Z=[];if(p.forEach((fe,ye)=>{if(T.set(ye,fe.value),this._triggers.has(ye)){const Ne=this.trigger(l,ye,Ta,u);Ne&&Z.push(Ne)}}),Z.length)return this._engine.markElementAsRemoved(this.id,l,!0,o,T),c&&$r(Z).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const o=this._elementListeners.get(l),c=this._engine.statesByElement.get(l);if(o&&c){const u=new Set;o.forEach(p=>{const T=p.name;if(u.has(T))return;u.add(T);const fe=this._triggers.get(T).fallbackTransition,ye=c.get(T)||ud,Ne=new dd(Ta),Ye=new hd(this.id,T,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:T,transition:fe,fromState:ye,toState:Ne,player:Ye,isFallbackTransition:!0})})}}removeNode(l,o){const c=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,o),this.triggerLeaveAnimation(l,o,!0))return;let u=!1;if(c.totalAnimations){const p=c.players.length?c.playersByQueriedElement.get(l):[];if(p&&p.length)u=!0;else{let T=l;for(;T=T.parentNode;)if(c.statesByElement.get(T)){u=!0;break}}}if(this.prepareLeaveAnimationListeners(l),u)c.markElementAsRemoved(this.id,l,!1,o);else{const p=l[Po];(!p||p===cd)&&(c.afterFlush(()=>this.clearElementCache(l)),c.destroyInnerAnimations(l),c._onRemovalComplete(l,o))}}insertNode(l,o){bi(l,this._hostClassName)}drainQueuedTransitions(l){const o=[];return this._queue.forEach(c=>{const u=c.player;if(u.destroyed)return;const p=c.element,T=this._elementListeners.get(p);T&&T.forEach(Z=>{if(Z.name==c.triggerName){const fe=Ru(p,c.triggerName,c.fromState.value,c.toState.value);fe._data=l,Pu(c.player,Z.phase,fe,Z.callback)}}),u.markedForDestroy?this._engine.afterFlush(()=>{u.destroy()}):o.push(c)}),this._queue=[],o.sort((c,u)=>{const p=c.transition.ast.depCount,T=u.transition.ast.depCount;return 0==p||0==T?p-T:this._engine.driver.containsElement(c.element,u.element)?1:-1})}destroy(l){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}}class Pm{_onRemovalComplete(l,o){this.onRemovalComplete(l,o)}constructor(l,o,c){this.bodyNode=l,this.driver=o,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(u,p)=>{}}get queuedPlayers(){const l=[];return this._namespaceList.forEach(o=>{o.players.forEach(c=>{c.queued&&l.push(c)})}),l}createNamespace(l,o){const c=new Om(l,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(c,o):(this.newHostElements.set(o,c),this.collectEnterElement(o)),this._namespaceLookup[l]=c}_balanceNamespaceList(l,o){const c=this._namespaceList,u=this.namespacesByHostElement;if(c.length-1>=0){let T=!1,Z=this.driver.getParentElement(o);for(;Z;){const fe=u.get(Z);if(fe){const ye=c.indexOf(fe);c.splice(ye+1,0,l),T=!0;break}Z=this.driver.getParentElement(Z)}T||c.unshift(l)}else c.push(l);return u.set(o,l),l}register(l,o){let c=this._namespaceLookup[l];return c||(c=this.createNamespace(l,o)),c}registerTrigger(l,o,c){let u=this._namespaceLookup[l];u&&u.register(o,c)&&this.totalAnimations++}destroy(l,o){l&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(l);this.namespacesByHostElement.delete(c.hostElement);const u=this._namespaceList.indexOf(c);u>=0&&this._namespaceList.splice(u,1),c.destroy(o),delete this._namespaceLookup[l]}))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const o=new Set,c=this.statesByElement.get(l);if(c)for(let u of c.values())if(u.namespaceId){const p=this._fetchNamespace(u.namespaceId);p&&o.add(p)}return o}trigger(l,o,c,u){if(_i(o)){const p=this._fetchNamespace(l);if(p)return p.trigger(o,c,u),!0}return!1}insertNode(l,o,c,u){if(!_i(o))return;const p=o[Po];if(p&&p.setForRemoval){p.setForRemoval=!1,p.setForMove=!0;const T=this.collectedLeaveElements.indexOf(o);T>=0&&this.collectedLeaveElements.splice(T,1)}if(l){const T=this._fetchNamespace(l);T&&T.insertNode(o,c)}u&&this.collectEnterElement(o)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,o){o?this.disabledNodes.has(l)||(this.disabledNodes.add(l),bi(l,Da)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),Ea(l,Da))}removeNode(l,o,c){if(_i(o)){const u=l?this._fetchNamespace(l):null;u?u.removeNode(o,c):this.markElementAsRemoved(l,o,!1,c);const p=this.namespacesByHostElement.get(o);p&&p.id!==l&&p.removeNode(o,c)}else this._onRemovalComplete(o,c)}markElementAsRemoved(l,o,c,u,p){this.collectedLeaveElements.push(o),o[Po]={namespaceId:l,setForRemoval:u,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:p}}listen(l,o,c,u,p){return _i(o)?this._fetchNamespace(l).listen(o,c,u,p):()=>{}}_buildInstruction(l,o,c,u,p){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,c,u,l.fromState.options,l.toState.options,o,p)}destroyInnerAnimations(l){let o=this.driver.query(l,ma,!0);o.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(l,Jl,!0),o.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(l){const o=this.playersByElement.get(l);o&&o.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(l){const o=this.playersByQueriedElement.get(l);o&&o.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return $r(this.players).onDone(()=>l());l()})}processLeaveNode(l){const o=l[Po];if(o&&o.setForRemoval){if(l[Po]=cd,o.namespaceId){this.destroyInnerAnimations(l);const c=this._fetchNamespace(o.namespaceId);c&&c.clearElementCache(l)}this._onRemovalComplete(l,o.setForRemoval)}l.classList?.contains(Da)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(l=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,u)=>this._balanceNamespaceList(c,u)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;c<this.collectedEnterElements.length;c++)bi(this.collectedEnterElements[c],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const c=[];try{o=this._flushAnimations(c,l)}finally{for(let u=0;u<c.length;u++)c[u]()}}else for(let c=0;c<this.collectedLeaveElements.length;c++)this.processLeaveNode(this.collectedLeaveElements[c]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(c=>c()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],o.length?$r(o).onDone(()=>{c.forEach(u=>u())}):c.forEach(u=>u())}}reportError(l){throw function ws(h){return new i.vHH(3402,!1)}()}_flushAnimations(l,o){const c=new Dc,u=[],p=new Map,T=[],Z=new Map,fe=new Map,ye=new Map,Ne=new Set;this.disabledNodes.forEach(Mt=>{Ne.add(Mt);const Ft=this.driver.query(Mt,".ng-animate-queued",!0);for(let Nt=0;Nt<Ft.length;Nt++)Ne.add(Ft[Nt])});const Ye=this.bodyNode,lt=Array.from(this.statesByElement.keys()),_t=Zo(lt,this.collectedEnterElements),pt=new Map;let Ct=0;_t.forEach((Mt,Ft)=>{const Nt=fa+Ct++;pt.set(Ft,Nt),Mt.forEach(sn=>bi(sn,Nt))});const Wt=[],Fn=new Set,Qn=new Set;for(let Mt=0;Mt<this.collectedLeaveElements.length;Mt++){const Ft=this.collectedLeaveElements[Mt],Nt=Ft[Po];Nt&&Nt.setForRemoval&&(Wt.push(Ft),Fn.add(Ft),Nt.hasAnimation?this.driver.query(Ft,".ng-star-inserted",!0).forEach(sn=>Fn.add(sn)):Qn.add(Ft))}const Ti=new Map,ui=Zo(lt,Array.from(Fn));ui.forEach((Mt,Ft)=>{const Nt=Yo+Ct++;Ti.set(Ft,Nt),Mt.forEach(sn=>bi(sn,Nt))}),l.push(()=>{_t.forEach((Mt,Ft)=>{const Nt=pt.get(Ft);Mt.forEach(sn=>Ea(sn,Nt))}),ui.forEach((Mt,Ft)=>{const Nt=Ti.get(Ft);Mt.forEach(sn=>Ea(sn,Nt))}),Wt.forEach(Mt=>{this.processLeaveNode(Mt)})});const Fs=[],Ro=[];for(let Mt=this._namespaceList.length-1;Mt>=0;Mt--)this._namespaceList[Mt].drainQueuedTransitions(o).forEach(Nt=>{const sn=Nt.player,Wn=Nt.element;if(Fs.push(sn),this.collectedEnterElements.length){const Mi=Wn[Po];if(Mi&&Mi.setForMove){if(Mi.previousTriggersValues&&Mi.previousTriggersValues.has(Nt.triggerName)){const Qo=Mi.previousTriggersValues.get(Nt.triggerName),wi=this.statesByElement.get(Nt.element);if(wi&&wi.has(Nt.triggerName)){const Yc=wi.get(Nt.triggerName);Yc.value=Qo,wi.set(Nt.triggerName,Yc)}}return void sn.destroy()}}const Pi=!Ye||!this.driver.containsElement(Ye,Wn),yi=Ti.get(Wn),Wi=pt.get(Wn),In=this._buildInstruction(Nt,c,Wi,yi,Pi);if(In.errors&&In.errors.length)return void Ro.push(In);if(Pi)return sn.onStart(()=>Gr(Wn,In.fromStyles)),sn.onDestroy(()=>Ui(Wn,In.toStyles)),void u.push(sn);if(Nt.isFallbackTransition)return sn.onStart(()=>Gr(Wn,In.fromStyles)),sn.onDestroy(()=>Ui(Wn,In.toStyles)),void u.push(sn);const Gc=[];In.timelines.forEach(Mi=>{Mi.stretchStartingKeyframe=!0,this.disabledNodes.has(Mi.element)||Gc.push(Mi)}),In.timelines=Gc,c.append(Wn,In.timelines),T.push({instruction:In,player:sn,element:Wn}),In.queriedElements.forEach(Mi=>oo(Z,Mi,[]).push(sn)),In.preStyleProps.forEach((Mi,Qo)=>{if(Mi.size){let wi=fe.get(Qo);wi||fe.set(Qo,wi=new Set),Mi.forEach((Yc,Kc)=>wi.add(Kc))}}),In.postStyleProps.forEach((Mi,Qo)=>{let wi=ye.get(Qo);wi||ye.set(Qo,wi=new Set),Mi.forEach((Yc,Kc)=>wi.add(Kc))})});if(Ro.length){const Mt=[];Ro.forEach(Ft=>{Mt.push(function Zl(h,l){return new i.vHH(3505,!1)}())}),Fs.forEach(Ft=>Ft.destroy()),this.reportError(Mt)}const Ei=new Map,br=new Map;T.forEach(Mt=>{const Ft=Mt.element;c.has(Ft)&&(br.set(Ft,Ft),this._beforeAnimationBuild(Mt.player.namespaceId,Mt.instruction,Ei))}),u.forEach(Mt=>{const Ft=Mt.element;this._getPreviousPlayers(Ft,!1,Mt.namespaceId,Mt.triggerName,null).forEach(sn=>{oo(Ei,Ft,[]).push(sn),sn.destroy()})});const vr=Wt.filter(Mt=>km(Mt,fe,ye)),Gi=new Map;fd(Gi,this.driver,Qn,ye,ce.l3).forEach(Mt=>{km(Mt,fe,ye)&&vr.push(Mt)});const zc=new Map;_t.forEach((Mt,Ft)=>{fd(zc,this.driver,new Set(Mt),fe,ce.k1)}),vr.forEach(Mt=>{const Ft=Gi.get(Mt),Nt=zc.get(Mt);Gi.set(Mt,new Map([...Ft?.entries()??[],...Nt?.entries()??[]]))});const Ns=[],La=[],Lh={};T.forEach(Mt=>{const{element:Ft,player:Nt,instruction:sn}=Mt;if(c.has(Ft)){if(Ne.has(Ft))return Nt.onDestroy(()=>Ui(Ft,sn.toStyles)),Nt.disabled=!0,Nt.overrideTotalTime(sn.totalTime),void u.push(Nt);let Wn=Lh;if(br.size>1){let yi=Ft;const Wi=[];for(;yi=yi.parentNode;){const In=br.get(yi);if(In){Wn=In;break}Wi.push(yi)}Wi.forEach(In=>br.set(In,Wn))}const Pi=this._buildAnimation(Nt.namespaceId,sn,Ei,p,zc,Gi);if(Nt.setRealPlayer(Pi),Wn===Lh)Ns.push(Nt);else{const yi=this.playersByElement.get(Wn);yi&&yi.length&&(Nt.parentPlayer=$r(yi)),u.push(Nt)}}else Gr(Ft,sn.fromStyles),Nt.onDestroy(()=>Ui(Ft,sn.toStyles)),La.push(Nt),Ne.has(Ft)&&u.push(Nt)}),La.forEach(Mt=>{const Ft=p.get(Mt.element);if(Ft&&Ft.length){const Nt=$r(Ft);Mt.setRealPlayer(Nt)}}),u.forEach(Mt=>{Mt.parentPlayer?Mt.syncPlayerEvents(Mt.parentPlayer):Mt.destroy()});for(let Mt=0;Mt<Wt.length;Mt++){const Ft=Wt[Mt],Nt=Ft[Po];if(Ea(Ft,Yo),Nt&&Nt.hasAnimation)continue;let sn=[];if(Z.size){let Pi=Z.get(Ft);Pi&&Pi.length&&sn.push(...Pi);let yi=this.driver.query(Ft,Jl,!0);for(let Wi=0;Wi<yi.length;Wi++){let In=Z.get(yi[Wi]);In&&In.length&&sn.push(...In)}}const Wn=sn.filter(Pi=>!Pi.destroyed);Wn.length?Sc(this,Ft,Wn):this.processLeaveNode(Ft)}return Wt.length=0,Ns.forEach(Mt=>{this.players.push(Mt),Mt.onDone(()=>{Mt.destroy();const Ft=this.players.indexOf(Mt);this.players.splice(Ft,1)}),Mt.play()}),Ns}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,o,c,u,p){let T=[];if(o){const Z=this.playersByQueriedElement.get(l);Z&&(T=Z)}else{const Z=this.playersByElement.get(l);if(Z){const fe=!p||p==Ta;Z.forEach(ye=>{ye.queued||!fe&&ye.triggerName!=u||T.push(ye)})}}return(c||u)&&(T=T.filter(Z=>!(c&&c!=Z.namespaceId||u&&u!=Z.triggerName))),T}_beforeAnimationBuild(l,o,c){const p=o.element,T=o.isRemovalTransition?void 0:l,Z=o.isRemovalTransition?void 0:o.triggerName;for(const fe of o.timelines){const ye=fe.element,Ne=ye!==p,Ye=oo(c,ye,[]);this._getPreviousPlayers(ye,Ne,T,Z,o.toState).forEach(_t=>{const pt=_t.getRealPlayer();pt.beforeDestroy&&pt.beforeDestroy(),_t.destroy(),Ye.push(_t)})}Gr(p,o.fromStyles)}_buildAnimation(l,o,c,u,p,T){const Z=o.triggerName,fe=o.element,ye=[],Ne=new Set,Ye=new Set,lt=o.timelines.map(pt=>{const Ct=pt.element;Ne.add(Ct);const Wt=Ct[Po];if(Wt&&Wt.removedBeforeQueried)return new ce.ZN(pt.duration,pt.delay);const Fn=Ct!==fe,Qn=function nh(h){const l=[];return ih(h,l),l}((c.get(Ct)||Im).map(Ei=>Ei.getRealPlayer())).filter(Ei=>!!Ei.element&&Ei.element===Ct),Ti=p.get(Ct),ui=T.get(Ct),Fs=Ou(this._normalizer,pt.keyframes,Ti,ui),Ro=this._buildPlayer(pt,Fs,Qn);if(pt.subTimeline&&u&&Ye.add(Ct),Fn){const Ei=new hd(l,Z,Ct);Ei.setRealPlayer(Ro),ye.push(Ei)}return Ro});ye.forEach(pt=>{oo(this.playersByQueriedElement,pt.element,[]).push(pt),pt.onDone(()=>function th(h,l,o){let c=h.get(l);if(c){if(c.length){const u=c.indexOf(o);c.splice(u,1)}0==c.length&&h.delete(l)}return c}(this.playersByQueriedElement,pt.element,pt))}),Ne.forEach(pt=>bi(pt,Nu));const _t=$r(lt);return _t.onDestroy(()=>{Ne.forEach(pt=>Ea(pt,Nu)),Ui(fe,o.toStyles)}),Ye.forEach(pt=>{oo(u,pt,[]).push(_t)}),_t}_buildPlayer(l,o,c){return o.length>0?this.driver.animate(l.element,o,l.duration,l.delay,l.easing,c):new ce.ZN(l.duration,l.delay)}}class hd{constructor(l,o,c){this.namespaceId=l,this.triggerName=o,this.element=c,this._player=new ce.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,this._queuedCallbacks.forEach((o,c)=>{o.forEach(u=>Pu(l,c,void 0,u))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const o=this._player;o.triggerCallback&&l.onStart(()=>o.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,o){oo(this._queuedCallbacks,l,[]).push(o)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const o=this._player;o.triggerCallback&&o.triggerCallback(l)}}function _i(h){return h&&1===h.nodeType}function Mc(h,l){const o=h.style.display;return h.style.display=l??"none",o}function fd(h,l,o,c,u){const p=[];o.forEach(fe=>p.push(Mc(fe)));const T=[];c.forEach((fe,ye)=>{const Ne=new Map;fe.forEach(Ye=>{const lt=l.computeStyle(ye,Ye,u);Ne.set(Ye,lt),(!lt||0==lt.length)&&(ye[Po]=ld,T.push(ye))}),h.set(ye,Ne)});let Z=0;return o.forEach(fe=>Mc(fe,p[Z++])),T}function Zo(h,l){const o=new Map;if(h.forEach(Z=>o.set(Z,[])),0==l.length)return o;const u=new Set(l),p=new Map;function T(Z){if(!Z)return 1;let fe=p.get(Z);if(fe)return fe;const ye=Z.parentNode;return fe=o.has(ye)?ye:u.has(ye)?1:T(ye),p.set(Z,fe),fe}return l.forEach(Z=>{const fe=T(Z);1!==fe&&o.get(fe).push(Z)}),o}function bi(h,l){h.classList?.add(l)}function Ea(h,l){h.classList?.remove(l)}function Sc(h,l,o){$r(o).onDone(()=>h.processLeaveNode(l))}function ih(h,l){for(let o=0;o<h.length;o++){const c=h[o];c instanceof ce.ZE?ih(c.players,l):l.push(c)}}function km(h,l,o){const c=o.get(h);if(!c)return!1;let u=l.get(h);return u?c.forEach(p=>u.add(p)):l.set(h,c),o.delete(h),!0}class Is{constructor(l,o,c){this._driver=o,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(u,p)=>{},this._transitionEngine=new Pm(l.body,o,c),this._timelineEngine=new xa(l.body,o,c),this._transitionEngine.onRemovalComplete=(u,p)=>this.onRemovalComplete(u,p)}registerTrigger(l,o,c,u,p){const T=l+"-"+u;let Z=this._triggerCache[T];if(!Z){const fe=[],Ne=wc(this._driver,p,fe,[]);if(fe.length)throw function bs(h,l){return new i.vHH(3404,!1)}();Z=function ro(h,l,o){return new ad(h,l,o)}(u,Ne,this._normalizer),this._triggerCache[T]=Z}this._transitionEngine.registerTrigger(o,u,Z)}register(l,o){this._transitionEngine.register(l,o)}destroy(l,o){this._transitionEngine.destroy(l,o)}onInsert(l,o,c,u){this._transitionEngine.insertNode(l,o,c,u)}onRemove(l,o,c){this._transitionEngine.removeNode(l,o,c)}disableAnimations(l,o){this._transitionEngine.markElementAsDisabled(l,o)}process(l,o,c,u){if("@"==c.charAt(0)){const[p,T]=um(c);this._timelineEngine.command(p,o,T,u)}else this._transitionEngine.trigger(l,o,c,u)}listen(l,o,c,u,p){if("@"==c.charAt(0)){const[T,Z]=um(c);return this._timelineEngine.listen(T,o,Z,p)}return this._transitionEngine.listen(l,o,c,u,p)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(l){this._transitionEngine.afterFlushAnimationsDone(l)}}let Rm=(()=>{class h{static#e=this.initialStylesByElement=new WeakMap;constructor(o,c,u){this._element=o,this._startStyles=c,this._endStyles=u,this._state=0;let p=h.initialStylesByElement.get(o);p||h.initialStylesByElement.set(o,p=new Map),this._initialStyles=p}start(){this._state<1&&(this._startStyles&&Ui(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ui(this._element,this._initialStyles),this._endStyles&&(Ui(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(h.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Ui(this._element,this._initialStyles),this._state=3)}}return h})();function md(h){let l=null;return h.forEach((o,c)=>{(function pd(h){return"display"===h||"position"===h})(c)&&(l=l||new Map,l.set(c,o))}),l}class Fm{constructor(l,o,c,u){this.element=l,this.keyframes=o,this.options=c,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:new Map;const o=()=>this._onFinish();this.domPlayer.addEventListener("finish",o),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",o)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(l){const o=[];return l.forEach(c=>{o.push(Object.fromEntries(c))}),o}_triggerWebAnimation(l,o,c){return l.animate(this._convertKeyframesToObject(o),c)}onStart(l){this._originalOnStartFns.push(l),this._onStartFns.push(l)}onDone(l){this._originalOnDoneFns.push(l),this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,u)=>{"offset"!==u&&l.set(u,this._finished?c:vm(this.element,u))}),this.currentSnapshot=l}triggerCallback(l){const o="start"===l?this._onStartFns:this._onDoneFns;o.forEach(c=>c()),o.length=0}}class Nm{validateStyleProperty(l){return!0}validateAnimatableStyleProperty(l){return!0}matchesElement(l,o){return!1}containsElement(l,o){return Di(l,o)}getParentElement(l){return hr(l)}query(l,o,c){return jr(l,o,c)}computeStyle(l,o,c){return window.getComputedStyle(l)[o]}animate(l,o,c,u,p,T=[]){const fe={duration:c,delay:u,fill:0==u?"both":"forwards"};p&&(fe.easing=p);const ye=new Map,Ne=T.filter(_t=>_t instanceof Fm);(function k_(h,l){return 0===h||0===l})(c,u)&&Ne.forEach(_t=>{_t.currentSnapshot.forEach((pt,Ct)=>ye.set(Ct,pt))});let Ye=function bm(h){return h.length?h[0]instanceof Map?h:h.map(l=>pa(l)):[]}(o).map(_t=>fr(_t));Ye=function Lu(h,l,o){if(o.size&&l.length){let c=l[0],u=[];if(o.forEach((p,T)=>{c.has(T)||u.push(T),c.set(T,p)}),u.length)for(let p=1;p<l.length;p++){let T=l[p];u.forEach(Z=>T.set(Z,vm(h,Z)))}}return l}(l,Ye,ye);const lt=function L_(h,l){let o=null,c=null;return Array.isArray(l)&&l.length?(o=md(l[0]),l.length>1&&(c=md(l[l.length-1]))):l instanceof Map&&(o=md(l)),o||c?new Rm(h,o,c):null}(l,Ye);return new Fm(l,Ye,fe,lt)}}const Lm="@.disabled";class Bm{constructor(l,o,c,u){this.namespaceId=l,this.delegate=o,this.engine=c,this._onDestroy=u,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(l){this.delegate.destroyNode?.(l)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(l,o){return this.delegate.createElement(l,o)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,o){this.delegate.appendChild(l,o),this.engine.onInsert(this.namespaceId,o,l,!1)}insertBefore(l,o,c,u=!0){this.delegate.insertBefore(l,o,c),this.engine.onInsert(this.namespaceId,o,l,u)}removeChild(l,o,c){this.engine.onRemove(this.namespaceId,o,this.delegate)}selectRootElement(l,o){return this.delegate.selectRootElement(l,o)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,o,c,u){this.delegate.setAttribute(l,o,c,u)}removeAttribute(l,o,c){this.delegate.removeAttribute(l,o,c)}addClass(l,o){this.delegate.addClass(l,o)}removeClass(l,o){this.delegate.removeClass(l,o)}setStyle(l,o,c,u){this.delegate.setStyle(l,o,c,u)}removeStyle(l,o,c){this.delegate.removeStyle(l,o,c)}setProperty(l,o,c){"@"==o.charAt(0)&&o==Lm?this.disableAnimations(l,!!c):this.delegate.setProperty(l,o,c)}setValue(l,o){this.delegate.setValue(l,o)}listen(l,o,c){return this.delegate.listen(l,o,c)}disableAnimations(l,o){this.engine.disableAnimations(l,o)}}class B_ extends Bm{constructor(l,o,c,u,p){super(o,c,u,p),this.factory=l,this.namespaceId=o}setProperty(l,o,c){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Lm?this.disableAnimations(l,c=void 0===c||!!c):this.engine.process(this.namespaceId,l,o.slice(1),c):this.delegate.setProperty(l,o,c)}listen(l,o,c){if("@"==o.charAt(0)){const u=function Vm(h){switch(h){case"body":return document.body;case"document":return document;case"window":return window;default:return h}}(l);let p=o.slice(1),T="";return"@"!=p.charAt(0)&&([p,T]=function Ac(h){const l=h.indexOf(".");return[h.substring(0,l),h.slice(l+1)]}(p)),this.engine.listen(this.namespaceId,u,p,T,Z=>{this.factory.scheduleListenerCallback(Z._data||-1,c,Z)})}return this.delegate.listen(l,o,c)}}class Ic{constructor(l,o,c){this.delegate=l,this.engine=o,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,o.onRemovalComplete=(u,p)=>{const T=p?.parentNode(u);T&&p.removeChild(T,u)}}createRenderer(l,o){const u=this.delegate.createRenderer(l,o);if(!l||!o?.data?.animation){const ye=this._rendererCache;let Ne=ye.get(u);return Ne||(Ne=new Bm("",u,this.engine,()=>ye.delete(u)),ye.set(u,Ne)),Ne}const p=o.id,T=o.id+"-"+this._currentId;this._currentId++,this.engine.register(T,l);const Z=ye=>{Array.isArray(ye)?ye.forEach(Z):this.engine.registerTrigger(p,T,l,ye.name,ye)};return o.data.animation.forEach(Z),new B_(this,T,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(l,o,c){if(l>=0&&l<this._microtaskId)return void this._zone.run(()=>o(c));const u=this._animationCallbacksBuffer;0==u.length&&queueMicrotask(()=>{this._zone.run(()=>{u.forEach(p=>{const[T,Z]=p;T(Z)}),this._animationCallbacksBuffer=[]})}),u.push([o,c])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Os=[{provide:ha,useFactory:function sh(){return new Bu}},{provide:Is,useClass:(()=>{class h extends Is{constructor(o,c,u,p){super(o,c,u)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(E.K0),i.LFG(Ur),i.LFG(ha),i.LFG(i.z2F))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})()},{provide:i.FYo,useFactory:function ah(h,l,o){return new Ic(h,l,o)},deps:[a.se,Is,i.R0b]}],bd=[{provide:Ur,useFactory:()=>new Nm},{provide:i.QbO,useValue:"BrowserAnimations"},...Os],vd=[{provide:Ur,useClass:xs},{provide:i.QbO,useValue:"NoopAnimations"},...Os];let ch=(()=>{class h{static withConfig(o){return{ngModule:h,providers:o.disableAnimations?vd:bd}}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:bd,imports:[a.b2]})}return h})();var Oc=b(9309),xd=b(534),$m=b(6086);const Dd=["toast-component",""];function Td(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.remove())}),i.TgZ(1,"span",6),i._uU(2,"\xd7"),i.qZA()()}}function Hm(h,l){if(1&h&&(i.ynx(0),i._uU(1),i.BQk()),2&h){const o=i.oxw(2);i.xp6(1),i.hij("[",o.duplicatesCount+1,"]")}}function jm(h,l){if(1&h&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,Hm,2,1,"ng-container",4),i.qZA()),2&h){const o=i.oxw();i.Tol(o.options.titleClass),i.uIk("aria-label",o.title),i.xp6(1),i.hij(" ",o.title," "),i.xp6(1),i.Q6J("ngIf",o.duplicatesCount)}}function Um(h,l){if(1&h&&i._UZ(0,"div",7),2&h){const o=i.oxw();i.Tol(o.options.messageClass),i.Q6J("innerHTML",o.message,i.oJD)}}function lh(h,l){if(1&h&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&h){const o=i.oxw();i.Tol(o.options.messageClass),i.uIk("aria-label",o.message),i.xp6(1),i.hij(" ",o.message," ")}}function zm(h,l){if(1&h&&(i.TgZ(0,"div"),i._UZ(1,"div",9),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Udp("width",o.width+"%")}}class uh{_attachedHost;component;viewContainerRef;injector;constructor(l,o){this.component=l,this.injector=o}attach(l,o){return this._attachedHost=l,l.attach(this,o)}detach(){const l=this._attachedHost;if(l)return this._attachedHost=void 0,l.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(l){this._attachedHost=l}}class hh{_attachedPortal;_disposeFn;attach(l,o){return this._attachedPortal=l,this.attachComponentPortal(l,o)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(l){this._disposeFn=l}}class Wm{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new S.x;_activate=new S.x;_manualClose=new S.x;_resetTimeout=new S.x;_countDuplicate=new S.x;constructor(l){this._overlayRef=l}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(l,o){l&&this._resetTimeout.next(),o&&this._countDuplicate.next(++this.duplicatesCount)}}class Ma{toastId;config;message;title;toastType;toastRef;_onTap=new S.x;_onAction=new S.x;constructor(l,o,c,u,p,T){this.toastId=l,this.config=o,this.message=c,this.title=u,this.toastType=p,this.toastRef=T,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(l){this._onAction.next(l)}onAction(){return this._onAction.asObservable()}}const Sd=new i.OlP("ToastConfig");class Ym extends hh{_hostDomElement;_componentFactoryResolver;_appRef;constructor(l,o,c){super(),this._hostDomElement=l,this._componentFactoryResolver=o,this._appRef=c}attachComponentPortal(l,o){const c=this._componentFactoryResolver.resolveComponentFactory(l.component);let u;return u=c.create(l.injector),this._appRef.attachView(u.hostView),this.setDisposeFn(()=>{this._appRef.detachView(u.hostView),u.destroy()}),o?this._hostDomElement.insertBefore(this._getComponentRootNode(u),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(u)),u}_getComponentRootNode(l){return l.hostView.rootNodes[0]}}let mh=(()=>{class h{_document=(0,i.f3M)(E.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o=this._document.createElement("div");o.classList.add("overlay-container"),o.setAttribute("aria-live","polite"),this._document.body.appendChild(o),this._containerElement=o}static \u0275fac=function(c){return new(c||h)};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class Km{_portalHost;constructor(l){this._portalHost=l}attach(l,o=!0){return this._portalHost.attach(l,o)}detach(){return this._portalHost.detach()}}let Zm=(()=>{class h{_overlayContainer=(0,i.f3M)(mh);_componentFactoryResolver=(0,i.f3M)(i._Vd);_appRef=(0,i.f3M)(i.z2F);_document=(0,i.f3M)(E.K0);_paneElements=new Map;create(o,c){return this._createOverlayRef(this.getPaneElement(o,c))}getPaneElement(o="",c){return this._paneElements.get(c)||this._paneElements.set(c,{}),this._paneElements.get(c)[o]||(this._paneElements.get(c)[o]=this._createPaneElement(o,c)),this._paneElements.get(c)[o]}_createPaneElement(o,c){const u=this._document.createElement("div");return u.id="toast-container",u.classList.add(o),u.classList.add("toast-container"),c?c.getContainerElement().appendChild(u):this._overlayContainer.getContainerElement().appendChild(u),u}_createPortalHost(o){return new Ym(o,this._componentFactoryResolver,this._appRef)}_createOverlayRef(o){return new Km(this._createPortalHost(o))}static \u0275fac=function(c){return new(c||h)};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Sa=(()=>{class h{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(o,c,u,p,T){this.overlay=c,this._injector=u,this.sanitizer=p,this.ngZone=T,this.toastrConfig={...o.default,...o.config},o.config.iconClasses&&(this.toastrConfig.iconClasses={...o.default.iconClasses,...o.config.iconClasses})}show(o,c,u={},p=""){return this._preBuildNotification(p,o,c,this.applyConfig(u))}success(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",o,c,this.applyConfig(u))}error(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",o,c,this.applyConfig(u))}info(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",o,c,this.applyConfig(u))}warning(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",o,c,this.applyConfig(u))}clear(o){for(const c of this.toasts)if(void 0!==o){if(c.toastId===o)return void c.toastRef.manualClose()}else c.toastRef.manualClose()}remove(o){const c=this._findToast(o);if(!c||(c.activeToast.toastRef.close(),this.toasts.splice(c.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const u=this.toasts[this.currentlyActive].toastRef;u.isInactive()||(this.currentlyActive=this.currentlyActive+1,u.activate())}return!0}findDuplicate(o="",c="",u,p){const{includeTitleDuplicates:T}=this.toastrConfig;for(const Z of this.toasts)if((!T||T&&Z.title===o)&&Z.message===c)return Z.toastRef.onDuplicate(u,p),Z;return null}applyConfig(o={}){return{...this.toastrConfig,...o}}_findToast(o){for(let c=0;c<this.toasts.length;c++)if(this.toasts[c].toastId===o)return{index:c,activeToast:this.toasts[c]};return null}_preBuildNotification(o,c,u,p){return p.onActivateTick?this.ngZone.run(()=>this._buildNotification(o,c,u,p)):this._buildNotification(o,c,u,p)}_buildNotification(o,c,u,p){if(!p.toastComponent)throw new Error("toastComponent required");const T=this.findDuplicate(u,c,this.toastrConfig.resetTimeoutOnDuplicate&&p.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&u||c)&&this.toastrConfig.preventDuplicates&&null!==T)return T;this.previousToastMessage=c;let Z=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Z=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const fe=this.overlay.create(p.positionClass,this.overlayContainer);this.index=this.index+1;let ye=c;c&&p.enableHtml&&(ye=this.sanitizer.sanitize(i.q3G.HTML,c));const Ne=new Wm(fe),Ye=new Ma(this.index,p,ye,u,o,Ne),_t=i.zs3.create({providers:[{provide:Ma,useValue:Ye}],parent:this._injector}),pt=new uh(p.toastComponent,_t),Ct=fe.attach(pt,p.newestOnTop);Ne.componentInstance=Ct.instance;const Wt={toastId:this.index,title:u||"",message:c||"",toastRef:Ne,onShown:Ne.afterActivate(),onHidden:Ne.afterClosed(),onTap:Ye.onTap(),onAction:Ye.onAction(),portal:Ct};return Z||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Wt.toastRef.activate()})),this.toasts.push(Wt),Wt}static \u0275fac=function(c){return new(c||h)(i.LFG(Sd),i.LFG(Zm),i.LFG(i.zs3),i.LFG(a.H7),i.LFG(i.R0b))};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const qm={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class h{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(o,c,u){this.toastrService=o,this.toastPackage=c,this.ngZone=u,this.message=c.message,this.title=c.title,this.options=c.config,this.originalTimeout=c.config.timeOut,this.toastClasses=`${c.toastType} ${c.config.toastClass}`,this.sub=c.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=c.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=c.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=c.toastRef.countDuplicate().subscribe(p=>{this.duplicatesCount=p}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const o=(new Date).getTime();this.width=(this.hideTime-o)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(o,c){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(o),c)):this.timeout=setTimeout(()=>o(),c)}outsideInterval(o,c){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(o),c)):this.intervalId=setInterval(()=>o(),c)}runInsideAngular(o){this.ngZone?this.ngZone.run(()=>o()):o()}static \u0275fac=function(c){return new(c||h)(i.Y36(Sa),i.Y36(Ma),i.Y36(i.R0b))};static \u0275cmp=i.Xpm({type:h,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(c,u){1&c&&i.NdJ("click",function(){return u.tapToast()})("mouseenter",function(){return u.stickAround()})("mouseleave",function(){return u.delayedHideToast()}),2&c&&(i.d8E("@flyInOut",u.state),i.Tol(u.toastClasses),i.Udp("display",u.displayStyle))},standalone:!0,features:[i.jDz],attrs:Dd,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(c,u){1&c&&i.YNc(0,Td,3,0,"button",0)(1,jm,3,5,"div",1)(2,Um,1,3,"div",2)(3,lh,2,4,"div",3)(4,zm,2,2,"div",4),2&c&&(i.Q6J("ngIf",u.options.closeButton),i.xp6(1),i.Q6J("ngIf",u.title),i.xp6(1),i.Q6J("ngIf",u.message&&u.options.enableHtml),i.xp6(1),i.Q6J("ngIf",u.message&&!u.options.enableHtml),i.xp6(1),i.Q6J("ngIf",u.options.progressBar))},dependencies:[E.O5],encapsulation:2,data:{animation:[(0,ce.X$)("flyInOut",[(0,ce.SB)("inactive",(0,ce.oB)({opacity:0})),(0,ce.SB)("active",(0,ce.oB)({opacity:1})),(0,ce.SB)("removed",(0,ce.oB)({opacity:0})),(0,ce.eR)("inactive => active",(0,ce.jt)("{{ easeTime }}ms {{ easing }}")),(0,ce.eR)("active => removed",(0,ce.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return h})()},Aa=(h={})=>(0,i.MR2)([{provide:Sd,useValue:{default:qm,config:h}}]);let Jm=(()=>{class h{static forRoot(o={}){return{ngModule:h,providers:[Aa(o)]}}static \u0275fac=function(c){return new(c||h)};static \u0275mod=i.oAB({type:h});static \u0275inj=i.cJS({})}return h})();var Ps=b(5626),kc=b(551),gh=b(8258),Rc=b(5402),Ia=b(3084),Fc=b(5747),tp=b(5046),Oa=b(3855),np=b(2311),_h=b(5861),ft=b(6068);let Pa=(()=>{class h{constructor(){this.version="0.0.0"}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-dialog-about"]],decls:21,vars:2,consts:[["mat-dialog-title",""],["role","list"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"links"],["href","https://sdkgen.github.io/","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen/issues/new","rel","external noreferer","target","_blank","mat-stroked-button",""]],template:function(c,u){1&c&&(i.TgZ(0,"header")(1,"h1",0),i._uU(2,"sdkgen Playground"),i.qZA(),i.TgZ(3,"mat-chip-set",1)(4,"mat-chip",2),i._uU(5),i.qZA()(),i._UZ(6,"s"),i.TgZ(7,"button",3)(8,"mat-icon"),i._uU(9,"close"),i.qZA()()(),i.TgZ(10,"p"),i._uU(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),i.qZA(),i.TgZ(12,"p"),i._uU(13,"Feito com \u2764\ufe0f no Brasil \u{1f1e7}\u{1f1f7}"),i.qZA(),i.TgZ(14,"div",4)(15,"a",5),i._uU(16,"Documenta\xe7\xe3o"),i.qZA(),i.TgZ(17,"a",6),i._uU(18,"C\xf3digo-fonte"),i.qZA(),i.TgZ(19,"a",7),i._uU(20," Reportar um problema "),i.qZA()()),2&c&&(i.xp6(4),i.Q6J("disableRipple",!0),i.xp6(1),i.Oqu(u.version))},dependencies:[v.zs,v.RK,di,qe,Xi,qa,pi.Hw],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2)}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0;padding:0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}a[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.links[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]})}return h})();function Nc(h,l){1&h&&(i.ynx(0),i.TgZ(1,"mat-icon",6),i._uU(2,"loop"),i.qZA(),i.BQk())}function Ad(h,l){1&h&&(i.ynx(0),i.TgZ(1,"mat-icon"),i._uU(2,"arrow_forward"),i.qZA(),i.BQk())}let ip=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.toastr=c,this.dialog=u,this.loading=!1,this.url=new q.NI("")}ngOnInit(){fetch("/ast.json").then(o=>{o.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(o){var c=this;return(0,_h.Z)(function*(){o?.preventDefault();try{c.loading=!0,/^https?:\/\//.test(c.url.value)||c.url.setValue(`https://${c.url.value}`);const u=new URL(c.url.value);u.pathname+=(u.pathname.endsWith("/")?"":"/")+"ast.json";const p=u.toString();console.debug("astUrl",p);const T=yield fetch(p).then(function(){var Z=(0,_h.Z)(function*(fe){return fe.ok?fe.json():fe});return function(fe){return Z.apply(this,arguments)}}());if(T instanceof Response)throw T instanceof Error?T:new Error(T.statusText);if(!T.errors||!T.functionTable||!T.typeTable)throw new Error("Invalid AST");for(;typeof monaco>"u";)console.log("monaco"),yield new Promise(Z=>setTimeout(Z,250));console.debug("astJson",T),c.sdkgen.state$.next({astJson:T,astRoot:(0,ft.jsonToAst)(T),url:c.url.value})}catch(u){c.toastr.error(u instanceof Error?u.message:JSON.stringify(u),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{c.loading=!1}})()}openAbout(){this.dialog.open(Pa)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Oa.G),i.Y36(Sa),i.Y36(Sn))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-ripple","",1,"about-button",3,"click"],[1,"loader"]],template:function(c,u){1&c&&(i._UZ(0,"img",0),i.TgZ(1,"form",1),i.NdJ("submit",function(T){return u.loadUrl(T)}),i._UZ(2,"input",2),i.TgZ(3,"button",3),i.YNc(4,Nc,3,0,"ng-container",4)(5,Ad,3,0,"ng-container",4),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return u.openAbout()}),i.TgZ(7,"mat-icon"),i._uU(8,"info"),i.qZA()()),2&c&&(i.xp6(2),i.Q6J("formControl",u.url)("readonly",u.loading),i.xp6(1),i.Q6J("disabled",u.loading)("ngSwitch",u.loading),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[E.RF,E.n9,q._Y,q.Fj,q.JJ,q.JL,q.F,q.oH,pi.Hw,A.wG],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none;cursor:pointer;line-height:10px}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 2s linear infinite}button.about-button[_ngcontent-%COMP%]{width:42px;height:42px;border:0;border-radius:0;padding:0;background:transparent;cursor:pointer;color:inherit;line-height:0;text-align:center}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return h})();var op=b(3101);const Lc={StringPrimitiveType:"Um texto livre, potencialmente de m\xfaltiplas linhas, codificado como UTF-8.",IntPrimitiveType:"Um n\xfamero inteiro de 32 bits, no intervalo de -2147483648 at\xe9 2147483647.",UIntPrimitiveType:"Um n\xfamero inteiro n\xe3o negativo, no intervalo de 0 at\xe9 4294967295.",FloatPrimitiveType:"Um n\xfamero de ponto flutuante de 64 bits, similar ao double do C.",BigIntPrimitiveType:"Um n\xfamero inteiro sem limite de precis\xe3o. Na maioria das plataformas este tipo \xe9 mais custoso.",MoneyPrimitiveType:"Um n\xfamero inteiro com precis\xe3o estendida, mas perform\xe1tico. Est\xe1 no intervalo de -9007199254740991 a 9007199254740991. \xdatil para opera\xe7\xf5es financeiras.",DecimalPrimitiveType:"Um n\xfamero inteiro ou fracionado representado por d\xedgitos decimais e com precis\xe3o din\xe2mica. \xdatil para opera\xe7\xf5es financeiras.",DatePrimitiveType:"Representa conceitualmente uma data do calend\xe1rio Gregoriano. Essa mesma data pode representar diferentes momento no tempo a depender da timezone. Para especificar um ponto no tempo utilize datetime.",DateTimePrimitiveType:"Representa um instante no tempo com precis\xe3o de milissegundos. Este instante ser\xe1 sempre traduzido para o fuso hor\xe1rio local do recebedor da mensagem.",BoolPrimitiveType:"Ou true ou false.",VoidPrimitiveType:"Tipo vazio, sem conte\xfado.",CpfPrimitiveType:"Similar a uma string, mas contendo um CPF v\xe1lido.",CnpjPrimitiveType:"Similar a uma string, mas contendo um CNPJ v\xe1lido.",EmailPrimitiveType:"Similar a uma string, mas contendo um e-mail v\xe1lido.",UrlPrimitiveType:"Similar a uma string, mas contendo uma URL v\xe1lida.",UuidPrimitiveType:"Similar a uma string, mas contendo um UUID v\xe1lido.",HexPrimitiveType:"Similar a uma string, mas contendo uma quantidade par de caracteres hexadecimais, \xfatil para representar bytes.",HtmlPrimitiveType:"Similar a uma string, mas contendo um HTML v\xe1lido.",BytesPrimitiveType:"Uma sequ\xeancia arbitr\xe1ria de bytes de qualquer comprimento. Pode ser utilizado para tr\xe1fego de dados bin\xe1rios.",Base64PrimitiveType:"Similar a uma string, mas necessariamente com uma codifica\xe7\xe3o Base 64 v\xe1lida.",XmlPrimitiveType:"Similar a uma string, mas contendo um XML v\xe1lido.",JsonPrimitiveType:"Um valor JSON qualquer, incluindo objetos, arrays, strings, n\xfameros e boleanos, em qualquer profundidade. Note que embora null possa aparecer dentro de um objeto ou array, o valor deste campo n\xe3o pode ser null diretamente. Para isso utilize json?."},vh={StringPrimitiveType:["","lorem ipsum","strings podem conter caracteres especiais \u{1f609}"],IntPrimitiveType:["0","6725082065","-3096576054"],UIntPrimitiveType:["0","1","340953460"],FloatPrimitiveType:["0.0","1.050654","-3454.6396854"],BigIntPrimitiveType:["87175082235506108544888893172310","0","1"],MoneyPrimitiveType:["100","-450954636342","121611633162977184630315"],DecimalPrimitiveType:["100","-10.35","0.00498375617834","3864958512342567"],DatePrimitiveType:["2020-01-01","1950-04-15","2194-12-31"],DateTimePrimitiveType:["2020-01-01T00:00:00.000","1950-04-15T02:11:58.892","2194-12-31T23:31:58.491"],BoolPrimitiveType:["true","false"],CpfPrimitiveType:["000.000.001-91","00000000191","000.000.002-72"],CnpjPrimitiveType:["00.000.000/0001-91","00000000000191","00.000.000/0002-72"],EmailPrimitiveType:["sample@example.com","root@localhost","test+label@10.0.0.5"],UrlPrimitiveType:["https://sdkgen.github.io/","https://goo.gl/maps/gUaKGTqR8BHXfX7b7","http://jobs.cubos.io"],UuidPrimitiveType:["c12c3329-c558-4c76-9a16-0efeb2b01605","00000000-0000-0000-0000-000000000000","1d5f2ef6-0def-11ec-82a8-0242ac130003"],HexPrimitiveType:["00","6375626f73","73646b67656e20706c617967726f756e64"],HtmlPrimitiveType:["<html><body><p>sdkgen</p></body></html>","<html><h1>Sdkgen","<script> alert('Hello world!'); <\/script>"],BytesPrimitiveType:[],Base64PrimitiveType:["Y3Vib3M=","c2RrZ2Vu","c2RrZ2VuIHBsYXlncm91bmQ="],XmlPrimitiveType:["<items><item>something</item></items>","<list />",'<?xml version="1.0" encoding="UTF-8"?><resposta><![CDATA[ol\xe1 <xml>]]></resposta>'],JsonPrimitiveType:["{}",'{"sdkgen":"playground"}','{"type":"json","items":[1,2,3],"some":null}']};function ko(h){switch(h.constructor){case ft.StringPrimitiveType:return"StringPrimitiveType";case ft.IntPrimitiveType:return"IntPrimitiveType";case ft.UIntPrimitiveType:return"UIntPrimitiveType";case ft.FloatPrimitiveType:return"FloatPrimitiveType";case ft.BigIntPrimitiveType:return"BigIntPrimitiveType";case ft.MoneyPrimitiveType:return"MoneyPrimitiveType";case ft.DecimalPrimitiveType:return"DecimalPrimitiveType";case ft.DatePrimitiveType:return"DatePrimitiveType";case ft.DateTimePrimitiveType:return"DateTimePrimitiveType";case ft.BoolPrimitiveType:return"BoolPrimitiveType";case ft.VoidPrimitiveType:return"VoidPrimitiveType";case ft.CpfPrimitiveType:return"CpfPrimitiveType";case ft.CnpjPrimitiveType:return"CnpjPrimitiveType";case ft.EmailPrimitiveType:return"EmailPrimitiveType";case ft.UrlPrimitiveType:return"UrlPrimitiveType";case ft.UuidPrimitiveType:return"UuidPrimitiveType";case ft.HexPrimitiveType:return"HexPrimitiveType";case ft.HtmlPrimitiveType:return"HtmlPrimitiveType";case ft.BytesPrimitiveType:return"BytesPrimitiveType";case ft.Base64PrimitiveType:return"Base64PrimitiveType";case ft.XmlPrimitiveType:return"XmlPrimitiveType";case ft.JsonPrimitiveType:return"JsonPrimitiveType";case ft.OptionalType:return"OptionalType";case ft.EnumType:return"EnumType";case ft.ArrayType:return"ArrayType";case ft.StructType:return"StructType";default:return h.constructor.name}}function ka(h){const l=[];switch(h.constructor){case ft.StringPrimitiveType:case ft.IntPrimitiveType:case ft.UIntPrimitiveType:case ft.FloatPrimitiveType:case ft.BigIntPrimitiveType:case ft.MoneyPrimitiveType:case ft.DecimalPrimitiveType:case ft.DatePrimitiveType:case ft.DateTimePrimitiveType:case ft.BoolPrimitiveType:case ft.VoidPrimitiveType:case ft.CpfPrimitiveType:case ft.CnpjPrimitiveType:case ft.EmailPrimitiveType:case ft.UrlPrimitiveType:case ft.UuidPrimitiveType:case ft.HexPrimitiveType:case ft.HtmlPrimitiveType:case ft.BytesPrimitiveType:case ft.Base64PrimitiveType:case ft.XmlPrimitiveType:case ft.JsonPrimitiveType:l.push("Primitivo");break;case ft.OptionalType:l.push("Opcional"),l.push(...ka(h.base));break;case ft.TypeReference:l.push(...ka(h.type));break;case ft.ArrayType:l.push("Array"),l.push(...ka(h.base));break;case ft.EnumType:l.push("Enum");break;default:console.error("No labels for",ko(h))}return l}function Kr(h){switch(h.constructor){case ft.StringPrimitiveType:case ft.IntPrimitiveType:case ft.UIntPrimitiveType:case ft.FloatPrimitiveType:case ft.BigIntPrimitiveType:case ft.MoneyPrimitiveType:case ft.DecimalPrimitiveType:case ft.DatePrimitiveType:case ft.DateTimePrimitiveType:case ft.BoolPrimitiveType:case ft.VoidPrimitiveType:case ft.CpfPrimitiveType:case ft.CnpjPrimitiveType:case ft.EmailPrimitiveType:case ft.UrlPrimitiveType:case ft.UuidPrimitiveType:case ft.HexPrimitiveType:case ft.HtmlPrimitiveType:case ft.BytesPrimitiveType:case ft.Base64PrimitiveType:case ft.XmlPrimitiveType:case ft.JsonPrimitiveType:return{longDescription:Lc[ko(h)],shortDescription:Lc[ko(h)],examples:vh[ko(h)]};case ft.OptionalType:{const u=Kr(h.base);return{...u,longDescription:u.longDescription,shortDescription:`(opcional) ${u.shortDescription}`,examples:["null",...u.examples??[]]}}case ft.TypeReference:return Kr(h.type);case ft.ArrayType:{const u=Kr(h.base);return{...u,longDescription:u.longDescription,shortDescription:`(array) ${u.shortDescription}`,examples:["[]",...u.examples?.map(p=>`[${p}]`)??[]]}}case ft.EnumType:const l=h,o=l.values.slice(0,3),c=o.map(u=>u.struct?`${u.value}: ${JSON.stringify((new Oa.G).buildJsonObject(u.struct.fields),null,2)}`:u.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${o.map(u=>`${u.value}${u.struct?"(\u2026)":""}`).join(", ")}${o.length>3?"\u2026":""}`,examples:c,isEnum:!0,isStruct:!0,structFields:l.values.map(u=>({name:u.value,type:u.struct,description:u.annotations.find(p=>p instanceof ft.DescriptionAnnotation)?.text,secret:!1}))};case ft.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${h.fields.slice(0,3).map(u=>u.name).join(", ")}\u2026`,isStruct:!0,structFields:h.fields.map(u=>({name:u.name,description:u.annotations.find(p=>p instanceof ft.DescriptionAnnotation)?.text,type:u.type,secret:u.secret})),examples:[JSON.stringify((new Oa.G).buildJsonObject(h.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}function rp(h,l){1&h&&(i.TgZ(0,"button",6)(1,"mat-icon"),i._uU(2,"arrow_back"),i.qZA()())}function $_(h,l){if(1&h&&(i.TgZ(0,"mat-chip",7),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.Q6J("disableRipple",!0),i.xp6(1),i.Oqu(o)}}function Bc(h,l){1&h&&(i.TgZ(0,"button",8)(1,"mat-icon"),i._uU(2,"close"),i.qZA()())}function sp(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Nome"),i.qZA())}function yh(h,l){if(1&h&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.name)}}function wh(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Tipo"),i.qZA())}function Ch(h,l){1&h&&(i.TgZ(0,"span"),i._uU(1,"-"),i.qZA())}function Id(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"u",25),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(2);return i.KtG(p.showDocumentation(u.type))}),i._uU(1),i.qZA()}if(2&h){const o=i.oxw().$implicit,c=i.oxw(2);i.Q6J("matTooltip",c.getTooltip(o.type)),i.xp6(1),i.Oqu(o.type.name)}}function xh(h,l){1&h&&(i.TgZ(0,"td",22),i.YNc(1,Ch,2,0,"span",23)(2,Id,2,2,"u",24),i.qZA()),2&h&&(i.Q6J("ngSwitch",l.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase",null))}function Vc(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Descri\xe7\xe3o"),i.qZA())}function Ra(h,l){if(1&h&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.description||"-")}}function Dh(h,l){1&h&&i._UZ(0,"tr",27)}function Od(h,l){1&h&&i._UZ(0,"tr",28)}const $c=()=>[];function Th(h,l){if(1&h&&(i.TgZ(0,"section")(1,"div",9)(2,"table",10),i.ynx(3,11),i.YNc(4,sp,2,0,"th",12)(5,yh,2,1,"td",13),i.BQk(),i.ynx(6,14),i.YNc(7,wh,2,0,"th",12)(8,xh,3,2,"td",15),i.BQk(),i.ynx(9,16),i.YNc(10,Vc,2,0,"th",12)(11,Ra,2,1,"td",17),i.BQk(),i.YNc(12,Dh,1,0,"tr",18)(13,Od,1,0,"tr",19),i.qZA()()()),2&h){const o=i.oxw();let c;i.xp6(2),i.Q6J("dataSource",null!==(c=null==o.typeDoc?null:o.typeDoc.structFields)&&void 0!==c?c:i.DdM(3,$c)),i.xp6(10),i.Q6J("matHeaderRowDef",o.argumentsTableColumns),i.xp6(1),i.Q6J("matRowDefColumns",o.argumentsTableColumns)}}function Pd(h,l){if(1&h&&(i.TgZ(0,"li")(1,"code",1),i._uU(2),i.qZA()()),2&h){const o=l.$implicit;i.xp6(2),i.Oqu(o)}}function Fa(h,l){if(1&h&&(i.TgZ(0,"section")(1,"h3"),i._uU(2,"Exemplos"),i.qZA(),i.TgZ(3,"ul"),i.YNc(4,Pd,3,1,"li",29),i.qZA()()),2&h){const o=i.oxw();i.xp6(4),i.Q6J("ngForOf",null==o.typeDoc?null:o.typeDoc.examples)}}let ap=(()=>{class h{constructor(o,c,u){this.dialogRef=o,this.data=c,this.dialog=u,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=ka(this.data.type),this.typeDoc=Kr(this.data.type)}getTooltip(o){return Kr(o).shortDescription}showDocumentation(o){this.dialog.open(h,{position:{right:"0"},data:{type:o,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(It),i.Y36(N),i.Y36(Sn))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-type-details"]],decls:11,vars:7,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],["role","list"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(c,u){1&c&&(i.TgZ(0,"h1"),i.YNc(1,rp,3,0,"button",0),i.TgZ(2,"span",1),i._uU(3),i.qZA(),i.TgZ(4,"mat-chip-set",2),i.YNc(5,$_,2,2,"mat-chip",3),i.qZA(),i.YNc(6,Bc,3,0,"button",4),i.qZA(),i.TgZ(7,"p"),i._uU(8),i.qZA(),i.YNc(9,Th,14,4,"section",5)(10,Fa,5,1,"section",5)),2&c&&(i.xp6(1),i.Q6J("ngIf",u.data.subdialog),i.xp6(2),i.Oqu(u.data.type.name),i.xp6(2),i.Q6J("ngForOf",u.labels),i.xp6(1),i.Q6J("ngIf",!u.data.subdialog),i.xp6(2),i.Oqu(null==u.typeDoc?null:u.typeDoc.longDescription),i.xp6(1),i.Q6J("ngIf",(null==u.typeDoc?null:u.typeDoc.isStruct)&&(null==u.typeDoc?null:u.typeDoc.structFields)),i.xp6(1),i.Q6J("ngIf",null==u.typeDoc||null==u.typeDoc.examples?null:u.typeDoc.examples.length))},dependencies:[E.sg,E.O5,E.RF,E.n9,E.ED,v.RK,di,qe,Xi,pi.Hw,Vl,ms,ri,ca,aa,xn,la,ps,ac,$l,Br],styles:["h1[_ngcontent-%COMP%]{font-weight:200;word-break:break-all;word-wrap:break-word;color:#fff}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}h1[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}h1[_ngcontent-%COMP%] button.back-button[_ngcontent-%COMP%]{margin-right:10px}h1[_ngcontent-%COMP%] button.close-button[_ngcontent-%COMP%]{float:right}p[_ngcontent-%COMP%]{line-height:1.5rem}section[_ngcontent-%COMP%]{margin-top:2rem}h3[_ngcontent-%COMP%]{font-weight:200;text-transform:uppercase}ul[_ngcontent-%COMP%]{padding-left:2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:2rem;list-style:square}code[_ngcontent-%COMP%]{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{text-decoration-style:dotted;cursor:pointer}"]})}return h})();var Eh=b(4515);let cp=(()=>{class h{constructor(o){this.observer=o}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Eh.Yg))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),lp=(()=>{class h{transform(o,c){if(!o)return[];if(!c)return o;const u=c.toLocaleLowerCase();return o.filter(p=>JSON.stringify(p).toLocaleLowerCase().includes(u))}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275pipe=i.Yjl({name:"appFilter",type:h,pure:!0})}return h})();function dp(h,l){if(1&h&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&h){const o=i.oxw().$implicit;i.xp6(1),i.Oqu(o.description)}}const Mh=h=>({active:h});function Sh(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"li",5),i.NdJ("click",function(){const p=i.CHM(o).$implicit,T=i.oxw();return i.KtG(T.selectedFunction=p)}),i.TgZ(1,"span",6),i._uU(2),i.qZA(),i.YNc(3,dp,2,1,"span",7),i.qZA()}if(2&h){const o=l.$implicit,c=i.oxw();i.Q6J("ngClass",i.VKq(3,Mh,(null==c.selectedFunction?null:c.selectedFunction.name)===o.name)),i.xp6(2),i.Oqu(o.name),i.xp6(1),i.Q6J("ngIf",o.description)}}function Hc(h,l){1&h&&i._UZ(0,"span")}function kd(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"span"),i._UZ(1,"br"),i._uU(2,"\xa0\xa0"),i.TgZ(3,"span",37),i._uU(4),i.qZA(),i.TgZ(5,"span",14),i._uU(6,":"),i.qZA(),i._uU(7,"\xa0"),i.TgZ(8,"u",15),i.NdJ("click",function(){const p=i.CHM(o).$implicit,T=i.oxw(2);return i.KtG(T.showDocumentation(p.rawType))}),i._uU(9),i.qZA(),i.YNc(10,Hc,1,0,"span",38),i.qZA()}if(2&h){const o=l.$implicit,c=l.index;i.oxw();const u=i.MAs(18),p=i.MAs(20),T=i.oxw();i.xp6(4),i.Oqu(o.name),i.xp6(4),i.Q6J("matTooltip",T.getTooltip(o.rawType)),i.xp6(1),i.Oqu(o.type),i.xp6(1),i.Q6J("ngIf",c!=T.selectedFunction.args.length-1)("ngIfThen",u)("ngIfElse",p)}}function ks(h,l){1&h&&i._uU(0,",")}function up(h,l){1&h&&i._UZ(0,"br")}function hp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"u",29),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(3);return i.KtG(p.showDocumentation(u.dataType))}),i._uU(1),i.qZA()}if(2&h){const o=i.oxw().$implicit,c=i.oxw(3);i.Q6J("matTooltip",c.getTooltip(o.dataType)),i.xp6(1),i.hij("(",o.dataType.name,")")}}function H_(h,l){if(1&h&&(i.TgZ(0,"mat-chip",42)(1,"span",28),i._uU(2),i.qZA(),i._UZ(3,"i"),i.TgZ(4,"span",28),i._uU(5),i.YNc(6,hp,2,2,"u",43),i.qZA()()),2&h){const o=l.$implicit;i.Q6J("disableRipple",!0),i.xp6(2),i.Oqu(o.name),i.xp6(3),i.hij("",o.type," "),i.xp6(1),i.Q6J("ngIf",o.dataType&&"void"!==o.dataType.name)}}function fp(h,l){if(1&h&&(i.TgZ(0,"section",39)(1,"mat-chip-set",40),i.YNc(2,H_,7,4,"mat-chip",41),i.qZA()()),2&h){const o=i.oxw(2);i.xp6(2),i.Q6J("ngForOf",o.selectedFunction.labels)}}function jc(h,l){if(1&h&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&h){const o=i.oxw(2);i.xp6(1),i.Oqu(o.selectedFunction.description)}}function Rd(h,l){1&h&&(i.TgZ(0,"p",44),i._uU(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),i.qZA())}function Ah(h,l){1&h&&(i.TgZ(0,"p",44),i._uU(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),i.qZA())}function Ih(h,l){1&h&&(i.TgZ(0,"th",54),i._uU(1,"Nome"),i.qZA())}function Oh(h,l){if(1&h&&(i.TgZ(0,"td",55),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.name)}}function Zr(h,l){1&h&&(i.TgZ(0,"th",54),i._uU(1,"Tipo"),i.qZA())}function mp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"td",55)(1,"u",29),i.NdJ("click",function(){const p=i.CHM(o).$implicit,T=i.oxw(3);return i.KtG(T.showDocumentation(p.rawType))}),i._uU(2),i.qZA()()}if(2&h){const o=l.$implicit,c=i.oxw(3);i.xp6(1),i.Q6J("matTooltip",c.getTooltip(o.rawType)),i.xp6(1),i.Oqu(o.type)}}function pp(h,l){1&h&&(i.TgZ(0,"th",54),i._uU(1,"Descri\xe7\xe3o"),i.qZA())}function gp(h,l){if(1&h&&(i.TgZ(0,"td",56),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.description||"-")}}function _p(h,l){1&h&&i._UZ(0,"tr",57)}function bp(h,l){1&h&&i._UZ(0,"tr",58)}function qo(h,l){if(1&h&&(i.TgZ(0,"table",45),i.ynx(1,46),i.YNc(2,Ih,2,0,"th",47)(3,Oh,2,1,"td",48),i.BQk(),i.ynx(4,49),i.YNc(5,Zr,2,0,"th",47)(6,mp,3,2,"td",48),i.BQk(),i.ynx(7,50),i.YNc(8,pp,2,0,"th",47)(9,gp,2,1,"td",51),i.BQk(),i.YNc(10,_p,1,0,"tr",52)(11,bp,1,0,"tr",53),i.qZA()),2&h){const o=i.oxw(2);i.Q6J("dataSource",o.selectedFunction.args),i.xp6(10),i.Q6J("matHeaderRowDef",o.argumentsTableColumns),i.xp6(1),i.Q6J("matRowDefColumns",o.argumentsTableColumns)}}function Rs(h,l){1&h&&(i.TgZ(0,"span",59),i._uU(1,"Dart"),i.qZA())}function vp(h,l){1&h&&(i.TgZ(0,"span",59),i._uU(1,"Swift"),i.qZA())}const yp=()=>({theme:"vs-dark",language:"javascript"}),wp=()=>({theme:"vs-dark",language:"kotlin"}),Cp=()=>({theme:"vs-dark",language:"dart"}),xp=()=>({theme:"vs-dark",language:"swift"});function Dp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"article")(1,"header")(2,"h1",9)(3,"span",10)(4,"span",11),i._uU(5,"fn"),i.qZA(),i._uU(6,"\xa0"),i.TgZ(7,"span",12),i._uU(8),i.qZA(),i._uU(9,"("),i.YNc(10,kd,11,6,"span",13),i._uU(11,")"),i.TgZ(12,"span",14),i._uU(13,":"),i.qZA(),i._uU(14,"\xa0"),i.TgZ(15,"u",15),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.showDocumentation(u.selectedFunction.returns.rawType))}),i._uU(16),i.qZA()(),i.YNc(17,ks,1,0,"ng-template",null,16,i.W1O)(19,up,1,0,"ng-template",null,17,i.W1O),i._UZ(21,"s"),i.TgZ(22,"button",18),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.addSimpleCallTab())}),i.TgZ(23,"mat-icon"),i._uU(24,"play_arrow"),i.qZA(),i._uU(25,"\xa0EXECUTAR "),i.qZA()()(),i.YNc(26,fp,3,1,"section",19),i.TgZ(27,"section",9)(28,"h2",20),i._uU(29,"Descri\xe7\xe3o"),i.qZA(),i.TgZ(30,"div",21),i.YNc(31,jc,2,1,"p",22)(32,Rd,2,0,"p",23),i.qZA(),i.TgZ(33,"h2",24),i._uU(34,"Par\xe2metros"),i.qZA(),i.TgZ(35,"div",21),i.YNc(36,Ah,2,0,"p",23),i.TgZ(37,"div",25),i.YNc(38,qo,12,3,"table",26),i.qZA()(),i.TgZ(39,"h2",27),i._uU(40,"Retorno"),i.qZA(),i.TgZ(41,"div")(42,"p",28)(43,"u",29),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.showDocumentation(u.selectedFunction.returns.rawType))}),i._uU(44),i.qZA()()(),i.TgZ(45,"h2",30),i._uU(46,"Exemplo de Requisi\xe7\xe3o"),i.qZA(),i.TgZ(47,"mat-tab-group",31)(48,"mat-tab",32),i._UZ(49,"ngx-monaco-editor",33),i.qZA(),i.TgZ(50,"mat-tab",34),i._UZ(51,"ngx-monaco-editor",33),i.qZA(),i.TgZ(52,"mat-tab",35),i.YNc(53,Rs,2,0,"ng-template",36),i._UZ(54,"ngx-monaco-editor",33),i.qZA(),i.TgZ(55,"mat-tab",35),i.YNc(56,vp,2,0,"ng-template",36),i._UZ(57,"ngx-monaco-editor",33),i.qZA()()()()}if(2&h){const o=i.oxw();i.xp6(8),i.Oqu(o.selectedFunction.name),i.xp6(2),i.Q6J("ngForOf",o.selectedFunction.args),i.xp6(5),i.Q6J("matTooltip",o.getTooltip(o.selectedFunction.returns.rawType)),i.xp6(1),i.Oqu(o.selectedFunction.returns.type),i.xp6(10),i.Q6J("ngIf",o.selectedFunction.labels.length>0),i.xp6(4),i.Q6J("ngSwitch",!!o.selectedFunction.description),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("ngSwitch",o.selectedFunction.args.length),i.xp6(1),i.Q6J("ngSwitchCase",0),i.xp6(7),i.Q6J("matTooltip",o.getTooltip(o.selectedFunction.returns.rawType)),i.xp6(1),i.Oqu(o.selectedFunction.returns.type),i.xp6(5),i.Q6J("options",i.DdM(20,yp))("ngModel",o.selectedFunction.examples.typeScript),i.xp6(2),i.Q6J("options",i.DdM(21,wp))("ngModel",o.selectedFunction.examples.kotlin),i.xp6(3),i.Q6J("options",i.DdM(22,Cp))("ngModel",o.selectedFunction.examples.dart),i.xp6(3),i.Q6J("options",i.DdM(23,xp))("ngModel",o.selectedFunction.examples.swift)}}const Ph=()=>({standalone:!0});let Tp=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.dialog=c,this.responsive=u,this.isBelowMd=!1,this.runFunction=new i.vpe,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(o=>{o&&(this.selectedFunction=void 0,this.fnTable=o.astRoot.operations.sort((c,u)=>c.name.localeCompare(u.name)).map(c=>{const u=o.astJson.annotations[`fn.${c.name}`],p=this.sdkgen.buildJsonObject(c.args);return u?.find(T=>"hidden"===T.type)?null:{name:c.name,description:u?.find(T=>"description"===T.type)?.value,args:c.args.map(({name:T,type:Z})=>{const fe=[...o.astJson.annotations[`type.${Z.name}.${T}`]??[],...o.astJson.annotations[`fn.${c.name}.${T}`]??[]];return{name:T,description:fe.find(ye=>"description"===ye.type)?.value,type:Z.name,rawType:Z}}),argsStr:c.args.map(T=>`${T.name}: ${T.type.name}`).join(", "),argsFields:c.args,returns:{type:c.returnType.name,rawType:c.returnType},labels:u?.filter(T=>["rest","throws"].includes(T.type)).map(T=>"rest"===T.type?{name:"REST",type:`${T.value.method} ${T.value.path}`}:"throws"===T.type?{name:"THROWS",type:T.value,dataType:o.astRoot.errors.find(Z=>Z.name===T.value)?.dataType}:{name:"?",type:"?"})??[],throws:u?.find(T=>"throws"===T.type)?.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(c.name,p),kotlin:this.sdkgen.getKotlinCode(c.name,c.args),dart:this.sdkgen.getDartCode(c.name,p),swift:this.sdkgen.getSwiftCode(c.name,p)}}}).filter(c=>!!c))})}ngOnDestroy(){this.state$?.unsubscribe(),this.responsive$?.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(o=>{this.isBelowMd=o.matches})}addSimpleCallTab(){this.runFunction.emit(this.selectedFunction?.name)}getTooltip(o){return Kr(o).shortDescription}showDocumentation(o){this.dialog.open(ap,{position:{right:"0",top:"0",bottom:"0"},data:{type:o},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Oa.G),i.Y36(Sn),i.Y36(cp))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],["mat-ripple","",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-ripple","",3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],["role","list"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(c,u){1&c&&(i.TgZ(0,"as-split",0)(1,"as-split-area",1)(2,"aside")(3,"nav")(4,"form")(5,"input",2),i.NdJ("ngModelChange",function(T){return u.searchText=T}),i.qZA()(),i.TgZ(6,"ul"),i.YNc(7,Sh,4,5,"li",3),i.ALo(8,"appFilter"),i.qZA()()()(),i.TgZ(9,"as-split-area"),i.YNc(10,Dp,58,24,"article",4),i.qZA()()),2&c&&(i.Q6J("direction",u.isBelowMd?"vertical":"horizontal"),i.xp6(1),i.Q6J("size",u.isBelowMd?130:350),i.xp6(4),i.Q6J("ngModel",u.searchText)("ngModelOptions",i.DdM(9,Ph)),i.xp6(2),i.Q6J("ngForOf",i.xi3(8,6,u.fnTable,u.searchText)),i.xp6(3),i.Q6J("ngIf",u.selectedFunction))},dependencies:[E.mk,E.sg,E.O5,E.RF,E.n9,E.ED,q._Y,q.Fj,q.JJ,q.JL,q.On,q.F,Oc.T2,xd.Mq,xd.zE,v.lW,di,qe,pi.Hw,A.wG,Vl,ms,ri,ca,aa,xn,la,ps,ac,$l,Io.uD,Io.uX,Io.SP,Br,lp],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer;-webkit-user-select:none;user-select:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#fff;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}"]})}return h})();function Ep(h,l){1&h&&(i.ynx(0),i._uU(1,"Editor Avan\xe7ado"),i.BQk())}function Mp(h,l){if(1&h&&(i.ynx(0),i.TgZ(1,"span",21),i._uU(2),i.qZA(),i.BQk()),2&h){const o=i.oxw(2).$implicit;i.xp6(2),i.hij("\u25b6\xa0",o.function,"")}}function Sp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"span",18),i.YNc(1,Ep,2,0,"ng-container",19)(2,Mp,3,1,"ng-container",19),i.qZA(),i.TgZ(3,"button",20),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(2);return i.KtG(p.closeTab(u))}),i.TgZ(4,"mat-icon"),i._uU(5,"close"),i.qZA()()}if(2&h){const o=i.oxw().$implicit;i.Q6J("ngSwitch",o.type),i.xp6(1),i.Q6J("ngSwitchCase","advanced"),i.xp6(1),i.Q6J("ngSwitchCase","simple")}}function Uc(h,l){1&h&&(i.ynx(0),i._UZ(1,"app-tab-editor"),i.BQk())}function Jo(h,l){if(1&h&&(i.ynx(0),i._UZ(1,"app-simple-call",22),i.BQk()),2&h){const o=i.oxw().$implicit;i.xp6(1),i.Q6J("fn",o.function)}}function Na(h,l){if(1&h&&(i.TgZ(0,"mat-tab"),i.YNc(1,Sp,6,3,"ng-template",16),i.ynx(2,18),i.YNc(3,Uc,2,0,"ng-container",19)(4,Jo,2,1,"ng-container",19),i.BQk(),i.qZA()),2&h){const o=l.$implicit;i.xp6(2),i.Q6J("ngSwitch",o.type),i.xp6(1),i.Q6J("ngSwitchCase","advanced"),i.xp6(1),i.Q6J("ngSwitchCase","simple")}}function kh(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(o);const u=i.oxw(2);return i.KtG(u.addAdvancedTab())}),i.TgZ(1,"mat-icon"),i._uU(2,"add_circle"),i.qZA()()}}function Rh(h,l){if(1&h&&(i.TgZ(0,"button",24)(1,"mat-icon"),i._uU(2,"download"),i.qZA()()),2&h){i.oxw(2);const o=i.MAs(5);i.Q6J("matMenuTriggerFor",o)}}function Fh(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"mat-tab-group",11),i.NdJ("selectedIndexChange",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p.selected.setValue(u))}),i.TgZ(1,"mat-tab",12)(2,"app-tab-home",13),i.NdJ("runFunction",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p.addSimpleTab(u))}),i.qZA()(),i.YNc(3,Na,5,3,"mat-tab",14),i.TgZ(4,"mat-tab",15),i.YNc(5,kh,3,0,"ng-template",16),i.qZA(),i.TgZ(6,"mat-tab",17),i.YNc(7,Rh,3,1,"ng-template",16),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("selectedIndex",o.selected.value),i.xp6(3),i.Q6J("ngForOf",o.tabs)}}let j_=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.domSanitizer=c,this.matIconRegistry=u,this.selected=new q.NI(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const p of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(p,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${p}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(o=>{this.state=o??void 0})}ngOnDestroy(){this.state$?.unsubscribe()}addSimpleTab(o){this.tabs.push({id:this.tabIndex++,function:o,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(o){this.tabs.splice(this.tabs.indexOf(o),1),this.selected.setValue(0)}downloadTarget(o){if(!this.state)return;let c,u;switch(o){case"typescript_nodeserver":c=(0,Fc.generateNodeServerSource)(this.state.astRoot),u="node-server.ts";break;case"typescript_nodeclient":c=(0,Fc.generateNodeClientSource)(this.state.astRoot),u="node-client.ts";break;case"typescript_web":c=(0,Fc.generateBrowserClientSource)(this.state.astRoot),u="web-client.ts";break;case"typescript_interfaces":c=(0,Fc.generateTypescriptInterfaces)(this.state.astRoot),u="interfaces.ts";break;case"flutter":c=(0,kc.generateDartClientSource)(this.state.astRoot),u="flutter-client.dart";break;case"csharp_server":c=(0,Ps.generateCSharpServerSource)(this.state.astRoot),u="csharp-server.cs";break;case"fsharp_server":c=(0,gh.generateFSharpServerSource)(this.state.astRoot),u="fsharp-server.fs";break;case"kotlin_android":c=(0,Rc.generateAndroidClientSource)(this.state.astRoot,!0),u="android-client.kt";break;case"kotlin_android_without_callbacks":c=(0,Rc.generateAndroidClientSource)(this.state.astRoot,!1),u="android-client-no-callbacks.kt";break;case"swift_ios":c=(0,Ia.generateSwiftClientSource)(this.state.astRoot,!1),u="ios-client.swift";break;case"rxswift_ios":c=(0,Ia.generateSwiftClientSource)(this.state.astRoot,!0),u="ios-client-rx.swift"}(0,tp.saveAs)(new Blob([c],{type:"application/octet-stream"}),u)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Oa.G),i.Y36(a.H7),i.Y36(pi.jv))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled","","labelClass","action-button"],["mat-tab-label",""],["disabled","","labelClass","right action-button"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(c,u){1&c&&(i._UZ(0,"ngx-monaco-editor",0)(1,"app-tab-nav"),i.YNc(2,Fh,8,2,"mat-tab-group",1),i.ALo(3,"async"),i.TgZ(4,"mat-menu",null,2),i._UZ(6,"div",3),i.TgZ(7,"button",4),i._uU(8,"Cliente"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_nodeclient")}),i._UZ(10,"mat-icon",6),i._uU(11,"Node.js"),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_web")}),i._UZ(13,"mat-icon",6),i._uU(14,"Web"),i.qZA(),i.TgZ(15,"button",5),i.NdJ("click",function(){return u.downloadTarget("flutter")}),i._UZ(16,"mat-icon",7),i._uU(17,"Flutter"),i.qZA(),i.TgZ(18,"button",5),i.NdJ("click",function(){return u.downloadTarget("kotlin_android")}),i._UZ(19,"mat-icon",8),i._uU(20,"Android"),i.qZA(),i.TgZ(21,"button",5),i.NdJ("click",function(){return u.downloadTarget("kotlin_android_without_callbacks")}),i._UZ(22,"mat-icon",8),i._uU(23,"Android (sem callbacks)"),i.qZA(),i.TgZ(24,"button",5),i.NdJ("click",function(){return u.downloadTarget("swift_ios")}),i._UZ(25,"mat-icon",9),i._uU(26,"iOS"),i.qZA(),i.TgZ(27,"button",5),i.NdJ("click",function(){return u.downloadTarget("rxswift_ios")}),i._UZ(28,"mat-icon",9),i._uU(29,"iOS (Rx)"),i.qZA(),i.TgZ(30,"button",4),i._uU(31,"Servidor"),i.qZA(),i.TgZ(32,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_nodeserver")}),i._UZ(33,"mat-icon",6),i._uU(34,"Node.js"),i.qZA(),i.TgZ(35,"button",5),i.NdJ("click",function(){return u.downloadTarget("csharp_server")}),i._UZ(36,"mat-icon",10),i._uU(37,"C#"),i.qZA(),i.TgZ(38,"button",5),i.NdJ("click",function(){return u.downloadTarget("fsharp_server")}),i._UZ(39,"mat-icon",10),i._uU(40,"F#"),i.qZA(),i.TgZ(41,"button",4),i._uU(42,"Outros"),i.qZA(),i.TgZ(43,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_interfaces")}),i._UZ(44,"mat-icon",6),i._uU(45,"Interfaces"),i.qZA()()),2&c&&(i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,u.sdkgen.state$)))},dependencies:[E.sg,E.O5,E.RF,E.n9,Oc.T2,v.RK,pi.Hw,na,Nr,je,Io.uD,Io.uX,Io.SP,Br,np.Z,ip,op.I,Tp,E.Ov],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} app-root mat-tab-group#main-tabs>mat-tab-header{border-bottom:1px solid rgba(255,255,255,.1215686275)} app-root mat-tab-group#main-tabs .mat-mdc-tab{--mat-tab-header-active-label-text-color: #fff;--mat-tab-header-active-focus-label-text-color: #fff;--mat-tab-header-active-hover-label-text-color: #fff;text-decoration:none;transition:all .2s ease;min-width:0;text-transform:uppercase;-webkit-user-select:none;user-select:none;letter-spacing:normal} app-root mat-tab-group#main-tabs .mat-mdc-tab.right{margin-left:auto} app-root mat-tab-group#main-tabs .mat-mdc-tab .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:hover .mdc-tab__ripple:before{opacity:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(#mat-tab-label-0-0){padding-right:16px} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button{padding:0;padding-right:0!important;opacity:1;pointer-events:auto} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mdc-tab__content, app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mat-mdc-tab-ripple, app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mdc-tab__ripple:before{pointer-events:all} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button button{border-radius:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) button{border-radius:0;display:inline-block;margin-left:10px;padding:0;width:30px;height:30px;line-height:30px} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) button .mat-icon{width:20px;height:20px;font-size:20px;line-height:20px} app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-icon svg, app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-icon img, app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-add-icon{display:flex;align-items:center;justify-content:center;width:1rem;margin-right:.5rem} app-root mat-tab-group#main-tabs .mat-mdc-tab-body-wrapper{flex-grow:1} app-root mat-tab-group#main-tabs .mat-mdc-tab-body-wrapper mat-tab-body mat-tab-body{flex-grow:1;overflow:hidden} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})}return h})(),U_=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h,bootstrap:[j_]});static#n=this.\u0275inj=i.cJS({providers:[{provide:Oc.F_,useValue:"assets/vs"}],imports:[a.b2,q.u5,q.UX,Oc.nm,ch,$m.s,Jm.forRoot(),xd.fX,te.JF,v.ot,en,po,pi.Ps,tt,A.si,cc,Io.Nh,Ul]})}return h})();(0,i.G48)(),a.q6().bootstrapModule(U_).catch(h=>console.error(h))},1505:function(Ee,y,b){var a;!function(i){"use strict";var x,te=1e9,q={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},v=!0,C="[DecimalError] ",E=C+"Invalid argument: ",A=C+"Exponent out of range: ",R=Math.floor,S=Math.pow,P=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,w=1e7,U=7,X=9007199254740991,le=R(X/U),Q={};function ce(ae,oe){var G,V,F,j,$,K,de,ge,Fe=ae.constructor,Le=Fe.precision;if(!ae.s||!oe.s)return oe.s||(oe=new Fe(ae)),v?He(oe,Le):oe;if(ge=oe.d,$=ae.e,F=oe.e,de=(de=ae.d).slice(),j=$-F){for(j<0?(V=de,j=-j,K=ge.length):(V=ge,F=$,K=de.length),j>(K=($=Math.ceil(Le/U))>K?$+1:K+1)&&(j=K,V.length=1),V.reverse();j--;)V.push(0);V.reverse()}for((K=de.length)-(j=ge.length)<0&&(j=K,V=ge,ge=de,de=V),G=0;j;)G=(de[--j]=de[j]+ge[j]+G)/w|0,de[j]%=w;for(G&&(de.unshift(G),++F),K=de.length;0==de[--K];)de.pop();return oe.d=de,oe.e=F,v?He(oe,Le):oe}function Be(ae,oe,G){if(ae!==~~ae||ae<oe||ae>G)throw Error(E+ae)}function ze(ae){var oe,G,V,F=ae.length-1,j="",$=ae[0];if(F>0){for(j+=$,oe=1;oe<F;oe++)(G=U-(V=ae[oe]+"").length)&&(j+=ke(G)),j+=V;(G=U-(V=($=ae[oe])+"").length)&&(j+=ke(G))}else if(0===$)return"0";for(;$%10==0;)$/=10;return j+$}Q.absoluteValue=Q.abs=function(){var ae=new this.constructor(this);return ae.s&&(ae.s=1),ae},Q.comparedTo=Q.cmp=function(ae){var oe,G,V,F,j=this;if(ae=new j.constructor(ae),j.s!==ae.s)return j.s||-ae.s;if(j.e!==ae.e)return j.e>ae.e^j.s<0?1:-1;for(oe=0,G=(V=j.d.length)<(F=ae.d.length)?V:F;oe<G;++oe)if(j.d[oe]!==ae.d[oe])return j.d[oe]>ae.d[oe]^j.s<0?1:-1;return V===F?0:V>F^j.s<0?1:-1},Q.decimalPlaces=Q.dp=function(){var oe=this.d.length-1,G=(oe-this.e)*U;if(oe=this.d[oe])for(;oe%10==0;oe/=10)G--;return G<0?0:G},Q.dividedBy=Q.div=function(ae){return Ve(this,new this.constructor(ae))},Q.dividedToIntegerBy=Q.idiv=function(ae){var G=this.constructor;return He(Ve(this,new G(ae),0,1),G.precision)},Q.equals=Q.eq=function(ae){return!this.cmp(ae)},Q.exponent=function(){return Oe(this)},Q.greaterThan=Q.gt=function(ae){return this.cmp(ae)>0},Q.greaterThanOrEqualTo=Q.gte=function(ae){return this.cmp(ae)>=0},Q.isInteger=Q.isint=function(){return this.e>this.d.length-2},Q.isNegative=Q.isneg=function(){return this.s<0},Q.isPositive=Q.ispos=function(){return this.s>0},Q.isZero=function(){return 0===this.s},Q.lessThan=Q.lt=function(ae){return this.cmp(ae)<0},Q.lessThanOrEqualTo=Q.lte=function(ae){return this.cmp(ae)<1},Q.logarithm=Q.log=function(ae){var oe,G=this,V=G.constructor,F=V.precision,j=F+5;if(void 0===ae)ae=new V(10);else if((ae=new V(ae)).s<1||ae.eq(x))throw Error(C+"NaN");if(G.s<1)throw Error(C+(G.s?"NaN":"-Infinity"));return G.eq(x)?new V(0):(v=!1,oe=Ve(Ce(G,j),Ce(ae,j),j),v=!0,He(oe,F))},Q.minus=Q.sub=function(ae){return ae=new this.constructor(ae),this.s==ae.s?dt(this,ae):ce(this,(ae.s=-ae.s,ae))},Q.modulo=Q.mod=function(ae){var oe,G=this,V=G.constructor,F=V.precision;if(!(ae=new V(ae)).s)throw Error(C+"NaN");return G.s?(v=!1,oe=Ve(G,ae,0,1).times(ae),v=!0,G.minus(oe)):He(new V(G),F)},Q.naturalExponential=Q.exp=function(){return Se(this)},Q.naturalLogarithm=Q.ln=function(){return Ce(this)},Q.negated=Q.neg=function(){var ae=new this.constructor(this);return ae.s=-ae.s||0,ae},Q.plus=Q.add=function(ae){return ae=new this.constructor(ae),this.s==ae.s?ce(this,ae):dt(this,(ae.s=-ae.s,ae))},Q.precision=Q.sd=function(ae){var oe,G,V,F=this;if(void 0!==ae&&ae!==!!ae&&1!==ae&&0!==ae)throw Error(E+ae);if(oe=Oe(F)+1,G=(V=F.d.length-1)*U+1,V=F.d[V]){for(;V%10==0;V/=10)G--;for(V=F.d[0];V>=10;V/=10)G++}return ae&&oe>G?oe:G},Q.squareRoot=Q.sqrt=function(){var ae,oe,G,V,F,j,$,K=this,de=K.constructor;if(K.s<1){if(!K.s)return new de(0);throw Error(C+"NaN")}for(ae=Oe(K),v=!1,0==(F=Math.sqrt(+K))||F==1/0?(((oe=ze(K.d)).length+ae)%2==0&&(oe+="0"),F=Math.sqrt(oe),ae=R((ae+1)/2)-(ae<0||ae%2),V=new de(oe=F==1/0?"5e"+ae:(oe=F.toExponential()).slice(0,oe.indexOf("e")+1)+ae)):V=new de(F.toString()),F=$=(G=de.precision)+3;;)if(V=(j=V).plus(Ve(K,j,$+2)).times(.5),ze(j.d).slice(0,$)===(oe=ze(V.d)).slice(0,$)){if(oe=oe.slice($-3,$+1),F==$&&"4999"==oe){if(He(j,G+1,0),j.times(j).eq(K)){V=j;break}}else if("9999"!=oe)break;$+=4}return v=!0,He(V,G)},Q.times=Q.mul=function(ae){var oe,G,V,F,j,$,K,de,ge,Fe=this,Le=Fe.constructor,Xe=Fe.d,Ke=(ae=new Le(ae)).d;if(!Fe.s||!ae.s)return new Le(0);for(ae.s*=Fe.s,G=Fe.e+ae.e,(de=Xe.length)<(ge=Ke.length)&&(j=Xe,Xe=Ke,Ke=j,$=de,de=ge,ge=$),j=[],V=$=de+ge;V--;)j.push(0);for(V=ge;--V>=0;){for(oe=0,F=de+V;F>V;)K=j[F]+Ke[V]*Xe[F-V-1]+oe,j[F--]=K%w|0,oe=K/w|0;j[F]=(j[F]+oe)%w|0}for(;!j[--$];)j.pop();return oe?++G:j.shift(),ae.d=j,ae.e=G,v?He(ae,Le.precision):ae},Q.toDecimalPlaces=Q.todp=function(ae,oe){var G=this,V=G.constructor;return G=new V(G),void 0===ae?G:(Be(ae,0,te),void 0===oe?oe=V.rounding:Be(oe,0,8),He(G,ae+Oe(G)+1,oe))},Q.toExponential=function(ae,oe){var G,V=this,F=V.constructor;return void 0===ae?G=xt(V,!0):(Be(ae,0,te),void 0===oe?oe=F.rounding:Be(oe,0,8),G=xt(V=He(new F(V),ae+1,oe),!0,ae+1)),G},Q.toFixed=function(ae,oe){var G,V,F=this,j=F.constructor;return void 0===ae?xt(F):(Be(ae,0,te),void 0===oe?oe=j.rounding:Be(oe,0,8),G=xt((V=He(new j(F),ae+Oe(F)+1,oe)).abs(),!1,ae+Oe(V)+1),F.isneg()&&!F.isZero()?"-"+G:G)},Q.toInteger=Q.toint=function(){var oe=this.constructor;return He(new oe(this),Oe(this)+1,oe.rounding)},Q.toNumber=function(){return+this},Q.toPower=Q.pow=function(ae){var oe,G,V,F,j,K=this,de=K.constructor,Fe=+(ae=new de(ae));if(!ae.s)return new de(x);if(!(K=new de(K)).s){if(ae.s<1)throw Error(C+"Infinity");return K}if(K.eq(x))return K;if(V=de.precision,ae.eq(x))return He(K,V);if(j=K.s,(oe=ae.e)>=(G=ae.d.length-1)){if((G=Fe<0?-Fe:Fe)<=X){for(F=new de(x),oe=Math.ceil(V/U+4),v=!1;G%2&&zt((F=F.times(K)).d,oe),0!==(G=R(G/2));)zt((K=K.times(K)).d,oe);return v=!0,ae.s<0?new de(x).div(F):He(F,V)}}else if(j<0)throw Error(C+"NaN");return j=j<0&&1&ae.d[Math.max(oe,G)]?-1:1,K.s=1,v=!1,F=ae.times(Ce(K,V+12)),v=!0,(F=Se(F)).s=j,F},Q.toPrecision=function(ae,oe){var G,V,F=this,j=F.constructor;return void 0===ae?V=xt(F,(G=Oe(F))<=j.toExpNeg||G>=j.toExpPos):(Be(ae,1,te),void 0===oe?oe=j.rounding:Be(oe,0,8),V=xt(F=He(new j(F),ae,oe),ae<=(G=Oe(F))||G<=j.toExpNeg,ae)),V},Q.toSignificantDigits=Q.tosd=function(ae,oe){var V=this.constructor;return void 0===ae?(ae=V.precision,oe=V.rounding):(Be(ae,1,te),void 0===oe?oe=V.rounding:Be(oe,0,8)),He(new V(this),ae,oe)},Q.toString=Q.valueOf=Q.val=Q.toJSON=function(){var oe=Oe(this),G=this.constructor;return xt(this,oe<=G.toExpNeg||oe>=G.toExpPos)};var Ve=function(){function ae(V,F){var j,$=0,K=V.length;for(V=V.slice();K--;)V[K]=(j=V[K]*F+$)%w|0,$=j/w|0;return $&&V.unshift($),V}function oe(V,F,j,$){var K,de;if(j!=$)de=j>$?1:-1;else for(K=de=0;K<j;K++)if(V[K]!=F[K]){de=V[K]>F[K]?1:-1;break}return de}function G(V,F,j){for(var $=0;j--;)V[j]-=$,V[j]=($=V[j]<F[j]?1:0)*w+V[j]-F[j];for(;!V[0]&&V.length>1;)V.shift()}return function(V,F,j,$){var K,de,ge,Fe,Le,Xe,Ke,mt,Ae,Ge,ne,re,Te,$e,it,bt,gt,Lt,ut=V.constructor,Pt=V.s==F.s?1:-1,wt=V.d,nn=F.d;if(!V.s)return new ut(V);if(!F.s)throw Error(C+"Division by zero");for(de=V.e-F.e,gt=nn.length,it=wt.length,mt=(Ke=new ut(Pt)).d=[],ge=0;nn[ge]==(wt[ge]||0);)++ge;if(nn[ge]>(wt[ge]||0)&&--de,(re=null==j?j=ut.precision:$?j+(Oe(V)-Oe(F))+1:j)<0)return new ut(0);if(re=re/U+2|0,ge=0,1==gt)for(Fe=0,nn=nn[0],re++;(ge<it||Fe)&&re--;ge++)mt[ge]=(Te=Fe*w+(wt[ge]||0))/nn|0,Fe=Te%nn|0;else{for((Fe=w/(nn[0]+1)|0)>1&&(nn=ae(nn,Fe),wt=ae(wt,Fe),gt=nn.length,it=wt.length),$e=gt,Ge=(Ae=wt.slice(0,gt)).length;Ge<gt;)Ae[Ge++]=0;(Lt=nn.slice()).unshift(0),bt=nn[0],nn[1]>=w/2&&++bt;do{Fe=0,(K=oe(nn,Ae,gt,Ge))<0?(ne=Ae[0],gt!=Ge&&(ne=ne*w+(Ae[1]||0)),(Fe=ne/bt|0)>1?(Fe>=w&&(Fe=w-1),1==(K=oe(Le=ae(nn,Fe),Ae,Xe=Le.length,Ge=Ae.length))&&(Fe--,G(Le,gt<Xe?Lt:nn,Xe))):(0==Fe&&(K=Fe=1),Le=nn.slice()),(Xe=Le.length)<Ge&&Le.unshift(0),G(Ae,Le,Ge),-1==K&&(K=oe(nn,Ae,gt,Ge=Ae.length))<1&&(Fe++,G(Ae,gt<Ge?Lt:nn,Ge)),Ge=Ae.length):0===K&&(Fe++,Ae=[0]),mt[ge++]=Fe,K&&Ae[0]?Ae[Ge++]=wt[$e]||0:(Ae=[wt[$e]],Ge=1)}while(($e++<it||void 0!==Ae[0])&&re--)}return mt[0]||mt.shift(),Ke.e=de,He(Ke,$?j+Oe(Ke)+1:j)}}();function Se(ae,oe){var G,F,j,$,K,de=0,ge=0,Fe=ae.constructor,Le=Fe.precision;if(Oe(ae)>16)throw Error(A+Oe(ae));if(!ae.s)return new Fe(x);for(null==oe?(v=!1,K=Le):K=oe,$=new Fe(.03125);ae.abs().gte(.1);)ae=ae.times($),ge+=5;for(K+=Math.log(S(2,ge))/Math.LN10*2+5|0,G=F=j=new Fe(x),Fe.precision=K;;){if(F=He(F.times(ae),K),G=G.times(++de),ze(($=j.plus(Ve(F,G,K))).d).slice(0,K)===ze(j.d).slice(0,K)){for(;ge--;)j=He(j.times(j),K);return Fe.precision=Le,null==oe?(v=!0,He(j,Le)):j}j=$}}function Oe(ae){for(var oe=ae.e*U,G=ae.d[0];G>=10;G/=10)oe++;return oe}function Me(ae,oe,G){if(oe>ae.LN10.sd())throw v=!0,G&&(ae.precision=G),Error(C+"LN10 precision limit exceeded");return He(new ae(ae.LN10),oe)}function ke(ae){for(var oe="";ae--;)oe+="0";return oe}function Ce(ae,oe){var G,V,F,j,$,K,de,ge,Fe,Le=1,Ke=ae,mt=Ke.d,Ae=Ke.constructor,Ge=Ae.precision;if(Ke.s<1)throw Error(C+(Ke.s?"NaN":"-Infinity"));if(Ke.eq(x))return new Ae(0);if(null==oe?(v=!1,ge=Ge):ge=oe,Ke.eq(10))return null==oe&&(v=!0),Me(Ae,ge);if(Ae.precision=ge+=10,V=(G=ze(mt)).charAt(0),j=Oe(Ke),!(Math.abs(j)<15e14))return de=Me(Ae,ge+2,Ge).times(j+""),Ke=Ce(new Ae(V+"."+G.slice(1)),ge-10).plus(de),Ae.precision=Ge,null==oe?(v=!0,He(Ke,Ge)):Ke;for(;V<7&&1!=V||1==V&&G.charAt(1)>3;)V=(G=ze((Ke=Ke.times(ae)).d)).charAt(0),Le++;for(j=Oe(Ke),V>1?(Ke=new Ae("0."+G),j++):Ke=new Ae(V+"."+G.slice(1)),K=$=Ke=Ve(Ke.minus(x),Ke.plus(x),ge),Fe=He(Ke.times(Ke),ge),F=3;;){if($=He($.times(Fe),ge),ze((de=K.plus(Ve($,new Ae(F),ge))).d).slice(0,ge)===ze(K.d).slice(0,ge))return K=K.times(2),0!==j&&(K=K.plus(Me(Ae,ge+2,Ge).times(j+""))),K=Ve(K,new Ae(Le),ge),Ae.precision=Ge,null==oe?(v=!0,He(K,Ge)):K;K=de,F+=2}}function De(ae,oe){var G,V,F;for((G=oe.indexOf("."))>-1&&(oe=oe.replace(".","")),(V=oe.search(/e/i))>0?(G<0&&(G=V),G+=+oe.slice(V+1),oe=oe.substring(0,V)):G<0&&(G=oe.length),V=0;48===oe.charCodeAt(V);)++V;for(F=oe.length;48===oe.charCodeAt(F-1);)--F;if(oe=oe.slice(V,F)){if(F-=V,ae.e=R((G=G-V-1)/U),ae.d=[],V=(G+1)%U,G<0&&(V+=U),V<F){for(V&&ae.d.push(+oe.slice(0,V)),F-=U;V<F;)ae.d.push(+oe.slice(V,V+=U));oe=oe.slice(V),V=U-oe.length}else V-=F;for(;V--;)oe+="0";if(ae.d.push(+oe),v&&(ae.e>le||ae.e<-le))throw Error(A+G)}else ae.s=0,ae.e=0,ae.d=[0];return ae}function He(ae,oe,G){var V,F,j,$,K,de,ge,Fe,Le=ae.d;for($=1,j=Le[0];j>=10;j/=10)$++;if((V=oe-$)<0)V+=U,F=oe,ge=Le[Fe=0];else{if((Fe=Math.ceil((V+1)/U))>=(j=Le.length))return ae;for(ge=j=Le[Fe],$=1;j>=10;j/=10)$++;F=(V%=U)-U+$}if(void 0!==G&&(K=ge/(j=S(10,$-F-1))%10|0,de=oe<0||void 0!==Le[Fe+1]||ge%j,de=G<4?(K||de)&&(0==G||G==(ae.s<0?3:2)):K>5||5==K&&(4==G||de||6==G&&(V>0?F>0?ge/S(10,$-F):0:Le[Fe-1])%10&1||G==(ae.s<0?8:7))),oe<1||!Le[0])return de?(j=Oe(ae),Le.length=1,Le[0]=S(10,(U-(oe=oe-j-1)%U)%U),ae.e=R(-oe/U)||0):(Le.length=1,Le[0]=ae.e=ae.s=0),ae;if(0==V?(Le.length=Fe,j=1,Fe--):(Le.length=Fe+1,j=S(10,U-V),Le[Fe]=F>0?(ge/S(10,$-F)%S(10,F)|0)*j:0),de)for(;;){if(0==Fe){(Le[0]+=j)==w&&(Le[0]=1,++ae.e);break}if(Le[Fe]+=j,Le[Fe]!=w)break;Le[Fe--]=0,j=1}for(V=Le.length;0===Le[--V];)Le.pop();if(v&&(ae.e>le||ae.e<-le))throw Error(A+Oe(ae));return ae}function dt(ae,oe){var G,V,F,j,$,K,de,ge,Fe,Le,Xe=ae.constructor,Ke=Xe.precision;if(!ae.s||!oe.s)return oe.s?oe.s=-oe.s:oe=new Xe(ae),v?He(oe,Ke):oe;if(Le=oe.d,V=oe.e,ge=ae.e,de=(de=ae.d).slice(),$=ge-V){for((Fe=$<0)?(G=de,$=-$,K=Le.length):(G=Le,V=ge,K=de.length),$>(F=Math.max(Math.ceil(Ke/U),K)+2)&&($=F,G.length=1),G.reverse(),F=$;F--;)G.push(0);G.reverse()}else{for((Fe=(F=de.length)<(K=Le.length))&&(K=F),F=0;F<K;F++)if(de[F]!=Le[F]){Fe=de[F]<Le[F];break}$=0}for(Fe&&(G=de,de=Le,Le=G,oe.s=-oe.s),F=Le.length-(K=de.length);F>0;--F)de[K++]=0;for(F=Le.length;F>$;){if(de[--F]<Le[F]){for(j=F;j&&0===de[--j];)de[j]=w-1;--de[j],de[F]+=w}de[F]-=Le[F]}for(;0===de[--K];)de.pop();for(;0===de[0];de.shift())--V;return de[0]?(oe.d=de,oe.e=V,v?He(oe,Ke):oe):new Xe(0)}function xt(ae,oe,G){var V,F=Oe(ae),j=ze(ae.d),$=j.length;return oe?(G&&(V=G-$)>0?j=j.charAt(0)+"."+j.slice(1)+ke(V):$>1&&(j=j.charAt(0)+"."+j.slice(1)),j=j+(F<0?"e":"e+")+F):F<0?(j="0."+ke(-F-1)+j,G&&(V=G-$)>0&&(j+=ke(V))):F>=$?(j+=ke(F+1-$),G&&(V=G-F-1)>0&&(j=j+"."+ke(V))):((V=F+1)<$&&(j=j.slice(0,V)+"."+j.slice(V)),G&&(V=G-$)>0&&(F+1===$&&(j+="."),j+=ke(V))),ae.s<0?"-"+j:j}function zt(ae,oe){if(ae.length>oe)return ae.length=oe,!0}function Je(ae){if(!ae||"object"!=typeof ae)throw Error(C+"Object expected");var oe,G,V,F=["precision",1,te,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(oe=0;oe<F.length;oe+=3)if(void 0!==(V=ae[G=F[oe]])){if(!(R(V)===V&&V>=F[oe+1]&&V<=F[oe+2]))throw Error(E+G+": "+V);this[G]=V}if(void 0!==(V=ae[G="LN10"])){if(V!=Math.LN10)throw Error(E+G+": "+V);this[G]=new this(V)}return this}(q=function Gt(ae){var oe,G,V;function F(j){var $=this;if(!($ instanceof F))return new F(j);if($.constructor=F,j instanceof F)return $.s=j.s,$.e=j.e,void($.d=(j=j.d)?j.slice():j);if("number"==typeof j){if(0*j!=0)throw Error(E+j);if(j>0)$.s=1;else{if(!(j<0))return $.s=0,$.e=0,void($.d=[0]);j=-j,$.s=-1}return j===~~j&&j<1e7?($.e=0,void($.d=[j])):De($,j.toString())}if("string"!=typeof j)throw Error(E+j);if(45===j.charCodeAt(0)?(j=j.slice(1),$.s=-1):$.s=1,!P.test(j))throw Error(E+j);De($,j)}if(F.prototype=Q,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.clone=Gt,F.config=F.set=Je,void 0===ae&&(ae={}),ae)for(V=["precision","rounding","toExpNeg","toExpPos","LN10"],oe=0;oe<V.length;)ae.hasOwnProperty(G=V[oe++])||(ae[G]=this[G]);return F.config(ae),F}(q)).default=q.Decimal=q,x=new q(1),void 0!==(a=function(){return q}.call(y,b,y,Ee))&&(Ee.exports=a)}()},5046:function(Ee,y){var b,i;void 0!==(i="function"==typeof(b=function(){"use strict";function q(S,P,x){var w=new XMLHttpRequest;w.open("GET",S),w.responseType="blob",w.onload=function(){R(w.response,P,x)},w.onerror=function(){console.error("could not download file")},w.send()}function v(S){var P=new XMLHttpRequest;P.open("HEAD",S,!1);try{P.send()}catch{}return 200<=P.status&&299>=P.status}function C(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var P=document.createEvent("MouseEvents");P.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(P)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,A=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),R=E.saveAs||("object"!=typeof window||window!==E?function(){}:"download"in HTMLAnchorElement.prototype&&!A?function(S,P,x){var w=E.URL||E.webkitURL,U=document.createElement("a");U.download=P=P||S.name||"download",U.rel="noopener","string"==typeof S?(U.href=S,U.origin===location.origin?C(U):v(U.href)?q(S,P,x):C(U,U.target="_blank")):(U.href=w.createObjectURL(S),setTimeout(function(){w.revokeObjectURL(U.href)},4e4),setTimeout(function(){C(U)},0))}:"msSaveOrOpenBlob"in navigator?function(S,P,x){if(P=P||S.name||"download","string"!=typeof S)navigator.msSaveOrOpenBlob(function te(S,P){return typeof P>"u"?P={autoBom:!1}:"object"!=typeof P&&(console.warn("Deprecated: Expected third argument to be a object"),P={autoBom:!P}),P.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\ufeff",S],{type:S.type}):S}(S,x),P);else if(v(S))q(S,P,x);else{var w=document.createElement("a");w.href=S,w.target="_blank",setTimeout(function(){C(w)})}}:function(S,P,x,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof S)return q(S,P,x);var U="application/octet-stream"===S.type,X=/constructor/i.test(E.HTMLElement)||E.safari,le=/CriOS\/[\d]+/.test(navigator.userAgent);if((le||U&&X||A)&&typeof FileReader<"u"){var Q=new FileReader;Q.onloadend=function(){var ze=Q.result;ze=le?ze:ze.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=ze:location=ze,w=null},Q.readAsDataURL(S)}else{var ce=E.URL||E.webkitURL,Be=ce.createObjectURL(S);w?w.location=Be:location.href=Be,w=null,setTimeout(function(){ce.revokeObjectURL(Be)},4e4)}});E.saveAs=R.saveAs=R,Ee.exports=R})?b.apply(y,[]):b)&&(Ee.exports=i)},1625:(Ee,y,b)=>{"use strict";b.d(y,{X:()=>i});var a=b(9453);class i extends a.x{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const v=super._subscribe(q);return!v.closed&&q.next(this._value),v}getValue(){const{hasError:q,thrownError:v,_value:C}=this;if(q)throw v;return this._throwIfClosed(),C}next(q){super.next(this._value=q)}}},7371:(Ee,y,b)=>{"use strict";b.d(y,{y:()=>S});var a=b(9224),i=b(9592),te=b(7878),q=b(2390);var E=b(6786),A=b(3276),R=b(1685);let S=(()=>{class U{constructor(le){le&&(this._subscribe=le)}lift(le){const Q=new U;return Q.source=this,Q.operator=le,Q}subscribe(le,Q,ce){const Be=function w(U){return U&&U instanceof a.Lv||function x(U){return U&&(0,A.m)(U.next)&&(0,A.m)(U.error)&&(0,A.m)(U.complete)}(U)&&(0,i.Nn)(U)}(le)?le:new a.Hp(le,Q,ce);return(0,R.x)(()=>{const{operator:ze,source:Ve}=this;Be.add(ze?ze.call(Be,Ve):Ve?this._subscribe(Be):this._trySubscribe(Be))}),Be}_trySubscribe(le){try{return this._subscribe(le)}catch(Q){le.error(Q)}}forEach(le,Q){return new(Q=P(Q))((ce,Be)=>{const ze=new a.Hp({next:Ve=>{try{le(Ve)}catch(Se){Be(Se),ze.unsubscribe()}},error:Be,complete:ce});this.subscribe(ze)})}_subscribe(le){var Q;return null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(le)}[te.L](){return this}pipe(...le){return function C(U){return 0===U.length?q.y:1===U.length?U[0]:function(le){return U.reduce((Q,ce)=>ce(Q),le)}}(le)(this)}toPromise(le){return new(le=P(le))((Q,ce)=>{let Be;this.subscribe(ze=>Be=ze,ze=>ce(ze),()=>Q(Be))})}}return U.create=X=>new U(X),U})();function P(U){var X;return null!==(X=U??E.config.Promise)&&void 0!==X?X:Promise}},9453:(Ee,y,b)=>{"use strict";b.d(y,{x:()=>E});var a=b(7371),i=b(9592);const q=(0,b(3374).d)(R=>function(){R(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var v=b(7352),C=b(1685);let E=(()=>{class R extends a.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(P){const x=new A(this,this);return x.operator=P,x}_throwIfClosed(){if(this.closed)throw new q}next(P){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const x of this.currentObservers)x.next(P)}})}error(P){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=P;const{observers:x}=this;for(;x.length;)x.shift().error(P)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:P}=this;for(;P.length;)P.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var P;return(null===(P=this.observers)||void 0===P?void 0:P.length)>0}_trySubscribe(P){return this._throwIfClosed(),super._trySubscribe(P)}_subscribe(P){return this._throwIfClosed(),this._checkFinalizedStatuses(P),this._innerSubscribe(P)}_innerSubscribe(P){const{hasError:x,isStopped:w,observers:U}=this;return x||w?i.Lc:(this.currentObservers=null,U.push(P),new i.w0(()=>{this.currentObservers=null,(0,v.P)(U,P)}))}_checkFinalizedStatuses(P){const{hasError:x,thrownError:w,isStopped:U}=this;x?P.error(w):U&&P.complete()}asObservable(){const P=new a.y;return P.source=this,P}}return R.create=(S,P)=>new A(S,P),R})();class A extends E{constructor(S,P){super(),this.destination=S,this.source=P}next(S){var P,x;null===(x=null===(P=this.destination)||void 0===P?void 0:P.next)||void 0===x||x.call(P,S)}error(S){var P,x;null===(x=null===(P=this.destination)||void 0===P?void 0:P.error)||void 0===x||x.call(P,S)}complete(){var S,P;null===(P=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===P||P.call(S)}_subscribe(S){var P,x;return null!==(x=null===(P=this.source)||void 0===P?void 0:P.subscribe(S))&&void 0!==x?x:i.Lc}}},9224:(Ee,y,b)=>{"use strict";b.d(y,{Hp:()=>le,Lv:()=>x});var a=b(3276),i=b(9592),te=b(6786),q=b(5625),v=b(1952);const C=R("C",void 0,void 0);function R(Ve,Se,Oe){return{kind:Ve,value:Se,error:Oe}}var S=b(1296),P=b(1685);class x extends i.w0{constructor(Se){super(),this.isStopped=!1,Se?(this.destination=Se,(0,i.Nn)(Se)&&Se.add(this)):this.destination=ze}static create(Se,Oe,Me){return new le(Se,Oe,Me)}next(Se){this.isStopped?Be(function A(Ve){return R("N",Ve,void 0)}(Se),this):this._next(Se)}error(Se){this.isStopped?Be(function E(Ve){return R("E",void 0,Ve)}(Se),this):(this.isStopped=!0,this._error(Se))}complete(){this.isStopped?Be(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Se){this.destination.next(Se)}_error(Se){try{this.destination.error(Se)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const w=Function.prototype.bind;function U(Ve,Se){return w.call(Ve,Se)}class X{constructor(Se){this.partialObserver=Se}next(Se){const{partialObserver:Oe}=this;if(Oe.next)try{Oe.next(Se)}catch(Me){Q(Me)}}error(Se){const{partialObserver:Oe}=this;if(Oe.error)try{Oe.error(Se)}catch(Me){Q(Me)}else Q(Se)}complete(){const{partialObserver:Se}=this;if(Se.complete)try{Se.complete()}catch(Oe){Q(Oe)}}}class le extends x{constructor(Se,Oe,Me){let ke;if(super(),(0,a.m)(Se)||!Se)ke={next:Se??void 0,error:Oe??void 0,complete:Me??void 0};else{let Ce;this&&te.config.useDeprecatedNextContext?(Ce=Object.create(Se),Ce.unsubscribe=()=>this.unsubscribe(),ke={next:Se.next&&U(Se.next,Ce),error:Se.error&&U(Se.error,Ce),complete:Se.complete&&U(Se.complete,Ce)}):ke=Se}this.destination=new X(ke)}}function Q(Ve){te.config.useDeprecatedSynchronousErrorHandling?(0,P.O)(Ve):(0,q.h)(Ve)}function Be(Ve,Se){const{onStoppedNotification:Oe}=te.config;Oe&&S.z.setTimeout(()=>Oe(Ve,Se))}const ze={closed:!0,next:v.Z,error:function ce(Ve){throw Ve},complete:v.Z}},9592:(Ee,y,b)=>{"use strict";b.d(y,{Lc:()=>C,w0:()=>v,Nn:()=>E});var a=b(3276);const te=(0,b(3374).d)(R=>function(P){R(this),this.message=P?`${P.length} errors occurred during unsubscription:\n${P.map((x,w)=>`${w+1}) ${x.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=P});var q=b(7352);class v{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:P}=this;if(P)if(this._parentage=null,Array.isArray(P))for(const U of P)U.remove(this);else P.remove(this);const{initialTeardown:x}=this;if((0,a.m)(x))try{x()}catch(U){S=U instanceof te?U.errors:[U]}const{_finalizers:w}=this;if(w){this._finalizers=null;for(const U of w)try{A(U)}catch(X){S=S??[],X instanceof te?S=[...S,...X.errors]:S.push(X)}}if(S)throw new te(S)}}add(S){var P;if(S&&S!==this)if(this.closed)A(S);else{if(S instanceof v){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(P=this._finalizers)&&void 0!==P?P:[]).push(S)}}_hasParent(S){const{_parentage:P}=this;return P===S||Array.isArray(P)&&P.includes(S)}_addParent(S){const{_parentage:P}=this;this._parentage=Array.isArray(P)?(P.push(S),P):P?[P,S]:S}_removeParent(S){const{_parentage:P}=this;P===S?this._parentage=null:Array.isArray(P)&&(0,q.P)(P,S)}remove(S){const{_finalizers:P}=this;P&&(0,q.P)(P,S),S instanceof v&&S._removeParent(this)}}v.EMPTY=(()=>{const R=new v;return R.closed=!0,R})();const C=v.EMPTY;function E(R){return R instanceof v||R&&"closed"in R&&(0,a.m)(R.remove)&&(0,a.m)(R.add)&&(0,a.m)(R.unsubscribe)}function A(R){(0,a.m)(R)?R():R.unsubscribe()}},6786:(Ee,y,b)=>{"use strict";b.d(y,{config:()=>a});const a={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9925:(Ee,y,b)=>{"use strict";b.d(y,{z:()=>v});var a=b(5326),te=b(177),q=b(107);function v(...C){return function i(){return(0,a.J)(1)}()((0,q.D)(C,(0,te.yG)(C)))}},8025:(Ee,y,b)=>{"use strict";b.d(y,{E:()=>i});const i=new(b(7371).y)(v=>v.complete())},6312:(Ee,y,b)=>{"use strict";b.d(y,{D:()=>A});var a=b(7371),i=b(1003),te=b(8299),q=b(177),v=b(2829),C=b(4574),E=b(5017);function A(...R){const S=(0,q.jO)(R),{args:P,keys:x}=(0,i.D)(R),w=new a.y(U=>{const{length:X}=P;if(!X)return void U.complete();const le=new Array(X);let Q=X,ce=X;for(let Be=0;Be<X;Be++){let ze=!1;(0,te.Xf)(P[Be]).subscribe((0,v.x)(U,Ve=>{ze||(ze=!0,ce--),le[Be]=Ve},()=>Q--,void 0,()=>{(!Q||!ze)&&(ce||U.next(x?(0,E.n)(x,le):le),U.complete())}))}});return S?w.pipe((0,C.Z)(S)):w}},107:(Ee,y,b)=>{"use strict";b.d(y,{D:()=>Me});var a=b(8299),i=b(8382),te=b(4049),q=b(2829);function v(ke,Ce=0){return(0,te.e)((De,He)=>{De.subscribe((0,q.x)(He,dt=>(0,i.f)(He,ke,()=>He.next(dt),Ce),()=>(0,i.f)(He,ke,()=>He.complete(),Ce),dt=>(0,i.f)(He,ke,()=>He.error(dt),Ce)))})}function C(ke,Ce=0){return(0,te.e)((De,He)=>{He.add(ke.schedule(()=>De.subscribe(He),Ce))})}var R=b(7371),P=b(8279),x=b(3276);function U(ke,Ce){if(!ke)throw new Error("Iterable cannot be null");return new R.y(De=>{(0,i.f)(De,Ce,()=>{const He=ke[Symbol.asyncIterator]();(0,i.f)(De,Ce,()=>{He.next().then(dt=>{dt.done?De.complete():De.next(dt.value)})},0,!0)})})}var X=b(8620),le=b(2753),Q=b(4936),ce=b(5074),Be=b(5e3),ze=b(1380),Ve=b(3130);function Me(ke,Ce){return Ce?function Oe(ke,Ce){if(null!=ke){if((0,X.c)(ke))return function E(ke,Ce){return(0,a.Xf)(ke).pipe(C(Ce),v(Ce))}(ke,Ce);if((0,Q.z)(ke))return function S(ke,Ce){return new R.y(De=>{let He=0;return Ce.schedule(function(){He===ke.length?De.complete():(De.next(ke[He++]),De.closed||this.schedule())})})}(ke,Ce);if((0,le.t)(ke))return function A(ke,Ce){return(0,a.Xf)(ke).pipe(C(Ce),v(Ce))}(ke,Ce);if((0,Be.D)(ke))return U(ke,Ce);if((0,ce.T)(ke))return function w(ke,Ce){return new R.y(De=>{let He;return(0,i.f)(De,Ce,()=>{He=ke[P.h](),(0,i.f)(De,Ce,()=>{let dt,xt;try{({value:dt,done:xt}=He.next())}catch(zt){return void De.error(zt)}xt?De.complete():De.next(dt)},0,!0)}),()=>(0,x.m)(He?.return)&&He.return()})}(ke,Ce);if((0,Ve.L)(ke))return function Se(ke,Ce){return U((0,Ve.Q)(ke),Ce)}(ke,Ce)}throw(0,ze.z)(ke)}(ke,Ce):(0,a.Xf)(ke)}},6058:(Ee,y,b)=>{"use strict";b.d(y,{R:()=>S});var a=b(8299),i=b(7371),te=b(5123),q=b(4936),v=b(3276),C=b(4574);const E=["addListener","removeListener"],A=["addEventListener","removeEventListener"],R=["on","off"];function S(X,le,Q,ce){if((0,v.m)(Q)&&(ce=Q,Q=void 0),ce)return S(X,le,Q).pipe((0,C.Z)(ce));const[Be,ze]=function U(X){return(0,v.m)(X.addEventListener)&&(0,v.m)(X.removeEventListener)}(X)?A.map(Ve=>Se=>X[Ve](le,Se,Q)):function x(X){return(0,v.m)(X.addListener)&&(0,v.m)(X.removeListener)}(X)?E.map(P(X,le)):function w(X){return(0,v.m)(X.on)&&(0,v.m)(X.off)}(X)?R.map(P(X,le)):[];if(!Be&&(0,q.z)(X))return(0,te.z)(Ve=>S(Ve,le,Q))((0,a.Xf)(X));if(!Be)throw new TypeError("Invalid event target");return new i.y(Ve=>{const Se=(...Oe)=>Ve.next(1<Oe.length?Oe:Oe[0]);return Be(Se),()=>ze(Se)})}function P(X,le){return Q=>ce=>X[Q](le,ce)}},8299:(Ee,y,b)=>{"use strict";b.d(y,{Xf:()=>w});var a=b(2970),i=b(4936),te=b(2753),q=b(7371),v=b(8620),C=b(5e3),E=b(1380),A=b(5074),R=b(3130),S=b(3276),P=b(5625),x=b(7878);function w(Ve){if(Ve instanceof q.y)return Ve;if(null!=Ve){if((0,v.c)(Ve))return function U(Ve){return new q.y(Se=>{const Oe=Ve[x.L]();if((0,S.m)(Oe.subscribe))return Oe.subscribe(Se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,i.z)(Ve))return function X(Ve){return new q.y(Se=>{for(let Oe=0;Oe<Ve.length&&!Se.closed;Oe++)Se.next(Ve[Oe]);Se.complete()})}(Ve);if((0,te.t)(Ve))return function le(Ve){return new q.y(Se=>{Ve.then(Oe=>{Se.closed||(Se.next(Oe),Se.complete())},Oe=>Se.error(Oe)).then(null,P.h)})}(Ve);if((0,C.D)(Ve))return ce(Ve);if((0,A.T)(Ve))return function Q(Ve){return new q.y(Se=>{for(const Oe of Ve)if(Se.next(Oe),Se.closed)return;Se.complete()})}(Ve);if((0,R.L)(Ve))return function Be(Ve){return ce((0,R.Q)(Ve))}(Ve)}throw(0,E.z)(Ve)}function ce(Ve){return new q.y(Se=>{(function ze(Ve,Se){var Oe,Me,ke,Ce;return(0,a.__awaiter)(this,void 0,void 0,function*(){try{for(Oe=(0,a.__asyncValues)(Ve);!(Me=yield Oe.next()).done;)if(Se.next(Me.value),Se.closed)return}catch(De){ke={error:De}}finally{try{Me&&!Me.done&&(Ce=Oe.return)&&(yield Ce.call(Oe))}finally{if(ke)throw ke.error}}Se.complete()})})(Ve,Se).catch(Oe=>Se.error(Oe))})}},4991:(Ee,y,b)=>{"use strict";b.d(y,{T:()=>C});var a=b(5326),i=b(8299),te=b(8025),q=b(177),v=b(107);function C(...E){const A=(0,q.yG)(E),R=(0,q._6)(E,1/0),S=E;return S.length?1===S.length?(0,i.Xf)(S[0]):(0,a.J)(R)((0,v.D)(S,A)):te.E}},9627:(Ee,y,b)=>{"use strict";b.d(y,{of:()=>te});var a=b(177),i=b(107);function te(...q){const v=(0,a.yG)(q);return(0,i.D)(q,v)}},5117:(Ee,y,b)=>{"use strict";b.d(y,{H:()=>v});var a=b(7371),i=b(6589),te=b(3946);function v(C=0,E,A=i.P){let R=-1;return null!=E&&((0,te.K)(E)?A=E:R=E),new a.y(S=>{let P=function q(C){return C instanceof Date&&!isNaN(C)}(C)?+C-A.now():C;P<0&&(P=0);let x=0;return A.schedule(function(){S.closed||(S.next(x++),0<=R?this.schedule(void 0,R):S.complete())},P)})}},2829:(Ee,y,b)=>{"use strict";b.d(y,{x:()=>i});var a=b(9224);function i(q,v,C,E,A){return new te(q,v,C,E,A)}class te extends a.Lv{constructor(v,C,E,A,R,S){super(v),this.onFinalize=R,this.shouldUnsubscribe=S,this._next=C?function(P){try{C(P)}catch(x){v.error(x)}}:super._next,this._error=A?function(P){try{A(P)}catch(x){v.error(x)}finally{this.unsubscribe()}}:super._error,this._complete=E?function(){try{E()}catch(P){v.error(P)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var v;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(v=this.onFinalize)||void 0===v||v.call(this))}}}},2067:(Ee,y,b)=>{"use strict";b.d(y,{b:()=>q});var a=b(6589),i=b(4049),te=b(2829);function q(v,C=a.z){return(0,i.e)((E,A)=>{let R=null,S=null,P=null;const x=()=>{if(R){R.unsubscribe(),R=null;const U=S;S=null,A.next(U)}};function w(){const U=P+v,X=C.now();if(X<U)return R=this.schedule(void 0,U-X),void A.add(R);x()}E.subscribe((0,te.x)(A,U=>{S=U,P=C.now(),R||(R=C.schedule(w,v),A.add(R))},()=>{x(),A.complete()},void 0,()=>{S=R=null}))})}},4263:(Ee,y,b)=>{"use strict";b.d(y,{x:()=>q});var a=b(2390),i=b(4049),te=b(2829);function q(C,E=a.y){return C=C??v,(0,i.e)((A,R)=>{let S,P=!0;A.subscribe((0,te.x)(R,x=>{const w=E(x);(P||!C(S,w))&&(P=!1,S=w,R.next(x))}))})}function v(C,E){return C===E}},1497:(Ee,y,b)=>{"use strict";b.d(y,{h:()=>te});var a=b(4049),i=b(2829);function te(q,v){return(0,a.e)((C,E)=>{let A=0;C.subscribe((0,i.x)(E,R=>q.call(v,R,A++)&&E.next(R)))})}},1927:(Ee,y,b)=>{"use strict";b.d(y,{x:()=>i});var a=b(4049);function i(te){return(0,a.e)((q,v)=>{try{q.subscribe(v)}finally{v.add(te)}})}},8412:(Ee,y,b)=>{"use strict";b.d(y,{U:()=>te});var a=b(4049),i=b(2829);function te(q,v){return(0,a.e)((C,E)=>{let A=0;C.subscribe((0,i.x)(E,R=>{E.next(q.call(v,R,A++))}))})}},5326:(Ee,y,b)=>{"use strict";b.d(y,{J:()=>te});var a=b(5123),i=b(2390);function te(q=1/0){return(0,a.z)(i.y,q)}},5123:(Ee,y,b)=>{"use strict";b.d(y,{z:()=>A});var a=b(8412),i=b(8299),te=b(4049),q=b(8382),v=b(2829),E=b(3276);function A(R,S,P=1/0){return(0,E.m)(S)?A((x,w)=>(0,a.U)((U,X)=>S(x,U,w,X))((0,i.Xf)(R(x,w))),P):("number"==typeof S&&(P=S),(0,te.e)((x,w)=>function C(R,S,P,x,w,U,X,le){const Q=[];let ce=0,Be=0,ze=!1;const Ve=()=>{ze&&!Q.length&&!ce&&S.complete()},Se=Me=>ce<x?Oe(Me):Q.push(Me),Oe=Me=>{U&&S.next(Me),ce++;let ke=!1;(0,i.Xf)(P(Me,Be++)).subscribe((0,v.x)(S,Ce=>{w?.(Ce),U?Se(Ce):S.next(Ce)},()=>{ke=!0},void 0,()=>{if(ke)try{for(ce--;Q.length&&ce<x;){const Ce=Q.shift();X?(0,q.f)(S,X,()=>Oe(Ce)):Oe(Ce)}Ve()}catch(Ce){S.error(Ce)}}))};return R.subscribe((0,v.x)(S,Se,()=>{ze=!0,Ve()})),()=>{le?.()}}(x,w,R,P)))}},1800:(Ee,y,b)=>{"use strict";b.d(y,{T:()=>i});var a=b(1497);function i(te){return(0,a.h)((q,v)=>te<=v)}},19:(Ee,y,b)=>{"use strict";b.d(y,{O:()=>q});var a=b(9925),i=b(177),te=b(4049);function q(...v){const C=(0,i.yG)(v);return(0,te.e)((E,A)=>{(C?(0,a.z)(v,E,C):(0,a.z)(v,E)).subscribe(A)})}},2835:(Ee,y,b)=>{"use strict";b.d(y,{w:()=>q});var a=b(8299),i=b(4049),te=b(2829);function q(v,C){return(0,i.e)((E,A)=>{let R=null,S=0,P=!1;const x=()=>P&&!R&&A.complete();E.subscribe((0,te.x)(A,w=>{R?.unsubscribe();let U=0;const X=S++;(0,a.Xf)(v(w,X)).subscribe(R=(0,te.x)(A,le=>A.next(C?C(w,le,X,U++):le),()=>{R=null,x()}))},()=>{P=!0,x()}))})}},3581:(Ee,y,b)=>{"use strict";b.d(y,{q:()=>q});var a=b(8025),i=b(4049),te=b(2829);function q(v){return v<=0?()=>a.E:(0,i.e)((C,E)=>{let A=0;C.subscribe((0,te.x)(E,R=>{++A<=v&&(E.next(R),v<=A&&E.complete())}))})}},5779:(Ee,y,b)=>{"use strict";b.d(y,{R:()=>v});var a=b(4049),i=b(2829),te=b(8299),q=b(1952);function v(C){return(0,a.e)((E,A)=>{(0,te.Xf)(C).subscribe((0,i.x)(A,()=>A.complete(),q.Z)),!A.closed&&E.subscribe(A)})}},4104:(Ee,y,b)=>{"use strict";b.d(y,{b:()=>v});var a=b(3276),i=b(4049),te=b(2829),q=b(2390);function v(C,E,A){const R=(0,a.m)(C)||E||A?{next:C,error:E,complete:A}:C;return R?(0,i.e)((S,P)=>{var x;null===(x=R.subscribe)||void 0===x||x.call(R);let w=!0;S.subscribe((0,te.x)(P,U=>{var X;null===(X=R.next)||void 0===X||X.call(R,U),P.next(U)},()=>{var U;w=!1,null===(U=R.complete)||void 0===U||U.call(R),P.complete()},U=>{var X;w=!1,null===(X=R.error)||void 0===X||X.call(R,U),P.error(U)},()=>{var U,X;w&&(null===(U=R.unsubscribe)||void 0===U||U.call(R)),null===(X=R.finalize)||void 0===X||X.call(R)}))}):q.y}},2290:(Ee,y,b)=>{"use strict";b.d(y,{o:()=>v});var a=b(9592);class i extends a.w0{constructor(E,A){super()}schedule(E,A=0){return this}}const te={setInterval(C,E,...A){const{delegate:R}=te;return R?.setInterval?R.setInterval(C,E,...A):setInterval(C,E,...A)},clearInterval(C){const{delegate:E}=te;return(E?.clearInterval||clearInterval)(C)},delegate:void 0};var q=b(7352);class v extends i{constructor(E,A){super(E,A),this.scheduler=E,this.work=A,this.pending=!1}schedule(E,A=0){var R;if(this.closed)return this;this.state=E;const S=this.id,P=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(P,S,A)),this.pending=!0,this.delay=A,this.id=null!==(R=this.id)&&void 0!==R?R:this.requestAsyncId(P,this.id,A),this}requestAsyncId(E,A,R=0){return te.setInterval(E.flush.bind(E,this),R)}recycleAsyncId(E,A,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return A;null!=A&&te.clearInterval(A)}execute(E,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(E,A);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(E,A){let S,R=!1;try{this.work(E)}catch(P){R=!0,S=P||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:E,scheduler:A}=this,{actions:R}=A;this.work=this.state=this.scheduler=null,this.pending=!1,(0,q.P)(R,this),null!=E&&(this.id=this.recycleAsyncId(A,E,null)),this.delay=null,super.unsubscribe()}}}},5349:(Ee,y,b)=>{"use strict";b.d(y,{v:()=>te});const a={now:()=>(a.delegate||Date).now(),delegate:void 0};class i{constructor(v,C=i.now){this.schedulerActionCtor=v,this.now=C}schedule(v,C=0,E){return new this.schedulerActionCtor(this,v).schedule(E,C)}}i.now=a.now;class te extends i{constructor(v,C=i.now){super(v,C),this.actions=[],this._active=!1}flush(v){const{actions:C}=this;if(this._active)return void C.push(v);let E;this._active=!0;do{if(E=v.execute(v.state,v.delay))break}while(v=C.shift());if(this._active=!1,E){for(;v=C.shift();)v.unsubscribe();throw E}}}},4453:(Ee,y,b)=>{"use strict";b.d(y,{E:()=>U});var a=b(2290);let te,i=1;const q={};function v(le){return le in q&&(delete q[le],!0)}const C={setImmediate(le){const Q=i++;return q[Q]=!0,te||(te=Promise.resolve()),te.then(()=>v(Q)&&le()),Q},clearImmediate(le){v(le)}},{setImmediate:A,clearImmediate:R}=C,S={setImmediate(...le){const{delegate:Q}=S;return(Q?.setImmediate||A)(...le)},clearImmediate(le){const{delegate:Q}=S;return(Q?.clearImmediate||R)(le)},delegate:void 0};var x=b(5349);const U=new class w extends x.v{flush(Q){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:Be}=this;let ze;Q=Q||Be.shift();do{if(ze=Q.execute(Q.state,Q.delay))break}while((Q=Be[0])&&Q.id===ce&&Be.shift());if(this._active=!1,ze){for(;(Q=Be[0])&&Q.id===ce&&Be.shift();)Q.unsubscribe();throw ze}}}(class P extends a.o{constructor(Q,ce){super(Q,ce),this.scheduler=Q,this.work=ce}requestAsyncId(Q,ce,Be=0){return null!==Be&&Be>0?super.requestAsyncId(Q,ce,Be):(Q.actions.push(this),Q._scheduled||(Q._scheduled=S.setImmediate(Q.flush.bind(Q,void 0))))}recycleAsyncId(Q,ce,Be=0){var ze;if(null!=Be?Be>0:this.delay>0)return super.recycleAsyncId(Q,ce,Be);const{actions:Ve}=Q;null!=ce&&(null===(ze=Ve[Ve.length-1])||void 0===ze?void 0:ze.id)!==ce&&(S.clearImmediate(ce),Q._scheduled===ce&&(Q._scheduled=void 0))}})},6589:(Ee,y,b)=>{"use strict";b.d(y,{P:()=>q,z:()=>te});var a=b(2290);const te=new(b(5349).v)(a.o),q=te},1296:(Ee,y,b)=>{"use strict";b.d(y,{z:()=>a});const a={setTimeout(i,te,...q){const{delegate:v}=a;return v?.setTimeout?v.setTimeout(i,te,...q):setTimeout(i,te,...q)},clearTimeout(i){const{delegate:te}=a;return(te?.clearTimeout||clearTimeout)(i)},delegate:void 0}},8279:(Ee,y,b)=>{"use strict";b.d(y,{h:()=>i});const i=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},7878:(Ee,y,b)=>{"use strict";b.d(y,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},177:(Ee,y,b)=>{"use strict";b.d(y,{_6:()=>C,jO:()=>q,yG:()=>v});var a=b(3276),i=b(3946);function te(E){return E[E.length-1]}function q(E){return(0,a.m)(te(E))?E.pop():void 0}function v(E){return(0,i.K)(te(E))?E.pop():void 0}function C(E,A){return"number"==typeof te(E)?E.pop():A}},1003:(Ee,y,b)=>{"use strict";b.d(y,{D:()=>v});const{isArray:a}=Array,{getPrototypeOf:i,prototype:te,keys:q}=Object;function v(E){if(1===E.length){const A=E[0];if(a(A))return{args:A,keys:null};if(function C(E){return E&&"object"==typeof E&&i(E)===te}(A)){const R=q(A);return{args:R.map(S=>A[S]),keys:R}}}return{args:E,keys:null}}},7352:(Ee,y,b)=>{"use strict";function a(i,te){if(i){const q=i.indexOf(te);0<=q&&i.splice(q,1)}}b.d(y,{P:()=>a})},3374:(Ee,y,b)=>{"use strict";function a(i){const q=i(v=>{Error.call(v),v.stack=(new Error).stack});return q.prototype=Object.create(Error.prototype),q.prototype.constructor=q,q}b.d(y,{d:()=>a})},5017:(Ee,y,b)=>{"use strict";function a(i,te){return i.reduce((q,v,C)=>(q[v]=te[C],q),{})}b.d(y,{n:()=>a})},1685:(Ee,y,b)=>{"use strict";b.d(y,{O:()=>q,x:()=>te});var a=b(6786);let i=null;function te(v){if(a.config.useDeprecatedSynchronousErrorHandling){const C=!i;if(C&&(i={errorThrown:!1,error:null}),v(),C){const{errorThrown:E,error:A}=i;if(i=null,E)throw A}}else v()}function q(v){a.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=v)}},8382:(Ee,y,b)=>{"use strict";function a(i,te,q,v=0,C=!1){const E=te.schedule(function(){q(),C?i.add(this.schedule(null,v)):this.unsubscribe()},v);if(i.add(E),!C)return E}b.d(y,{f:()=>a})},2390:(Ee,y,b)=>{"use strict";function a(i){return i}b.d(y,{y:()=>a})},4936:(Ee,y,b)=>{"use strict";b.d(y,{z:()=>a});const a=i=>i&&"number"==typeof i.length&&"function"!=typeof i},5e3:(Ee,y,b)=>{"use strict";b.d(y,{D:()=>i});var a=b(3276);function i(te){return Symbol.asyncIterator&&(0,a.m)(te?.[Symbol.asyncIterator])}},3276:(Ee,y,b)=>{"use strict";function a(i){return"function"==typeof i}b.d(y,{m:()=>a})},8620:(Ee,y,b)=>{"use strict";b.d(y,{c:()=>te});var a=b(7878),i=b(3276);function te(q){return(0,i.m)(q[a.L])}},5074:(Ee,y,b)=>{"use strict";b.d(y,{T:()=>te});var a=b(8279),i=b(3276);function te(q){return(0,i.m)(q?.[a.h])}},2753:(Ee,y,b)=>{"use strict";b.d(y,{t:()=>i});var a=b(3276);function i(te){return(0,a.m)(te?.then)}},3130:(Ee,y,b)=>{"use strict";b.d(y,{L:()=>q,Q:()=>te});var a=b(2970),i=b(3276);function te(v){return(0,a.__asyncGenerator)(this,arguments,function*(){const E=v.getReader();try{for(;;){const{value:A,done:R}=yield(0,a.__await)(E.read());if(R)return yield(0,a.__await)(void 0);yield yield(0,a.__await)(A)}}finally{E.releaseLock()}})}function q(v){return(0,i.m)(v?.getReader)}},3946:(Ee,y,b)=>{"use strict";b.d(y,{K:()=>i});var a=b(3276);function i(te){return te&&(0,a.m)(te.schedule)}},4049:(Ee,y,b)=>{"use strict";b.d(y,{A:()=>i,e:()=>te});var a=b(3276);function i(q){return(0,a.m)(q?.lift)}function te(q){return v=>{if(i(v))return v.lift(function(C){try{return q(C,this)}catch(E){this.error(E)}});throw new TypeError("Unable to lift unknown Observable type")}}},4574:(Ee,y,b)=>{"use strict";b.d(y,{Z:()=>q});var a=b(8412);const{isArray:i}=Array;function q(v){return(0,a.U)(C=>function te(v,C){return i(C)?v(...C):v(C)}(v,C))}},1952:(Ee,y,b)=>{"use strict";function a(){}b.d(y,{Z:()=>a})},5625:(Ee,y,b)=>{"use strict";b.d(y,{h:()=>te});var a=b(6786),i=b(1296);function te(q){i.z.setTimeout(()=>{const{onUnhandledError:v}=a.config;if(!v)throw q;v(q)})}},1380:(Ee,y,b)=>{"use strict";function a(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(y,{z:()=>a})},1106:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.decode=y.encode=void 0;const i=b(2970).__importDefault(b(1505)),te=["string","email","phone","html","xml"],q=["json","bool","url","int","uint","float","money","hex","uuid","base64","void",...te];class v extends Error{constructor(S,P,x){let w;try{w=JSON.stringify(x)}catch{w=String(x)}super(`Invalid type at '${S}', expected ${String(P)}, got ${w}`)}}function C(R,S,P){if("json"===S)return null==P?null:JSON.parse(JSON.stringify(P));if("bool"===S){if("boolean"!=typeof P)throw new v(R,S,P);return P}if(te.indexOf(S)>=0){if("string"!=typeof P)throw new v(R,S,P);return P}if("hex"===S){if("string"!=typeof P||!/^(?:[A-Fa-f0-9]{2})*$/u.test(P))throw new v(R,S,P);return P.toLowerCase()}if("uuid"===S){if("string"!=typeof P||!/^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$/u.test(P))throw new v(R,S,P);return P.toLowerCase()}if("base64"===S){let x=!0;try{atob(P)}catch{x=!1}if("string"!=typeof P||!x)throw new v(R,S,P);return P}if("int"===S){if("number"!=typeof P||(0|P)!==P)throw new v(R,S,P);return P}if("uint"===S){if("number"!=typeof P||(0|P)!==P||P<0)throw new v(R,S,P);return P}if("float"===S){if("number"!=typeof P)throw new v(R,S,P);return P}if("money"===S){if("number"!=typeof P||!Number.isInteger(P))throw new v(R,S,P);return P}if("url"===S){let x;if("string"==typeof P)try{x=new URL(P)}catch{}if(!x)throw new v(R,S,P);return x.toString()}if("void"===S)return null;throw new Error(`Unknown type '${S}' at '${R}'`)}y.encode=function E(R,S,P,x){if("string"==typeof P&&!P.endsWith("?")&&"void"!==P&&null==x)throw new Error(`Invalid type at '${S}', cannot be null`);if(Array.isArray(P)){for(const w of P){if(w===x)return x;if(Array.isArray(x)&&2===x.length&&w===x[0])return x[0];if(Array.isArray(w)&&2===w.length){if(w[0]===x)return[x,E(R,`${S}.${w[0]}`,w[1],{})];if(Array.isArray(x)&&2===x.length&&w[0]===x[0])return[x[0],E(R,`${S}.${w[0]}`,w[1],x[1])]}}throw new v(S,P,x)}if("object"==typeof P){if("object"!=typeof x)throw new v(S,P,x);const w={};for(const U of Object.keys(P))w[U]=E(R,`${S}.${U}`,P[U],x[U]);return w}if(P.endsWith("?"))return null==x?null:E(R,S,P.slice(0,P.length-1),x);if(P.endsWith("[]")){if(!Array.isArray(x))throw new v(S,P,x);return x.map((w,U)=>E(R,`${S}[${U}]`,P.slice(0,P.length-2),w))}if(q.indexOf(P)>=0)return C(S,P,x);if("bytes"===P){if(!(x instanceof ArrayBuffer))throw new v(S,P,x);return btoa(String.fromCharCode(...new Uint8Array(x)))}if("bigint"===P){if("bigint"!=typeof x)throw new v(S,P,x);return x.toString()}if("cpf"===P){if("string"!=typeof x)throw new v(S,P,x);return x}if("cnpj"===P){if("string"!=typeof x)throw new v(S,P,x);return x}if("date"===P){if((!(x instanceof Date)||isNaN(x.getTime()))&&("string"!=typeof x||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(x)))throw new v(S,P,x);const w=x instanceof Date?x:new Date(x);return`${w.getFullYear().toString().padStart(4,"0")}-${(w.getMonth()+1).toString().padStart(2,"0")}-${w.getDate().toString().padStart(2,"0")}`}if("datetime"===P){if((!(x instanceof Date)||isNaN(x.getTime()))&&("string"!=typeof x||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?(?:Z|[+-][012][0-9]:[0123456][0-9])?$/u.test(x)))throw new v(S,P,x);return("string"==typeof x?new Date(x):x).toISOString().replace("Z","")}if("decimal"===P){if(!("number"==typeof x||"string"==typeof x&&/^-?[0-9]+(?:\.[0-9]+)?$/u.test(x)||x instanceof i.default))throw new v(S,P,x);return new i.default(x).toString()}{const w=R[P];if(w)return E(R,S,w,x);throw new Error(`Unknown type '${P}' at '${S}'`)}},y.decode=function A(R,S,P,x){if("string"==typeof P&&!P.endsWith("?")&&"void"!==P&&null==x)throw new Error(`Invalid type at '${S}', cannot be null`);if(Array.isArray(P)){for(const w of P){if(w===x)return x;if(Array.isArray(x)&&2===x.length&&w===x[0])return x[0];if(Array.isArray(w)&&2===w.length){if(w[0]===x)return[x,A(R,`${S}.${w[0]}`,w[1],{})];if(Array.isArray(x)&&2===x.length&&w[0]===x[0])return[x[0],A(R,`${S}.${w[0]}`,w[1],x[1])]}}throw new v(S,P,x)}if("object"==typeof P){if("object"!=typeof x)throw new v(S,P,x);const w={};for(const U of Object.keys(P))w[U]=A(R,`${S}.${U}`,P[U],x[U]);return w}if(P.endsWith("?"))return null==x?null:A(R,S,P.slice(0,P.length-1),x);if(P.endsWith("[]")){if(!Array.isArray(x))throw new v(S,P,x);return x.map((w,U)=>A(R,`${S}[${U}]`,P.slice(0,P.length-2),w))}if(q.indexOf(P)>=0)return C(S,P,x);if("bytes"!==P){if("bigint"===P){if("number"!=typeof x&&("string"!=typeof x||!/^-?[0-9]+$/u.test(x)))throw new v(S,P,x);return BigInt(x)}if("cpf"===P){if("string"!=typeof x)throw new v(S,P,x);return x}if("cnpj"===P){if("string"!=typeof x)throw new v(S,P,x);return x}if("date"===P){if("string"!=typeof x||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(x))throw new v(S,P,x);const w=parseInt(x.split("-")[2],10),U=parseInt(x.split("-")[1],10)-1,X=parseInt(x.split("-")[0],10),le=new Date(X,U,w);if(le.getFullYear()!==X||le.getMonth()!==U||le.getDate()!==w)throw new v(S,P,x);return le}if("datetime"===P){if("string"!=typeof x||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?Z?$/u.test(x))throw new v(S,P,x);return new Date(`${x.endsWith("Z")?x:x.concat("Z")}`)}if("decimal"===P){if("number"!=typeof x&&("string"!=typeof x||!/^-?[0-9]+(?:\.[0-9]+)?$/u.test(x)))throw new v(S,P,x);return new i.default(x)}{const w=R[P];if(w)return A(R,S,w,x);throw new Error(`Unknown type '${P}' at '${S}'`)}}if("string"!=typeof x)throw new v(S,`${P} (base 64)`,x);try{return Uint8Array.from(atob(x),w=>w.charCodeAt(0))}catch{throw new v(S,`${P} (base 64)`,x)}}},6373:(Ee,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.SdkgenErrorWithData=y.SdkgenError=void 0;class b extends Error{get type(){return this.constructor.name}toJSON(){return{message:this.message,type:this.type}}}y.SdkgenError=b,y.SdkgenErrorWithData=class a extends b{constructor(te,q){super(te),this.data=q}toJSON(){return{data:this.data,message:this.message,type:this.type}}}},6463:(Ee,y,b)=>{"use strict";var a=b(7156).default;Object.defineProperty(y,"__esModule",{value:!0}),y.SdkgenHttpClient=void 0;const i=b(1106);function te(A){let R="";for(let S=0;S<2*A;++S)R+="0123456789abcdef"[Math.floor(16*Math.random())];return R}const q=te(20);function v(){try{let A=localStorage.getItem("deviceId");return A||(A=q,localStorage.setItem("deviceId",A)),A}catch{return q}}function C(A,R){return R in A}y.SdkgenHttpClient=class E{constructor(R,S,P){this.baseUrl=R,this.astJson=S,this.errClasses=P,this.extra=new Map,this.successHook=()=>{},this.errorHook=()=>{}}makeRequest(R,S){var P=this;return a(function*(){const x=P.astJson.functionTable[R];if(!x)throw new Error(`Unknown function ${R}`);const w={};P.extra.forEach((Q,ce)=>{w[ce]=Q});const U={args:(0,i.encode)(P.astJson.typeTable,`${R}.args`,x.args,S),deviceInfo:{id:v(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:document.currentScript?.getAttribute("src")??""},extra:w,name:R,requestId:te(16),version:3},X=yield new Promise((Q,ce)=>{const Be=new XMLHttpRequest;Be.open("POST",`${P.baseUrl}/${R}`),Be.setRequestHeader("Content-Type","application/sdkgen"),Be.onreadystatechange=()=>{if(4===Be.readyState)try{const ze=JSON.parse(Be.responseText);try{C(ze,"error")&&ze.error?ce(ze.error):Q(C(ze,"result")?ze.result:null)}catch(Ve){ce({message:`${Ve}`,type:"Fatal"})}}catch{ce({message:"Falha de conex\xe3o com o servidor",type:"Fatal"})}},Be.send(JSON.stringify(U))}).catch(Q=>{if(P.errorHook(Q,R,S),C(Q,"type")&&C(Q,"message")&&"string"==typeof Q.type&&"string"==typeof Q.message){const ce=Q.type in P.errClasses?Q.type:"Fatal",Be=P.errClasses[ce],ze=P.astJson.errors.find(Se=>Array.isArray(Se)?Se[0]===ce:Se===ce);let Ve;throw Ve=ze&&Array.isArray(ze)&&C(Q,"data")?new Be(Q.message,(0,i.decode)(P.astJson.typeTable,`${ce}.data`,ze[1],Q.data)):new Be(Q.message,void 0),Ve.type=ce,Ve}throw Q}),le=(0,i.decode)(P.astJson.typeTable,`${R}.ret`,x.ret,X);return P.successHook(le,R,S),le})()}}},1611:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});const a=b(2970);a.__exportStar(b(6373),y),a.__exportStar(b(6463),y)},8520:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateCSharpServerSource=void 0;const a=b(6068),i=b(3245);y.generateCSharpServerSource=function te(q){let v="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const C of q.operations){const E=C.returnType instanceof a.VoidPrimitiveType?"":`<${(0,i.generateTypeName)(C.returnType)}>`;v+=`\n public virtual Task${E} ${(0,i.capitalize)(C.name)}(${["Context ctx",...C.args.map(A=>`${(0,i.generateTypeName)(A.type)} ${(0,i.ident)(A.name)}`)].join(", ")})\n {\n return Task.FromException${E}(new FatalException("Function '${C.name}' not implemented."));\n }\n`}v+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const C of q.operations){v+=`\n case ${JSON.stringify(C.name)}:\n {`;for(const E of C.args)v+=`\n JsonElement ${E.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(E.name)}, out ${E.name}Json_))\n {\n ${E.type instanceof a.OptionalType?`${E.name}Json_ = new JsonElement();`:`throw new FatalException("'${C.name}().args.${E.name}' must be set to a value of type ${E.type.name}.");`}\n }\n ${(0,i.generateTypeName)(E.type)} ${(0,i.ident)(E.name)};\n ${(0,i.decodeType)(E.type,`${E.name}Json_`,`"${C.name}().args.${E.name}"`,(0,i.ident)(E.name)).replace(/\n/gu,"\n ")}`;v+=C.returnType instanceof a.VoidPrimitiveType?`\n await ${(0,i.capitalize)(C.name)}(${["context_",...C.args.map(E=>(0,i.ident)(E.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,i.capitalize)(C.name)}(${["context_",...C.args.map(E=>(0,i.ident)(E.name))].join(", ")});\n ${(0,i.encodeType)(C.returnType,"result_",`"${C.name}().ret"`).replace(/\n/gu,"\n ")}`,v+="\n return;\n }"}v+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const C of q.structTypes)v+=(0,i.generateStruct)(C);for(const C of q.enumTypes)v+=(0,i.generateEnum)(C);v+=`\n public string GetAstJson() => @"${JSON.stringify((0,a.astToJson)(q),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const C of q.errors)v+=`\n public class ${C.name}Exception : SdkgenException\n {\n public ${C.name}Exception(string message, Exception? inner = null) : base("${C.name}", message, inner) { }\n }\n`;return v+="\n}\n",v}},3245:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateEnum=y.generateStruct=y.encodeType=y.decodeType=y.generateTypeName=y.capitalize=y.ident=void 0;const a=b(6068),i=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while"],te=[a.StringPrimitiveType,a.HtmlPrimitiveType,a.CpfPrimitiveType,a.CnpjPrimitiveType,a.BytesPrimitiveType,a.EmailPrimitiveType,a.UrlPrimitiveType,a.UuidPrimitiveType,a.HexPrimitiveType,a.Base64PrimitiveType,a.XmlPrimitiveType,a.StructType,a.ArrayType],q=[a.BigIntPrimitiveType,a.DatePrimitiveType,a.DateTimePrimitiveType,a.FloatPrimitiveType,a.IntPrimitiveType,a.MoneyPrimitiveType,a.DecimalPrimitiveType,a.UIntPrimitiveType];function v(x){return i.includes(x)?`@${x}`:x}function C(x){return x[0].toUpperCase()+x.slice(1)}function E(x){switch(x.constructor){case a.StringPrimitiveType:return"string";case a.IntPrimitiveType:return"int";case a.UIntPrimitiveType:return"uint";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"BigInteger";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"byte[]";case a.MoneyPrimitiveType:case a.DecimalPrimitiveType:return"decimal";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"JsonElement";case a.OptionalType:return`${E(x.base)}?`;case a.ArrayType:return`List<${E(x.base)}>`;case a.StructType:case a.EnumType:return x.name;case a.TypeReference:return E(x.type);default:throw new Error(`BUG: generateTypeName with ${x.constructor.name}`)}}function A(x,w,U,X,le=1,Q=!0){switch(x.constructor){case a.IntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetInt32(out ${X}))\n {\n throw new FatalException($"'{${U}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.UIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetUInt32(out ${X}))\n {\n throw new FatalException($"'{${U}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.DecimalPrimitiveType:case a.MoneyPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDecimal(out ${X}) || ${X} % 1 != 0)\n {\n throw new FatalException($"'{${U}}' must be an integer amount of cents.");\n }\n ${X} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case a.FloatPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDouble(out ${X}))\n {\n throw new FatalException($"'{${U}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.BigIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${w}.GetString(), out ${X}))\n {\n throw new FatalException($"'{${U}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.StringPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.HtmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid HTML string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.CpfPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid CPF string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.CnpjPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid CNPJ string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.EmailPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid email.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.UrlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid URL string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.UuidPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid UUID.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.HexPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a valid hex string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.Base64PrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a base64 string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.XmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a XML string.");\n }\n ${X} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.BoolPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.True && ${w}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${U}}' must be either true or false.");\n }\n ${X} = ${w}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case a.BytesPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${U}}' must be a string.");\n }\n try\n {\n ${X} = Convert.FromBase64String(${w}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${U}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.TypeReference:return A(x.type,w,U,X,le);case a.OptionalType:if(q.includes(x.base.constructor)){const ce=`${X.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${X} = null;\n }\n else\n {\n ${E(x.base)} ${ce};\n ${A(x.base,w,U,ce,le,!1).replace(/\n/gu,"\n ")}\n ${X} = ${ce};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${X} = null;\n }\n else\n {\n ${A(x.base,w,U,X,le,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case a.EnumType:case a.StructType:return`${X} = Decode${x.name}(${w}, ${U});`;case a.JsonPrimitiveType:return Q?`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${U}}' can't be null.");\n }\n ${X} = ${w};\n `.replace(/\n {16}/gu,"\n").trim():`${X} = ${w};`;case a.DateTimePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${X}) || DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${X})))\n {\n throw new FatalException($"'{${U}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.DatePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${X})))\n {\n throw new FatalException($"'{${U}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.ArrayType:return`\n if (${w}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${U}}' must be a date.");\n }\n ${X} = new ${E(x)}();\n for (var i${le} = 0; i${le} < ${w}.GetArrayLength(); ++i${le})\n {\n ${E(x.base)} element${le};\n ${A(x.base,`${w}[i${le}]`,`$"{${U}}[{i${le}}]"`,`element${le}`,le+1).replace(/\n/gu,"\n ")}\n ${X}.Add(element${le});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${x.constructor.name}`)}}function R(x,w,U,X=1){switch(x.constructor){case a.StringPrimitiveType:return`resultWriter_.WriteStringValue(${w});`;case a.FloatPrimitiveType:case a.UIntPrimitiveType:case a.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${w});`;case a.DecimalPrimitiveType:case a.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${w} * 100));`;case a.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString());`;case a.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${w});`;case a.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${w}));`;case a.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case a.DatePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-dd"));`;case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.Base64PrimitiveType:case a.HexPrimitiveType:case a.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${w});`;case a.OptionalType:{let le=x.base;for(;le instanceof a.TypeReference;)le=le.type;return`\n if (${w} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${R(le,te.includes(le.constructor)?w:`${w}.Value`,U,X).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case a.TypeReference:return R(x.type,w,U,X);case a.EnumType:case a.StructType:return`Encode${x.name}(${w}, resultWriter_, ${U});`;case a.JsonPrimitiveType:return`${w}.WriteTo(resultWriter_);`;case a.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${X} = 0; i${X} < ${w}.Count; ++i${X})\n {\n ${R(x.base,`${w}[i${X}]`,`$"{${U}}[{i${X}}]"`,X+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${x.constructor.name}`)}}y.ident=v,y.capitalize=C,y.generateTypeName=E,y.decodeType=A,y.encodeType=R,y.generateStruct=function S(x){return`\n public class ${x.name}\n {${x.fields.map(w=>`\n public ${E(w.type)} ${C(w.name)};`).join("")}\n public ${x.name}(${x.fields.map(w=>`${E(w.type)} ${v(w.name)}`).join(", ")})\n {${x.fields.map(w=>`\n ${C(w.name)} = ${v(w.name)};`).join("")}\n }\n }\n\n ${x.name} Decode${x.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${x.fields.map(w=>` JsonElement ${w.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof a.OptionalType?`${w.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${E(w.type)} ${v(w.name)};\n ${A(w.type,`${w.name}Json_`,`$"{path_}.${w.name}"`,v(w.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${x.name}(${x.fields.map(w=>v(w.name)).join(", ")});\n }\n\n void Encode${x.name}(${x.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${x.fields.map(w=>`resultWriter_.WritePropertyName(${JSON.stringify(w.name)});\n ${R(w.type,`obj_.${C(w.name)}`,`$"{path_}.${w.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},y.generateEnum=function P(x){return`\n public enum ${x.name}\n {${x.values.map(({value:w})=>`\n ${C(w)}`).join(",\n ")}\n }\n\n ${x.name} Decode${x.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${x.values.map(({value:w})=>`\n if (value == "${w}")\n {\n return ${x.name}.${C(w)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${x.values.map(({value:w})=>`'${w}'`).join(", ")}).");\n }\n\n void Encode${x.name}(${x.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${x.values.map(({value:w})=>`\n if (obj_ == ${x.name}.${C(w)})\n {\n resultWriter_.WriteStringValue("${w}");\n }`).join("")}\n }\n`}},5626:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),b(2970).__exportStar(b(8520),y)},6249:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateDartClientSource=void 0;const a=b(6068),i=b(7812);y.generateDartClientSource=function te(q){let v="";v+="// ignore_for_file: constant_identifier_names\n",(0,a.hasType)(q,a.BytesPrimitiveType)&&(v+="import 'dart:typed_data';\n"),(0,a.hasType)(q,a.DecimalPrimitiveType)&&(v+="import 'package:decimal/decimal.dart';\n"),v+="import 'package:http/http.dart' as http;\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n";for(const C of q.enumTypes)v+=(0,i.generateEnum)(C),v+="\n";for(const C of q.structTypes)v+=(0,i.generateClass)(C),v+="\n";for(const C of q.errors)v+=(0,i.generateErrorClass)(C),v+="\n";v+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [http.Client? client]) : super(baseUrl, client, _typeTable, _fnTable, _errTable);\n${q.operations.filter(C=>C.annotations.every(E=>!(E instanceof a.HiddenAnnotation))).map(C=>`\n ${C.returnType instanceof a.VoidPrimitiveType?"Future<void> ":`Future<${(0,i.generateTypeName)(C.returnType)}> `}${C.name}(${0===C.args.length?"":`{${C.args.map(E=>`${E.type instanceof a.OptionalType?"":"required "}${(0,i.generateTypeName)(E.type)} ${(0,i.mangle)(E.name)}`).join(", ")}}`}) async { ${C.returnType instanceof a.VoidPrimitiveType?"":"final result = "}await makeRequest('${C.name}', {${C.args.map(E=>`'${E.name}': ${(0,i.mangle)(E.name)}`).join(", ")}});${C.returnType instanceof a.VoidPrimitiveType?"":` return ${(0,i.cast)("result",C.returnType)};`}}`).join("")}\n}\n\n`,v+="var _typeTable = {\n";for(const C of q.structTypes){v+=` '${C.name}': StructTypeDescription(\n`,v+=` ${C.name},\n`,v+=" {\n";for(const E of C.fields)v+=` '${E.name}': '${E.type.name}',\n`;v+=" },\n",v+=` (Map fields) => ${C.name}(\n`;for(const E of C.fields)v+=` ${(0,i.mangle)(E.name)}: ${(0,i.cast)(`fields['${E.name}']`,E.type)},\n`;v+=" ),\n",v+=` (${C.name} obj) => ({\n`;for(const E of C.fields)v+=` '${E.name}': obj.${(0,i.mangle)(E.name)},\n`;v+=" }),\n",v+=" ),\n"}for(const C of q.enumTypes)v+=` '${C.name}': EnumTypeDescription(${C.name}, ${C.name}.values, [\n ${C.values.map(E=>`'${E.value}'`).join(",\n ")}\n ]),\n`;v+="};\n\n",v+="var _fnTable = {\n";for(const C of q.operations){v+=` '${C.name}': FunctionDescription('${C.returnType.name}', {\n`;for(const E of C.args)v+=` '${E.name}': '${E.type.name}',\n`;v+=" }),\n"}v+="};\n\n",v+="var _errTable = {\n";for(const C of q.errors)v+=` '${C.name}': SdkgenErrorDescription('${C.dataType.name}', (msg, req, data) => ${C.name}(msg, req${C.dataType instanceof a.VoidPrimitiveType?"":", data"})),\n`;return v+="};\n",v}},7812:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateClass=y.cast=y.generateErrorClass=y.generateTypeName=y.generateEnum=y.mangle=void 0;const a=b(6068);function i(x){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(x)?`$${x}`:x}function q(x){switch(x.constructor){case a.StringPrimitiveType:return"String";case a.IntPrimitiveType:case a.UIntPrimitiveType:return"int";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"BigInt";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"Uint8List";case a.MoneyPrimitiveType:return"int";case a.DecimalPrimitiveType:return"Decimal";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"dynamic";case a.OptionalType:return`${q(x.base)}?`;case a.ArrayType:return`List<${q(x.base)}>`;case a.StructType:case a.EnumType:return x.name;case a.TypeReference:return q(x.type);default:throw new Error(`BUG: generateTypeName with ${x.constructor.name}`)}}y.mangle=i,y.generateEnum=function te(x){return`enum ${x.name} {\n ${x.values.map(w=>w.value).join(",\n ")}\n}\n`},y.generateTypeName=q,y.generateErrorClass=function v(x){if(x.dataType instanceof a.VoidPrimitiveType)return`class ${x.name} extends SdkgenError {\n ${x.name}(super.msg, super.request);\n}\n`;const w=q(x.dataType);return`class ${x.name} extends SdkgenErrorWithData<${w}> {\n ${x.name}(super.msg, super.request, super.data);\n}\n`},y.cast=function C(x,w){return w instanceof a.OptionalType?`${x} == null ? null : ${C(x,w.base)}`:w instanceof a.ArrayType?`(${x} as List).map((e) => ${C("e",w.base)}).toList()`:w instanceof a.VoidPrimitiveType?x:w instanceof a.FloatPrimitiveType?`(${x} as num).toDouble()`:w instanceof a.MoneyPrimitiveType?`${x} as int`:`${x} as ${q(w)}`},y.generateClass=function P(x){return`class ${x.name} {\n ${x.fields.map(w=>`final ${q(w.type)} ${i(w.name)};`).join("\n ")}\n\n${function E(x){let w=` ${x.name}({\n`;for(const U of x.fields)w+=U.type instanceof a.OptionalType?" ":" required ",w+=`this.${i(U.name)},\n`;return w+=" });\n",w}(x)}\n${function A(x){let w=" @override\n bool operator ==(other){\n";return w+=" if (identical(this, other)) return true;\n",w+=` return ${[`other is ${x.name}`,...x.fields.map(U=>`${i(U.name)} == other.${i(U.name)}`)].join(" && ")};\n`,w+=" }\n",w}(x)}\n${function R(x){return` @override\n int get hashCode => Object.hashAllUnordered([${x.fields.map(w=>i(w.name)).join(", ")}]);\n`}(x)}\n${function S(x){return` @override\n String toString() {\n return '${x.name} { ${x.fields.map(w=>`${w.name}: $${i(w.name).startsWith("$")?`{${i(w.name)}}`:i(w.name)}`).join(", ")} }';\n }\n`}(x)}}\n`}},551:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),b(2970).__exportStar(b(6249),y)},4155:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateFSharpServerSource=void 0;const a=b(6068),i=b(3882);y.generateFSharpServerSource=function te(q){let v="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\n#if NET5_0\n// To use tasks as computation expression in .NET 5 install https://www.nuget.org/packages/TaskBuilder.fs/\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n#endif\n";for(const C of q.errors)v+=`\ntype ${C.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${C.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${C.name}", message, inner)\n }\n`;for(const C of q.enumTypes)v+=`\n${(0,i.generateEnum)(C)}\n`;for(const C of q.structTypes)v+=`\n${(0,i.generateStruct)(C)}\n`;v+="\ntype Api() =";for(const C of q.operations){const E=C.returnType instanceof a.VoidPrimitiveType?"":`<${(0,i.generateTypeName)(C.returnType)}>`,A=C.args.length>0?`{| ${C.args.map(R=>`${R.name}: ${(0,i.generateTypeName)(R.type)};`).join("")} |} ->`:"";v+=`\n member val ${(0,i.capitalize)(C.name)}: Context -> ${A} Task${E} =\n fun _ -> (raise (FatalException("Function '${C.name}' not implemented.")))\n with get, set\n `}v+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const C of q.operations){v+=`\n | ${JSON.stringify(C.name)} ->`;for(const E of C.args)v+=`\n let ${E.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(E.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${C.name}().args.${E.name}' must be set to a value of type ${E.type.name}."))\n\n let ${(0,i.ident)(E.name)} =\n ${(0,i.decodeType)(E.type,`${E.name}Json_`,`"${C.name}().args.${E.name}"`,(0,i.ident)(E.name)).replace(/\n/gu,"\n ")}`;v+=C.returnType instanceof a.VoidPrimitiveType?`\n\n do! (__.${(0,i.capitalize)(C.name)} context_ ${C.args.length>0?"{|":""} ${C.args.map(E=>`${E.name} = ${(0,i.ident)(E.name)}`).join("; ")} ${C.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,i.capitalize)(C.name)} context_ ${C.args.length>0?"{|":""} ${C.args.map(E=>`${E.name} = ${(0,i.ident)(E.name)}`).join("; ")} ${C.args.length>0?"|}":""})\n ${(0,i.encodeType)(C.returnType,"result_",`"${C.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return v+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",v+=`\n member __.GetAstJson() = """${JSON.stringify((0,a.astToJson)(q),null,4).replace(/\n/gu,"\n ")}""";`,v}},3882:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateEnum=y.generateStruct=y.encodeType=y.decodeType=y.generateTypeName=y.capitalize=y.ident=void 0;const a=b(6068),i=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while","type","end","id"],q=[a.BigIntPrimitiveType,a.DatePrimitiveType,a.DateTimePrimitiveType,a.FloatPrimitiveType,a.IntPrimitiveType,a.MoneyPrimitiveType,a.UIntPrimitiveType,a.ArrayType];function v(x){return i.includes(x)?`${x}'`:x}function C(x){return x[0].toUpperCase()+x.slice(1)}function E(x){switch(x.constructor){case a.StringPrimitiveType:return"string";case a.IntPrimitiveType:return"int";case a.UIntPrimitiveType:return"uint";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"bigint";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"byte[]";case a.MoneyPrimitiveType:return"decimal";case a.UuidPrimitiveType:return"Guid";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"JsonElement";case a.OptionalType:return`${E(x.base)} option`;case a.ArrayType:return`${E(x.base)} list`;case a.StructType:case a.EnumType:return x.name;case a.TypeReference:return E(x.type);default:throw new Error(`BUG: generateTypeName with ${x.constructor.name}`)}}function A(x,w,U,X,le=1,Q=!0){switch(x.constructor){case a.IntPrimitiveType:return`\n decodeInt32 ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.UIntPrimitiveType:return`\n decodeUInt32 ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.MoneyPrimitiveType:return`\n (decodeMoney ${w} ${U}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case a.FloatPrimitiveType:return`\n decodeFloat ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.BigIntPrimitiveType:return`\n decodeBigInt ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.StringPrimitiveType:return`\n decodeString ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.HtmlPrimitiveType:return`\n decodeHtml ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.CpfPrimitiveType:return`\n decodeCpf ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.CnpjPrimitiveType:return`\n decodeCnpj ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.EmailPrimitiveType:return`\n decodeEmail ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.UrlPrimitiveType:return`\n decodeUrl ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.UuidPrimitiveType:return`\n decodeUuid ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.HexPrimitiveType:return`\n decodeHex ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.Base64PrimitiveType:return`\n decodeBase64 ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.XmlPrimitiveType:return`\n decodeXml ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.BoolPrimitiveType:return`\n decodeBool ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.BytesPrimitiveType:return`\n decodeBytes ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.TypeReference:return A(x.type,w,U,X,le);case a.OptionalType:return q.includes(x.base.constructor)?`match ${w}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${A(x.base,w,U,X,le,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():x.base instanceof a.OptionalType||x.base instanceof a.ArrayType?`\n (>.>) decodeOptional ${A(x.base,w,U,X,le,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${A(x.base,w,U,X,le,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case a.EnumType:case a.StructType:return`Decode${x.name} ${w} ${U}`;case a.JsonPrimitiveType:return Q?`\n ${w}\n `.replace(/\n {16}/gu,"\n").trim():`${X} <- ${w}`;case a.DateTimePrimitiveType:return`\n decodeDateTime ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.DatePrimitiveType:return`\n decodeDate ${w} ${U}\n `.replace(/\n {16}/gu,"\n").trim();case a.ArrayType:return`\n match ${w}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${w}.GetArrayLength() - 1) do\n let item = ${w}.[i1]\n let partialResult =\n ${A(x.base,`${w}.[i1]`,`${U.slice(0,-1)}.{i1}"`,X,le,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${U.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${x.constructor.name}`)}}function R(x,w,U,X=1,le=!0){switch(x.constructor){case a.StringPrimitiveType:return`resultWriter_.WriteStringValue(${w})`;case a.FloatPrimitiveType:case a.UIntPrimitiveType:case a.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${w})`;case a.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${w} * 100m)))`;case a.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString())`;case a.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${w})`;case a.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${w}))`;case a.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case a.DatePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-dd"))`;case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.Base64PrimitiveType:case a.HexPrimitiveType:case a.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${w})`;case a.OptionalType:{let Q=x.base;for(;Q instanceof a.TypeReference;)Q=Q.type;return`\n if (${w}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${R(Q,`${w}.Value`,U,X,le)}\n `.replace(/\n {14}/gu,"\n").trim()}case a.TypeReference:return R(x.type,w,U,X,le);case a.EnumType:case a.StructType:return`Encode${x.name} ${w} resultWriter_ ${U}`;case a.JsonPrimitiveType:return`${w}.WriteTo(resultWriter_)`;case a.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${X} in 0..${w}.Length - 1 do\n ${R(x.base,`${w}.[i${X}]`,`${U}`,X+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${x.constructor.name}`)}}y.ident=v,y.capitalize=C,y.generateTypeName=E,y.decodeType=A,y.encodeType=R,y.generateStruct=function S(x){return`\ntype ${x.name} = {\n ${x.fields.map(w=>`${C(w.name)}: ${E(w.type)}`).join(";\n ")}\n} with\n static member Create (${x.fields.map(w=>`${v(w.name)}: ${E(w.type)}`).join(", ")}): ${x.name} =\n { ${x.fields.map(w=>`${C(w.name)} = ${v(w.name)}`).join("; ")} }\n\nlet Decode${x.name} (json_: JsonElement) (path_: string): ${x.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${x.fields.map(w=>`\n let ${w.name}Json_ = decodeJsonElementStrict ${JSON.stringify(w.name)} json_ $"{path_}.${w.name}"\n let ${v(w.name)} =\n ${A(w.type,`${w.name}Json_`,`$"{path_}.${w.name}"`,v(w.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${x.fields.map(w=>`${C(w.name)} = ${v(w.name)}`).join("; ")} }\n\nlet Encode${x.name} (obj_: ${x.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${x.fields.map(w=>`\n resultWriter_.WritePropertyName(${JSON.stringify(w.name)})\n ${R(w.type,`obj_.${C(w.name)}`,`$"{path_}.${w.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},y.generateEnum=function P(x){return`\ntype ${x.name} =\n ${x.values.map(({value:w})=>`| ${C(w)}`).join("\n ")}\n\nlet Decode${x.name} (json_: JsonElement) (path_: string): ${x.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${x.values.map(({value:w})=>`| "${w}" -> ${x.name}.${C(w)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${x.values.map(({value:w})=>`'${w}'`).join(", ")})."))\n\nlet Encode${x.name} (obj_: ${x.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${x.values.map(({value:w})=>`| ${x.name}.${C(w)} -> resultWriter_.WriteStringValue("${w}")`).join("\n ")}\n\n`}},8258:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),b(2970).__exportStar(b(4155),y)},8336:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateAndroidClientSource=void 0;const a=b(6068),i=b(5507);y.generateAndroidClientSource=function te(q,v){let C='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.parcelize.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport kotlinx.parcelize.RawValue\nimport java.util.*\nimport okhttp3.Interceptor\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L,\n fingerprint: String? = null,\n httpInterceptor: Interceptor? = null,\n httpNetworkInterceptor: Interceptor? = null\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis, fingerprint, httpInterceptor, httpNetworkInterceptor) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const R of q.enumTypes)C+=` ${(0,i.generateEnum)(R)}`,C+="\n";C+=" open class Error(val message: String? = null)\n",C+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const R of q.structTypes)C+=` ${(0,i.generateClass)(R)}\n`;const E=[],A=new a.ErrorNode("Connection",new a.VoidPrimitiveType);E.push(A.name),C+=` ${(0,i.generateErrorClass)(A)}`;for(const R of q.errors)C+=` ${(0,i.generateErrorClass)(R)}`,E.push(R.name);return E.length>0&&(C+=`\n enum class ErrorType {\n ${E.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${E.map(R=>`${R} -> ApiClient.${R}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),C+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",C+=q.operations.filter(R=>R.annotations.every(S=>!(S instanceof a.HiddenAnnotation))).map(R=>{let S="";const P=[];P.push("timeoutMillis: Long? = null"),v&&P.push(`callback: ((response: Response<${(0,i.generateKotlinTypeName)(R.returnType)}>) -> Unit)? = null`);const x=R.args.map(w=>`${(0,i.mangle)(w.name)}: ${(0,i.generateKotlinTypeName)(w.type)}`).concat(P);return S+=` fun ${(0,i.mangle)(R.name)}(\n ${x.join(",\n ")}\n ): Deferred<Response<out ${(0,i.generateKotlinTypeName)(R.returnType)}>> = sdkgenIOScope.async {\n`,R.args.length>0?(S+=" val bodyArgs = JsonObject().apply {\n",S+=R.args.map(w=>` ${(0,i.generateJsonAddRepresentation)(w.type,w.name)}`).join("\n"),S+="\n }\n"):S+=" val bodyArgs: JsonObject? = null",S+="\n",S+=` val call = makeRequest("${R.name}", bodyArgs, timeoutMillis)\n`,S+=` val response: Response<${(0,i.generateKotlinTypeName)(R.returnType)}> = handleCallResponse(call)\n`,v&&(S+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),S+=" return@async response\n",S+=" }\n",S}).join("\n"),C+='\n private inline fun <reified T> handleCallResponse(callResponse: InternalResponse): Response<T> {\n try {\n val data = if (callResponse.result?.get("result") != null)\n gson.fromJson<T>(callResponse.result?.get("result")!!)\n else null\n\n val error = if (callResponse.error != null) {\n val errorType = try {\n ErrorType.valueOf(callResponse.error?.get("type")?.asString ?: "")\n } catch (e: Exception) {\n ErrorType.Fatal\n }\n\n gson.fromJson(callResponse.error, errorType.type())\n } else null\n\n return Response(error, data, callResponse.stats)\n } catch(e: Exception) {\n return Response(Fatal(applicationContext.getString(io.sdkgen.runtime.R.string.sdkgen_error_serialization)), null, callResponse.stats)\n }\n }\n',C+="}\n",C}},5507:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateErrorClass=y.generateClass=y.getAnnotation=y.generateEnum=y.generateJsonAddRepresentation=y.mangle=y.generateKotlinTypeName=void 0;const a=b(6068);function i(R){switch(R.constructor){case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:return"Int";case a.FloatPrimitiveType:return"Double";case a.BigIntPrimitiveType:return"BigInt";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Calendar";case a.BoolPrimitiveType:return"Boolean";case a.BytesPrimitiveType:return"ByteArray";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"Unit";case a.JsonPrimitiveType:return"@RawValue JsonElement";case a.OptionalType:return`${i(R.base)}?`;case a.ArrayType:return`ArrayList<${i(R.base)}>`;case a.StructType:case a.EnumType:return R.name;case a.TypeReference:return i(R.type);default:throw new Error(`BUG: generateKotlinTypeName with ${R.constructor.name}`)}}function te(R){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(R)?`_${R}`:R}function C(R,S){let P="";switch(S&&S!==te(S)&&(P+=` @SerializedName("${S}")\n`),R.constructor){case a.DatePrimitiveType:P+=" @JsonAdapter(DateAdapter::class)\n";break;case a.DateTimePrimitiveType:P+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case a.ArrayType:case a.OptionalType:P+=C(R.base)}return P}y.generateKotlinTypeName=i,y.mangle=te,y.generateJsonAddRepresentation=function q(R,S){switch(R.constructor){case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:case a.BoolPrimitiveType:return`addProperty("${S}", ${te(S)})`;case a.OptionalType:return q(R.base,S);case a.DatePrimitiveType:return`addProperty("${S}", ${te(S)}?.let { DateAdapter.sdf.format(it.time)}) `;case a.DateTimePrimitiveType:return`addProperty("${S}", ${te(S)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case a.ArrayType:case a.StructType:case a.EnumType:case a.TypeReference:case a.JsonPrimitiveType:return`add("${S}", gson.toJsonTree(${te(S)}))`;case a.VoidPrimitiveType:return"";case a.BytesPrimitiveType:return`addProperty("${S}", Base64.encodeToString(${te(S)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${R.constructor.name}`)}},y.generateEnum=function v(R){let S="@Parcelize \n";return S+=` enum class ${R.name} : Parcelable { ${R.values.map(P=>te(P.value)).join(", ")} }\n`,S},y.getAnnotation=C,y.generateClass=function E(R){let S="@Parcelize\n";return S+=` data class ${R.name}(\n${R.fields.map(P=>{let x=C(P.type,P.name);return x+=` var ${te(P.name)}: ${i(P.type)}${P.type.constructor===a.OptionalType?" = null":""}`,x}).join(",\n")}\n ) : Parcelable\n`,S},y.generateErrorClass=function A(R){return`class ${R.name}(message: String) : Error(message)\n`}},5402:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),b(2970).__exportStar(b(8336),y)},194:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.AstRoot=y.FunctionOperation=y.TypeDefinition=y.StructType=y.TypeReference=y.Spread=y.Field=y.EnumType=y.EnumValue=y.ArrayType=y.OptionalType=y.JsonPrimitiveType=y.XmlPrimitiveType=y.Base64PrimitiveType=y.HtmlPrimitiveType=y.HexPrimitiveType=y.UuidPrimitiveType=y.UrlPrimitiveType=y.EmailPrimitiveType=y.CnpjPrimitiveType=y.CpfPrimitiveType=y.DecimalPrimitiveType=y.MoneyPrimitiveType=y.VoidPrimitiveType=y.BytesPrimitiveType=y.BoolPrimitiveType=y.DateTimePrimitiveType=y.DatePrimitiveType=y.BigIntPrimitiveType=y.FloatPrimitiveType=y.UIntPrimitiveType=y.IntPrimitiveType=y.StringPrimitiveType=y.PrimitiveType=y.StatusCodeAnnotation=y.HiddenAnnotation=y.RestAnnotation=y.ArgDescriptionAnnotation=y.ThrowsAnnotation=y.DescriptionAnnotation=y.Annotation=y.ErrorNode=y.Type=y.AstNode=void 0;const a=b(2188);class i{constructor(){this.location=new a.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(Ke){return this.location=Ke.location,this}atLocation(Ke){return this.location=Ke,this}}y.AstNode=i;class te extends i{toJSON(){const{name:Ke,...mt}={...this};return mt}}y.Type=te,y.ErrorNode=class q extends i{constructor(Ke,mt){super(),this.name=Ke,this.dataType=mt,this.annotations=[]}};class v extends i{}y.Annotation=v,y.DescriptionAnnotation=class C extends v{constructor(Ke){super(),this.text=Ke}},y.ThrowsAnnotation=class E extends v{constructor(Ke){super(),this.error=Ke}},y.ArgDescriptionAnnotation=class A extends v{constructor(Ke,mt){super(),this.argName=Ke,this.text=mt}},y.RestAnnotation=class R extends v{constructor(Ke,mt,Ae,Ge,ne,re){super(),this.method=Ke,this.path=mt,this.pathVariables=Ae,this.queryVariables=Ge,this.headers=ne,this.bodyVariable=re}},y.HiddenAnnotation=class S extends v{},y.StatusCodeAnnotation=class P extends v{constructor(Ke){super(),this.statusCode=Ke}};class x extends te{toJSON(){return this.name}}y.PrimitiveType=x,y.StringPrimitiveType=class w extends x{constructor(){super(...arguments),this.name="string"}},y.IntPrimitiveType=class U extends x{constructor(){super(...arguments),this.name="int"}},y.UIntPrimitiveType=class X extends x{constructor(){super(...arguments),this.name="uint"}},y.FloatPrimitiveType=class le extends x{constructor(){super(...arguments),this.name="float"}},y.BigIntPrimitiveType=class Q extends x{constructor(){super(...arguments),this.name="bigint"}},y.DatePrimitiveType=class ce extends x{constructor(){super(...arguments),this.name="date"}},y.DateTimePrimitiveType=class Be extends x{constructor(){super(...arguments),this.name="datetime"}},y.BoolPrimitiveType=class ze extends x{constructor(){super(...arguments),this.name="bool"}},y.BytesPrimitiveType=class Ve extends x{constructor(){super(...arguments),this.name="bytes"}},y.VoidPrimitiveType=class Se extends x{constructor(){super(...arguments),this.name="void"}},y.MoneyPrimitiveType=class Oe extends x{constructor(){super(...arguments),this.name="money"}},y.DecimalPrimitiveType=class Me extends x{constructor(){super(...arguments),this.name="decimal"}},y.CpfPrimitiveType=class ke extends x{constructor(){super(...arguments),this.name="cpf"}},y.CnpjPrimitiveType=class Ce extends x{constructor(){super(...arguments),this.name="cnpj"}},y.EmailPrimitiveType=class De extends x{constructor(){super(...arguments),this.name="email"}},y.UrlPrimitiveType=class He extends x{constructor(){super(...arguments),this.name="url"}},y.UuidPrimitiveType=class dt extends x{constructor(){super(...arguments),this.name="uuid"}},y.HexPrimitiveType=class xt extends x{constructor(){super(...arguments),this.name="hex"}},y.HtmlPrimitiveType=class zt extends x{constructor(){super(...arguments),this.name="html"}},y.Base64PrimitiveType=class Gt extends x{constructor(){super(...arguments),this.name="base64"}},y.XmlPrimitiveType=class Je extends x{constructor(){super(...arguments),this.name="xml"}},y.JsonPrimitiveType=class ae extends x{constructor(){super(...arguments),this.name="json"}},y.OptionalType=class oe extends te{constructor(Ke){super(),this.base=Ke}get name(){return`${this.base.name}?`}},y.ArrayType=class G extends te{constructor(Ke){super(),this.base=Ke}get name(){return`${this.base.name}[]`}},y.EnumValue=class V extends i{constructor(Ke){super(),this.value=Ke,this.annotations=[],this.struct=null}},y.EnumType=class F extends te{constructor(Ke){super(),this.values=Ke}get hasStructValues(){return this.values.some(Ke=>null!==Ke.struct)}},y.Field=class j extends i{constructor(Ke,mt,Ae=!1){super(),this.name=Ke,this.type=mt,this.secret=Ae,this.annotations=[]}},y.Spread=class $ extends i{constructor(Ke){super(),this.typeReference=Ke}},y.TypeReference=class K extends te{constructor(Ke){super(),this.name=Ke}},y.StructType=class de extends te{constructor(Ke){super(),this.fieldsAndSpreads=Ke,this.fields=[]}},y.TypeDefinition=class ge extends i{constructor(Ke,mt){super(),this.name=Ke,this.type=mt,this.annotations=[]}},y.FunctionOperation=class Fe extends i{constructor(Ke,mt,Ae){super(),this.name=Ke,this.fieldsAndSpreads=mt,this.returnType=Ae,this.annotations=[],this.args=[]}},y.AstRoot=class Le{constructor(Ke=[],mt=[],Ae=[]){this.typeDefinitions=Ke,this.operations=mt,this.errors=Ae,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},4294:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.compatibilityIssues=void 0;const a=b(194);function i(v,C,E,A){if(E instanceof a.TypeReference)i(v,C,E.type,A);else if(A instanceof a.TypeReference)i(v,C,E,A.type);else if(E instanceof a.OptionalType||!(A instanceof a.OptionalType))if(E instanceof a.OptionalType&&A instanceof a.OptionalType)i(v,C,E.base,A.base);else{if(E instanceof a.OptionalType&&!(A instanceof a.OptionalType))return C.push(`${v} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void i(v,C,E.base,A);if(E instanceof a.ArrayType&&A instanceof a.ArrayType)i(v,C,E.base,A.base);else if(E instanceof a.StructType&&A instanceof a.StructType)for(const R of A.fields){const S=E.fields.find(P=>P.name===R.name);if(S)i(`${v}.${S.name}`,C,S.type,R.type);else{if(R.type instanceof a.OptionalType)continue;C.push(`${v}.${R.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(E instanceof a.UIntPrimitiveType&&A instanceof a.IntPrimitiveType||E instanceof a.IntPrimitiveType&&A instanceof a.FloatPrimitiveType||E instanceof a.MoneyPrimitiveType&&A instanceof a.IntPrimitiveType||E instanceof a.MoneyPrimitiveType&&A instanceof a.UIntPrimitiveType||E instanceof a.UIntPrimitiveType&&A instanceof a.BigIntPrimitiveType||E instanceof a.IntPrimitiveType&&A instanceof a.BigIntPrimitiveType||E instanceof a.MoneyPrimitiveType&&A instanceof a.BigIntPrimitiveType||E instanceof a.BigIntPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.UuidPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.XmlPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.DatePrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.DateTimePrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.CpfPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.CnpjPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.HexPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.HtmlPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.Base64PrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.BytesPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.BytesPrimitiveType&&A instanceof a.Base64PrimitiveType||E instanceof a.UrlPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.EmailPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.DecimalPrimitiveType&&A instanceof a.StringPrimitiveType||E instanceof a.EnumType&&A instanceof a.StringPrimitiveType)){if(E instanceof a.EnumType&&A instanceof a.EnumType){for(const R of E.values){const S=A.values.find(P=>P.value===R.value);S?i(`${v}.${R.value}`,C,R.struct??new a.StructType([]),S.struct??new a.StructType([])):C.push(`The enum at ${v} used to accept the value "${R.value}" that doesn't exist now. Clients that send it will fail.`)}return}E.constructor.name!==A.constructor.name&&C.push(`${v} was ${E.name} and now it is ${A.name}. They are not compatible.`)}}else i(v,C,E,A.base)}function te(v,C,E,A){if(E instanceof a.TypeReference)te(v,C,E.type,A);else if(A instanceof a.TypeReference)te(v,C,E,A.type);else if(!(E instanceof a.OptionalType)||A instanceof a.OptionalType)if(E instanceof a.OptionalType&&A instanceof a.OptionalType)te(v,C,E.base,A.base);else{if(!(E instanceof a.OptionalType)&&A instanceof a.OptionalType)return C.push(`${v} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void te(v,C,E,A.base);if(E instanceof a.ArrayType&&A instanceof a.ArrayType)te(v,C,E.base,A.base);else if(E instanceof a.StructType&&A instanceof a.StructType)for(const R of E.fields){const S=A.fields.find(P=>P.name===R.name);if(S)te(`${v}.${R.name}`,C,R.type,S.type);else{if(R.type instanceof a.OptionalType)continue;C.push(`${v}.${R.name} used to exist with type ${R.type.name}, but it's now missing. Add it back.`)}}else if(!(E instanceof a.IntPrimitiveType&&A instanceof a.UIntPrimitiveType||E instanceof a.FloatPrimitiveType&&A instanceof a.IntPrimitiveType||E instanceof a.IntPrimitiveType&&A instanceof a.MoneyPrimitiveType||E instanceof a.UIntPrimitiveType&&A instanceof a.MoneyPrimitiveType||E instanceof a.BigIntPrimitiveType&&A instanceof a.UIntPrimitiveType||E instanceof a.BigIntPrimitiveType&&A instanceof a.IntPrimitiveType||E instanceof a.BigIntPrimitiveType&&A instanceof a.MoneyPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.BigIntPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.UuidPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.XmlPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.DatePrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.DateTimePrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.CpfPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.CnpjPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.HexPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.HtmlPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.Base64PrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.BytesPrimitiveType||E instanceof a.Base64PrimitiveType&&A instanceof a.BytesPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.UrlPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.EmailPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.DecimalPrimitiveType||E instanceof a.StringPrimitiveType&&A instanceof a.EnumType)){if(E instanceof a.EnumType&&A instanceof a.EnumType){for(const R of A.values){const S=E.values.find(P=>P.value===R.value);S?te(`${v}.${R.value}`,C,S.struct??new a.StructType([]),R.struct??new a.StructType([])):C.push(`The enum at ${v} now has the value "${R.value}" that didn't exist before. Client will crash if it receives it`)}return}E.constructor.name!==A.constructor.name&&C.push(`${v} was ${E.name} and now it is ${A.name}. They are not compatible.`)}}else te(v,C,E.base,A)}y.compatibilityIssues=function q(v,C){const E=[];for(const A of v.operations){const R=C.operations.find(S=>S.name===A.name);if(R){te(`${A.name}.ret`,E,A.returnType,R.returnType);for(const S of R.args){const P=A.args.find(x=>x.name===S.name);if(P)i(`${A.name}.args.${P.name}`,E,P.type,S.type);else{if(S.type instanceof a.OptionalType)continue;E.push(`${A.name}.args.${S.name} didn't exist before and isn't optional. Make it optional.`)}}}else E.push(`function ${A.name} used to exist, but it's now missing. Add it back.`)}for(const A of v.errors){const R=C.errors.find(S=>S.name===A.name);R&&te(`${A.name}.data`,E,A.dataType,R.dataType)}return E}},5029:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.hasType=void 0;const a=b(967);class i extends a.Visitor{constructor(v,C){super(v),this.type=C,this.found=!1}visit(v){v.constructor===this.type&&(this.found=!0),super.visit(v)}}y.hasType=function te(q,v){const C=new i(q,v);return C.process(),C.found}},6068:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.hasType=y.Visitor=y.jsonToAst=y.astToJson=void 0;const a=b(2970);a.__exportStar(b(194),y),a.__exportStar(b(4294),y);var i=b(4059);Object.defineProperty(y,"astToJson",{enumerable:!0,get:function(){return i.astToJson}}),Object.defineProperty(y,"jsonToAst",{enumerable:!0,get:function(){return i.jsonToAst}}),a.__exportStar(b(3390),y),a.__exportStar(b(5014),y),a.__exportStar(b(2188),y);var te=b(967);Object.defineProperty(y,"Visitor",{enumerable:!0,get:function(){return te.Visitor}});var q=b(5029);Object.defineProperty(y,"hasType",{enumerable:!0,get:function(){return q.hasType}})},4059:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.jsonToAst=y.astToJson=void 0;const a=b(194),i=b(3835),te=b(5127);function q(A){if(A instanceof a.DescriptionAnnotation)return{type:"description",value:A.text};if(A instanceof a.ThrowsAnnotation)return{type:"throws",value:A.error};if(A instanceof a.RestAnnotation)return{type:"rest",value:{bodyVariable:A.bodyVariable,headers:[...A.headers.entries()].sort(([R],[S])=>R.localeCompare(S)),method:A.method,path:A.path,pathVariables:A.pathVariables,queryVariables:[...A.queryVariables].sort((R,S)=>R.localeCompare(S))}};if(A instanceof a.HiddenAnnotation)return{type:"hidden",value:null};if(A instanceof a.StatusCodeAnnotation)return{type:"statusCode",value:A.statusCode};throw new Error(`BUG: annotationToJson with ${A.constructor.name}`)}function v(A){switch(A.type){case"description":return new a.DescriptionAnnotation(A.value);case"throws":return new a.ThrowsAnnotation(A.value);case"rest":{const{method:R,path:S,pathVariables:P,queryVariables:x,headers:w,bodyVariable:U}=A.value;return new a.RestAnnotation(R,S,P,x,new Map(w),U)}case"hidden":return new a.HiddenAnnotation;case"statusCode":return new a.StatusCodeAnnotation(A.value);default:throw new Error(`BUG: annotationFromJson with ${A.type}`)}}y.astToJson=function C(A){const R={},S={};function P(U){return U instanceof a.ArrayType?`${P(U.base)}[]`:U instanceof a.OptionalType?`${P(U.base)}?`:U.name}for(const{name:U,fields:X}of A.structTypes){if(U in S)throw new Error(`Duplicate struct type ${U}`);S[U]={};const le=S[U];for(const Q of X){le[Q.name]=P(Q.type);for(const ce of Q.annotations)if(ce instanceof a.DescriptionAnnotation){const Be=`type.${U}.${Q.name}`;R[Be]??=[],R[Be].push(q(ce))}}}for(const{name:U,values:X}of A.enumTypes){if(U in S)throw new Error(`Duplicate enum type ${U}`);S[U]=X.map(le=>le.struct?[le.value,le.struct.name]:le.value)}for(const{name:U,type:X}of A.typeDefinitions)X instanceof a.StructType||X instanceof a.EnumType||(S[U]=P(X));const x={};for(const U of A.operations){const X={};for(const le of U.args){X[le.name]=P(le.type);for(const Q of le.annotations)if(Q instanceof a.DescriptionAnnotation){const ce=`fn.${U.name}.${le.name}`;R[ce]??=[],R[ce].push(q(Q))}}x[U.name]={args:X,ret:P(U.returnType)};for(const le of U.annotations){const Q=`fn.${U.name}`;R[Q]??=[],R[Q].push(q(le))}}const w=A.errors.map(U=>U.dataType instanceof a.VoidPrimitiveType?U.name:[U.name,U.dataType.name]);for(const U of A.errors)for(const X of U.annotations){const le=`error.${U.name}`;R[le]??=[],R[le].push(q(X))}return{annotations:R,errors:w,functionTable:x,typeTable:S}},y.jsonToAst=function E(A){const R=[],S=[],P=[];function x(X,le){if("string"==typeof X){const ce=te.primitiveToAstClass.get(X);return ce?new ce:X.endsWith("?")?new a.OptionalType(x(X.slice(0,X.length-1))):X.endsWith("[]")?new a.ArrayType(x(X.slice(0,X.length-2))):new a.TypeReference(X)}if(Array.isArray(X))return new a.EnumType(X.map(ce=>{if(Array.isArray(ce)){const[Be,ze]=ce,Ve=new a.EnumValue(Be);return P.push([Ve,ze]),Ve}return new a.EnumValue(ce)}));const Q=[];for(const ce of Object.keys(X)){const Be=new a.Field(ce,x(X[ce]));if(le){const ze=`type.${le}.${ce}`;for(const Ve of A.annotations[ze]??[])Be.annotations.push(v(Ve))}Q.push(Be)}return new a.StructType(Q)}for(const[X,le]of Object.entries(A.typeTable)){const Q=x(le,X);S.push(new a.TypeDefinition(X,Q))}for(const[X,le]of Object.entries(A.functionTable)){const Q=Object.keys(le.args).map(ze=>{const Ve=new a.Field(ze,x(le.args[ze])),Se=`fn.${X}.${ze}`;for(const Oe of A.annotations[Se]??[])Ve.annotations.push(v(Oe));return Ve}),ce=new a.FunctionOperation(X,Q,x(le.ret)),Be=`fn.${X}`;for(const ze of A.annotations[Be]??[])ce.annotations.push(v(ze));R.push(ce)}for(const[X,le]of P){const Q=S.find(ce=>ce.name===le)?.type;Q instanceof a.StructType&&(X.struct=Q)}const w=A.errors.map(X=>{let le;if(Array.isArray(X)){const[ce,Be]=X;le=new a.ErrorNode(ce,x(Be))}else le=new a.ErrorNode(X,new a.VoidPrimitiveType);const Q=`error.${le.name}`;for(const ce of A.annotations[Q]??[])le.annotations.push(v(ce));return le}),U=new a.AstRoot(S,R,w);return(0,i.analyse)(U),U}},3390:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.Lexer=y.LexerError=void 0;const a=b(2188);class i extends Error{}y.LexerError=i;class te{static#e=this.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","decimal","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]);static#t=this.KEYWORDS=new Set([...te.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"]);constructor(v,C="-"){this.source=v,this.filename=C,this.startPos=0,this.startLine=1,this.startColumn=1,this.pos=0,this.line=1,this.column=1}currentChar(){return this.source[this.pos]||"\0"}nextChar(){return this.column++,this.source[++this.pos]||"\0"}nextToken(){this.startPos=this.pos,this.startLine=this.line,this.startColumn=this.column;let v=null;switch(this.currentChar()){case"\0":return null;case" ":case"\r":case"\t":return this.nextChar(),this.nextToken();case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken();case"/":switch(this.nextChar()){case"/":for(;;)switch(this.nextChar()){case"\0":return null;case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken()}case"*":e:for(;;)switch(this.nextChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"*":for(;"*"===this.nextChar(););switch(this.currentChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"/":return this.nextChar(),this.nextToken()}}}break;case"{":this.nextChar(),v=new a.CurlyOpenSymbolToken;break;case"}":this.nextChar(),v=new a.CurlyCloseSymbolToken;break;case"(":this.nextChar(),v=new a.ParensOpenSymbolToken;break;case")":this.nextChar(),v=new a.ParensCloseSymbolToken;break;case"?":this.nextChar(),v=new a.OptionalSymbolToken;break;case":":this.nextChar(),v=new a.ColonSymbolToken;break;case"=":this.nextChar(),v=new a.EqualSymbolToken;break;case"!":this.nextChar(),v=new a.ExclamationMarkSymbolToken;break;case",":this.nextChar(),v=new a.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),v=new a.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),v=new a.SpreadSymbolToken);break;case"@":{let C="\\",E=this.startPos+1;for(;C.endsWith("\\");){for(C=C.slice(0,C.length-1).trim();!["\0","\n"].includes(this.nextChar()););C=`${C} ${this.source.substring(E,this.pos).trim()}`.trim(),E=this.pos+1}v=new a.AnnotationToken(C.trim());break}case'"':{const C=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":C.push("\n");break;case"t":C.push("\t");break;default:C.push(this.currentChar())}break;case'"':this.nextChar(),v=new a.StringLiteralToken(C.join(""));break e;default:C.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const C=this.source.substring(this.startPos,this.pos);switch(C){case"error":v=new a.ErrorKeywordToken;break;case"enum":v=new a.EnumKeywordToken;break;case"type":v=new a.TypeKeywordToken;break;case"import":v=new a.ImportKeywordToken;break;case"fn":v=new a.FnKeywordToken;break;case"true":v=new a.TrueKeywordToken;break;case"false":v=new a.FalseKeywordToken;break;default:v=te.PRIMITIVES.has(C)?new a.PrimitiveTypeToken(C):new a.IdentifierToken(C)}}}if(null!==v)return v.location.filename=this.filename,v.location.line=this.startLine,v.location.column=this.startColumn,v;throw"\0"===this.currentChar()?new i(`Unexpected end of file at ${this.filename}`):new i(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}y.Lexer=te},5014:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.Parser=y.ParserError=void 0;const a=b(194),i=b(3390),te=b(5219),q=b(3835),v=b(2188),C=b(5127);class E extends Error{}y.ParserError=E,y.Parser=class A{constructor(S){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}())}catch{}const P=Array.isArray(S)?[...S].reverse():[S];this.lexers=P.map(x=>x instanceof i.Lexer?x:new i.Lexer(this.readFileSync(x).toString(),x)),this.nextToken()}nextToken(){for(;this.lexers.length>0;){if(this.token=this.lexers[this.lexers.length-1].nextToken(),this.token)return;this.lexers.pop()}}multiExpect(S){if(!this.token)throw new E(`Expected ${Object.keys(S).map(x=>x.replace("Token","")).join(" or ")}, but found end of file`);const P=this.token.constructor.name;if(P in S)return S[P](this.token);if(S.IdentifierToken){const x=this.token.maybeAsIdentifier();if(x instanceof v.IdentifierToken)return S.IdentifierToken(x)}throw new E(`Expected ${Object.keys(S).map(x=>x.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(S){if(null===this.token)throw new E(`Expected ${S.name.replace("Token","")}, but found end of file`);if(this.token instanceof S)return this.token;if(S===v.IdentifierToken){const P=this.token.maybeAsIdentifier();if(P instanceof v.IdentifierToken)return P}throw new E(`Expected ${S.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const S=[],P=[],x=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{x.push(this.parseError())},FnKeywordToken:()=>{S.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const U=this.expect(v.StringLiteralToken),X=U.location.filename.replace(/[^/\\]+$/u,`${U.value}.sdkgen`);this.lexers.push(new i.Lexer(this.readFileSync(X).toString(),X)),this.nextToken()},TypeKeywordToken:()=>{P.push(this.parseTypeDefinition())}});const w=new a.AstRoot(P,S,x);return w.warnings=this.warnings,(0,q.analyse)(w),w}acceptAnnotations(){for(;this.token instanceof v.AnnotationToken;){const S=this.token.value.split(" "),P=this.token.value.slice(S[0].length).trim();switch(S[0]){case"description":this.annotations.push(new a.DescriptionAnnotation(P).at(this.token));break;case"arg":this.annotations.push(new a.ArgDescriptionAnnotation(S[1],this.token.value.slice(S[0].length+1+S[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new a.ThrowsAnnotation(P).at(this.token));break;case"rest":try{this.annotations.push((0,te.parseRestAnnotation)(P).at(this.token))}catch(x){throw new E(`${x instanceof Error?x.message:x} at ${this.token.location}`)}break;case"hidden":if(""!==P)throw new E("@hidden annotation doesn't take any argument");this.annotations.push((new a.HiddenAnnotation).at(this.token));break;case"statusCode":{const x=parseInt(P,10);if(x.toString()!==P.trim())throw new E("@statusCode annotation takes an integer as argument");this.annotations.push(new a.StatusCodeAnnotation(x).at(this.token));break}default:throw new E(`Unknown annotation '${S[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new E(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const S=this.expect(v.TypeKeywordToken);this.nextToken();const P=this.expect(v.IdentifierToken),x=P.value;if(!/[A-Z]/u.test(x[0]))throw new E(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(x)} at ${P.location}`);this.nextToken();const{annotations:w}=this;this.annotations=[];const U=this.parseType(),X=new a.TypeDefinition(x,U).at(S);return X.annotations=w,X}parseError(){const S=this.expect(v.ErrorKeywordToken);this.nextToken();const P=this.expect(v.IdentifierToken),x=P.value;if(!/[A-Z]/u.test(x[0]))throw new E(`Error name must start with an uppercase letter, but found ${JSON.stringify(x)} at ${P.location}`);this.nextToken();let w=new a.VoidPrimitiveType;(this.token instanceof v.CurlyOpenSymbolToken||this.token instanceof v.EnumKeywordToken||this.token instanceof v.IdentifierToken||this.token instanceof v.PrimitiveTypeToken)&&(w=this.parseType());const U=new a.ErrorNode(x,w).at(S);return U.annotations=this.annotations,this.annotations=[],U}parseOperation(){let{annotations:S}=this;this.annotations=[],this.expect(v.FnKeywordToken),this.nextToken();const P=this.expect(v.IdentifierToken).value;this.nextToken(),this.expect(v.ParensOpenSymbolToken),this.nextToken();const x=new Set,w=[];let X,U=!1;for(;!U;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ce=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),U=!0,X=ce},IdentifierToken:()=>{const ce=this.parseField();if(x.has(ce.name))throw new E(`Cannot redeclare argument '${ce.name}'`);x.add(ce.name),w.push(ce),this.multiExpect({ParensCloseSymbolToken:Be=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),U=!0,X=Be},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ce=this.expect(v.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ce.value[0]))throw new E(`Expected a type but found ${JSON.stringify(ce.value)} at ${ce.location}`);w.push(new a.Spread(new a.TypeReference(ce.value).at(ce)).at(ce)),this.multiExpect({ParensCloseSymbolToken:Be=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),U=!0,X=Be},CommaSymbolToken:()=>this.nextToken()})}});for(const ce of S)if(ce instanceof a.ArgDescriptionAnnotation){const Be=w.find(ze=>ze instanceof a.Field&&ze.name===ce.argName);if(!Be)throw new E(`Argument '${ce.argName}' not found, at ${ce.location}`);Be.annotations.push(new a.DescriptionAnnotation(ce.text).atLocation(ce.location))}S=S.filter(ce=>!(ce instanceof a.ArgDescriptionAnnotation));let le=(new a.VoidPrimitiveType).at(X);this.token instanceof v.ColonSymbolToken&&(this.nextToken(),le=this.parseType());const Q=new a.FunctionOperation(P,w,le);return Q.annotations=S,Q}parseEnum(){this.checkCannotHaveAnnotationsHere();const S=this.expect(v.EnumKeywordToken);this.nextToken(),this.expect(v.CurlyOpenSymbolToken),this.nextToken();const P=new a.EnumType([]).at(S);let x=!1;for(;!x;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),x=!0},IdentifierToken:w=>{const U=new a.EnumValue(w.value).at(w);if(U.annotations=this.annotations,this.annotations=[],P.values.push(U),this.nextToken(),!(this.token instanceof v.ParensOpenSymbolToken))return;this.nextToken();const X=new Set,le=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof v.IdentifierToken;){const Q=this.parseField();if("tag"===Q.name&&(Q.name="_tag"),X.has(Q.name))throw new E(`Cannot redeclare argument '${Q.name}'`);if(X.add(Q.name),le.push(Q),!(this.token instanceof v.CommaSymbolToken))break;this.nextToken()}U.struct=new a.StructType(le).atLocation(U.location),this.expect(v.ParensCloseSymbolToken),this.nextToken()}});return P}parseField(){const S=this.expect(v.IdentifierToken);this.nextToken(),this.expect(v.ColonSymbolToken),this.nextToken();const{annotations:P}=this;this.annotations=[];const x=this.parseType(),w=new a.Field(S.value,x).at(S);for(w.annotations=P;this.token instanceof v.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(v.IdentifierToken).value))throw new E(`Unknown field mark !${this.token.value} at ${this.token.location}`);w.secret=!0,this.nextToken()}return w}parseStruct(){const S=this.expect(v.CurlyOpenSymbolToken);this.nextToken();const P=[],x=new Set;let w=!1;for(;!w;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),w=!0},IdentifierToken:()=>{const U=this.parseField();if(x.has(U.name))throw new E(`Cannot redeclare field '${U.name}'`);x.add(U.name),P.push(U)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const U=this.expect(v.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(U.value[0]))throw new E(`Expected a type but found ${JSON.stringify(U.value)} at ${U.location}`);P.push(new a.Spread(new a.TypeReference(U.value).at(U)).at(U))}});return new a.StructType(P).at(S)}parseType(){this.checkCannotHaveAnnotationsHere();let S=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:P=>{if(this.nextToken(),!/[A-Z]/u.test(P.value[0]))throw new E(`Expected a type but found ${JSON.stringify(P.value)} at ${P.location}`);return new a.TypeReference(P.value).at(P)},PrimitiveTypeToken:P=>{this.nextToken();const x=C.primitiveToAstClass.get(P.value);if(x)return(new x).at(P);throw new E(`BUG! Should handle primitive ${P.value}`)}});for(;this.token instanceof v.ArraySymbolToken||this.token instanceof v.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:P=>S=new a.ArrayType(S).at(P),OptionalSymbolToken:P=>S=new a.OptionalType(S).at(P)}),this.nextToken();return S}}},5219:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.parseRestAnnotation=void 0;const a=b(194);function q(C){const E=/\{(?<name>\w+)\}/gu,A=[];let R;for(;null!==(R=E.exec(C));)R.groups?.name&&A.push(R.groups.name);return A}y.parseRestAnnotation=function v(C){const E=C.split(" "),A=E[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(A))throw new Error(`Unsupported method '${A}'`);let R=E[1];if(!R.startsWith("/"))throw new Error("Invalid path");let S=[];if(R.includes("?")){const[X,...le]=R.split("?");R=X;const Q=le.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(Q))throw new Error("Invalid querystring on path");S=q(Q)}const P=q(R),x=E.slice(2).join(" "),w=function i(C){const E=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,A=new Map;let R;for(;null!==(R=E.exec(C));)R.groups?.header&&R.groups.name&&A.set(R.groups.header.toLowerCase(),R.groups.name);return A}(x),U=function te(C){const E=/\[body \{(?<name>\w+)\}\]/u.exec(C);return E?.groups?.name?E.groups.name:null}(x);return new a.RestAnnotation(A,R,P,S,w,U)}},3733:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.CheckMultipleDeclarationVisitor=void 0;const a=b(967),i=b(194);y.CheckMultipleDeclarationVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(v){if(v instanceof i.TypeDefinition){const C=this.nameToType.get(v.name);if(C&&JSON.stringify(C)!==JSON.stringify(v.type))throw new a.SemanticError(`Type '${v.name}' at ${v.location} is defined multiple times (also at ${C.location})`);this.nameToType.set(v.name,v.type)}super.visit(v)}}},3367:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.GiveStructAndEnumNamesTransformer=void 0;const a=b(5417),i=b(967),te=b(194);y.GiveStructAndEnumNamesTransformer=class q extends a.Transformer{constructor(){super(...arguments),this.path=[],this.names=new Map}transform(C){if(C instanceof te.TypeDefinition)return this.path=[C.name],super.transform(C);if(C instanceof te.ErrorNode)return this.path=[`${C.name}Data`],super.transform(C);if(C instanceof te.FunctionOperation)return this.path=[C.name],super.transform(C);if(C instanceof te.Field)try{return this.path.push(C.name),super.transform(C)}finally{this.path.pop()}else{if(!(C instanceof te.EnumValue)){if(C instanceof te.StructType||C instanceof te.EnumType){C.name=this.path.map(A=>A[0].toUpperCase()+A.slice(1)).join("");const E=this.names.get(C.name);if(E){if(E.type.constructor!==C.constructor||JSON.stringify(E.type)!==JSON.stringify(C))throw new i.SemanticError(`The name of the type '${this.path.join(".")}' at ${C.location} will conflict with '${E.path.join(".")}' at ${E.type.location}`);return E.type}return this.names.set(C.name,{path:[...this.path],type:C}),super.transform(C)}return super.transform(C)}try{return this.path.push(C.value),super.transform(C)}finally{this.path.pop()}}}}},1489:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.MatchTypeDefinitionsVisitor=void 0;const a=b(967),i=b(194);y.MatchTypeDefinitionsVisitor=class te extends a.Visitor{visit(v){if(v instanceof i.TypeReference){const C=this.root.typeDefinitions.find(E=>E.name===v.name);if(void 0===C)throw new a.SemanticError(`Could not find type '${v.name}' at ${v.location}`);v.type=C.type}super.visit(v)}}},458:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.CheckDontReturnSecretVisitor=void 0;const a=b(967),i=b(194);y.CheckDontReturnSecretVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(v){if(!this.visited.has(v))if(this.visited.add(v),v instanceof i.FunctionOperation)this.isInReturn=!0,this.visited.clear(),this.path.push(`${v.name}(...)`),this.visit(v.returnType),this.path.pop(),this.isInReturn=!1;else if(v instanceof i.TypeReference)this.visit(v.type);else if(v instanceof i.Field){if(this.path.push(v.name),this.isInReturn&&v.secret)throw new a.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${v.location}`);super.visit(v),this.path.pop()}else super.visit(v)}}},9623:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.ExpandSpreadsVisitor=void 0;const a=b(967),i=b(194);y.ExpandSpreadsVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(v,C){const E=new Map;for(const A of C){let R;if(A instanceof i.Field)R=[A];else{const S=A.typeReference.type;if(!(S instanceof i.StructType))throw new a.SemanticError(`A spread operator can't refer to something that is not a struct, in '${A.typeReference.name}' at ${A.location}.`);this.visit(S),R=S.fields}for(const S of R){const P=E.get(S.name);P?v[P]=S:(E.set(S.name,v.length),v.push(S))}}}visit(v){if(v instanceof i.StructType){if(this.processed.has(v))return;this.processed.add(v)}super.visit(v),v instanceof i.StructType?(this.expandSpread(v.fields,v.fieldsAndSpreads),v.fieldsAndSpreads=[]):v instanceof i.FunctionOperation&&(this.expandSpread(v.args,v.fieldsAndSpreads),v.fieldsAndSpreads=[])}}},1763:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.CheckEmptyStructOrEnumVisitor=void 0;const a=b(967),i=b(194);y.CheckEmptyStructOrEnumVisitor=class te extends a.Visitor{visit(v){if(super.visit(v),v instanceof i.EnumType&&0===v.values.length)throw new a.SemanticError(`Enum '${v.name}' at ${v.location} is empty`);if(v instanceof i.StructType&&0===v.fields.length)throw new a.SemanticError(`Struct '${v.name}' at ${v.location} is empty`)}}},2910:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.ValidateRecursiveTypes=void 0;const a=b(967),i=b(194);y.ValidateRecursiveTypes=class te extends a.Visitor{visit(v){if(super.visit(v),v instanceof i.TypeDefinition&&this.isRecursiveType(v,v.type)){if(!(v.type instanceof i.StructType||v.type instanceof i.EnumType))throw new a.SemanticError(`Type '${v.name}' at ${v.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(v,v.type))throw new a.SemanticError(`Type '${v.name}' at ${v.location} is infinitely recursive`)}}isRecursiveType(v,C){return C instanceof i.TypeReference?v.name===C.name:C instanceof i.ArrayType||C instanceof i.OptionalType?this.isRecursiveType(v,C.base):C instanceof i.StructType?C.fields.some(E=>this.isRecursiveType(v,E.type)):C instanceof i.EnumType&&C.values.some(E=>E.struct&&this.isRecursiveType(v,E.struct))}isInfinitelyRecursiveType(v,C){return C instanceof i.TypeReference?C.name===v.name:C instanceof i.StructType?C.fields.some(E=>this.isInfinitelyRecursiveType(v,E.type)):C instanceof i.EnumType&&C.values.every(E=>E.struct&&this.isInfinitelyRecursiveType(v,E.struct))}}},3605:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.CollectStructAndEnumTypesVisitor=void 0;const a=b(967),i=b(194);y.CollectStructAndEnumTypesVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.visited=new Set}visit(v){super.visit(v),!this.visited.has(v)&&(this.visited.add(v),v instanceof i.StructType?this.root.structTypes.push(v):v instanceof i.EnumType&&this.root.enumTypes.push(v))}}},4749:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.ValidateAnnotationsVisitor=void 0;const a=b(967),i=b(194);function q(C){return C instanceof i.TypeReference?q(C.type):C}y.ValidateAnnotationsVisitor=class v extends a.Visitor{visit(E){if(E instanceof i.EnumValue){for(const A of E.annotations)if(!(A instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${A.constructor.name.replace("Annotation","").toLowerCase()} at ${A.location}`)}else if(E instanceof i.TypeDefinition){for(const A of E.annotations)if(!(A instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${A.constructor.name.replace("Annotation","").toLowerCase()} at ${A.location}`)}else if(E instanceof i.Field){for(const A of E.annotations)if(!(A instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${A.constructor.name.replace("Annotation","").toLowerCase()} at ${A.location}`)}else if(E instanceof i.FunctionOperation){for(const A of E.annotations)if(!(A instanceof i.DescriptionAnnotation))if(A instanceof i.ThrowsAnnotation){if(!this.root.errors.some(R=>R.name===A.error))throw new a.SemanticError(`Unknown error type '${A.error}' at ${A.location}`)}else if(A instanceof i.RestAnnotation){const R=[...A.pathVariables,...A.queryVariables,...A.headers.values()];if(R.length!==new Set(R).size)throw new a.SemanticError(`Arguments must appear only once for rest annotation at ${A.location}`);for(const S of R){const P=E.args.find(w=>w.name===S);if(!P)throw new a.SemanticError(`Argument '${S}' not found at ${A.location}`);if(A.pathVariables.includes(S)&&P.type instanceof i.OptionalType)throw new a.SemanticError(`The path argument '${S}' can't be nullable at ${A.location}`);if(!((C=q(P.type instanceof i.OptionalType?P.type.base:P.type))instanceof i.BoolPrimitiveType||C instanceof i.IntPrimitiveType||C instanceof i.UIntPrimitiveType||C instanceof i.BigIntPrimitiveType||C instanceof i.FloatPrimitiveType||C instanceof i.StringPrimitiveType||C instanceof i.DatePrimitiveType||C instanceof i.DateTimePrimitiveType||C instanceof i.MoneyPrimitiveType||C instanceof i.DecimalPrimitiveType||C instanceof i.CpfPrimitiveType||C instanceof i.CnpjPrimitiveType||C instanceof i.UuidPrimitiveType||C instanceof i.HexPrimitiveType||C instanceof i.Base64PrimitiveType||C instanceof i.EnumType))throw new a.SemanticError(`Argument '${S}' can't have type '${P.type.name}' for rest annotation at ${A.location}`)}for(const S of E.args){if(!R.includes(S.name)&&A.bodyVariable!==S.name)throw new a.SemanticError(`Argument '${S.name}' is missing from the rest annotation at ${A.location}`);const P=[...A.pathVariables,...A.queryVariables];if("GET"===A.method&&P.includes(S.name)&&S.secret)throw new a.SemanticError(`Argument marked as secret cannot be used in the path or query parts of a GET endpoint at ${A.location}`)}if("GET"===A.method&&E.returnType instanceof i.VoidPrimitiveType)throw new a.SemanticError(`A GET rest endpoint must return something at ${A.location}`)}else if(!(A instanceof i.HiddenAnnotation))throw new a.SemanticError(`Cannot have @${A.constructor.name.replace("Annotation","").toLowerCase()} at ${A.location}`)}else if(E instanceof i.ErrorNode){for(const A of E.annotations){if(!(A instanceof i.StatusCodeAnnotation))throw new a.SemanticError(`Cannot have @${A.constructor.name.replace("Annotation","").toLowerCase()} at ${A.location}`);if(A.statusCode<400||A.statusCode>599)throw new a.SemanticError(`Error status code can only be 4xx or 5xx at ${A.location}`)}if(E.annotations.filter(A=>A instanceof i.StatusCodeAnnotation).length>1)throw new a.SemanticError(`Can't provide more than one status code at ${E.location}`)}var C}}},2971:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.CheckDuplicatedMembersOnEnumVisitor=void 0;const a=b(967),i=b(194);y.CheckDuplicatedMembersOnEnumVisitor=class te extends a.Visitor{visit(v){if(super.visit(v),v instanceof i.EnumType&&v.values.length!==new Set(v.values.map(C=>C.value)).size)throw new a.SemanticError(`Enum '${v.name}' at ${v.location} has duplicated members`)}}},3835:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.analyse=void 0;const a=b(3733),i=b(3367),te=b(1489),q=b(458),v=b(9623),C=b(1763),E=b(2910),A=b(3605),R=b(4749),S=b(2971),P=b(194);y.analyse=function x(w){w.errors.some(U=>"Fatal"===U.name)||w.errors.push(new P.ErrorNode("Fatal",new P.VoidPrimitiveType)),new a.CheckMultipleDeclarationVisitor(w).process(),new i.GiveStructAndEnumNamesTransformer(w).process(),new te.MatchTypeDefinitionsVisitor(w).process(),new q.CheckDontReturnSecretVisitor(w).process(),new v.ExpandSpreadsVisitor(w).process(),new C.CheckEmptyStructOrEnumVisitor(w).process(),new E.ValidateRecursiveTypes(w).process(),new A.CollectStructAndEnumTypesVisitor(w).process(),new R.ValidateAnnotationsVisitor(w).process(),new S.CheckDuplicatedMembersOnEnumVisitor(w).process()}},5417:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.Transformer=y.SemanticError=void 0;const a=b(194);class i extends Error{}y.SemanticError=i,y.Transformer=class te{constructor(v){this.root=v}process(){this.root.errors=this.root.errors.map(v=>this.transform(v)),this.root.typeDefinitions=this.root.typeDefinitions.map(v=>this.transform(v)),this.root.operations=this.root.operations.map(v=>this.transform(v))}transform(v){return v instanceof a.FunctionOperation?(v.args=v.args.map(C=>this.transform(C)),v.fieldsAndSpreads=v.fieldsAndSpreads.map(C=>this.transform(C)),v.returnType=this.transform(v.returnType)):v instanceof a.Field||v instanceof a.TypeDefinition?v.type=this.transform(v.type):v instanceof a.StructType?(v.fields=v.fields.map(C=>this.transform(C)),v.fieldsAndSpreads=v.fieldsAndSpreads.map(C=>this.transform(C))):v instanceof a.EnumType?v.values=v.values.map(C=>this.transform(C)):v instanceof a.EnumValue?v.struct&&(v.struct=this.transform(v.struct)):v instanceof a.ArrayType||v instanceof a.OptionalType?v.base=this.transform(v.base):v instanceof a.ErrorNode?v.dataType=this.transform(v.dataType):v instanceof a.Spread&&(v.typeReference=this.transform(v.typeReference)),v}}},967:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.Visitor=y.SemanticError=void 0;const a=b(194);class i extends Error{}y.SemanticError=i,y.Visitor=class te{constructor(v){this.root=v}process(){for(const v of this.root.errors)this.visit(v);for(const v of this.root.typeDefinitions)this.visit(v);for(const v of this.root.operations)this.visit(v)}visit(v){if(v instanceof a.FunctionOperation){for(const C of v.args)this.visit(C);for(const C of v.fieldsAndSpreads)this.visit(C);this.visit(v.returnType)}else if(v instanceof a.Field||v instanceof a.TypeDefinition)this.visit(v.type);else if(v instanceof a.StructType){for(const C of v.fields)this.visit(C);for(const C of v.fieldsAndSpreads)this.visit(C)}else if(v instanceof a.EnumType)for(const C of v.values)this.visit(C);else v instanceof a.EnumValue?v.struct&&this.visit(v.struct):v instanceof a.ArrayType||v instanceof a.OptionalType?this.visit(v.base):v instanceof a.ErrorNode?this.visit(v.dataType):v instanceof a.Spread&&this.visit(v.typeReference)}}},2188:(Ee,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.PrimitiveTypeToken=y.FalseKeywordToken=y.TrueKeywordToken=y.ErrorKeywordToken=y.FnKeywordToken=y.EnumKeywordToken=y.TypeKeywordToken=y.ImportKeywordToken=y.AnnotationToken=y.SpreadSymbolToken=y.CommaSymbolToken=y.ArraySymbolToken=y.OptionalSymbolToken=y.ColonSymbolToken=y.ParensCloseSymbolToken=y.ParensOpenSymbolToken=y.CurlyCloseSymbolToken=y.CurlyOpenSymbolToken=y.ExclamationMarkSymbolToken=y.EqualSymbolToken=y.StringLiteralToken=y.IdentifierToken=y.Token=y.TokenLocation=void 0;class b{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}y.TokenLocation=b;class a{constructor(ke=""){this.value=ke,this.location=new b,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const ke=this.constructor.name.replace("Token","");return""===this.value?ke:`${ke}(${JSON.stringify(this.value)})`}}y.Token=a;class i extends a{}y.IdentifierToken=i,y.StringLiteralToken=class te extends a{},y.EqualSymbolToken=class q extends a{},y.ExclamationMarkSymbolToken=class v extends a{},y.CurlyOpenSymbolToken=class C extends a{},y.CurlyCloseSymbolToken=class E extends a{},y.ParensOpenSymbolToken=class A extends a{},y.ParensCloseSymbolToken=class R extends a{},y.ColonSymbolToken=class S extends a{},y.OptionalSymbolToken=class P extends a{},y.ArraySymbolToken=class x extends a{},y.CommaSymbolToken=class w extends a{},y.SpreadSymbolToken=class U extends a{},y.AnnotationToken=class X extends a{},y.ImportKeywordToken=class le extends a{maybeAsIdentifier(){return new i("import")}},y.TypeKeywordToken=class Q extends a{maybeAsIdentifier(){return new i("type")}},y.EnumKeywordToken=class ce extends a{maybeAsIdentifier(){return new i("enum")}},y.FnKeywordToken=class Be extends a{maybeAsIdentifier(){return new i("fn")}},y.ErrorKeywordToken=class ze extends a{maybeAsIdentifier(){return new i("error")}},y.TrueKeywordToken=class Ve extends a{maybeAsIdentifier(){return new i("true")}},y.FalseKeywordToken=class Se extends a{maybeAsIdentifier(){return new i("false")}},y.PrimitiveTypeToken=class Oe extends a{maybeAsIdentifier(){return new i(this.value)}}},5127:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.primitiveToAstClass=void 0;const a=b(194);y.primitiveToAstClass=new Map,y.primitiveToAstClass.set("string",a.StringPrimitiveType),y.primitiveToAstClass.set("int",a.IntPrimitiveType),y.primitiveToAstClass.set("uint",a.UIntPrimitiveType),y.primitiveToAstClass.set("date",a.DatePrimitiveType),y.primitiveToAstClass.set("datetime",a.DateTimePrimitiveType),y.primitiveToAstClass.set("float",a.FloatPrimitiveType),y.primitiveToAstClass.set("bigint",a.BigIntPrimitiveType),y.primitiveToAstClass.set("bool",a.BoolPrimitiveType),y.primitiveToAstClass.set("bytes",a.BytesPrimitiveType),y.primitiveToAstClass.set("money",a.MoneyPrimitiveType),y.primitiveToAstClass.set("decimal",a.DecimalPrimitiveType),y.primitiveToAstClass.set("cpf",a.CpfPrimitiveType),y.primitiveToAstClass.set("cnpj",a.CnpjPrimitiveType),y.primitiveToAstClass.set("email",a.EmailPrimitiveType),y.primitiveToAstClass.set("html",a.HtmlPrimitiveType),y.primitiveToAstClass.set("url",a.UrlPrimitiveType),y.primitiveToAstClass.set("uuid",a.UuidPrimitiveType),y.primitiveToAstClass.set("hex",a.HexPrimitiveType),y.primitiveToAstClass.set("base64",a.Base64PrimitiveType),y.primitiveToAstClass.set("xml",a.XmlPrimitiveType),y.primitiveToAstClass.set("json",a.JsonPrimitiveType),y.primitiveToAstClass.set("void",a.VoidPrimitiveType)},7667:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateRxMethod=y.generateMethodSignature=y.generateErrorClass=y.generateClass=y.generateErrorType=y.generateEnum=y.generateJsonRepresentation=y.mangle=y.generateSwiftTypeName=void 0;const a=b(6068);function i(w){switch(w.constructor){case a.IntPrimitiveType:return"Int";case a.UIntPrimitiveType:return"UInt";case a.MoneyPrimitiveType:return"Int64";case a.FloatPrimitiveType:return"Double";case a.BigIntPrimitiveType:return"Decimal";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Date";case a.BoolPrimitiveType:return"Bool";case a.BytesPrimitiveType:return"Data";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.UrlPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"Void";case a.JsonPrimitiveType:return"AnyCodable";case a.OptionalType:return`${i(w.base)}?`;case a.ArrayType:return`[${i(w.base)}]`;case a.StructType:case a.EnumType:return`API.${w.name}`;case a.TypeReference:return i(w.type);default:throw new Error(`BUG: generateSwiftTypeName with ${w.constructor.name}`)}}function te(w){return["associatedtype","deinit","extension","inout","let","in","as","break","class","continue","protocol","Protocol","rethrows","throws","static","do","else","false","for","guard","func","if","internal","struct","subscript","repeat","is","nil","Any","associativity","convenience","import","return","super","self","Self","throw","true","try","typealias","switch","case","default","defer","fallthrough","optional","var","while","catch","dynamic","didSet","Set","fileprivate","lazy","get","init","required","right","param","property","receiver","set","left","where","final","infix","indirect","open","operator","override","private","postfix","public","mutating","none","nonmutating","precedence","prefix","Type","unowned","weak","willSet"].includes(w)?`_${w}`:w}function q(w,U){switch(w.constructor){case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:case a.BoolPrimitiveType:return`${U}`;case a.OptionalType:return`${U} == nil ? nil : ${q(w.base,`${U}!`)}`;case a.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${U})`;case a.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${U})`;case a.EnumType:return`${U}.rawValue`;case a.TypeReference:return`${q(w.type,`${U}`)}`;case a.StructType:return`${U}.toJSON()`;case a.ArrayType:return`${U}.map({ return ${q(w.base,"$0")} })`;case a.JsonPrimitiveType:return`try? ${U}.toJson()`;case a.VoidPrimitiveType:return"nil";case a.BytesPrimitiveType:return`${U}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${w.constructor.name}`)}}y.generateSwiftTypeName=i,y.mangle=te,y.generateJsonRepresentation=q,y.generateEnum=function v(w){let U=` public enum ${w.name}: String, Codable {\n`;return U+=w.values.map(X=>` case ${te(X.value)} = "${X.value}"`).join("\n"),U+="\n }\n",U},y.generateErrorType=function C(w){let U=" public enum ErrorType: String, Codable {\n";return U+=w.map(X=>` case ${te(X)} = "${X}"`).join("\n"),U+="\n }\n",U},y.generateClass=function R(w){return` public struct ${w.name}: Codable {\n${w.fields.map(U=>` var ${te(U.name)}: ${i(U.type)}`).join("\n")}\n\n${function E(w){let U=" init(";return U+=w.fields.map(X=>`${te(X.name)}: ${i(X.type)}`).join(", "),U+=") {\n",U+=w.fields.map(X=>` self.${te(X.name)} = ${te(X.name)}`).join("\n"),U+="\n }\n",U}(w)}\n${function A(w){let U=" func toJSON() -> [String: Any] {\n";return U+=" var json = [String: Any]()\n",U+=w.fields.map(X=>` json["${te(X.name)}"] = ${q(X.type,X.name)}`).join("\n"),U+="\n return json",U+="\n }\n",U}(w)}\n }\n`},y.generateErrorClass=function S(){return" public class Failure: Error {\n var message: String?\n var code: Int?\n var type: ErrorType?\n \n init(message: String?, code: Int?, type: String?) {\n self.message = message\n self.code = code\n if let typeString = type {\n self.type = ErrorType(rawValue: typeString) ?? nil\n }\n }\n }\n"},y.generateMethodSignature=function P(w){const U=w.args.map(X=>`${te(X.name)}: ${i(X.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${w.returnType instanceof a.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${i(w.returnType)}>`}) -> Void)?`]);return` func ${te(w.name)}(${U.join(", ")})`},y.generateRxMethod=function x(w){const U=w.args.map(le=>`${te(le.name)}: ${i(le.type)}`).concat(["timeoutSeconds: Double? = nil"]);let X=` static func ${te(w.name)}(${U.join(", ")}) -> ${w.returnType instanceof a.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${i(w.returnType)}>>`} {\n`;return X+=" return Observable.create { observer -> Disposable in\n",X+=` API.calls.${te(w.name)}(${w.args.map(le=>`${te(le.name)}: ${te(le.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,X+=" observer.on(.next(result))\n",X+=" observer.on(.completed)\n",X+=" }\n",X+=" return Disposables.create()\n",X+=" }\n",X+=" }\n",X}},3084:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),b(2970).__exportStar(b(8280),y)},8280:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateSwiftClientSource=void 0;const a=b(6068),i=b(7667);y.generateSwiftClientSource=function te(q,v){let C="import Foundation\nimport SdkgenRuntime\n";C+=v?"import RxSwift\nimport RxCocoa\n\n":"\n",C+="protocol APICallsProtocol {\n",C+=q.operations.filter(R=>R.annotations.every(S=>!(S instanceof a.HiddenAnnotation))).map(R=>`${(0,i.generateMethodSignature)(R)}`).join("\n"),C+="\n}\n\n",C+='class API: SdkgenResponse {\n\n static var calls = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const R of q.enumTypes)C+=(0,i.generateEnum)(R),C+="\n";for(const R of q.structTypes)C+=(0,i.generateClass)(R),C+="\n";const E=[],A=new a.ErrorNode("Connection",new a.VoidPrimitiveType);E.push(A.name);for(const R of q.errors)E.push(R.name);return E.length>0&&(C+=(0,i.generateErrorType)(E),C+="\n"),C+=(0,i.generateErrorClass)(),C+="\n",C+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",C+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",C+=q.operations.filter(R=>R.annotations.every(S=>!(S instanceof a.HiddenAnnotation))).map(R=>{let S="";return S+=` ${(0,i.generateMethodSignature)(R)} {\n`,R.args.length>0?(S+=" var jsonArgs = [String: Any]()\n",S+=R.args.map(P=>` jsonArgs["${(0,i.mangle)(P.name)}"] = ${(0,i.generateJsonRepresentation)(P.type,(0,i.mangle)(P.name))}`).join("\n")):S+=" let jsonArgs = [String: Any]()",S+="\n\n",S+=` makeRequest("${R.name}", jsonArgs, timeoutSeconds, completion: { (value: ${R.returnType instanceof a.VoidPrimitiveType?"API.NoReply":(0,i.generateSwiftTypeName)(R.returnType)}) in\n`,S+=" callback?(API.Result.success(value))\n",S+=" }, onError: { error in\n",S+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",S+=" })",S+="\n }\n",S}).join("\n"),C+=" }\n",C+="}\n",v&&(C+="\n",C+="extension API: ReactiveCompatible {}\n\n",C+="extension Reactive where Base: API {\n",C+=q.operations.filter(R=>R.annotations.every(S=>!(S instanceof a.HiddenAnnotation))).map(R=>`${(0,i.generateRxMethod)(R)}`).join("\n"),C+="}\n"),C}},486:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateBrowserClientSource=void 0;const a=b(6068),i=b(7661);y.generateBrowserClientSource=function te(q){let v="";v+=`/* eslint-disable */\nimport { SdkgenError${q.errors.some(E=>!(E.dataType instanceof a.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n`,(0,a.hasType)(q,a.DecimalPrimitiveType)&&(v+='import { Decimal } from "decimal.js-light";\n'),v+="\n";for(const E of q.enumTypes)v+=(0,i.generateTypescriptEnum)(E),v+="\n";for(const E of q.structTypes)v+=(0,i.generateTypescriptInterface)(E,!0),v+="\n";for(const E of q.errors)v+=(0,i.generateTypescriptErrorClass)(E,!0),v+="\n";return v+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${q.operations.filter(E=>E.annotations.every(A=>!(A instanceof a.HiddenAnnotation))).map(E=>`\n ${E.name}(args${0===E.args.length?"?":""}: {${E.args.map(A=>`${A.name}${A.type.name.endsWith("?")?"?":""}: ${(0,i.generateTypescriptTypeName)(A.type,!0)}`).join(", ")}}): Promise<${(0,i.generateTypescriptTypeName)(E.returnType,!0)}> { return this.makeRequest("${E.name}", args || {}); }`).join("")}\n}\n\n`,v+=`const errClasses = {\n${q.errors.map(E=>` ${E.name}`).join(",\n")}\n};\n\n`,v+=`const astJson = ${JSON.stringify((0,a.astToJson)(q),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,v}},7661:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.clearForLogging=y.generateTypescriptErrorClass=y.generateTypescriptEnum=y.generateTypescriptInterface=y.generateTypescriptTypeName=void 0;const a=b(6068);function i(E,A){switch(E.constructor){case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:return"number";case a.BigIntPrimitiveType:return"bigint";case a.DecimalPrimitiveType:return"Decimal";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Date";case a.BoolPrimitiveType:return"boolean";case a.BytesPrimitiveType:return A?"ArrayBuffer":"Buffer";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"any";case a.OptionalType:return`${i(E.base,A)} | null`;case a.ArrayType:{const{base:R}=E,S=i(R,A);return R instanceof a.OptionalType?`(${S})[]`:`${S}[]`}case a.StructType:case a.EnumType:return E.name;case a.TypeReference:return i(E.type,A);default:throw new Error(`BUG: generateTypescriptTypeName with ${E.constructor.name}`)}}y.generateTypescriptTypeName=i,y.generateTypescriptInterface=function te(E,A){return`export interface ${E.name} {\n${E.fields.map(R=>` ${R.name}: ${i(R.type,A)}`).join("\n")}\n}\n`},y.generateTypescriptEnum=function q(E){return E.hasStructValues?`export type ${E.name} = ${E.values.map(A=>A.struct?`({tag: "${A.value}"} & ${A.struct.name})`:`{tag: "${A.value}"}`).join(" | ")};\n`:`export type ${E.name} = ${E.values.map(A=>`"${A.value}"`).join(" | ")};\n`},y.generateTypescriptErrorClass=function v(E,A){return`export class ${E.name} extends ${E.dataType instanceof a.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${i(E.dataType,A)}>`} {}\n`},y.clearForLogging=function C(E,A){switch(A.constructor){case a.TypeReference:return C(E,A.type);case a.OptionalType:{const R=C(E,A.base);return R?`if (${E} !== null && ${E} !== undefined) { ${R} }`:""}case a.ArrayType:{const R=C("el",A.base);return R?`for (const el of ${E}) { ${R} }`:""}case a.StructType:{const R=[];for(const S of A.fields)if(S.secret)R.push(`${E}.${S.name} = "<secret>";`);else{const P=C(`${E}.${S.name}`,S.type);P&&R.push(P)}return R.join(" ")}default:return""}}},5747:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});const a=b(2970);a.__exportStar(b(486),y),a.__exportStar(b(2301),y),a.__exportStar(b(9664),y),a.__exportStar(b(9966),y)},2301:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateTypescriptInterfaces=void 0;const a=b(7661);y.generateTypescriptInterfaces=function i(te){let q="";for(const v of te.enumTypes)q+=(0,a.generateTypescriptEnum)(v);q+="\n";for(const v of te.structTypes)q+=(0,a.generateTypescriptInterface)(v,!1),q+="\n";return q}},9664:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateNodeClientSource=void 0;const a=b(6068),i=b(7661);y.generateNodeClientSource=function te(q){let v="";const C=q.errors.some(A=>!(A.dataType instanceof a.VoidPrimitiveType));v+=`/* eslint-disable */\nimport { Context, Fatal${q.errors.filter(A=>"Fatal"!==A.name).some(A=>A.dataType instanceof a.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,a.hasType)(q,a.DecimalPrimitiveType)&&(v+='import { Decimal } from "decimal.js";\n'),v+="\n";for(const A of q.enumTypes)v+=(0,i.generateTypescriptEnum)(A),v+="\n";for(const A of q.structTypes)v+=(0,i.generateTypescriptInterface)(A,!1),v+="\n";for(const A of q.errors)"Fatal"!==A.name&&(v+=(0,i.generateTypescriptErrorClass)(A,!1),v+="\n");return v+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${q.operations.filter(A=>A.annotations.every(R=>!(R instanceof a.HiddenAnnotation))).map(A=>`\n ${A.name}(ctx: PartialDeep<Context> | null, args: {${A.args.map(R=>`${R.name}${R.type.name.endsWith("?")?"?":""}: ${(0,i.generateTypescriptTypeName)(R.type,!1)}`).join(", ")}}): Promise<${(0,i.generateTypescriptTypeName)(A.returnType,!1)}> { return this.makeRequest(ctx, "${A.name}", args); }`).join("")}\n}\n\n`,v+=`const errClasses = {\n${q.errors.map(A=>` ${A.name}`).join(",\n")}\n};\n\n`,v+=`const astJson = ${JSON.stringify((0,a.astToJson)(q),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,v}},9966:(Ee,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.generateNodeServerSource=void 0;const a=b(6068),i=b(7661);y.generateNodeServerSource=function te(q){let v="";const C=q.errors.some(A=>!(A.dataType instanceof a.VoidPrimitiveType));v+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${q.errors.filter(A=>"Fatal"!==A.name).some(A=>A.dataType instanceof a.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,a.hasType)(q,a.DecimalPrimitiveType)&&(v+='import { Decimal } from "decimal.js";\n'),v+="\n";for(const A of q.enumTypes)v+=(0,i.generateTypescriptEnum)(A),v+="\n";for(const A of q.structTypes)v+=(0,i.generateTypescriptInterface)(A,!1),v+="\n";for(const A of q.errors)"Fatal"!==A.name&&(v+=(0,i.generateTypescriptErrorClass)(A,!1),v+="\n");return v+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n declare fn: {${q.operations.map(A=>`\n ${A.name}: (ctx: Context & ExtraContextT, args: {${A.args.map(R=>`${R.name}: ${(0,i.generateTypescriptTypeName)(R.type,!1)}`).join(", ")}}) => Promise<${(0,i.generateTypescriptTypeName)(A.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,a.astToJson)(q),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,v}},7156:Ee=>{function y(a,i,te,q,v,C,E){try{var A=a[C](E),R=A.value}catch(S){return void te(S)}A.done?i(R):Promise.resolve(R).then(q,v)}Ee.exports=function b(a){return function(){var i=this,te=arguments;return new Promise(function(q,v){var C=a.apply(i,te);function E(R){y(C,q,v,E,A,"next",R)}function A(R){y(C,q,v,E,A,"throw",R)}E(void 0)})}},Ee.exports.__esModule=!0,Ee.exports.default=Ee.exports},2970:(Ee,y,b)=>{"use strict";b.r(y),b.d(y,{__addDisposableResource:()=>Gt,__assign:()=>te,__asyncDelegator:()=>Oe,__asyncGenerator:()=>Se,__asyncValues:()=>Me,__await:()=>Ve,__awaiter:()=>x,__classPrivateFieldGet:()=>dt,__classPrivateFieldIn:()=>zt,__classPrivateFieldSet:()=>xt,__createBinding:()=>U,__decorate:()=>v,__disposeResources:()=>ae,__esDecorate:()=>E,__exportStar:()=>X,__extends:()=>i,__generator:()=>w,__importDefault:()=>He,__importStar:()=>De,__makeTemplateObject:()=>ke,__metadata:()=>P,__param:()=>C,__propKey:()=>R,__read:()=>Q,__rest:()=>q,__runInitializers:()=>A,__setFunctionName:()=>S,__spread:()=>ce,__spreadArray:()=>ze,__spreadArrays:()=>Be,__values:()=>le,default:()=>oe});var a=function(G,V){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,j){F.__proto__=j}||function(F,j){for(var $ in j)Object.prototype.hasOwnProperty.call(j,$)&&(F[$]=j[$])})(G,V)};function i(G,V){if("function"!=typeof V&&null!==V)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function F(){this.constructor=G}a(G,V),G.prototype=null===V?Object.create(V):(F.prototype=V.prototype,new F)}var te=function(){return te=Object.assign||function(V){for(var F,j=1,$=arguments.length;j<$;j++)for(var K in F=arguments[j])Object.prototype.hasOwnProperty.call(F,K)&&(V[K]=F[K]);return V},te.apply(this,arguments)};function q(G,V){var F={};for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&V.indexOf(j)<0&&(F[j]=G[j]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var $=0;for(j=Object.getOwnPropertySymbols(G);$<j.length;$++)V.indexOf(j[$])<0&&Object.prototype.propertyIsEnumerable.call(G,j[$])&&(F[j[$]]=G[j[$]])}return F}function v(G,V,F,j){var de,$=arguments.length,K=$<3?V:null===j?j=Object.getOwnPropertyDescriptor(V,F):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(G,V,F,j);else for(var ge=G.length-1;ge>=0;ge--)(de=G[ge])&&(K=($<3?de(K):$>3?de(V,F,K):de(V,F))||K);return $>3&&K&&Object.defineProperty(V,F,K),K}function C(G,V){return function(F,j){V(F,j,G)}}function E(G,V,F,j,$,K){function de(Te){if(void 0!==Te&&"function"!=typeof Te)throw new TypeError("Function expected");return Te}for(var Ke,ge=j.kind,Fe="getter"===ge?"get":"setter"===ge?"set":"value",Le=!V&&G?j.static?G:G.prototype:null,Xe=V||(Le?Object.getOwnPropertyDescriptor(Le,j.name):{}),mt=!1,Ae=F.length-1;Ae>=0;Ae--){var Ge={};for(var ne in j)Ge[ne]="access"===ne?{}:j[ne];for(var ne in j.access)Ge.access[ne]=j.access[ne];Ge.addInitializer=function(Te){if(mt)throw new TypeError("Cannot add initializers after decoration has completed");K.push(de(Te||null))};var re=(0,F[Ae])("accessor"===ge?{get:Xe.get,set:Xe.set}:Xe[Fe],Ge);if("accessor"===ge){if(void 0===re)continue;if(null===re||"object"!=typeof re)throw new TypeError("Object expected");(Ke=de(re.get))&&(Xe.get=Ke),(Ke=de(re.set))&&(Xe.set=Ke),(Ke=de(re.init))&&$.unshift(Ke)}else(Ke=de(re))&&("field"===ge?$.unshift(Ke):Xe[Fe]=Ke)}Le&&Object.defineProperty(Le,j.name,Xe),mt=!0}function A(G,V,F){for(var j=arguments.length>2,$=0;$<V.length;$++)F=j?V[$].call(G,F):V[$].call(G);return j?F:void 0}function R(G){return"symbol"==typeof G?G:"".concat(G)}function S(G,V,F){return"symbol"==typeof V&&(V=V.description?"[".concat(V.description,"]"):""),Object.defineProperty(G,"name",{configurable:!0,value:F?"".concat(F," ",V):V})}function P(G,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,V)}function x(G,V,F,j){return new(F||(F=Promise))(function(K,de){function ge(Xe){try{Le(j.next(Xe))}catch(Ke){de(Ke)}}function Fe(Xe){try{Le(j.throw(Xe))}catch(Ke){de(Ke)}}function Le(Xe){Xe.done?K(Xe.value):function $(K){return K instanceof F?K:new F(function(de){de(K)})}(Xe.value).then(ge,Fe)}Le((j=j.apply(G,V||[])).next())})}function w(G,V){var j,$,K,de,F={label:0,sent:function(){if(1&K[0])throw K[1];return K[1]},trys:[],ops:[]};return de={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(de[Symbol.iterator]=function(){return this}),de;function ge(Le){return function(Xe){return function Fe(Le){if(j)throw new TypeError("Generator is already executing.");for(;de&&(de=0,Le[0]&&(F=0)),F;)try{if(j=1,$&&(K=2&Le[0]?$.return:Le[0]?$.throw||((K=$.return)&&K.call($),0):$.next)&&!(K=K.call($,Le[1])).done)return K;switch($=0,K&&(Le=[2&Le[0],K.value]),Le[0]){case 0:case 1:K=Le;break;case 4:return F.label++,{value:Le[1],done:!1};case 5:F.label++,$=Le[1],Le=[0];continue;case 7:Le=F.ops.pop(),F.trys.pop();continue;default:if(!(K=(K=F.trys).length>0&&K[K.length-1])&&(6===Le[0]||2===Le[0])){F=0;continue}if(3===Le[0]&&(!K||Le[1]>K[0]&&Le[1]<K[3])){F.label=Le[1];break}if(6===Le[0]&&F.label<K[1]){F.label=K[1],K=Le;break}if(K&&F.label<K[2]){F.label=K[2],F.ops.push(Le);break}K[2]&&F.ops.pop(),F.trys.pop();continue}Le=V.call(G,F)}catch(Xe){Le=[6,Xe],$=0}finally{j=K=0}if(5&Le[0])throw Le[1];return{value:Le[0]?Le[1]:void 0,done:!0}}([Le,Xe])}}}var U=Object.create?function(G,V,F,j){void 0===j&&(j=F);var $=Object.getOwnPropertyDescriptor(V,F);(!$||("get"in $?!V.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return V[F]}}),Object.defineProperty(G,j,$)}:function(G,V,F,j){void 0===j&&(j=F),G[j]=V[F]};function X(G,V){for(var F in G)"default"!==F&&!Object.prototype.hasOwnProperty.call(V,F)&&U(V,G,F)}function le(G){var V="function"==typeof Symbol&&Symbol.iterator,F=V&&G[V],j=0;if(F)return F.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&j>=G.length&&(G=void 0),{value:G&&G[j++],done:!G}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function Q(G,V){var F="function"==typeof Symbol&&G[Symbol.iterator];if(!F)return G;var $,de,j=F.call(G),K=[];try{for(;(void 0===V||V-- >0)&&!($=j.next()).done;)K.push($.value)}catch(ge){de={error:ge}}finally{try{$&&!$.done&&(F=j.return)&&F.call(j)}finally{if(de)throw de.error}}return K}function ce(){for(var G=[],V=0;V<arguments.length;V++)G=G.concat(Q(arguments[V]));return G}function Be(){for(var G=0,V=0,F=arguments.length;V<F;V++)G+=arguments[V].length;var j=Array(G),$=0;for(V=0;V<F;V++)for(var K=arguments[V],de=0,ge=K.length;de<ge;de++,$++)j[$]=K[de];return j}function ze(G,V,F){if(F||2===arguments.length)for(var K,j=0,$=V.length;j<$;j++)(K||!(j in V))&&(K||(K=Array.prototype.slice.call(V,0,j)),K[j]=V[j]);return G.concat(K||Array.prototype.slice.call(V))}function Ve(G){return this instanceof Ve?(this.v=G,this):new Ve(G)}function Se(G,V,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $,j=F.apply(G,V||[]),K=[];return $={},de("next"),de("throw"),de("return"),$[Symbol.asyncIterator]=function(){return this},$;function de(mt){j[mt]&&($[mt]=function(Ae){return new Promise(function(Ge,ne){K.push([mt,Ae,Ge,ne])>1||ge(mt,Ae)})})}function ge(mt,Ae){try{!function Fe(mt){mt.value instanceof Ve?Promise.resolve(mt.value.v).then(Le,Xe):Ke(K[0][2],mt)}(j[mt](Ae))}catch(Ge){Ke(K[0][3],Ge)}}function Le(mt){ge("next",mt)}function Xe(mt){ge("throw",mt)}function Ke(mt,Ae){mt(Ae),K.shift(),K.length&&ge(K[0][0],K[0][1])}}function Oe(G){var V,F;return V={},j("next"),j("throw",function($){throw $}),j("return"),V[Symbol.iterator]=function(){return this},V;function j($,K){V[$]=G[$]?function(de){return(F=!F)?{value:Ve(G[$](de)),done:!1}:K?K(de):de}:K}}function Me(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F,V=G[Symbol.asyncIterator];return V?V.call(G):(G=le(G),F={},j("next"),j("throw"),j("return"),F[Symbol.asyncIterator]=function(){return this},F);function j(K){F[K]=G[K]&&function(de){return new Promise(function(ge,Fe){!function $(K,de,ge,Fe){Promise.resolve(Fe).then(function(Le){K({value:Le,done:ge})},de)}(ge,Fe,(de=G[K](de)).done,de.value)})}}}function ke(G,V){return Object.defineProperty?Object.defineProperty(G,"raw",{value:V}):G.raw=V,G}var Ce=Object.create?function(G,V){Object.defineProperty(G,"default",{enumerable:!0,value:V})}:function(G,V){G.default=V};function De(G){if(G&&G.__esModule)return G;var V={};if(null!=G)for(var F in G)"default"!==F&&Object.prototype.hasOwnProperty.call(G,F)&&U(V,G,F);return Ce(V,G),V}function He(G){return G&&G.__esModule?G:{default:G}}function dt(G,V,F,j){if("a"===F&&!j)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof V?G!==V||!j:!V.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===F?j:"a"===F?j.call(G):j?j.value:V.get(G)}function xt(G,V,F,j,$){if("m"===j)throw new TypeError("Private method is not writable");if("a"===j&&!$)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof V?G!==V||!$:!V.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===j?$.call(G,F):$?$.value=F:V.set(G,F),F}function zt(G,V){if(null===V||"object"!=typeof V&&"function"!=typeof V)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof G?V===G:G.has(V)}function Gt(G,V,F){if(null!=V){if("object"!=typeof V&&"function"!=typeof V)throw new TypeError("Object expected.");var j;if(F){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");j=V[Symbol.asyncDispose]}if(void 0===j){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");j=V[Symbol.dispose]}if("function"!=typeof j)throw new TypeError("Object not disposable.");G.stack.push({value:V,dispose:j,async:F})}else F&&G.stack.push({async:!0});return V}var Je="function"==typeof SuppressedError?SuppressedError:function(G,V,F){var j=new Error(F);return j.name="SuppressedError",j.error=G,j.suppressed=V,j};function ae(G){function V(j){G.error=G.hasError?new Je(j,G.error,"An error was suppressed during disposal."):j,G.hasError=!0}return function F(){for(;G.stack.length;){var j=G.stack.pop();try{var $=j.dispose&&j.dispose.call(j.value);if(j.async)return Promise.resolve($).then(F,function(K){return V(K),F()})}catch(K){V(K)}}if(G.hasError)throw G.error}()}const oe={__extends:i,__assign:te,__rest:q,__decorate:v,__param:C,__metadata:P,__awaiter:x,__generator:w,__createBinding:U,__exportStar:X,__values:le,__read:Q,__spread:ce,__spreadArrays:Be,__spreadArray:ze,__await:Ve,__asyncGenerator:Se,__asyncDelegator:Oe,__asyncValues:Me,__makeTemplateObject:ke,__importStar:De,__importDefault:He,__classPrivateFieldGet:dt,__classPrivateFieldSet:xt,__classPrivateFieldIn:zt,__addDisposableResource:Gt,__disposeResources:ae}},6e3:(Ee,y,b)=>{"use strict";b.d(y,{IO:()=>w,SB:()=>E,X$:()=>i,ZE:()=>Me,ZN:()=>Oe,eR:()=>R,jt:()=>te,k1:()=>ke,l3:()=>a,oB:()=>C,pV:()=>P,ru:()=>q,vP:()=>v});const a="*";function i(Ce,De){return{type:7,name:Ce,definitions:De,options:{}}}function te(Ce,De=null){return{type:4,styles:De,timings:Ce}}function q(Ce,De=null){return{type:3,steps:Ce,options:De}}function v(Ce,De=null){return{type:2,steps:Ce,options:De}}function C(Ce){return{type:6,styles:Ce,offset:null}}function E(Ce,De,He){return{type:0,name:Ce,styles:De,options:He}}function R(Ce,De,He=null){return{type:1,expr:Ce,animation:De,options:He}}function P(Ce=null){return{type:9,options:Ce}}function w(Ce,De,He=null){return{type:11,selector:Ce,animation:De,options:He}}class Oe{constructor(De=0,He=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=De+He}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(De=>De()),this._onDoneFns=[])}onStart(De){this._originalOnStartFns.push(De),this._onStartFns.push(De)}onDone(De){this._originalOnDoneFns.push(De),this._onDoneFns.push(De)}onDestroy(De){this._onDestroyFns.push(De)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(De=>De()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(De=>De()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(De){this._position=this.totalTime?De*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(De){const He="start"==De?this._onStartFns:this._onDoneFns;He.forEach(dt=>dt()),He.length=0}}class Me{constructor(De){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=De;let He=0,dt=0,xt=0;const zt=this.players.length;0==zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Gt=>{Gt.onDone(()=>{++He==zt&&this._onFinish()}),Gt.onDestroy(()=>{++dt==zt&&this._onDestroy()}),Gt.onStart(()=>{++xt==zt&&this._onStart()})}),this.totalTime=this.players.reduce((Gt,Je)=>Math.max(Gt,Je.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(De=>De()),this._onDoneFns=[])}init(){this.players.forEach(De=>De.init())}onStart(De){this._onStartFns.push(De)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(De=>De()),this._onStartFns=[])}onDone(De){this._onDoneFns.push(De)}onDestroy(De){this._onDestroyFns.push(De)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(De=>De.play())}pause(){this.players.forEach(De=>De.pause())}restart(){this.players.forEach(De=>De.restart())}finish(){this._onFinish(),this.players.forEach(De=>De.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(De=>De.destroy()),this._onDestroyFns.forEach(De=>De()),this._onDestroyFns=[])}reset(){this.players.forEach(De=>De.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(De){const He=De*this.totalTime;this.players.forEach(dt=>{const xt=dt.totalTime?Math.min(1,He/dt.totalTime):1;dt.setPosition(xt)})}getPosition(){const De=this.players.reduce((He,dt)=>null===He||dt.totalTime>He.totalTime?dt:He,null);return null!=De?De.getPosition():0}beforeDestroy(){this.players.forEach(De=>{De.beforeDestroy&&De.beforeDestroy()})}triggerCallback(De){const He="start"==De?this._onStartFns:this._onDoneFns;He.forEach(dt=>dt()),He.length=0}}const ke="!"},8654:(Ee,y,b)=>{"use strict";b.d(y,{$s:()=>He,Em:()=>Je,X6:()=>bt,ic:()=>oe,kH:()=>wn,qV:()=>Ae,qm:()=>Ln,rt:()=>Bn,tE:()=>ei,yG:()=>gt});var a=b(9462),i=b(1322),te=b(3844),q=b(9453),v=b(9592),C=b(1625),E=b(9627),A=b(7605),R=b(4104),S=b(2067),P=b(1497),x=b(8412),w=b(3581),U=b(1800),X=b(4263),le=b(5779),Q=b(8267),ce=b(5988),Be=b(4515);function Oe(We,me){return(We.getAttribute(me)||"").match(/\S+/g)||[]}const ke="cdk-describedby-message",Ce="cdk-describedby-host";let De=0,He=(()=>{class We{constructor(z,L){this._platform=L,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+De++,this._document=z,this._id=(0,i.f3M)(i.AFp)+"-"+De++}describe(z,L,se){if(!this._canBeDescribed(z,L))return;const J=dt(L,se);"string"!=typeof L?(xt(L,this._id),this._messageRegistry.set(J,{messageElement:L,referenceCount:0})):this._messageRegistry.has(J)||this._createMessageElement(L,se),this._isElementDescribedByMessage(z,J)||this._addMessageReference(z,J)}removeDescription(z,L,se){if(!L||!this._isElementNode(z))return;const J=dt(L,se);if(this._isElementDescribedByMessage(z,J)&&this._removeMessageReference(z,J),"string"==typeof L){const he=this._messageRegistry.get(J);he&&0===he.referenceCount&&this._deleteMessageElement(J)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const z=this._document.querySelectorAll(`[${Ce}="${this._id}"]`);for(let L=0;L<z.length;L++)this._removeCdkDescribedByReferenceIds(z[L]),z[L].removeAttribute(Ce);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(z,L){const se=this._document.createElement("div");xt(se,this._id),se.textContent=z,L&&se.setAttribute("role",L),this._createMessagesContainer(),this._messagesContainer.appendChild(se),this._messageRegistry.set(dt(z,L),{messageElement:se,referenceCount:0})}_deleteMessageElement(z){this._messageRegistry.get(z)?.messageElement?.remove(),this._messageRegistry.delete(z)}_createMessagesContainer(){if(this._messagesContainer)return;const z="cdk-describedby-message-container",L=this._document.querySelectorAll(`.${z}[platform="server"]`);for(let J=0;J<L.length;J++)L[J].remove();const se=this._document.createElement("div");se.style.visibility="hidden",se.classList.add(z),se.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&se.setAttribute("platform","server"),this._document.body.appendChild(se),this._messagesContainer=se}_removeCdkDescribedByReferenceIds(z){const L=Oe(z,"aria-describedby").filter(se=>0!=se.indexOf(ke));z.setAttribute("aria-describedby",L.join(" "))}_addMessageReference(z,L){const se=this._messageRegistry.get(L);(function Ve(We,me,z){const L=Oe(We,me);L.some(se=>se.trim()==z.trim())||(L.push(z.trim()),We.setAttribute(me,L.join(" ")))})(z,"aria-describedby",se.messageElement.id),z.setAttribute(Ce,this._id),se.referenceCount++}_removeMessageReference(z,L){const se=this._messageRegistry.get(L);se.referenceCount--,function Se(We,me,z){const se=Oe(We,me).filter(J=>J!=z.trim());se.length?We.setAttribute(me,se.join(" ")):We.removeAttribute(me)}(z,"aria-describedby",se.messageElement.id),z.removeAttribute(Ce)}_isElementDescribedByMessage(z,L){const se=Oe(z,"aria-describedby"),J=this._messageRegistry.get(L),he=J&&J.messageElement.id;return!!he&&-1!=se.indexOf(he)}_canBeDescribed(z,L){if(!this._isElementNode(z))return!1;if(L&&"object"==typeof L)return!0;const se=null==L?"":`${L}`.trim(),J=z.getAttribute("aria-label");return!(!se||J&&J.trim()===se)}_isElementNode(z){return z.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(a.K0),i.LFG(te.t4))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function dt(We,me){return"string"==typeof We?`${me||""}/${We}`:We}function xt(We,me){We.id||(We.id=`${ke}-${me}-${De++}`)}class zt{constructor(me){this._items=me,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new q.x,this._typeaheadSubscription=v.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=z=>z.disabled,this._pressedLetters=[],this.tabOut=new q.x,this.change=new q.x,me instanceof i.n_E&&(this._itemChangesSubscription=me.changes.subscribe(z=>{if(this._activeItem){const se=z.toArray().indexOf(this._activeItem);se>-1&&se!==this._activeItemIndex&&(this._activeItemIndex=se)}}))}skipPredicate(me){return this._skipPredicateFn=me,this}withWrap(me=!0){return this._wrap=me,this}withVerticalOrientation(me=!0){return this._vertical=me,this}withHorizontalOrientation(me){return this._horizontal=me,this}withAllowedModifierKeys(me){return this._allowedModifierKeys=me,this}withTypeAhead(me=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(z=>this._pressedLetters.push(z)),(0,S.b)(me),(0,P.h)(()=>this._pressedLetters.length>0),(0,x.U)(()=>this._pressedLetters.join(""))).subscribe(z=>{const L=this._getItemsArray();for(let se=1;se<L.length+1;se++){const J=(this._activeItemIndex+se)%L.length,he=L[J];if(!this._skipPredicateFn(he)&&0===he.getLabel().toUpperCase().trim().indexOf(z)){this.setActiveItem(J);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(me=!0){return this._homeAndEnd=me,this}withPageUpDown(me=!0,z=10){return this._pageUpAndDown={enabled:me,delta:z},this}setActiveItem(me){const z=this._activeItem;this.updateActiveItem(me),this._activeItem!==z&&this.change.next(this._activeItemIndex)}onKeydown(me){const z=me.keyCode,se=["altKey","ctrlKey","metaKey","shiftKey"].every(J=>!me[J]||this._allowedModifierKeys.indexOf(J)>-1);switch(z){case A.Mf:return void this.tabOut.next();case A.JH:if(this._vertical&&se){this.setNextItemActive();break}return;case A.LH:if(this._vertical&&se){this.setPreviousItemActive();break}return;case A.SV:if(this._horizontal&&se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case A.oh:if(this._horizontal&&se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case A.Sd:if(this._homeAndEnd&&se){this.setFirstItemActive();break}return;case A.uR:if(this._homeAndEnd&&se){this.setLastItemActive();break}return;case A.Ku:if(this._pageUpAndDown.enabled&&se){const J=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(J>0?J:0,1);break}return;case A.VM:if(this._pageUpAndDown.enabled&&se){const J=this._activeItemIndex+this._pageUpAndDown.delta,he=this._getItemsArray().length;this._setActiveItemByIndex(J<he?J:he-1,-1);break}return;default:return void((se||(0,A.Vb)(me,"shiftKey"))&&(me.key&&1===me.key.length?this._letterKeyStream.next(me.key.toLocaleUpperCase()):(z>=A.A&&z<=A.Z||z>=A.xE&&z<=A.aO)&&this._letterKeyStream.next(String.fromCharCode(z))))}this._pressedLetters=[],me.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(me){const z=this._getItemsArray(),L="number"==typeof me?me:z.indexOf(me);this._activeItem=z[L]??null,this._activeItemIndex=L}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(me){this._wrap?this._setActiveInWrapMode(me):this._setActiveInDefaultMode(me)}_setActiveInWrapMode(me){const z=this._getItemsArray();for(let L=1;L<=z.length;L++){const se=(this._activeItemIndex+me*L+z.length)%z.length;if(!this._skipPredicateFn(z[se]))return void this.setActiveItem(se)}}_setActiveInDefaultMode(me){this._setActiveItemByIndex(this._activeItemIndex+me,me)}_setActiveItemByIndex(me,z){const L=this._getItemsArray();if(L[me]){for(;this._skipPredicateFn(L[me]);)if(!L[me+=z])return;this.setActiveItem(me)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Je extends zt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(me){return this._origin=me,this}setActiveItem(me){super.setActiveItem(me),this.activeItem&&this.activeItem.focus(this._origin)}}let oe=(()=>{class We{constructor(z){this._platform=z}isDisabled(z){return z.hasAttribute("disabled")}isVisible(z){return function V(We){return!!(We.offsetWidth||We.offsetHeight||"function"==typeof We.getClientRects&&We.getClientRects().length)}(z)&&"visible"===getComputedStyle(z).visibility}isTabbable(z){if(!this._platform.isBrowser)return!1;const L=function G(We){try{return We.frameElement}catch{return null}}(function Ke(We){return We.ownerDocument&&We.ownerDocument.defaultView||window}(z));if(L&&(-1===Fe(L)||!this.isVisible(L)))return!1;let se=z.nodeName.toLowerCase(),J=Fe(z);return z.hasAttribute("contenteditable")?-1!==J:!("iframe"===se||"object"===se||this._platform.WEBKIT&&this._platform.IOS&&!function Le(We){let me=We.nodeName.toLowerCase(),z="input"===me&&We.type;return"text"===z||"password"===z||"select"===me||"textarea"===me}(z))&&("audio"===se?!!z.hasAttribute("controls")&&-1!==J:"video"===se?-1!==J&&(null!==J||this._platform.FIREFOX||z.hasAttribute("controls")):z.tabIndex>=0)}isFocusable(z,L){return function Xe(We){return!function j(We){return function K(We){return"input"==We.nodeName.toLowerCase()}(We)&&"hidden"==We.type}(We)&&(function F(We){let me=We.nodeName.toLowerCase();return"input"===me||"select"===me||"button"===me||"textarea"===me}(We)||function $(We){return function de(We){return"a"==We.nodeName.toLowerCase()}(We)&&We.hasAttribute("href")}(We)||We.hasAttribute("contenteditable")||ge(We))}(z)&&!this.isDisabled(z)&&(L?.ignoreVisibility||this.isVisible(z))}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(te.t4))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function ge(We){if(!We.hasAttribute("tabindex")||void 0===We.tabIndex)return!1;let me=We.getAttribute("tabindex");return!(!me||isNaN(parseInt(me,10)))}function Fe(We){if(!ge(We))return null;const me=parseInt(We.getAttribute("tabindex")||"",10);return isNaN(me)?-1:me}class mt{get enabled(){return this._enabled}set enabled(me){this._enabled=me,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}constructor(me,z,L,se,J=!1){this._element=me,this._checker=z,this._ngZone=L,this._document=se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,J||this.attachAnchors()}destroy(){const me=this._startAnchor,z=this._endAnchor;me&&(me.removeEventListener("focus",this.startAnchorListener),me.remove()),z&&(z.removeEventListener("focus",this.endAnchorListener),z.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(me){return new Promise(z=>{this._executeOnStable(()=>z(this.focusInitialElement(me)))})}focusFirstTabbableElementWhenReady(me){return new Promise(z=>{this._executeOnStable(()=>z(this.focusFirstTabbableElement(me)))})}focusLastTabbableElementWhenReady(me){return new Promise(z=>{this._executeOnStable(()=>z(this.focusLastTabbableElement(me)))})}_getRegionBoundary(me){const z=this._element.querySelectorAll(`[cdk-focus-region-${me}], [cdkFocusRegion${me}], [cdk-focus-${me}]`);return"start"==me?z.length?z[0]:this._getFirstTabbableElement(this._element):z.length?z[z.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(me){const z=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(z){if(!this._checker.isFocusable(z)){const L=this._getFirstTabbableElement(z);return L?.focus(me),!!L}return z.focus(me),!0}return this.focusFirstTabbableElement(me)}focusFirstTabbableElement(me){const z=this._getRegionBoundary("start");return z&&z.focus(me),!!z}focusLastTabbableElement(me){const z=this._getRegionBoundary("end");return z&&z.focus(me),!!z}hasAttached(){return this._hasAttached}_getFirstTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;const z=me.children;for(let L=0;L<z.length;L++){const se=z[L].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(z[L]):null;if(se)return se}return null}_getLastTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;const z=me.children;for(let L=z.length-1;L>=0;L--){const se=z[L].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(z[L]):null;if(se)return se}return null}_createAnchor(){const me=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,me),me.classList.add("cdk-visually-hidden"),me.classList.add("cdk-focus-trap-anchor"),me.setAttribute("aria-hidden","true"),me}_toggleAnchorTabIndex(me,z){me?z.setAttribute("tabindex","0"):z.removeAttribute("tabindex")}toggleAnchors(me){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}_executeOnStable(me){this._ngZone.isStable?me():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(me)}}let Ae=(()=>{class We{constructor(z,L,se){this._checker=z,this._ngZone=L,this._document=se}create(z,L=!1){return new mt(z,this._checker,this._ngZone,this._document,L)}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(oe),i.LFG(i.R0b),i.LFG(a.K0))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function bt(We){return 0===We.buttons||0===We.detail}function gt(We){const me=We.touches&&We.touches[0]||We.changedTouches&&We.changedTouches[0];return!(!me||-1!==me.identifier||null!=me.radiusX&&1!==me.radiusX||null!=me.radiusY&&1!==me.radiusY)}const Lt=new i.OlP("cdk-input-modality-detector-options"),ut={ignoreKeys:[A.zL,A.jx,A.b2,A.MW,A.JU]},wt=(0,te.i$)({passive:!0,capture:!0});let nn=(()=>{class We{get mostRecentModality(){return this._modality.value}constructor(z,L,se,J){this._platform=z,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=he=>{this._options?.ignoreKeys?.some(I=>I===he.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,te.sA)(he))},this._onMousedown=he=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bt(he)?"keyboard":"mouse"),this._mostRecentTarget=(0,te.sA)(he))},this._onTouchstart=he=>{gt(he)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,te.sA)(he))},this._options={...ut,...J},this.modalityDetected=this._modality.pipe((0,U.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,X.x)()),z.isBrowser&&L.runOutsideAngular(()=>{se.addEventListener("keydown",this._onKeydown,wt),se.addEventListener("mousedown",this._onMousedown,wt),se.addEventListener("touchstart",this._onTouchstart,wt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,wt),document.removeEventListener("mousedown",this._onMousedown,wt),document.removeEventListener("touchstart",this._onTouchstart,wt))}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(te.t4),i.LFG(i.R0b),i.LFG(a.K0),i.LFG(Lt,8))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const Ri=new i.OlP("cdk-focus-monitor-default-options"),jt=(0,te.i$)({passive:!0,capture:!0});let ei=(()=>{class We{constructor(z,L,se,J,he){this._ngZone=z,this._platform=L,this._inputModalityDetector=se,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new q.x,this._rootNodeFocusAndBlurListener=I=>{for(let ue=(0,te.sA)(I);ue;ue=ue.parentElement)"focus"===I.type?this._onFocus(I,ue):this._onBlur(I,ue)},this._document=J,this._detectionMode=he?.detectionMode||0}monitor(z,L=!1){const se=(0,ce.fI)(z);if(!this._platform.isBrowser||1!==se.nodeType)return(0,E.of)();const J=(0,te.kV)(se)||this._getDocument(),he=this._elementInfo.get(se);if(he)return L&&(he.checkChildren=!0),he.subject;const I={checkChildren:L,subject:new q.x,rootNode:J};return this._elementInfo.set(se,I),this._registerGlobalListeners(I),I.subject}stopMonitoring(z){const L=(0,ce.fI)(z),se=this._elementInfo.get(L);se&&(se.subject.complete(),this._setClasses(L),this._elementInfo.delete(L),this._removeGlobalListeners(se))}focusVia(z,L,se){const J=(0,ce.fI)(z);J===this._getDocument().activeElement?this._getClosestElementsInfo(J).forEach(([I,Y])=>this._originChanged(I,L,Y)):(this._setOrigin(L),"function"==typeof J.focus&&J.focus(se))}ngOnDestroy(){this._elementInfo.forEach((z,L)=>this.stopMonitoring(L))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(z){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(z)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:z&&this._isLastInteractionFromInputLabel(z)?"mouse":"program"}_shouldBeAttributedToTouch(z){return 1===this._detectionMode||!!z?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(z,L){z.classList.toggle("cdk-focused",!!L),z.classList.toggle("cdk-touch-focused","touch"===L),z.classList.toggle("cdk-keyboard-focused","keyboard"===L),z.classList.toggle("cdk-mouse-focused","mouse"===L),z.classList.toggle("cdk-program-focused","program"===L)}_setOrigin(z,L=!1){this._ngZone.runOutsideAngular(()=>{this._origin=z,this._originFromTouchInteraction="touch"===z&&L,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(z,L){const se=this._elementInfo.get(L),J=(0,te.sA)(z);!se||!se.checkChildren&&L!==J||this._originChanged(L,this._getFocusOrigin(J),se)}_onBlur(z,L){const se=this._elementInfo.get(L);!se||se.checkChildren&&z.relatedTarget instanceof Node&&L.contains(z.relatedTarget)||(this._setClasses(L),this._emitOrigin(se,null))}_emitOrigin(z,L){z.subject.observers.length&&this._ngZone.run(()=>z.subject.next(L))}_registerGlobalListeners(z){if(!this._platform.isBrowser)return;const L=z.rootNode,se=this._rootNodeFocusListenerCount.get(L)||0;se||this._ngZone.runOutsideAngular(()=>{L.addEventListener("focus",this._rootNodeFocusAndBlurListener,jt),L.addEventListener("blur",this._rootNodeFocusAndBlurListener,jt)}),this._rootNodeFocusListenerCount.set(L,se+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,le.R)(this._stopInputModalityDetector)).subscribe(J=>{this._setOrigin(J,!0)}))}_removeGlobalListeners(z){const L=z.rootNode;if(this._rootNodeFocusListenerCount.has(L)){const se=this._rootNodeFocusListenerCount.get(L);se>1?this._rootNodeFocusListenerCount.set(L,se-1):(L.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jt),L.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jt),this._rootNodeFocusListenerCount.delete(L))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(z,L,se){this._setClasses(z,L),this._emitOrigin(se,L),this._lastFocusOrigin=L}_getClosestElementsInfo(z){const L=[];return this._elementInfo.forEach((se,J)=>{(J===z||se.checkChildren&&J.contains(z))&&L.push([J,se])}),L}_isLastInteractionFromInputLabel(z){const{_mostRecentTarget:L,mostRecentModality:se}=this._inputModalityDetector;if("mouse"!==se||!L||L===z||"INPUT"!==z.nodeName&&"TEXTAREA"!==z.nodeName||z.disabled)return!1;const J=z.labels;if(J)for(let he=0;he<J.length;he++)if(J[he].contains(L))return!0;return!1}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(i.R0b),i.LFG(te.t4),i.LFG(nn),i.LFG(a.K0,8),i.LFG(Ri,8))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),wn=(()=>{class We{constructor(z,L){this._elementRef=z,this._focusMonitor=L,this._focusOrigin=null,this.cdkFocusChange=new i.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const z=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(z,1===z.nodeType&&z.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(L=>{this._focusOrigin=L,this.cdkFocusChange.emit(L)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(L){return new(L||We)(i.Y36(i.SBq),i.Y36(ei))};static#t=this.\u0275dir=i.lG2({type:We,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return We})();const Et="cdk-high-contrast-black-on-white",Ot="cdk-high-contrast-white-on-black",On="cdk-high-contrast-active";let Ln=(()=>{class We{constructor(z,L){this._platform=z,this._document=L,this._breakpointSubscription=(0,i.f3M)(Be.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const z=this._document.createElement("div");z.style.backgroundColor="rgb(1,2,3)",z.style.position="absolute",this._document.body.appendChild(z);const L=this._document.defaultView||window,se=L&&L.getComputedStyle?L.getComputedStyle(z):null,J=(se&&se.backgroundColor||"").replace(/ /g,"");switch(z.remove(),J){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const z=this._document.body.classList;z.remove(On,Et,Ot),this._hasCheckedHighContrastMode=!0;const L=this.getHighContrastMode();1===L?z.add(On,Et):2===L&&z.add(On,Ot)}}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(te.t4),i.LFG(a.K0))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),Bn=(()=>{class We{constructor(z){z._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(L){return new(L||We)(i.LFG(Ln))};static#t=this.\u0275mod=i.oAB({type:We});static#n=this.\u0275inj=i.cJS({imports:[Q.Q8]})}return We})()},4877:(Ee,y,b)=>{"use strict";b.d(y,{Is:()=>E,vT:()=>R});var a=b(1322),i=b(9462);const te=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function q(){return(0,a.f3M)(i.K0)}}),v=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class S{constructor(x){this.value="ltr",this.change=new a.vpe,x&&(this.value=function C(S){const P=S?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?v.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((x.body?x.body.dir:null)||(x.documentElement?x.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(w){return new(w||S)(a.LFG(te,8))};static#t=this.\u0275prov=a.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),R=(()=>{class S{static#e=this.\u0275fac=function(w){return new(w||S)};static#t=this.\u0275mod=a.oAB({type:S});static#n=this.\u0275inj=a.cJS({})}return S})()},5988:(Ee,y,b)=>{"use strict";b.d(y,{Eq:()=>v,HM:()=>C,Ig:()=>i,fI:()=>E,su:()=>te});var a=b(1322);function i(R){return null!=R&&"false"!=`${R}`}function te(R,S=0){return function q(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}(R)?Number(R):S}function v(R){return Array.isArray(R)?R:[R]}function C(R){return null==R?"":"string"==typeof R?R:`${R}px`}function E(R){return R instanceof a.SBq?R.nativeElement:R}},7605:(Ee,y,b)=>{"use strict";b.d(y,{A:()=>j,JH:()=>ze,JU:()=>C,K5:()=>v,Ku:()=>w,LH:()=>ce,L_:()=>x,MW:()=>Dn,Mf:()=>te,SV:()=>Be,Sd:()=>le,VM:()=>U,Vb:()=>vn,Z:()=>rt,ZH:()=>i,aO:()=>ae,b2:()=>_n,hY:()=>P,jx:()=>E,oh:()=>Q,uR:()=>X,xE:()=>ke,yY:()=>Me,zL:()=>A});const i=8,te=9,v=13,C=16,E=17,A=18,P=27,x=32,w=33,U=34,X=35,le=36,Q=37,ce=38,Be=39,ze=40,Me=46,ke=48,ae=57,j=65,rt=90,Dn=91,_n=224;function vn(yt,...Si){return Si.length?Si.some(Tn=>yt[Tn]):yt.altKey||yt.shiftKey||yt.ctrlKey||yt.metaKey}},4515:(Ee,y,b)=>{"use strict";b.d(y,{Yg:()=>xt});var a=b(1322),i=b(5988),te=b(9453),q=b(7371),v=b(1003),C=b(107),E=b(2390),A=b(4574),R=b(177),S=b(5017),P=b(2829),x=b(8382);function X(Je,ae,oe){Je?(0,x.f)(oe,Je,ae):ae()}var le=b(9925),Q=b(3581),ce=b(1800),Be=b(2067),ze=b(8412),Ve=b(19),Se=b(5779),Oe=b(3844);const ke=new Set;let Ce,De=(()=>{class Je{constructor(oe,G){this._platform=oe,this._nonce=G,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):dt}matchMedia(oe){return(this._platform.WEBKIT||this._platform.BLINK)&&function He(Je,ae){if(!ke.has(Je))try{Ce||(Ce=document.createElement("style"),ae&&(Ce.nonce=ae),Ce.setAttribute("type","text/css"),document.head.appendChild(Ce)),Ce.sheet&&(Ce.sheet.insertRule(`@media ${Je} {body{ }}`,0),ke.add(Je))}catch(oe){console.error(oe)}}(oe,this._nonce),this._matchMedia(oe)}static#e=this.\u0275fac=function(G){return new(G||Je)(a.LFG(Oe.t4),a.LFG(a.Ojb,8))};static#t=this.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})();function dt(Je){return{matches:"all"===Je||""===Je,media:Je,addListener:()=>{},removeListener:()=>{}}}let xt=(()=>{class Je{constructor(oe,G){this._mediaMatcher=oe,this._zone=G,this._queries=new Map,this._destroySubject=new te.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(oe){return zt((0,i.Eq)(oe)).some(V=>this._registerQuery(V).mql.matches)}observe(oe){let F=function w(...Je){const ae=(0,R.yG)(Je),oe=(0,R.jO)(Je),{args:G,keys:V}=(0,v.D)(Je);if(0===G.length)return(0,C.D)([],ae);const F=new q.y(function U(Je,ae,oe=E.y){return G=>{X(ae,()=>{const{length:V}=Je,F=new Array(V);let j=V,$=V;for(let K=0;K<V;K++)X(ae,()=>{const de=(0,C.D)(Je[K],ae);let ge=!1;de.subscribe((0,P.x)(G,Fe=>{F[K]=Fe,ge||(ge=!0,$--),$||G.next(oe(F.slice()))},()=>{--j||G.complete()}))},G)},G)}}(G,ae,V?j=>(0,S.n)(V,j):E.y));return oe?F.pipe((0,A.Z)(oe)):F}(zt((0,i.Eq)(oe)).map(j=>this._registerQuery(j).observable));return F=(0,le.z)(F.pipe((0,Q.q)(1)),F.pipe((0,ce.T)(1),(0,Be.b)(0))),F.pipe((0,ze.U)(j=>{const $={matches:!1,breakpoints:{}};return j.forEach(({matches:K,query:de})=>{$.matches=$.matches||K,$.breakpoints[de]=K}),$}))}_registerQuery(oe){if(this._queries.has(oe))return this._queries.get(oe);const G=this._mediaMatcher.matchMedia(oe),F={observable:new q.y(j=>{const $=K=>this._zone.run(()=>j.next(K));return G.addListener($),()=>{G.removeListener($)}}).pipe((0,Ve.O)(G),(0,ze.U)(({matches:j})=>({query:oe,matches:j})),(0,Se.R)(this._destroySubject)),mql:G};return this._queries.set(oe,F),F}static#e=this.\u0275fac=function(G){return new(G||Je)(a.LFG(De),a.LFG(a.R0b))};static#t=this.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})();function zt(Je){return Je.map(ae=>ae.split(",")).reduce((ae,oe)=>ae.concat(oe)).map(ae=>ae.trim())}},8267:(Ee,y,b)=>{"use strict";b.d(y,{Q8:()=>R,wD:()=>A});var a=b(5988),i=b(1322),te=b(7371),q=b(9453),v=b(2067);let C=(()=>{class S{create(x){return typeof MutationObserver>"u"?null:new MutationObserver(x)}static#e=this.\u0275fac=function(w){return new(w||S)};static#t=this.\u0275prov=i.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),E=(()=>{class S{constructor(x){this._mutationObserverFactory=x,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((x,w)=>this._cleanupObserver(w))}observe(x){const w=(0,a.fI)(x);return new te.y(U=>{const le=this._observeElement(w).subscribe(U);return()=>{le.unsubscribe(),this._unobserveElement(w)}})}_observeElement(x){if(this._observedElements.has(x))this._observedElements.get(x).count++;else{const w=new q.x,U=this._mutationObserverFactory.create(X=>w.next(X));U&&U.observe(x,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(x,{observer:U,stream:w,count:1})}return this._observedElements.get(x).stream}_unobserveElement(x){this._observedElements.has(x)&&(this._observedElements.get(x).count--,this._observedElements.get(x).count||this._cleanupObserver(x))}_cleanupObserver(x){if(this._observedElements.has(x)){const{observer:w,stream:U}=this._observedElements.get(x);w&&w.disconnect(),U.complete(),this._observedElements.delete(x)}}static#e=this.\u0275fac=function(w){return new(w||S)(i.LFG(C))};static#t=this.\u0275prov=i.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),A=(()=>{class S{get disabled(){return this._disabled}set disabled(x){this._disabled=x,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(x){this._debounce=(0,a.su)(x),this._subscribe()}constructor(x,w,U){this._contentObserver=x,this._elementRef=w,this._ngZone=U,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const x=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?x.pipe((0,v.b)(this.debounce)):x).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(w){return new(w||S)(i.Y36(E),i.Y36(i.SBq),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:S,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled",i.VuI],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[i.Xq5]})}return S})(),R=(()=>{class S{static#e=this.\u0275fac=function(w){return new(w||S)};static#t=this.\u0275mod=i.oAB({type:S});static#n=this.\u0275inj=i.cJS({providers:[C]})}return S})()},3844:(Ee,y,b)=>{"use strict";b.d(y,{Mq:()=>U,Oy:()=>Ve,ht:()=>Be,i$:()=>P,kV:()=>ce,sA:()=>ze,t4:()=>q});var a=b(1322),i=b(9462);let te;try{te=typeof Intl<"u"&&Intl.v8BreakIterator}catch{te=!1}let R,w,le,q=(()=>{class Se{constructor(Me){this._platformId=Me,this.isBrowser=this._platformId?(0,i.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!te)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(ke){return new(ke||Se)(a.LFG(a.Lbi))};static#t=this.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})();function P(Se){return function S(){if(null==R&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Se:!!Se.capture}function U(){if(null==w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return w=!1,w;if("scrollBehavior"in document.documentElement.style)w=!0;else{const Se=Element.prototype.scrollTo;w=!!Se&&!/\{\s*\[native code\]\s*\}/.test(Se.toString())}}return w}function ce(Se){if(function Q(){if(null==le){const Se=typeof document<"u"?document.head:null;le=!(!Se||!Se.createShadowRoot&&!Se.attachShadow)}return le}()){const Oe=Se.getRootNode?Se.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Oe instanceof ShadowRoot)return Oe}return null}function Be(){let Se=typeof document<"u"&&document?document.activeElement:null;for(;Se&&Se.shadowRoot;){const Oe=Se.shadowRoot.activeElement;if(Oe===Se)break;Se=Oe}return Se}function ze(Se){return Se.composedPath?Se.composedPath()[0]:Se.target}function Ve(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6512:(Ee,y,b)=>{"use strict";b.d(y,{C5:()=>S,Pl:()=>Be,UE:()=>P,eL:()=>Ve,en:()=>w,ig:()=>Q,u0:()=>X});var a=b(1322),i=b(9462);class R{attach(Me){return this._attachedHost=Me,Me.attach(this)}detach(){let Me=this._attachedHost;null!=Me&&(this._attachedHost=null,Me.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Me){this._attachedHost=Me}}class S extends R{constructor(Me,ke,Ce,De,He){super(),this.component=Me,this.viewContainerRef=ke,this.injector=Ce,this.componentFactoryResolver=De,this.projectableNodes=He}}class P extends R{constructor(Me,ke,Ce,De){super(),this.templateRef=Me,this.viewContainerRef=ke,this.context=Ce,this.injector=De}get origin(){return this.templateRef.elementRef}attach(Me,ke=this.context){return this.context=ke,super.attach(Me)}detach(){return this.context=void 0,super.detach()}}class x extends R{constructor(Me){super(),this.element=Me instanceof a.SBq?Me.nativeElement:Me}}class w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Me){return Me instanceof S?(this._attachedPortal=Me,this.attachComponentPortal(Me)):Me instanceof P?(this._attachedPortal=Me,this.attachTemplatePortal(Me)):this.attachDomPortal&&Me instanceof x?(this._attachedPortal=Me,this.attachDomPortal(Me)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Me){this._disposeFn=Me}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class X extends w{constructor(Me,ke,Ce,De,He){super(),this.outletElement=Me,this._componentFactoryResolver=ke,this._appRef=Ce,this._defaultInjector=De,this.attachDomPortal=dt=>{const xt=dt.element,zt=this._document.createComment("dom-portal");xt.parentNode.insertBefore(zt,xt),this.outletElement.appendChild(xt),this._attachedPortal=dt,super.setDisposeFn(()=>{zt.parentNode&&zt.parentNode.replaceChild(xt,zt)})},this._document=He}attachComponentPortal(Me){const Ce=(Me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Me.component);let De;return Me.viewContainerRef?(De=Me.viewContainerRef.createComponent(Ce,Me.viewContainerRef.length,Me.injector||Me.viewContainerRef.injector,Me.projectableNodes||void 0),this.setDisposeFn(()=>De.destroy())):(De=Ce.create(Me.injector||this._defaultInjector||a.zs3.NULL),this._appRef.attachView(De.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(De.hostView),De.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(De)),this._attachedPortal=Me,De}attachTemplatePortal(Me){let ke=Me.viewContainerRef,Ce=ke.createEmbeddedView(Me.templateRef,Me.context,{injector:Me.injector});return Ce.rootNodes.forEach(De=>this.outletElement.appendChild(De)),Ce.detectChanges(),this.setDisposeFn(()=>{let De=ke.indexOf(Ce);-1!==De&&ke.remove(De)}),this._attachedPortal=Me,Ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Me){return Me.hostView.rootNodes[0]}}let Q=(()=>{class Oe extends P{constructor(ke,Ce){super(ke,Ce)}static#e=this.\u0275fac=function(Ce){return new(Ce||Oe)(a.Y36(a.Rgc),a.Y36(a.s_b))};static#t=this.\u0275dir=a.lG2({type:Oe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.qOj]})}return Oe})(),Be=(()=>{class Oe extends w{constructor(ke,Ce,De){super(),this._componentFactoryResolver=ke,this._viewContainerRef=Ce,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=He=>{const dt=He.element,xt=this._document.createComment("dom-portal");He.setAttachedHost(this),dt.parentNode.insertBefore(xt,dt),this._getRootNode().appendChild(dt),this._attachedPortal=He,super.setDisposeFn(()=>{xt.parentNode&&xt.parentNode.replaceChild(dt,xt)})},this._document=De}get portal(){return this._attachedPortal}set portal(ke){this.hasAttached()&&!ke&&!this._isInitialized||(this.hasAttached()&&super.detach(),ke&&super.attach(ke),this._attachedPortal=ke||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ke){ke.setAttachedHost(this);const Ce=null!=ke.viewContainerRef?ke.viewContainerRef:this._viewContainerRef,He=(ke.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ke.component),dt=Ce.createComponent(He,Ce.length,ke.injector||Ce.injector,ke.projectableNodes||void 0);return Ce!==this._viewContainerRef&&this._getRootNode().appendChild(dt.hostView.rootNodes[0]),super.setDisposeFn(()=>dt.destroy()),this._attachedPortal=ke,this._attachedRef=dt,this.attached.emit(dt),dt}attachTemplatePortal(ke){ke.setAttachedHost(this);const Ce=this._viewContainerRef.createEmbeddedView(ke.templateRef,ke.context,{injector:ke.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ke,this._attachedRef=Ce,this.attached.emit(Ce),Ce}_getRootNode(){const ke=this._viewContainerRef.element.nativeElement;return ke.nodeType===ke.ELEMENT_NODE?ke:ke.parentNode}static#e=this.\u0275fac=function(Ce){return new(Ce||Oe)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(i.K0))};static#t=this.\u0275dir=a.lG2({type:Oe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]})}return Oe})(),Ve=(()=>{class Oe{static#e=this.\u0275fac=function(Ce){return new(Ce||Oe)};static#t=this.\u0275mod=a.oAB({type:Oe});static#n=this.\u0275inj=a.cJS({})}return Oe})()},9467:(Ee,y,b)=>{"use strict";b.d(y,{ZD:()=>Ke,mF:()=>ae,Cl:()=>mt,rL:()=>V});var a=b(5988),i=b(1322),te=b(9453),q=b(9627),v=b(7371),C=b(6058),E=b(2290),A=b(9592);const R={schedule(Ae){let Ge=requestAnimationFrame,ne=cancelAnimationFrame;const{delegate:re}=R;re&&(Ge=re.requestAnimationFrame,ne=re.cancelAnimationFrame);const Te=Ge($e=>{ne=void 0,Ae($e)});return new A.w0(()=>ne?.(Te))},requestAnimationFrame(...Ae){const{delegate:Ge}=R;return(Ge?.requestAnimationFrame||requestAnimationFrame)(...Ae)},cancelAnimationFrame(...Ae){const{delegate:Ge}=R;return(Ge?.cancelAnimationFrame||cancelAnimationFrame)(...Ae)},delegate:void 0};var P=b(5349);new class x extends P.v{flush(Ge){this._active=!0;const ne=this._scheduled;this._scheduled=void 0;const{actions:re}=this;let Te;Ge=Ge||re.shift();do{if(Te=Ge.execute(Ge.state,Ge.delay))break}while((Ge=re[0])&&Ge.id===ne&&re.shift());if(this._active=!1,Te){for(;(Ge=re[0])&&Ge.id===ne&&re.shift();)Ge.unsubscribe();throw Te}}}(class S extends E.o{constructor(Ge,ne){super(Ge,ne),this.scheduler=Ge,this.work=ne}requestAsyncId(Ge,ne,re=0){return null!==re&&re>0?super.requestAsyncId(Ge,ne,re):(Ge.actions.push(this),Ge._scheduled||(Ge._scheduled=R.requestAnimationFrame(()=>Ge.flush(void 0))))}recycleAsyncId(Ge,ne,re=0){var Te;if(null!=re?re>0:this.delay>0)return super.recycleAsyncId(Ge,ne,re);const{actions:$e}=Ge;null!=ne&&(null===(Te=$e[$e.length-1])||void 0===Te?void 0:Te.id)!==ne&&(R.cancelAnimationFrame(ne),Ge._scheduled=void 0)}});b(4453);var le=b(6589),Q=b(4049),ce=b(8299),Be=b(2829),Ve=b(5117);function Se(Ae,Ge=le.z){return function ze(Ae){return(0,Q.e)((Ge,ne)=>{let re=!1,Te=null,$e=null,it=!1;const bt=()=>{if($e?.unsubscribe(),$e=null,re){re=!1;const Lt=Te;Te=null,ne.next(Lt)}it&&ne.complete()},gt=()=>{$e=null,it&&ne.complete()};Ge.subscribe((0,Be.x)(ne,Lt=>{re=!0,Te=Lt,$e||(0,ce.Xf)(Ae(Lt)).subscribe($e=(0,Be.x)(ne,bt,gt))},()=>{it=!0,(!re||!$e||$e.closed)&&ne.complete()}))})}(()=>(0,Ve.H)(Ae,Ge))}var Oe=b(1497),Me=b(3844),ke=b(9462),Ce=b(4877);let ae=(()=>{class Ae{constructor(ne,re,Te){this._ngZone=ne,this._platform=re,this._scrolled=new te.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Te}register(ne){this.scrollContainers.has(ne)||this.scrollContainers.set(ne,ne.elementScrolled().subscribe(()=>this._scrolled.next(ne)))}deregister(ne){const re=this.scrollContainers.get(ne);re&&(re.unsubscribe(),this.scrollContainers.delete(ne))}scrolled(ne=20){return this._platform.isBrowser?new v.y(re=>{this._globalSubscription||this._addGlobalListener();const Te=ne>0?this._scrolled.pipe(Se(ne)).subscribe(re):this._scrolled.subscribe(re);return this._scrolledCount++,()=>{Te.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,q.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ne,re)=>this.deregister(re)),this._scrolled.complete()}ancestorScrolled(ne,re){const Te=this.getAncestorScrollContainers(ne);return this.scrolled(re).pipe((0,Oe.h)($e=>!$e||Te.indexOf($e)>-1))}getAncestorScrollContainers(ne){const re=[];return this.scrollContainers.forEach((Te,$e)=>{this._scrollableContainsElement($e,ne)&&re.push($e)}),re}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ne,re){let Te=(0,a.fI)(re),$e=ne.getElementRef().nativeElement;do{if(Te==$e)return!0}while(Te=Te.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ne=this._getWindow();return(0,C.R)(ne.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(re){return new(re||Ae)(i.LFG(i.R0b),i.LFG(Me.t4),i.LFG(ke.K0,8))};static#t=this.\u0275prov=i.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),V=(()=>{class Ae{constructor(ne,re,Te){this._platform=ne,this._change=new te.x,this._changeListener=$e=>{this._change.next($e)},this._document=Te,re.runOutsideAngular(()=>{if(ne.isBrowser){const $e=this._getWindow();$e.addEventListener("resize",this._changeListener),$e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ne=this._getWindow();ne.removeEventListener("resize",this._changeListener),ne.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ne={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ne}getViewportRect(){const ne=this.getViewportScrollPosition(),{width:re,height:Te}=this.getViewportSize();return{top:ne.top,left:ne.left,bottom:ne.top+Te,right:ne.left+re,height:Te,width:re}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ne=this._document,re=this._getWindow(),Te=ne.documentElement,$e=Te.getBoundingClientRect();return{top:-$e.top||ne.body.scrollTop||re.scrollY||Te.scrollTop||0,left:-$e.left||ne.body.scrollLeft||re.scrollX||Te.scrollLeft||0}}change(ne=20){return ne>0?this._change.pipe(Se(ne)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ne=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ne.innerWidth,height:ne.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(re){return new(re||Ae)(i.LFG(Me.t4),i.LFG(i.R0b),i.LFG(ke.K0,8))};static#t=this.\u0275prov=i.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),Ke=(()=>{class Ae{static#e=this.\u0275fac=function(re){return new(re||Ae)};static#t=this.\u0275mod=i.oAB({type:Ae});static#n=this.\u0275inj=i.cJS({})}return Ae})(),mt=(()=>{class Ae{static#e=this.\u0275fac=function(re){return new(re||Ae)};static#t=this.\u0275mod=i.oAB({type:Ae});static#n=this.\u0275inj=i.cJS({imports:[Ce.vT,Ke,Ce.vT,Ke]})}return Ae})()},9462:(Ee,y,b)=>{"use strict";b.d(y,{ED:()=>pn,HT:()=>q,JF:()=>fo,K0:()=>C,Mx:()=>Ie,NF:()=>Xr,O5:()=>_n,Ov:()=>xo,PM:()=>es,RF:()=>en,Ye:()=>Q,bD:()=>Jr,ez:()=>Pn,mk:()=>Re,n9:()=>Zt,q:()=>te,sg:()=>Ht,tP:()=>Vo,w_:()=>v});var a=b(1322);let i=null;function te(){return i}function q(_){i||(i=_)}class v{}const C=new a.OlP("DocumentToken");let E=(()=>{class _{historyGo(M){throw new Error("Not implemented")}static#e=this.\u0275fac=function(B){return new(B||_)};static#t=this.\u0275prov=a.Yz7({token:_,factory:()=>(0,a.f3M)(R),providedIn:"platform"})}return _})(),R=(()=>{class _ extends E{constructor(){super(),this._doc=(0,a.f3M)(C),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return te().getBaseHref(this._doc)}onPopState(M){const B=te().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",M,!1),()=>B.removeEventListener("popstate",M)}onHashChange(M){const B=te().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",M,!1),()=>B.removeEventListener("hashchange",M)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(M){this._location.pathname=M}pushState(M,B,pe){this._history.pushState(M,B,pe)}replaceState(M,B,pe){this._history.replaceState(M,B,pe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}static#e=this.\u0275fac=function(B){return new(B||_)};static#t=this.\u0275prov=a.Yz7({token:_,factory:()=>new _,providedIn:"platform"})}return _})();function S(_,W){if(0==_.length)return W;if(0==W.length)return _;let M=0;return _.endsWith("/")&&M++,W.startsWith("/")&&M++,2==M?_+W.substring(1):1==M?_+W:_+"/"+W}function P(_){const W=_.match(/#|\?|$/),M=W&&W.index||_.length;return _.slice(0,M-("/"===_[M-1]?1:0))+_.slice(M)}function x(_){return _&&"?"!==_[0]?"?"+_:_}let w=(()=>{class _{historyGo(M){throw new Error("Not implemented")}static#e=this.\u0275fac=function(B){return new(B||_)};static#t=this.\u0275prov=a.Yz7({token:_,factory:()=>(0,a.f3M)(X),providedIn:"root"})}return _})();const U=new a.OlP("appBaseHref");let X=(()=>{class _ extends w{constructor(M,B){super(),this._platformLocation=M,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,a.f3M)(C).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return S(this._baseHref,M)}path(M=!1){const B=this._platformLocation.pathname+x(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&M?`${B}${pe}`:B}pushState(M,B,pe,je){const tt=this.prepareExternalUrl(pe+x(je));this._platformLocation.pushState(M,B,tt)}replaceState(M,B,pe,je){const tt=this.prepareExternalUrl(pe+x(je));this._platformLocation.replaceState(M,B,tt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}static#e=this.\u0275fac=function(B){return new(B||_)(a.LFG(E),a.LFG(U,8))};static#t=this.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})(),Q=(()=>{class _{constructor(M){this._subject=new a.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=M;const B=this._locationStrategy.getBaseHref();this._basePath=function Ve(_){if(new RegExp("^(https?:)?//").test(_)){const[,M]=_.split(/\/\/[^\/]+/);return M}return _}(P(ze(B))),this._locationStrategy.onPopState(pe=>{this._subject.emit({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(M=!1){return this.normalize(this._locationStrategy.path(M))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(M,B=""){return this.path()==this.normalize(M+x(B))}normalize(M){return _.stripTrailingSlash(function Be(_,W){if(!_||!W.startsWith(_))return W;const M=W.substring(_.length);return""===M||["/",";","?","#"].includes(M[0])?M:W}(this._basePath,ze(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._locationStrategy.prepareExternalUrl(M)}go(M,B="",pe=null){this._locationStrategy.pushState(pe,"",M,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+x(B)),pe)}replaceState(M,B="",pe=null){this._locationStrategy.replaceState(pe,"",M,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+x(B)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(M=0){this._locationStrategy.historyGo?.(M)}onUrlChange(M){return this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(M);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(M="",B){this._urlChangeListeners.forEach(pe=>pe(M,B))}subscribe(M,B,pe){return this._subject.subscribe({next:M,error:B,complete:pe})}static#e=this.normalizeQueryParams=x;static#t=this.joinWithSlash=S;static#n=this.stripTrailingSlash=P;static#i=this.\u0275fac=function(B){return new(B||_)(a.LFG(w))};static#o=this.\u0275prov=a.Yz7({token:_,factory:()=>function ce(){return new Q((0,a.LFG)(w))}(),providedIn:"root"})}return _})();function ze(_){return _.replace(/\/index.html$/,"")}function Ie(_,W){W=encodeURIComponent(W);for(const M of _.split(";")){const B=M.indexOf("="),[pe,je]=-1==B?[M,""]:[M.slice(0,B),M.slice(B+1)];if(pe.trim()===W)return decodeURIComponent(je)}return null}const _e=/\s+/,ve=[];let Re=(()=>{class _{constructor(M,B,pe,je){this._iterableDiffers=M,this._keyValueDiffers=B,this._ngEl=pe,this._renderer=je,this.initialClasses=ve,this.stateMap=new Map}set klass(M){this.initialClasses=null!=M?M.trim().split(_e):ve}set ngClass(M){this.rawClass="string"==typeof M?M.trim().split(_e):M}ngDoCheck(){for(const B of this.initialClasses)this._updateState(B,!0);const M=this.rawClass;if(Array.isArray(M)||M instanceof Set)for(const B of M)this._updateState(B,!0);else if(null!=M)for(const B of Object.keys(M))this._updateState(B,!!M[B]);this._applyStateDiff()}_updateState(M,B){const pe=this.stateMap.get(M);void 0!==pe?(pe.enabled!==B&&(pe.changed=!0,pe.enabled=B),pe.touched=!0):this.stateMap.set(M,{enabled:B,changed:!0,touched:!0})}_applyStateDiff(){for(const M of this.stateMap){const B=M[0],pe=M[1];pe.changed?(this._toggleClass(B,pe.enabled),pe.changed=!1):pe.touched||(pe.enabled&&this._toggleClass(B,!1),this.stateMap.delete(B)),pe.touched=!1}}_toggleClass(M,B){(M=M.trim()).length>0&&M.split(_e).forEach(pe=>{B?this._renderer.addClass(this._ngEl.nativeElement,pe):this._renderer.removeClass(this._ngEl.nativeElement,pe)})}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return _})();class st{constructor(W,M,B,pe){this.$implicit=W,this.ngForOf=M,this.index=B,this.count=pe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ht=(()=>{class _{set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}constructor(M,B,pe){this._viewContainer=M,this._template=B,this._differs=pe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;!this._differ&&M&&(this._differ=this._differs.find(M).create(this.ngForTrackBy))}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const B=this._viewContainer;M.forEachOperation((pe,je,tt)=>{if(null==pe.previousIndex)B.createEmbeddedView(this._template,new st(pe.item,this._ngForOf,-1,-1),null===tt?void 0:tt);else if(null==tt)B.remove(null===je?void 0:je);else if(null!==je){const vt=B.get(je);B.move(vt,tt),At(vt,pe)}});for(let pe=0,je=B.length;pe<je;pe++){const vt=B.get(pe).context;vt.index=pe,vt.count=je,vt.ngForOf=this._ngForOf}M.forEachIdentityChange(pe=>{At(B.get(pe.currentIndex),pe)})}static ngTemplateContextGuard(M,B){return!0}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return _})();function At(_,W){_.context.$implicit=W.item}let _n=(()=>{class _{constructor(M,B){this._viewContainer=M,this._context=new vn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){yt("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){yt("ngIfElse",M),this._elseTemplateRef=M,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(M,B){return!0}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.s_b),a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return _})();class vn{constructor(){this.$implicit=null,this.ngIf=null}}function yt(_,W){if(W&&!W.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,a.AaK)(W)}'.`)}class Tn{constructor(W,M){this._viewContainerRef=W,this._templateRef=M,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(W){W&&!this._created?this.create():!W&&this._created&&this.destroy()}}let en=(()=>{class _{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(M){this._ngSwitch=M,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(M){this._defaultViews.push(M)}_matchCase(M){const B=M===this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(M){if(this._defaultViews.length>0&&M!==this._defaultUsed){this._defaultUsed=M;for(const B of this._defaultViews)B.enforceState(M)}}static#e=this.\u0275fac=function(B){return new(B||_)};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return _})(),Zt=(()=>{class _{constructor(M,B,pe){this.ngSwitch=pe,pe._addCase(),this._view=new Tn(M,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(en,9))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return _})(),pn=(()=>{class _{constructor(M,B,pe){pe._addDefault(new Tn(M,B))}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(en,9))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return _})(),Vo=(()=>{class _{constructor(M){this._viewContainerRef=M,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(M){if(this._shouldRecreateView(M)){const B=this._viewContainerRef;if(this._viewRef&&B.remove(B.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const pe=this._createContextForwardProxy();this._viewRef=B.createEmbeddedView(this.ngTemplateOutlet,pe,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(M){return!!M.ngTemplateOutlet||!!M.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(M,B,pe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,B,pe),get:(M,B,pe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,B,pe)}})}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.s_b))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[a.TTD]})}return _})();class Co{createSubscription(W,M){return(0,a.rg0)(()=>W.subscribe({next:M,error:B=>{throw B}}))}dispose(W){(0,a.rg0)(()=>W.unsubscribe())}}class Tr{createSubscription(W,M){return W.then(M,B=>{throw B})}dispose(W){}}const Hs=new Tr,Wa=new Co;let xo=(()=>{class _{constructor(M){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=M}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(M){return this._obj?M!==this._obj?(this._dispose(),this.transform(M)):this._latestValue:(M&&this._subscribe(M),this._latestValue)}_subscribe(M){this._obj=M,this._strategy=this._selectStrategy(M),this._subscription=this._strategy.createSubscription(M,B=>this._updateLatestValue(M,B))}_selectStrategy(M){if((0,a.QGY)(M))return Hs;if((0,a.F4k)(M))return Wa;throw function Kn(_,W){return new a.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,B){M===this._obj&&(this._latestValue=B,this._ref.markForCheck())}static#e=this.\u0275fac=function(B){return new(B||_)(a.Y36(a.sBO,16))};static#t=this.\u0275pipe=a.Yjl({name:"async",type:_,pure:!1,standalone:!0})}return _})(),Pn=(()=>{class _{static#e=this.\u0275fac=function(B){return new(B||_)};static#t=this.\u0275mod=a.oAB({type:_});static#n=this.\u0275inj=a.cJS({})}return _})();const Jr="browser",Ys="server";function Xr(_){return _===Jr}function es(_){return _===Ys}class fo{}},9272:(Ee,y,b)=>{"use strict";b.d(y,{eN:()=>j,JF:()=>gn}),b(5861);var i=b(1322),te=b(9627),q=b(7371),v=b(107),C=b(5123),E=b(3276),R=b(1497),S=b(8412),P=b(1927),x=b(2835),w=b(9462);class U{}class X{}class le{constructor(_e){this.normalizedNames=new Map,this.lazyUpdate=null,_e?"string"==typeof _e?this.lazyInit=()=>{this.headers=new Map,_e.split("\n").forEach(ve=>{const Re=ve.indexOf(":");if(Re>0){const qe=ve.slice(0,Re),ct=qe.toLowerCase(),st=ve.slice(Re+1).trim();this.maybeSetNormalizedName(qe,ct),this.headers.has(ct)?this.headers.get(ct).push(st):this.headers.set(ct,[st])}})}:typeof Headers<"u"&&_e instanceof Headers?(this.headers=new Map,_e.forEach((ve,Re)=>{this.setHeaderEntries(Re,ve)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(_e).forEach(([ve,Re])=>{this.setHeaderEntries(ve,Re)})}:this.headers=new Map}has(_e){return this.init(),this.headers.has(_e.toLowerCase())}get(_e){this.init();const ve=this.headers.get(_e.toLowerCase());return ve&&ve.length>0?ve[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(_e){return this.init(),this.headers.get(_e.toLowerCase())||null}append(_e,ve){return this.clone({name:_e,value:ve,op:"a"})}set(_e,ve){return this.clone({name:_e,value:ve,op:"s"})}delete(_e,ve){return this.clone({name:_e,value:ve,op:"d"})}maybeSetNormalizedName(_e,ve){this.normalizedNames.has(ve)||this.normalizedNames.set(ve,_e)}init(){this.lazyInit&&(this.lazyInit instanceof le?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(_e=>this.applyUpdate(_e)),this.lazyUpdate=null))}copyFrom(_e){_e.init(),Array.from(_e.headers.keys()).forEach(ve=>{this.headers.set(ve,_e.headers.get(ve)),this.normalizedNames.set(ve,_e.normalizedNames.get(ve))})}clone(_e){const ve=new le;return ve.lazyInit=this.lazyInit&&this.lazyInit instanceof le?this.lazyInit:this,ve.lazyUpdate=(this.lazyUpdate||[]).concat([_e]),ve}applyUpdate(_e){const ve=_e.name.toLowerCase();switch(_e.op){case"a":case"s":let Re=_e.value;if("string"==typeof Re&&(Re=[Re]),0===Re.length)return;this.maybeSetNormalizedName(_e.name,ve);const qe=("a"===_e.op?this.headers.get(ve):void 0)||[];qe.push(...Re),this.headers.set(ve,qe);break;case"d":const ct=_e.value;if(ct){let st=this.headers.get(ve);if(!st)return;st=st.filter(Ht=>-1===ct.indexOf(Ht)),0===st.length?(this.headers.delete(ve),this.normalizedNames.delete(ve)):this.headers.set(ve,st)}else this.headers.delete(ve),this.normalizedNames.delete(ve)}}setHeaderEntries(_e,ve){const Re=(Array.isArray(ve)?ve:[ve]).map(ct=>ct.toString()),qe=_e.toLowerCase();this.headers.set(qe,Re),this.maybeSetNormalizedName(_e,qe)}forEach(_e){this.init(),Array.from(this.normalizedNames.keys()).forEach(ve=>_e(this.normalizedNames.get(ve),this.headers.get(ve)))}}class ce{encodeKey(_e){return Se(_e)}encodeValue(_e){return Se(_e)}decodeKey(_e){return decodeURIComponent(_e)}decodeValue(_e){return decodeURIComponent(_e)}}const ze=/%(\d[a-f0-9])/gi,Ve={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Se(Ie){return encodeURIComponent(Ie).replace(ze,(_e,ve)=>Ve[ve]??_e)}function Oe(Ie){return`${Ie}`}class Me{constructor(_e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=_e.encoder||new ce,_e.fromString){if(_e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Be(Ie,_e){const ve=new Map;return Ie.length>0&&Ie.replace(/^\?/,"").split("&").forEach(qe=>{const ct=qe.indexOf("="),[st,Ht]=-1==ct?[_e.decodeKey(qe),""]:[_e.decodeKey(qe.slice(0,ct)),_e.decodeValue(qe.slice(ct+1))],At=ve.get(st)||[];At.push(Ht),ve.set(st,At)}),ve}(_e.fromString,this.encoder)}else _e.fromObject?(this.map=new Map,Object.keys(_e.fromObject).forEach(ve=>{const Re=_e.fromObject[ve],qe=Array.isArray(Re)?Re.map(Oe):[Oe(Re)];this.map.set(ve,qe)})):this.map=null}has(_e){return this.init(),this.map.has(_e)}get(_e){this.init();const ve=this.map.get(_e);return ve?ve[0]:null}getAll(_e){return this.init(),this.map.get(_e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(_e,ve){return this.clone({param:_e,value:ve,op:"a"})}appendAll(_e){const ve=[];return Object.keys(_e).forEach(Re=>{const qe=_e[Re];Array.isArray(qe)?qe.forEach(ct=>{ve.push({param:Re,value:ct,op:"a"})}):ve.push({param:Re,value:qe,op:"a"})}),this.clone(ve)}set(_e,ve){return this.clone({param:_e,value:ve,op:"s"})}delete(_e,ve){return this.clone({param:_e,value:ve,op:"d"})}toString(){return this.init(),this.keys().map(_e=>{const ve=this.encoder.encodeKey(_e);return this.map.get(_e).map(Re=>ve+"="+this.encoder.encodeValue(Re)).join("&")}).filter(_e=>""!==_e).join("&")}clone(_e){const ve=new Me({encoder:this.encoder});return ve.cloneFrom=this.cloneFrom||this,ve.updates=(this.updates||[]).concat(_e),ve}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(_e=>this.map.set(_e,this.cloneFrom.map.get(_e))),this.updates.forEach(_e=>{switch(_e.op){case"a":case"s":const ve=("a"===_e.op?this.map.get(_e.param):void 0)||[];ve.push(Oe(_e.value)),this.map.set(_e.param,ve);break;case"d":if(void 0===_e.value){this.map.delete(_e.param);break}{let Re=this.map.get(_e.param)||[];const qe=Re.indexOf(Oe(_e.value));-1!==qe&&Re.splice(qe,1),Re.length>0?this.map.set(_e.param,Re):this.map.delete(_e.param)}}}),this.cloneFrom=this.updates=null)}}class Ce{constructor(){this.map=new Map}set(_e,ve){return this.map.set(_e,ve),this}get(_e){return this.map.has(_e)||this.map.set(_e,_e.defaultValue()),this.map.get(_e)}delete(_e){return this.map.delete(_e),this}has(_e){return this.map.has(_e)}keys(){return this.map.keys()}}function He(Ie){return typeof ArrayBuffer<"u"&&Ie instanceof ArrayBuffer}function dt(Ie){return typeof Blob<"u"&&Ie instanceof Blob}function xt(Ie){return typeof FormData<"u"&&Ie instanceof FormData}class Gt{constructor(_e,ve,Re,qe){let ct;if(this.url=ve,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=_e.toUpperCase(),function De(Ie){switch(Ie){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qe?(this.body=void 0!==Re?Re:null,ct=qe):ct=Re,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params),this.transferCache=ct.transferCache),this.headers||(this.headers=new le),this.context||(this.context=new Ce),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=ve;else{const Ht=ve.indexOf("?");this.urlWithParams=ve+(-1===Ht?"?":Ht<ve.length-1?"&":"")+st}}else this.params=new Me,this.urlWithParams=ve}serializeBody(){return null===this.body?null:He(this.body)||dt(this.body)||xt(this.body)||function zt(Ie){return typeof URLSearchParams<"u"&&Ie instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Me?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||xt(this.body)?null:dt(this.body)?this.body.type||null:He(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Me?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(_e={}){const ve=_e.method||this.method,Re=_e.url||this.url,qe=_e.responseType||this.responseType,ct=void 0!==_e.body?_e.body:this.body,st=void 0!==_e.withCredentials?_e.withCredentials:this.withCredentials,Ht=void 0!==_e.reportProgress?_e.reportProgress:this.reportProgress;let At=_e.headers||this.headers,$t=_e.params||this.params;const _n=_e.context??this.context;return void 0!==_e.setHeaders&&(At=Object.keys(_e.setHeaders).reduce((vn,yt)=>vn.set(yt,_e.setHeaders[yt]),At)),_e.setParams&&($t=Object.keys(_e.setParams).reduce((vn,yt)=>vn.set(yt,_e.setParams[yt]),$t)),new Gt(ve,Re,ct,{params:$t,headers:At,context:_n,reportProgress:Ht,responseType:qe,withCredentials:st})}}var Je=function(Ie){return Ie[Ie.Sent=0]="Sent",Ie[Ie.UploadProgress=1]="UploadProgress",Ie[Ie.ResponseHeader=2]="ResponseHeader",Ie[Ie.DownloadProgress=3]="DownloadProgress",Ie[Ie.Response=4]="Response",Ie[Ie.User=5]="User",Ie}(Je||{});class ae{constructor(_e,ve=200,Re="OK"){this.headers=_e.headers||new le,this.status=void 0!==_e.status?_e.status:ve,this.statusText=_e.statusText||Re,this.url=_e.url||null,this.ok=this.status>=200&&this.status<300}}class oe extends ae{constructor(_e={}){super(_e),this.type=Je.ResponseHeader}clone(_e={}){return new oe({headers:_e.headers||this.headers,status:void 0!==_e.status?_e.status:this.status,statusText:_e.statusText||this.statusText,url:_e.url||this.url||void 0})}}class G extends ae{constructor(_e={}){super(_e),this.type=Je.Response,this.body=void 0!==_e.body?_e.body:null}clone(_e={}){return new G({body:void 0!==_e.body?_e.body:this.body,headers:_e.headers||this.headers,status:void 0!==_e.status?_e.status:this.status,statusText:_e.statusText||this.statusText,url:_e.url||this.url||void 0})}}class V extends ae{constructor(_e){super(_e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${_e.url||"(unknown url)"}`:`Http failure response for ${_e.url||"(unknown url)"}: ${_e.status} ${_e.statusText}`,this.error=_e.error||null}}function F(Ie,_e){return{body:_e,headers:Ie.headers,context:Ie.context,observe:Ie.observe,params:Ie.params,reportProgress:Ie.reportProgress,responseType:Ie.responseType,withCredentials:Ie.withCredentials,transferCache:Ie.transferCache}}let j=(()=>{class Ie{constructor(ve){this.handler=ve}request(ve,Re,qe={}){let ct;if(ve instanceof Gt)ct=ve;else{let At,$t;At=qe.headers instanceof le?qe.headers:new le(qe.headers),qe.params&&($t=qe.params instanceof Me?qe.params:new Me({fromObject:qe.params})),ct=new Gt(ve,Re,void 0!==qe.body?qe.body:null,{headers:At,context:qe.context,params:$t,reportProgress:qe.reportProgress,responseType:qe.responseType||"json",withCredentials:qe.withCredentials,transferCache:qe.transferCache})}const st=(0,te.of)(ct).pipe(function A(Ie,_e){return(0,E.m)(_e)?(0,C.z)(Ie,_e,1):(0,C.z)(Ie,1)}(At=>this.handler.handle(At)));if(ve instanceof Gt||"events"===qe.observe)return st;const Ht=st.pipe((0,R.h)(At=>At instanceof G));switch(qe.observe||"body"){case"body":switch(ct.responseType){case"arraybuffer":return Ht.pipe((0,S.U)(At=>{if(null!==At.body&&!(At.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return At.body}));case"blob":return Ht.pipe((0,S.U)(At=>{if(null!==At.body&&!(At.body instanceof Blob))throw new Error("Response is not a Blob.");return At.body}));case"text":return Ht.pipe((0,S.U)(At=>{if(null!==At.body&&"string"!=typeof At.body)throw new Error("Response is not a string.");return At.body}));default:return Ht.pipe((0,S.U)(At=>At.body))}case"response":return Ht;default:throw new Error(`Unreachable: unhandled observe type ${qe.observe}}`)}}delete(ve,Re={}){return this.request("DELETE",ve,Re)}get(ve,Re={}){return this.request("GET",ve,Re)}head(ve,Re={}){return this.request("HEAD",ve,Re)}jsonp(ve,Re){return this.request("JSONP",ve,{params:(new Me).append(Re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ve,Re={}){return this.request("OPTIONS",ve,Re)}patch(ve,Re,qe={}){return this.request("PATCH",ve,F(qe,Re))}post(ve,Re,qe={}){return this.request("POST",ve,F(qe,Re))}put(ve,Re,qe={}){return this.request("PUT",ve,F(qe,Re))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(U))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();function Ke(Ie,_e){return _e(Ie)}function mt(Ie,_e){return(ve,Re)=>_e.intercept(ve,{handle:qe=>Ie(qe,Re)})}const Ge=new i.OlP(""),ne=new i.OlP(""),re=new i.OlP(""),Te=new i.OlP("");function $e(){let Ie=null;return(_e,ve)=>{null===Ie&&(Ie=((0,i.f3M)(Ge,{optional:!0})??[]).reduceRight(mt,Ke));const Re=(0,i.f3M)(i.I6F),qe=Re.add();return Ie(_e,ve).pipe((0,P.x)(()=>Re.remove(qe)))}}let gt=(()=>{class Ie extends U{constructor(ve,Re){super(),this.backend=ve,this.injector=Re,this.chain=null,this.pendingTasks=(0,i.f3M)(i.I6F);const qe=(0,i.f3M)(Te,{optional:!0});this.backend=qe??ve}handle(ve){if(null===this.chain){const qe=Array.from(new Set([...this.injector.get(ne),...this.injector.get(re,[])]));this.chain=qe.reduceRight((ct,st)=>function Ae(Ie,_e,ve){return(Re,qe)=>(0,i.r_H)(ve,()=>_e(Re,ct=>Ie(ct,qe)))}(ct,st,this.injector),Ke)}const Re=this.pendingTasks.add();return this.chain(ve,qe=>this.backend.handle(qe)).pipe((0,P.x)(()=>this.pendingTasks.remove(Re)))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(X),i.LFG(i.lqb))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();const Ri=/^\)\]\}',?\n/;let ei=(()=>{class Ie{constructor(ve){this.xhrFactory=ve}handle(ve){if("JSONP"===ve.method)throw new i.vHH(-2800,!1);const Re=this.xhrFactory;return(Re.\u0275loadImpl?(0,v.D)(Re.\u0275loadImpl()):(0,te.of)(null)).pipe((0,x.w)(()=>new q.y(ct=>{const st=Re.build();if(st.open(ve.method,ve.urlWithParams),ve.withCredentials&&(st.withCredentials=!0),ve.headers.forEach((en,Zt)=>st.setRequestHeader(en,Zt.join(","))),ve.headers.has("Accept")||st.setRequestHeader("Accept","application/json, text/plain, */*"),!ve.headers.has("Content-Type")){const en=ve.detectContentTypeHeader();null!==en&&st.setRequestHeader("Content-Type",en)}if(ve.responseType){const en=ve.responseType.toLowerCase();st.responseType="json"!==en?en:"text"}const Ht=ve.serializeBody();let At=null;const $t=()=>{if(null!==At)return At;const en=st.statusText||"OK",Zt=new le(st.getAllResponseHeaders()),pn=function jt(Ie){return"responseURL"in Ie&&Ie.responseURL?Ie.responseURL:/^X-Request-URL:/m.test(Ie.getAllResponseHeaders())?Ie.getResponseHeader("X-Request-URL"):null}(st)||ve.url;return At=new oe({headers:Zt,status:st.status,statusText:en,url:pn}),At},_n=()=>{let{headers:en,status:Zt,statusText:pn,url:ti}=$t(),on=null;204!==Zt&&(on=typeof st.response>"u"?st.responseText:st.response),0===Zt&&(Zt=on?200:0);let ni=Zt>=200&&Zt<300;if("json"===ve.responseType&&"string"==typeof on){const wo=on;on=on.replace(Ri,"");try{on=""!==on?JSON.parse(on):null}catch(qi){on=wo,ni&&(ni=!1,on={error:qi,text:on})}}ni?(ct.next(new G({body:on,headers:en,status:Zt,statusText:pn,url:ti||void 0})),ct.complete()):ct.error(new V({error:on,headers:en,status:Zt,statusText:pn,url:ti||void 0}))},vn=en=>{const{url:Zt}=$t(),pn=new V({error:en,status:st.status||0,statusText:st.statusText||"Unknown Error",url:Zt||void 0});ct.error(pn)};let yt=!1;const Si=en=>{yt||(ct.next($t()),yt=!0);let Zt={type:Je.DownloadProgress,loaded:en.loaded};en.lengthComputable&&(Zt.total=en.total),"text"===ve.responseType&&st.responseText&&(Zt.partialText=st.responseText),ct.next(Zt)},Tn=en=>{let Zt={type:Je.UploadProgress,loaded:en.loaded};en.lengthComputable&&(Zt.total=en.total),ct.next(Zt)};return st.addEventListener("load",_n),st.addEventListener("error",vn),st.addEventListener("timeout",vn),st.addEventListener("abort",vn),ve.reportProgress&&(st.addEventListener("progress",Si),null!==Ht&&st.upload&&st.upload.addEventListener("progress",Tn)),st.send(Ht),ct.next({type:Je.Sent}),()=>{st.removeEventListener("error",vn),st.removeEventListener("abort",vn),st.removeEventListener("load",_n),st.removeEventListener("timeout",vn),ve.reportProgress&&(st.removeEventListener("progress",Si),null!==Ht&&st.upload&&st.upload.removeEventListener("progress",Tn)),st.readyState!==st.DONE&&st.abort()}})))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(w.JF))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();const wn=new i.OlP("XSRF_ENABLED"),Ot=new i.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Ln=new i.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Bn{}let We=(()=>{class Ie{constructor(ve,Re,qe){this.doc=ve,this.platform=Re,this.cookieName=qe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ve=this.doc.cookie||"";return ve!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(ve,this.cookieName),this.lastCookieString=ve),this.lastToken}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(Ot))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();function me(Ie,_e){const ve=Ie.url.toLowerCase();if(!(0,i.f3M)(wn)||"GET"===Ie.method||"HEAD"===Ie.method||ve.startsWith("http://")||ve.startsWith("https://"))return _e(Ie);const Re=(0,i.f3M)(Bn).getToken(),qe=(0,i.f3M)(Ln);return null!=Re&&!Ie.headers.has(qe)&&(Ie=Ie.clone({headers:Ie.headers.set(qe,Re)})),_e(Ie)}var L=function(Ie){return Ie[Ie.Interceptors=0]="Interceptors",Ie[Ie.LegacyInterceptors=1]="LegacyInterceptors",Ie[Ie.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ie[Ie.NoXsrfProtection=3]="NoXsrfProtection",Ie[Ie.JsonpSupport=4]="JsonpSupport",Ie[Ie.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ie[Ie.Fetch=6]="Fetch",Ie}(L||{});function J(...Ie){const _e=[j,ei,gt,{provide:U,useExisting:gt},{provide:X,useExisting:ei},{provide:ne,useValue:me,multi:!0},{provide:wn,useValue:!0},{provide:Bn,useClass:We}];for(const ve of Ie)_e.push(...ve.\u0275providers);return(0,i.MR2)(_e)}const I=new i.OlP("LEGACY_INTERCEPTOR_FN");function Y(){return function se(Ie,_e){return{\u0275kind:Ie,\u0275providers:_e}}(L.LegacyInterceptors,[{provide:I,useFactory:$e},{provide:ne,useExisting:I,multi:!0}])}let gn=(()=>{class Ie{static#e=this.\u0275fac=function(Re){return new(Re||Ie)};static#t=this.\u0275mod=i.oAB({type:Ie});static#n=this.\u0275inj=i.cJS({providers:[J(Y())]})}return Ie})()},1322:(Ee,y,b)=>{"use strict";b.d(y,{QbO:()=>dd,AFp:()=>eh,hGG:()=>cA,z2F:()=>Cl,Ojb:()=>Ta,sBO:()=>Ab,_Vd:()=>Fd,EJc:()=>JS,SBq:()=>Nd,lqb:()=>gi,qLn:()=>Ls,vpe:()=>wr,OlP:()=>yt,zs3:()=>ro,ZZ4:()=>Rp,aQg:()=>Fp,soG:()=>Ef,h0i:()=>za,R0b:()=>si,FiY:()=>ga,Lbi:()=>ld,g9A:()=>cd,n_E:()=>yf,Qsj:()=>mC,FYo:()=>K_,JOm:()=>Cd,q3G:()=>pt,tp0:()=>Ui,Rgc:()=>su,dDg:()=>$S,eoX:()=>yw,GfV:()=>hw,s_b:()=>tf,ifc:()=>Ai,VuI:()=>kA,Lck:()=>mM,eFA:()=>Iw,G48:()=>nA,Gpc:()=>Lt,f3M:()=>tn,MR2:()=>$u,Cb_:()=>RA,_c5:()=>aA,r_H:()=>Tc,rg0:()=>bC,c2e:()=>fw,zSh:()=>id,wAp:()=>bl,I6F:()=>i_,vHH:()=>rt,lri:()=>bw,rWj:()=>vw,JZr:()=>li,EiD:()=>Ye,mCW:()=>Uc,qzn:()=>Rs,JVY:()=>yp,pB0:()=>Dp,eBb:()=>Cp,L6k:()=>wp,LAX:()=>xp,cg1:()=>Rg,kuF:()=>Dn,kL8:()=>ay,dqk:()=>$t,QGY:()=>Lg,F4k:()=>Ry,RDi:()=>Am,AaK:()=>$e,z3N:()=>qo,qOj:()=>eg,Xq5:()=>zb,TTD:()=>fn,_Bn:()=>v0,jDz:()=>w0,xp6:()=>db,uIk:()=>tg,Tol:()=>av,ekj:()=>cg,um2:()=>Pv,Suo:()=>G0,Xpm:()=>Ar,lG2:()=>is,Yz7:()=>Qt,cJS:()=>lo,oAB:()=>mo,Yjl:()=>os,Y36:()=>qc,_UZ:()=>Ig,GkF:()=>Og,BQk:()=>hf,ynx:()=>uf,qZA:()=>df,TgZ:()=>lf,EpF:()=>sy,n5z:()=>Au,Ikx:()=>Pg,LFG:()=>Vn,$8M:()=>Kl,$Z:()=>hb,NdJ:()=>Bg,CRH:()=>W0,O4$:()=>ac,oxw:()=>Vy,ALo:()=>B0,lcZ:()=>V0,xi3:()=>$0,Hsn:()=>Hy,F$t:()=>$y,Q6J:()=>rg,DdM:()=>A0,VKq:()=>I0,WLB:()=>O0,HTZ:()=>P0,iGM:()=>U0,MAs:()=>Jy,wJu:()=>Fv,SjG:()=>Rv,x6l:()=>kv,KtG:()=>zf,CHM:()=>Uf,oJD:()=>Ct,Udp:()=>ag,d8E:()=>kg,YNc:()=>dl,W1O:()=>q0,_uU:()=>c0,Oqu:()=>$g,hij:()=>_f,Gf:()=>z0});let i=null,q=1;function C(e){const t=i;return i=e,t}function w(e){if((!Oe(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==q)){if(!e.producerMustRecompute(e)&&!Be(e))return e.dirty=!1,void(e.lastCleanEpoch=q);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=q}}function Be(e){Me(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(w(n),r!==n.version))return!0}return!1}function Se(e,t){if(function ke(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Me(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Se(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];Me(s),s.producerIndexOfThis[r]=t}}function Oe(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Me(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Gt=null;var mt=b(9453),Ae=b(9592),Ge=b(1625),ne=b(8412);function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function Te(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function $e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map($e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function it(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const gt=re({__forward_ref__:re});function Lt(e){return e.__forward_ref__=Lt,e.toString=function(){return $e(this())},e}function ut(e){return Pt(e)?e():e}function Pt(e){return"function"==typeof e&&e.hasOwnProperty(gt)&&e.__forward_ref__===Lt}function wt(e){return e&&!!e.\u0275providers}const li="https://g.co/ng/security#xss";class rt extends Error{constructor(t,n){super(Dn(t,n)),this.code=t}}function Dn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const dn=re({\u0275cmp:re}),Yn=re({\u0275dir:re}),un=re({\u0275pipe:re}),Ri=re({\u0275mod:re}),jt=re({\u0275fac:re}),ei=re({__NG_ELEMENT_ID__:re}),wn=re({__NG_ENV_ID__:re});function Et(e){return"string"==typeof e?e:null==e?"":String(e)}function z(e,t){throw new rt(-201,!1)}function qt(e,t){null==e&&function Dt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Qt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function lo(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zi(e){return yo(e,Bo)||yo(e,_e)}function yo(e,t){return e.hasOwnProperty(t)?e[t]:null}function uo(e){return e&&(e.hasOwnProperty(Ie)||e.hasOwnProperty(ve))?e[Ie]:null}const Bo=re({\u0275prov:re}),Ie=re({\u0275inj:re}),_e=re({ngInjectableDef:re}),ve=re({ngInjectorDef:re});var Re=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Re||{});let qe;function st(e){const t=qe;return qe=e,t}function Ht(e,t,n){const r=Zi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Re.Optional?null:void 0!==t?t:void z($e(e))}const $t=globalThis;class yt{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Qt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Fi={},Kn="__NG_DI_FLAG__",Co="ngTempTokenPath",Hs=/\n/gm,xo="__source";let $o;function Ji(e){const t=$o;return $o=e,t}function Us(e,t=Re.Default){if(void 0===$o)throw new rt(-203,!1);return null===$o?Ht(e,void 0,t):$o.get(e,t&Re.Optional?null:void 0,t)}function Vn(e,t=Re.Default){return(function ct(){return qe}()||Us)(ut(e),t)}function tn(e,t=Re.Default){return Vn(e,nr(t))}function nr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ni(e){const t=[];for(let n=0;n<e.length;n++){const r=ut(e[n]);if(Array.isArray(r)){if(0===r.length)throw new rt(900,!1);let s,d=Re.Default;for(let f=0;f<r.length;f++){const m=r[f],g=ir(m);"number"==typeof g?-1===g?s=m.token:d|=g:s=m}t.push(Vn(s,d))}else t.push(Vn(r))}return t}function Qi(e,t){return e[Kn]=t,e.prototype[Kn]=t,e}function ir(e){return e[Kn]}function Un(e){return{toString:e}.toString()}var Do=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Do||{}),Ai=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ai||{});const Li={},rn=[];function Ho(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const d=t.length;if(s+d===r||e.charCodeAt(s+d)<=32)return s}n=s+1}}function ho(e,t,n){let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const d=n[r++],f=n[r++],m=n[r++];e.setAttribute(t,f,m,d)}else{const d=s,f=n[++r];Ws(d)?e.setProperty(t,d,f):e.setAttribute(t,d,f),r++}}return r}function Gs(e){return 3===e||4===e||6===e}function Ws(e){return 64===e.charCodeAt(0)}function Pn(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||Jr(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function Jr(e,t,n,r,s){let d=0,f=e.length;if(-1===t)f=-1;else for(;d<e.length;){const m=e[d++];if("number"==typeof m){if(m===t){f=-1;break}if(m>t){f=d-1;break}}}for(;d<e.length;){const m=e[d];if("number"==typeof m)break;if(m===n){if(null===r)return void(null!==s&&(e[d+1]=s));if(r===e[d+1])return void(e[d+2]=s)}d++,null!==r&&d++,null!==s&&d++}-1!==f&&(e.splice(f,0,t),d=f+1),e.splice(d++,0,n),null!==r&&e.splice(d++,0,r),null!==s&&e.splice(d++,0,s)}const Ys="ng-template";function Qr(e,t,n){let r=0,s=!0;for(;r<e.length;){let d=e[r++];if("string"==typeof d&&s){const f=e[r++];if(n&&"class"===d&&-1!==Ho(f.toLowerCase(),t,0))return!0}else{if(1===d){for(;r<e.length&&"string"==typeof(d=e[r++]);)if(d.toLowerCase()===t)return!0;return!1}"number"==typeof d&&(s=!1)}}return!1}function Ks(e){return 4===e.type&&e.value!==Ys}function Xr(e,t,n){return t===(4!==e.type||n?e.value:Ys)}function es(e,t,n){let r=4;const s=e.attrs||[],d=function ts(e){for(let t=0;t<e.length;t++)if(Gs(e[t]))return t;return e.length}(s);let f=!1;for(let m=0;m<t.length;m++){const g=t[m];if("number"!=typeof g){if(!f)if(4&r){if(r=2|1&r,""!==g&&!Xr(e,g,n)||""===g&&1===t.length){if(Rn(r))return!1;f=!0}}else{const O=8&r?g:t[++m];if(8&r&&null!==e.attrs){if(!Qr(e.attrs,O,n)){if(Rn(r))return!1;f=!0}continue}const ie=Dl(8&r?"class":g,s,Ks(e),n);if(-1===ie){if(Rn(r))return!1;f=!0;continue}if(""!==O){let be;be=ie>d?"":s[ie+1].toLowerCase();const xe=8&r?be:null;if(xe&&-1!==Ho(xe,O,0)||2&r&&O!==be){if(Rn(r))return!1;f=!0}}}}else{if(!f&&!Rn(r)&&!Rn(g))return!1;if(f&&Rn(g))continue;f=!1,r=g|1&r}}return Rn(r)||f}function Rn(e){return 0==(1&e)}function Dl(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let d=!1;for(;s<t.length;){const f=t[s];if(f===e)return s;if(3===f||6===f)d=!0;else{if(1===f||2===f){let m=t[++s];for(;"string"==typeof m;)m=t[++s];continue}if(4===f)break;if(0===f){s+=4;continue}}s+=d?1:2}return-1}return function jo(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function or(e,t,n=!1){for(let r=0;r<t.length;r++)if(es(e,t[r],n))return!0;return!1}function Ya(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function fo(e,t){return e?":not("+t.trim()+")":t}function Ka(e){let t=e[0],n=1,r=2,s="",d=!1;for(;n<e.length;){let f=e[n];if("string"==typeof f)if(2&r){const m=e[++n];s+="["+f+(m.length>0?'="'+m+'"':"")+"]"}else 8&r?s+="."+f:4&r&&(s+=" "+f);else""!==s&&!Rn(f)&&(t+=fo(d,s),s=""),r=f,d=d||!Rn(r);n++}return""!==s&&(t+=fo(d,s)),t}function Ar(e){return Un(()=>{const t=rs(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Do.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ai.Emulated,styles:e.styles||rn,_:null,schemas:e.schemas||null,tView:null,id:""};Qs(n);const r=e.dependencies;return n.directiveDefs=ss(r,!1),n.pipeDefs=ss(r,!0),n.id=function as(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,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].join("|");for(const s of n)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function ns(e){return Yt(e)||$n(e)}function qs(e){return null!==e}function mo(e){return Un(()=>({type:e.type,bootstrap:e.bootstrap||rn,declarations:e.declarations||rn,imports:e.imports||rn,exports:e.exports||rn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Js(e,t){if(null==e)return Li;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],d=s;Array.isArray(s)&&(d=s[1],s=s[0]),n[s]=r,t&&(t[s]=d)}return n}function is(e){return Un(()=>{const t=rs(e);return Qs(t),t})}function os(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Yt(e){return e[dn]||null}function $n(e){return e[Yn]||null}function Hn(e){return e[un]||null}function rs(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Li,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||rn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Js(e.inputs,t),outputs:Js(e.outputs),debugInfo:null}}function Qs(e){e.features?.forEach(t=>t(e))}function ss(e,t){if(!e)return null;const n=t?Hn:ns;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(qs)}const En=0,at=1,It=2,k=3,N=4,D=5,ee=6,we=7,ot=8,Rt=9,Sn=10,Bt=11,Xi=12,qa=13,Ir=14,kn=15,rr=16,cs=17,po=18,Or=19,Ja=20,pi=21,Pr=22,go=23,Vt=25,ls=1,Vi=7,Rr=9,Nn=10;var ar=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e[e.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",e}(ar||{});function Zn(e){return Array.isArray(e)&&"object"==typeof e[ls]}function qn(e){return Array.isArray(e)&&!0===e[ls]}function Xs(e){return 0!=(4&e.flags)}function cr(e){return e.componentOffset>-1}function ea(e){return 1==(1&e.flags)}function eo(e){return!!e.template}function Qa(e){return 0!=(512&e[It])}function hn(e,t){return e.hasOwnProperty(jt)?e[jt]:null}class yn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function fn(){return Xt}function Xt(e){return e.type.prototype.ngOnChanges&&(e.setInput=bn),An}function An(){const e=To(this),t=e?.current;if(t){const n=e.previous;if(n===Li)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bn(e,t,n,r){const s=this.declaredInputs[n],d=To(e)||function _o(e,t){return e[zn]=t}(e,{previous:Li,current:null}),f=d.current||(d.current={}),m=d.previous,g=m[s];f[s]=new yn(g&&g.currentValue,t,m===Li),e[r]=t}fn.ngInherit=!0;const zn="__ngSimpleChanges__";function To(e){return e[zn]||null}const ii=function(e,t,n){},to="svg";let ds=!1;function Mn(e){for(;Array.isArray(e);)e=e[En];return e}function Mo(e,t){return Mn(t[e])}function xi(e,t){return Mn(t[e.index])}function So(e,t){return e.data[t]}function Go(e,t){return e[t]}function $i(e,t){const n=t[e];return Zn(n)?n:n[En]}function bo(e){return 128==(128&e[It])}function no(e,t){return null==t?null:e[t]}function Sl(e){e[cs]=0}function Al(e){1024&e[It]||(e[It]|=1024,bo(e)&&nc(e))}function ec(e){return 9216&e[It]||e[go]?.dirty}function tc(e){ec(e)?nc(e):64&e[It]&&(function Vf(){return ds}()?(e[It]|=1024,nc(e)):e[Sn].changeDetectionScheduler?.notify())}function nc(e){e[Sn].changeDetectionScheduler?.notify();let t=e[k];for(;null!==t&&!(qn(t)&&t[It]&ar.HasChildViewsToRefresh||Zn(t)&&8192&t[It]);){if(qn(t))t[It]|=ar.HasChildViewsToRefresh;else if(t[It]|=8192,!bo(t))break;t=t[k]}}const Ut={lFrame:ca(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ao(){return Ut.bindingsEnabled}function lr(){return null!==Ut.skipHydrationRootTNode}function Ze(){return Ut.lFrame.lView}function ln(){return Ut.lFrame.tView}function Uf(e){return Ut.lFrame.contextLView=e,e[ot]}function zf(e){return Ut.lFrame.contextLView=null,e}function Cn(){let e=Gf();for(;null!==e&&64===e.type;)e=e.parent;return e}function Gf(){return Ut.lFrame.currentTNode}function Wo(e,t){const n=Ut.lFrame;n.currentTNode=e,n.isParent=t}function ra(){return Ut.lFrame.isParent}function Rl(){Ut.lFrame.isParent=!1}function oi(){const e=Ut.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Hi(){return Ut.lFrame.bindingIndex++}function io(e){const t=Ut.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Kf(e,t){const n=Ut.lFrame;n.bindingIndex=n.bindingRootIndex=e,Nl(t)}function Nl(e){Ut.lFrame.currentDirectiveIndex=e}function Ll(e){const t=Ut.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function mu(){return Ut.lFrame.currentQueryIndex}function Bl(e){Ut.lFrame.currentQueryIndex=e}function Vl(e){const t=e[at];return 2===t.type?t.declTNode:1===t.type?e[D]:null}function aa(e,t,n){if(n&Re.SkipSelf){let s=t,d=e;for(;!(s=s.parent,null!==s||n&Re.Host||(s=Vl(d),null===s||(d=d[Ir],10&s.type))););if(null===s)return!1;t=s,e=d}const r=Ut.lFrame=pu();return r.currentTNode=t,r.lView=e,!0}function ms(e){const t=pu(),n=e[at];Ut.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pu(){const e=Ut.lFrame,t=null===e?null:e.child;return null===t?ca(e):t}function ca(e){const 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 null!==e&&(e.child=t),t}function la(){const e=Ut.lFrame;return Ut.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gu=la;function ps(){const e=la();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 ri(){return Ut.lFrame.selectedIndex}function Lr(e){Ut.lFrame.selectedIndex=e}function xn(){const e=Ut.lFrame;return So(e.tView,e.selectedIndex)}function ac(){Ut.lFrame.currentNamespace=to}let Qf=!0;function cc(){return Qf}function ur(e){Qf=e}function Io(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const d=e.data[n].type.prototype,{ngAfterContentInit:f,ngAfterContentChecked:m,ngAfterViewInit:g,ngAfterViewChecked:O,ngOnDestroy:H}=d;f&&(e.contentHooks??=[]).push(-n,f),m&&((e.contentHooks??=[]).push(n,m),(e.contentCheckHooks??=[]).push(n,m)),g&&(e.viewHooks??=[]).push(-n,g),O&&((e.viewHooks??=[]).push(n,O),(e.viewCheckHooks??=[]).push(n,O)),null!=H&&(e.destroyHooks??=[]).push(n,H)}}function lc(e,t,n){Hl(e,t,3,n)}function da(e,t,n,r){(3&e[It])===n&&Hl(e,t,n,r)}function _u(e,t){let n=e[It];(3&n)===t&&(n&=16383,n+=1,e[It]=n)}function Hl(e,t,n,r){const d=r??-1,f=t.length-1;let m=0;for(let g=void 0!==r?65535&e[cs]:0;g<f;g++)if("number"==typeof t[g+1]){if(m=t[g],null!=r&&m>=r)break}else t[g]<0&&(e[cs]+=65536),(m<d||-1==d)&&(Xf(e,n,t,g),e[cs]=(4294901760&e[cs])+g+2),g++}function bu(e,t){ii(4,e,t);const n=C(null);try{t.call(e)}finally{C(n),ii(5,e,t)}}function Xf(e,t,n,r){const s=n[r]<0,d=n[r+1],m=e[s?-n[r]:n[r]];s?e[It]>>14<e[cs]>>16&&(3&e[It])===t&&(e[It]+=16384,bu(m,d)):bu(m,d)}const gs=-1;class ua{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function jl(e){return e!==gs}function Br(e){return 32767&e}function uc(e,t){let n=function nm(e){return e>>16}(e),r=t;for(;n>0;)r=r[Ir],n--;return r}let Ul=!0;function zl(e){const t=Ul;return Ul=e,t}const yu=255,wu=5;let om=0;const Oo={};function hc(e,t){const n=Cu(e,t);if(-1!==n)return n;const r=t[at];r.firstCreatePass&&(e.injectorIndex=t.length,Gl(r.data,e),Gl(t,null),Gl(r.blueprint,null));const s=fc(e,t),d=e.injectorIndex;if(jl(s)){const f=Br(s),m=uc(s,t),g=m[at].data;for(let O=0;O<8;O++)t[d+O]=m[f+O]|g[f+O]}return t[d+8]=s,d}function Gl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Cu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function fc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=Iu(s),null===r)return gs;if(n++,s=s[Ir],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return gs}function Wl(e,t,n){!function rm(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ei)&&(r=n[ei]),null==r&&(r=n[ei]=om++);const s=r&yu;t.data[e+(s>>wu)]|=1<<s}(e,t,n)}function xu(e,t,n){if(n&Re.Optional||void 0!==e)return e;z()}function Du(e,t,n,r){if(n&Re.Optional&&void 0===r&&(r=null),!(n&(Re.Self|Re.Host))){const s=e[Rt],d=st(void 0);try{return s?s.get(t,r,n&Re.Optional):Ht(t,r,n&Re.Optional)}finally{st(d)}}return xu(r,0,n)}function Tu(e,t,n,r=Re.Default,s){if(null!==e){if(2048&t[It]&&!(r&Re.Self)){const f=function lm(e,t,n,r,s){let d=e,f=t;for(;null!==d&&null!==f&&2048&f[It]&&!(512&f[It]);){const m=Eu(d,f,n,r|Re.Self,Oo);if(m!==Oo)return m;let g=d.parent;if(!g){const O=f[Ja];if(O){const H=O.get(n,Oo,r);if(H!==Oo)return H}g=Iu(f),f=f[Ir]}d=g}return s}(e,t,n,r,Oo);if(f!==Oo)return f}const d=Eu(e,t,n,r,Oo);if(d!==Oo)return d}return Du(t,n,r,s)}function Eu(e,t,n,r,s){const d=function am(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ei)?e[ei]:void 0;return"number"==typeof t?t>=0?t&yu:cm:t}(n);if("function"==typeof d){if(!aa(t,e,r))return r&Re.Host?xu(s,0,r):Du(t,n,r,s);try{let f;if(f=d(r),null!=f||r&Re.Optional)return f;z()}finally{gu()}}else if("number"==typeof d){let f=null,m=Cu(e,t),g=gs,O=r&Re.Host?t[kn][D]:null;for((-1===m||r&Re.SkipSelf)&&(g=-1===m?fc(e,t):t[m+8],g!==gs&&Su(r,!1)?(f=t[at],m=Br(g),t=uc(g,t)):m=-1);-1!==m;){const H=t[at];if(Mu(d,m,H.data)){const ie=sm(m,t,n,f,r,O);if(ie!==Oo)return ie}g=t[m+8],g!==gs&&Su(r,t[at].data[m+8]===O)&&Mu(d,m,t)?(f=H,m=Br(g),t=uc(g,t)):m=-1}}return s}function sm(e,t,n,r,s,d){const f=t[at],m=f.data[e+8],H=mc(m,f,n,null==r?cr(m)&&Ul:r!=f&&0!=(3&m.type),s&Re.Host&&d===m);return null!==H?Vr(t,f,H,m):Oo}function mc(e,t,n,r,s){const d=e.providerIndexes,f=t.data,m=1048575&d,g=e.directiveStart,H=d>>20,be=s?m+H:e.directiveEnd;for(let xe=r?m:m+H;xe<be;xe++){const Ue=f[xe];if(xe<g&&n===Ue||xe>=g&&Ue.type===n)return xe}if(s){const xe=f[g];if(xe&&eo(xe)&&xe.type===n)return g}return null}function Vr(e,t,n,r){let s=e[n];const d=t.data;if(function E_(e){return e instanceof ua}(s)){const f=s;f.resolving&&function Bn(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new rt(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Ot(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Et(e)}(d[n]));const m=zl(f.canSeeViewProviders);f.resolving=!0;const O=f.injectImpl?st(f.injectImpl):null;aa(e,r,Re.Default);try{s=e[n]=f.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function T_(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:d}=t.type.prototype;if(r){const f=Xt(t);(n.preOrderHooks??=[]).push(e,f),(n.preOrderCheckHooks??=[]).push(e,f)}s&&(n.preOrderHooks??=[]).push(0-e,s),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==O&&st(O),zl(m),f.resolving=!1,gu()}}return s}function Mu(e,t,n){return!!(n[t+(e>>wu)]&1<<e)}function Su(e,t){return!(e&Re.Self||e&Re.Host&&t)}class Jn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Tu(this._tNode,this._lView,t,nr(r),n)}}function cm(){return new Jn(Cn(),Ze())}function Au(e){return Un(()=>{const t=e.prototype.constructor,n=t[jt]||Yl(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const d=s[jt]||Yl(s);if(d&&d!==n)return d;s=Object.getPrototypeOf(s)}return d=>new d})}function Yl(e){return Pt(e)?()=>{const t=Yl(ut(e));return t&&t()}:hn(e)}function Iu(e){const t=e[at],n=t.type;return 2===n?t.declTNode:1===n?e[D]:null}function Kl(e){return function A_(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s<r;){const d=n[s];if(Gs(d))break;if(0===d)s+=2;else if("number"==typeof d)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(d===t)return n[s+1];s+=2}}}return null}(Cn(),e)}const ys="__parameters__";function Cs(e,t,n){return Un(()=>{const r=function Zl(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...d){if(this instanceof s)return r.apply(this,d),this;const f=new s(...d);return m.annotation=f,m;function m(g,O,H){const ie=g.hasOwnProperty(ys)?g[ys]:Object.defineProperty(g,ys,{value:[]})[ys];for(;ie.length<=H;)ie.push(null);return(ie[H]=ie[H]||[]).push(f),g}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function jr(e,t){e.forEach(n=>Array.isArray(n)?jr(n,t):t(n))}function pm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ur(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function ji(e,t,n){let r=Yo(e,t);return r>=0?e[1|r]=n:(r=~r,function Fu(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function fa(e,t){const n=Yo(e,t);if(n>=0)return e[1|n]}function Yo(e,t){return function ma(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const d=r+(s-r>>1),f=e[d<<n];if(t===f)return d<<n;f>t?s=d:r=d+1}return~(s<<n)}(e,t,1)}const ga=Qi(Cs("Optional"),8),Ui=Qi(Cs("SkipSelf"),4),ba=new yt("ENVIRONMENT_INITIALIZER"),wm=new yt("INJECTOR",-1),Vu=new yt("INJECTOR_DEF_TYPES");class td{get(t,n=Fi){if(n===Fi){const r=new Error(`NullInjectorError: No provider for ${$e(t)}!`);throw r.name="NullInjectorError",r}return n}}function $u(e){return{\u0275providers:e}}function bc(...e){return{\u0275providers:Hu(0,e),\u0275fromNgModule:!0}}function Hu(e,...t){const n=[],r=new Set;let s;const d=f=>{n.push(f)};return jr(t,f=>{const m=f;vc(m,d,[],r)&&(s||=[],s.push(m))}),void 0!==s&&ju(s,d),n}function ju(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:s}=e[n];Ms(s,d=>{t(d,r)})}}function vc(e,t,n,r){if(!(e=ut(e)))return!1;let s=null,d=uo(e);const f=!d&&Yt(e);if(d||f){if(f&&!f.standalone)return!1;s=e}else{const g=e.ngModule;if(d=uo(g),!d)return!1;s=g}const m=r.has(s);if(f){if(m)return!1;if(r.add(s),f.dependencies){const g="function"==typeof f.dependencies?f.dependencies():f.dependencies;for(const O of g)vc(O,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!m){let O;r.add(s);try{jr(d.imports,H=>{vc(H,t,n,r)&&(O||=[],O.push(H))})}finally{}void 0!==O&&ju(O,t)}if(!m){const O=hn(s)||(()=>new s);t({provide:s,useFactory:O,deps:rn},s),t({provide:Vu,useValue:s,multi:!0},s),t({provide:ba,useValue:()=>Vn(s),multi:!0},s)}const g=d.providers;if(null!=g&&!m){const O=e;Ms(g,H=>{t(H,O)})}}}return s!==e&&void 0!==e.providers}function Ms(e,t){for(let n of e)wt(n)&&(n=n.\u0275providers),Array.isArray(n)?Ms(n,t):t(n)}const Uu=re({provide:String,useValue:re});function yc(e){return null!==e&&"object"==typeof e&&Uu in e}function mr(e){return"function"==typeof e}const id=new yt("Set Injector scope."),Cc={},xm={};let od;function xc(){return void 0===od&&(od=new td),od}class gi{}class pr extends gi{get destroyed(){return this._destroyed}constructor(t,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sd(t,f=>this.processProvider(f)),this.records.set(wm,Ss(void 0,this)),s.has("environment")&&this.records.set(gi,Ss(void 0,this));const d=this.records.get(id);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Vu,rn,Re.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Ji(this),r=st(void 0);try{return t()}finally{Ji(n),st(r)}}get(t,n=Fi,r=Re.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(wn))return t[wn](this);r=nr(r);const d=Ji(this),f=st(void 0);try{if(!(r&Re.SkipSelf)){let g=this.records.get(t);if(void 0===g){const O=function rd(e){return"function"==typeof e||"object"==typeof e&&e instanceof yt}(t)&&Zi(t);g=O&&this.injectableDefInScope(O)?Ss(va(t),Cc):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(r&Re.Self?xc():this.parent).get(t,n=r&Re.Optional&&n===Fi?null:n)}catch(m){if("NullInjectorError"===m.name){if((m[Co]=m[Co]||[]).unshift($e(t)),d)throw m;return function zs(e,t,n,r){const s=e[Co];throw t[xo]&&s.unshift(t[xo]),e.message=function Mr(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=$e(t);if(Array.isArray(t))s=t.map($e).join(" -> ");else if("object"==typeof t){let d=[];for(let f in t)if(t.hasOwnProperty(f)){let m=t[f];d.push(f+":"+("string"==typeof m?JSON.stringify(m):$e(m)))}s=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Hs,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[Co]=null,e}(m,t,"R3InjectorError",this.source)}throw m}finally{st(f),Ji(d)}}resolveInjectorInitializers(){const t=Ji(this),n=st(void 0);try{const s=this.get(ba,rn,Re.Self);for(const d of s)d()}finally{Ji(t),st(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push($e(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new rt(205,!1)}processProvider(t){let n=mr(t=ut(t))?t:ut(t&&t.provide);const r=function Dm(e){return yc(e)?Ss(void 0,e.useValue):Ss(Gu(e),Cc)}(t);if(mr(t)||!0!==t.multi)this.records.get(n);else{let s=this.records.get(n);s||(s=Ss(void 0,Cc,!0),s.factory=()=>Ni(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Cc&&(n.value=xm,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Em(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ut(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function va(e){const t=Zi(e),n=null!==t?t.factory:hn(e);if(null!==n)return n;if(e instanceof yt)throw new rt(204,!1);if(e instanceof Function)return function Dc(e){const t=e.length;if(t>0)throw Ur(t,"?"),new rt(204,!1);const n=function di(e){return e&&(e[Bo]||e[_e])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new rt(204,!1)}function Gu(e,t,n){let r;if(mr(e)){const s=ut(e);return hn(s)||va(s)}if(yc(e))r=()=>ut(e.useValue);else if(function wc(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ni(e.deps||[]));else if(function zu(e){return!(!e||!e.useExisting)}(e))r=()=>Vn(ut(e.useExisting));else{const s=ut(e&&(e.useClass||e.provide));if(!function Tm(e){return!!e.deps}(e))return hn(s)||va(s);r=()=>new s(...Ni(e.deps))}return r}function Ss(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sd(e,t){for(const n of e)Array.isArray(n)?sd(n,t):n&&wt(n)?sd(n.\u0275providers,t):t(n)}function Tc(e,t){e instanceof pr&&e.assertNotDestroyed();const r=Ji(e),s=st(void 0);try{return t()}finally{Ji(r),st(s)}}function qu(e,t=null,n=null,r){const s=Ju(e,t,n,r);return s.resolveInjectorInitializers(),s}function Ju(e,t=null,n=null,r,s=new Set){const d=[n||rn,bc(e)];return r=r||("object"==typeof e?void 0:$e(e)),new pr(d,t||xc(),r||null,s)}let Da,ro=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Fi;static#t=this.NULL=new td;static create(n,r){if(Array.isArray(n))return qu({name:""},r,n,"");{const s=n.name??"";return qu({name:s},n.parent,n.providers,s)}}static#n=this.\u0275prov=Qt({token:e,providedIn:"any",factory:()=>Vn(wm)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function Am(e){Da=e}function gr(){if(void 0!==Da)return Da;if(typeof document<"u")return document;throw new rt(210,!1)}const eh=new yt("AppId",{providedIn:"root",factory:()=>Im}),Im="ng",cd=new yt("Platform Initializer"),ld=new yt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),dd=new yt("AnimationModuleType"),Ta=new yt("CSP nonce",{providedIn:"root",factory:()=>gr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function yd(e){return 128==(128&e.flags)}var Cd=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Cd||{});const Oc=/^>|^->|<!--|-->|--!>|<!-$/g,xd=/(<|>)/g,$m="\u200b$1\u200b";const Td=new Map;let Hm=0;const Md="__ngContext__";function vi(e,t){Zn(t)?(e[Md]=t[Or],function Um(e){Td.set(e[Or],e)}(t)):e[Md]=t}let Sa;function ph(e,t){return Sa(e,t)}function Aa(e){const t=e[k];return qn(t)?t[k]:t}function Qm(e){return ep(e[Xi])}function Xm(e){return ep(e[N])}function ep(e){for(;null!==e&&!qn(e);)e=e[N];return e}function Ps(e,t,n,r,s){if(null!=r){let d,f=!1;qn(r)?d=r:Zn(r)&&(f=!0,r=r[En]);const m=Mn(r);0===e&&null!==n?null==s?ka(t,n,m):ko(t,n,m,s||null,!0):1===e&&null!==n?ko(t,n,m,s||null,!0):2===e?function $c(e,t,n){const r=Bc(e,t);r&&function rp(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,m,f):3===e&&t.destroyNode(m),null!=d&&function cp(e,t,n,r,s){const d=n[Vi];d!==Mn(n)&&Ps(t,e,r,d,s);for(let m=Nn;m<n.length;m++){const g=n[m];Fa(g[at],g,e,t,r,d)}}(t,e,d,n,s)}}function Rc(e,t){return e.createComment(function Dd(e){return e.replace(Oc,t=>t.replace(xd,$m))}(t))}function Ia(e,t,n){return e.createElement(t,n)}function bh(e,t){const n=e[Rr],r=n.indexOf(t);n.splice(r,1)}function Pa(e,t){if(e.length<=Nn)return;const n=Nn+t,r=e[n];if(r){const s=r[rr];null!==s&&s!==e&&bh(s,r),t>0&&(e[n-1][N]=r[N]);const d=xs(e,Nn+t);!function Fc(e,t){Fa(e,t,t[Bt],2,null,null),t[En]=null,t[D]=null}(r[at],r);const f=d[po];null!==f&&f.detachView(d[at]),r[k]=null,r[N]=null,r[It]&=-129}return r}function Nc(e,t){if(!(256&t[It])){const n=t[Bt];n.destroyNode&&Fa(e,t,n,3,null,null),function np(e){let t=e[Xi];if(!t)return Ad(e[at],e);for(;t;){let n=null;if(Zn(t))n=t[Xi];else{const r=t[Nn];r&&(n=r)}if(!n){for(;t&&!t[N]&&t!==e;)Zn(t)&&Ad(t[at],t),t=t[k];null===t&&(t=e),Zn(t)&&Ad(t[at],t),n=t&&t[N]}t=n}}(t)}}function Ad(e,t){if(!(256&t[It])){t[It]&=-129,t[It]|=256,t[go]&&function ze(e){if(Me(e),Oe(e))for(let t=0;t<e.producerNode.length;t++)Se(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[go]),function op(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof ua)){const d=n[r+1];if(Array.isArray(d))for(let f=0;f<d.length;f+=2){const m=s[d[f]],g=d[f+1];ii(4,m,g);try{g.call(m)}finally{ii(5,m,g)}}else{ii(4,s,d);try{d.call(s)}finally{ii(5,s,d)}}}}}(e,t),function ip(e,t){const n=e.cleanup,r=t[we];if(null!==n)for(let d=0;d<n.length-1;d+=2)if("string"==typeof n[d]){const f=n[d+3];f>=0?r[f]():r[-f].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[we]=null);const s=t[pi];if(null!==s){t[pi]=null;for(let d=0;d<s.length;d++)(0,s[d])()}}(e,t),1===t[at].type&&t[Bt].destroy();const n=t[rr];if(null!==n&&qn(t[k])){n!==t[k]&&bh(n,t);const r=t[po];null!==r&&r.detachView(e)}!function zm(e){Td.delete(e[Or])}(t)}}function Lc(e,t,n){return function vh(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[En];{const{componentOffset:s}=r;if(s>-1){const{encapsulation:d}=e.data[r.directiveStart+s];if(d===Ai.None||d===Ai.Emulated)return null}return xi(r,n)}}(e,t.parent,n)}function ko(e,t,n,r,s){e.insertBefore(t,n,r,s)}function ka(e,t,n){e.appendChild(t,n)}function Kr(e,t,n,r,s){null!==r?ko(e,t,n,r,s):ka(e,t,n)}function Bc(e,t){return e.parentNode(t)}function yh(e,t,n){return Ch(e,t,n)}let Id,Hc,jc,Ch=function wh(e,t,n){return 40&e.type?xi(e,n):null};function Vc(e,t,n,r){const s=Lc(e,r,t),d=t[Bt],m=yh(r.parent||t[D],r,t);if(null!=s)if(Array.isArray(n))for(let g=0;g<n.length;g++)Kr(d,s,n[g],m,!1);else Kr(d,s,n,m,!1);void 0!==Id&&Id(d,r,t,n,s)}function Ra(e,t){if(null!==t){const n=t.type;if(3&n)return xi(t,e);if(4&n)return Od(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Ra(e,r);{const s=e[t.index];return qn(s)?Od(-1,s):Mn(s)}}if(32&n)return ph(t,e)()||Mn(e[t.index]);{const r=Dh(e,t);return null!==r?Array.isArray(r)?r[0]:Ra(Aa(e[kn]),r):Ra(e,t.next)}}return null}function Dh(e,t){return null!==t?e[kn][D].projection[t.projection]:null}function Od(e,t){const n=Nn+e+1;if(n<t.length){const r=t[n],s=r[at].firstChild;if(null!==s)return Ra(r,s)}return t[Vi]}function Pd(e,t,n,r,s,d,f){for(;null!=n;){const m=r[n.index],g=n.type;if(f&&0===t&&(m&&vi(Mn(m),r),n.flags|=2),32!=(32&n.flags))if(8&g)Pd(e,t,n.child,r,s,d,!1),Ps(t,e,s,m,d);else if(32&g){const O=ph(n,r);let H;for(;H=O();)Ps(t,e,s,H,d);Ps(t,e,s,m,d)}else 16&g?Eh(e,t,r,n,s,d):Ps(t,e,s,m,d);n=f?n.projectionNext:n.next}}function Fa(e,t,n,r,s,d){Pd(n,r,e.firstChild,t,s,d,!1)}function Eh(e,t,n,r,s,d){const f=n[kn],g=f[D].projection[r.projection];if(Array.isArray(g))for(let O=0;O<g.length;O++)Ps(t,e,s,g[O],d);else{let O=g;const H=f[k];yd(r)&&(O.flags|=128),Pd(e,t,O,H,s,d,!0)}}function Mh(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Sh(e,t,n){const{mergedAttrs:r,classes:s,styles:d}=n;null!==r&&ho(e,t,r),null!==s&&Mh(e,t,s),null!==d&&function dp(e,t,n){e.setAttribute(t,"style",n)}(e,t,d)}function ks(e){return function kd(){if(void 0===Hc&&(Hc=null,$t.trustedTypes))try{Hc=$t.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hc}()?.createHTML(e)||e}function Ah(e){return function Rd(){if(void 0===jc&&(jc=null,$t.trustedTypes))try{jc=$t.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jc}()?.createHTML(e)||e}class Zr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${li})`}}class mp extends Zr{getTypeName(){return"HTML"}}class pp extends Zr{getTypeName(){return"Style"}}class gp extends Zr{getTypeName(){return"Script"}}class _p extends Zr{getTypeName(){return"URL"}}class bp extends Zr{getTypeName(){return"ResourceURL"}}function qo(e){return e instanceof Zr?e.changingThisBreaksApplicationSecurity:e}function Rs(e,t){const n=function vp(e){return e instanceof Zr&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${li})`)}return n===t}function yp(e){return new mp(e)}function wp(e){return new pp(e)}function Cp(e){return new gp(e)}function xp(e){return new _p(e)}function Dp(e){return new bp(e)}class Tp{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(ks(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Ep{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=ks(t),n}}const Sp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Uc(e){return(e=String(e)).match(Sp)?e:"unsafe:"+e}function Jo(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const kh=Jo("area,br,col,hr,img,wbr"),Rh=Jo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Fh=Jo("rp,rt"),h=Na(kh,Na(Rh,Jo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Na(Fh,Jo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Na(Fh,Rh)),l=Jo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),u=Na(l,Jo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Jo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),p=Jo("script,style,template");class T{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!h.hasOwnProperty(n))return this.sanitizedSomething=!0,!p.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const d=r.item(s),f=d.name,m=f.toLowerCase();if(!u.hasOwnProperty(m)){this.sanitizedSomething=!0;continue}let g=d.value;l[m]&&(g=Uc(g)),this.buf.push(" ",f,'="',ye(g),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();h.hasOwnProperty(n)&&!kh.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(ye(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Z=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fe=/([^\#-~ |!])/g;function ye(e){return e.replace(/&/g,"&").replace(Z,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(fe,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ne;function Ye(e,t){let n=null;try{Ne=Ne||function Ph(e){const t=new Ep(e);return function Mp(){try{return!!(new window.DOMParser).parseFromString(ks(""),"text/html")}catch{return!1}}()?new Tp(t):t}(e);let r=t?String(t):"";n=Ne.getInertBodyElement(r);let s=5,d=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=d,d=n.innerHTML,n=Ne.getInertBodyElement(r)}while(r!==d);return ks((new T).sanitizeChildren(lt(n)||n))}finally{if(n){const r=lt(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function lt(e){return"content"in e&&function _t(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var pt=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}(pt||{});function Ct(e){const t=function Gi(){const e=Ze();return e&&e[Sn].sanitizer}();return t?Ah(t.sanitize(pt.HTML,e)||""):Rs(e,"HTML")?Ah(qo(e)):Ye(gr(),Et(e))}class Nh{}let Kc=(e,t,n)=>null;function Ap(e,t,n=!1){return Kc(e,t,n)}class lC{}class W_{}class uC{resolveComponentFactory(t){throw function dC(e){const t=Error(`No component factory found for ${$e(e)}.`);return t.ngComponent=e,t}(t)}}let Fd=(()=>{class e{static#e=this.NULL=new uC}return e})();function hC(){return Zc(Cn(),Ze())}function Zc(e,t){return new Nd(xi(e,t))}let Nd=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=hC}return e})();function fC(e){return e instanceof Nd?e.nativeElement:e}class K_{}let mC=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function pC(){const e=Ze(),n=$i(Cn().index,e);return(Zn(n)?n:e)[Bt]}()}return e})(),gC=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:()=>null})}return e})();const Pp={};function bC(e){const t=C(null);try{return e()}finally{C(t)}}function $h(e){return!!kp(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function kp(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class Z_{constructor(){}supports(t){return $h(t)}create(t){return new CC(t)}}const wC=(e,t)=>t;class CC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||wC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,d=null;for(;n||r;){const f=!r||n&&n.currentIndex<J_(r,s,d)?n:r,m=J_(f,s,d),g=f.currentIndex;if(f===r)s--,r=r._nextRemoved;else if(n=n._next,null==f.previousIndex)s++;else{d||(d=[]);const O=m-s,H=g-s;if(O!=H){for(let be=0;be<O;be++){const xe=be<d.length?d[be]:d[be]=0,Ue=xe+be;H<=Ue&&Ue<O&&(d[be]=xe+1)}d[f.previousIndex]=H-O}}m!==g&&t(f,m,g)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!$h(t))throw new rt(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,d,f,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let m=0;m<this.length;m++)d=t[m],f=this._trackByFn(m,d),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,d,f,m)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,f,m),r=!0),n=n._next}else s=0,function yC(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,m=>{f=this._trackByFn(s,m),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,m,f,s)),Object.is(n.item,m)||this._addIdentityChange(n,m)):(n=this._mismatch(n,m,f,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,s)):t=this._addAfter(new xC(n,r),d,s),t}_verifyReinsertion(t,n,r,s){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,d=t._nextRemoved;return null===s?this._removalsHead=d:s._nextRemoved=d,null===d?this._removalsTail=s:d._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new q_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new q_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class xC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class DC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class q_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new DC,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function J_(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class Q_{constructor(){}supports(t){return t instanceof Map||kp(t)}create(){return new TC}}class TC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||kp(t)))throw new rt(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const d=s._prev,f=s._next;return d&&(d._next=f),f&&(f._prev=d),s._next=null,s._prev=null,s}const r=new EC(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class EC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X_(){return new Rp([new Z_])}let Rp=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:X_});constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||X_()),deps:[[e,new Ui,new ga]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new rt(901,!1)}}return e})();function eb(){return new Fp([new Q_])}let Fp=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:eb});constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||eb()),deps:[[e,new Ui,new ga]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new rt(901,!1)}}return e})();function Ld(e,t,n,r,s=!1){for(;null!==n;){const d=t[n.index];null!==d&&r.push(Mn(d)),qn(d)&&tb(d,r);const f=n.type;if(8&f)Ld(e,t,n.child,r);else if(32&f){const m=ph(n,t);let g;for(;g=m();)r.push(g)}else if(16&f){const m=Dh(t,n);if(Array.isArray(m))r.push(...m);else{const g=Aa(t[kn]);Ld(g[at],g,m,r,!0)}}n=s?n.projectionNext:n.next}return r}function tb(e,t){for(let n=Nn;n<e.length;n++){const r=e[n],s=r[at].firstChild;null!==s&&Ld(r[at],r,s,t)}e[Vi]!==e[En]&&t.push(e[Vi])}let nb=[];const OC={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{nc(e.lView)},consumerOnSignalRead(){this.lView[go]=this}};function Np(e){return e.ngOriginalError}class Ls{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Np(t);for(;n&&Np(n);)n=Np(n);return n||null}}const ob=new yt("",{providedIn:"root",factory:()=>tn(Ls).handleError.bind(void 0)}),sb=new yt("",{providedIn:"root",factory:()=>!1}),Jt={};function db(e){ub(ln(),Ze(),ri()+e,!1)}function ub(e,t,n,r){if(!r)if(3==(3&t[It])){const d=e.preOrderCheckHooks;null!==d&&lc(t,d,n)}else{const d=e.preOrderHooks;null!==d&&da(t,d,0,n)}Lr(n)}function qc(e,t=Re.Default){const n=Ze();return null===n?Vn(e,t):Tu(Cn(),n,ut(e),t)}function hb(){throw new Error("invalid")}function jh(e,t,n,r,s,d,f,m,g,O,H){const ie=t.blueprint.slice();return ie[En]=s,ie[It]=204|r,(null!==O||e&&2048&e[It])&&(ie[It]|=2048),Sl(ie),ie[k]=ie[Ir]=e,ie[ot]=n,ie[Sn]=f||e&&e[Sn],ie[Bt]=m||e&&e[Bt],ie[Rt]=g||e&&e[Rt]||null,ie[D]=d,ie[Or]=function jm(){return Hm++}(),ie[ee]=H,ie[Ja]=O,ie[kn]=2==t.type?e[kn]:ie,ie}function Jc(e,t,n,r,s){let d=e.data[t];if(null===d)d=function Lp(e,t,n,r,s){const d=Gf(),f=ra(),g=e.data[t]=function zC(e,t,n,r,s,d){let f=t?t.injectorIndex:-1,m=0;return lr()&&(m|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:f,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:m,providerIndexes:0,value:s,attrs:d,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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}}(0,f?d:d&&d.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=g),null!==d&&(f?null==d.child&&null!==g.parent&&(d.child=g):null===d.next&&(d.next=g,g.prev=d)),g}(e,t,n,r,s),function fu(){return Ut.lFrame.inI18n}()&&(d.flags|=32);else if(64&d.type){d.type=n,d.value=r,d.attrs=s;const f=function rc(){const e=Ut.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();d.injectorIndex=null===f?-1:f.injectorIndex}return Wo(d,!0),d}function Bd(e,t,n,r){if(0===n)return-1;const s=t.length;for(let d=0;d<n;d++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function fb(e,t,n,r,s){const d=ri(),f=2&r;try{Lr(-1),f&&t.length>Vt&&ub(e,t,Vt,!1),ii(f?2:0,s),n(r,s)}finally{Lr(d),ii(f?3:1,s)}}function Bp(e,t,n){if(Xs(t)){const r=C(null);try{const d=t.directiveEnd;for(let f=t.directiveStart;f<d;f++){const m=e.data[f];m.contentQueries&&m.contentQueries(1,n[f],f)}}finally{C(r)}}}function Vp(e,t,n){Ao()&&(function JC(e,t,n,r){const s=n.directiveStart,d=n.directiveEnd;cr(n)&&function ox(e,t,n){const r=xi(t,e),s=mb(n);let f=16;n.signals?f=4096:n.onPush&&(f=64);const m=Uh(e,jh(e,s,null,f,r,t,null,e[Sn].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=m}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||hc(n,t),vi(r,t);const f=n.initialInputs;for(let m=s;m<d;m++){const g=e.data[m],O=Vr(t,e,m,n);vi(O,t),null!==f&&rx(0,m-s,O,g,0,f),eo(g)&&($i(n.index,t)[ot]=Vr(t,e,m,n))}}(e,t,n,xi(n,t)),64==(64&n.flags)&&vb(e,t,n))}function $p(e,t,n=xi){const r=t.localNames;if(null!==r){let s=t.index+1;for(let d=0;d<r.length;d+=2){const f=r[d+1],m=-1===f?n(t,e):e[f];e[s++]=m}}}function mb(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Hp(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hp(e,t,n,r,s,d,f,m,g,O,H){const ie=Vt+r,be=ie+s,xe=function BC(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Jt);return n}(ie,be),Ue="function"==typeof O?O():O;return xe[at]={type:e,blueprint:xe,template:n,queries:null,viewQuery:m,declTNode:t,data:xe.slice().fill(null,ie),bindingStartIndex:ie,expandoStartIndex:be,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:"function"==typeof d?d():d,pipeRegistry:"function"==typeof f?f():f,firstChild:null,schemas:g,consts:Ue,incompleteFirstPass:!1,ssrId:H}}let pb=e=>null;function gb(e,t,n,r){for(let s in e)if(e.hasOwnProperty(s)){n=null===n?{}:n;const d=e[s];null===r?_b(n,t,s,d):r.hasOwnProperty(s)&&_b(n,t,r[s],d)}return n}function _b(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function vo(e,t,n,r,s,d,f,m){const g=xi(t,n);let H,O=t.inputs;!m&&null!=O&&(H=O[r])?(Wp(e,n,H,r,s),cr(t)&&function YC(e,t){const n=$i(t,e);16&n[It]||(n[It]|=64)}(n,t.index)):3&t.type&&(r=function WC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=f?f(s,t.value||"",r):s,d.setProperty(g,r,s))}function jp(e,t,n,r){if(Ao()){const s=null===r?null:{"":-1},d=function XC(e,t){const n=e.directiveRegistry;let r=null,s=null;if(n)for(let d=0;d<n.length;d++){const f=n[d];if(or(t,f.selectors,!1))if(r||(r=[]),eo(f))if(null!==f.findHostDirectiveDefs){const m=[];s=s||new Map,f.findHostDirectiveDefs(f,m,s),r.unshift(...m,f),Up(e,t,m.length)}else r.unshift(f),Up(e,t,0);else s=s||new Map,f.findHostDirectiveDefs?.(f,r,s),r.push(f)}return null===r?null:[r,s]}(e,n);let f,m;null===d?f=m=null:[f,m]=d,null!==f&&bb(e,t,n,f,s,m),s&&function ex(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const d=n[t[s+1]];if(null==d)throw new rt(-301,!1);r.push(t[s],d)}}}(n,r,s)}n.mergedAttrs=Pn(n.mergedAttrs,n.attrs)}function bb(e,t,n,r,s,d){for(let O=0;O<r.length;O++)Wl(hc(n,t),e,r[O].type);!function nx(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let O=0;O<r.length;O++){const H=r[O];H.providersResolver&&H.providersResolver(H)}let f=!1,m=!1,g=Bd(e,t,r.length,null);for(let O=0;O<r.length;O++){const H=r[O];n.mergedAttrs=Pn(n.mergedAttrs,H.hostAttrs),ix(e,n,t,g,H),tx(g,H,s),null!==H.contentQueries&&(n.flags|=4),(null!==H.hostBindings||null!==H.hostAttrs||0!==H.hostVars)&&(n.flags|=64);const ie=H.type.prototype;!f&&(ie.ngOnChanges||ie.ngOnInit||ie.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),f=!0),!m&&(ie.ngOnChanges||ie.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),m=!0),g++}!function GC(e,t,n){const s=t.directiveEnd,d=e.data,f=t.attrs,m=[];let g=null,O=null;for(let H=t.directiveStart;H<s;H++){const ie=d[H],be=n?n.get(ie):null,Ue=be?be.outputs:null;g=gb(ie.inputs,H,g,be?be.inputs:null),O=gb(ie.outputs,H,O,Ue);const nt=null===g||null===f||Ks(t)?null:sx(g,H,f);m.push(nt)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=8),g.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=m,t.inputs=g,t.outputs=O}(e,n,d)}function vb(e,t,n){const r=n.directiveStart,s=n.directiveEnd,d=n.index,f=function Zf(){return Ut.lFrame.currentDirectiveIndex}();try{Lr(d);for(let m=r;m<s;m++){const g=e.data[m],O=t[m];Nl(m),(null!==g.hostBindings||0!==g.hostVars||null!==g.hostAttrs)&&QC(g,O)}}finally{Lr(-1),Nl(f)}}function QC(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Up(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function tx(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;eo(t)&&(n[""]=e)}}function ix(e,t,n,r,s){e.data[r]=s;const d=s.factory||(s.factory=hn(s.type)),f=new ua(d,eo(s),qc);e.blueprint[r]=f,n[r]=f,function ZC(e,t,n,r,s){const d=s.hostBindings;if(d){let f=e.hostBindingOpCodes;null===f&&(f=e.hostBindingOpCodes=[]);const m=~t.index;(function qC(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=m&&f.push(m),f.push(n,r,d)}}(e,t,r,Bd(e,n,s.hostVars,Jt),s)}function yr(e,t,n,r,s,d){const f=xi(e,t);!function zp(e,t,n,r,s,d,f){if(null==d)e.removeAttribute(t,s,n);else{const m=null==f?Et(d):f(d,r||"",s);e.setAttribute(t,s,m,n)}}(t[Bt],f,d,e.value,n,r,s)}function rx(e,t,n,r,s,d){const f=d[t];if(null!==f)for(let m=0;m<f.length;)yb(r,n,f[m++],f[m++],f[m++])}function yb(e,t,n,r,s){const d=C(null);try{const f=e.inputTransforms;null!==f&&f.hasOwnProperty(r)&&(s=f[r].call(t,s)),null!==e.setInput?e.setInput(t,s,n,r):t[r]=s}finally{C(d)}}function sx(e,t,n){let r=null,s=0;for(;s<n.length;){const d=n[s];if(0!==d)if(5!==d){if("number"==typeof d)break;if(e.hasOwnProperty(d)){null===r&&(r=[]);const f=e[d];for(let m=0;m<f.length;m+=2)if(f[m]===t){r.push(d,f[m+1],n[s+1]);break}}s+=2}else s+=2;else s+=4}return r}function wb(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Cb(e,t){const n=e.contentQueries;if(null!==n){const r=C(null);try{for(let s=0;s<n.length;s+=2){const f=n[s+1];if(-1!==f){const m=e.data[f];Bl(n[s]),m.contentQueries(2,t[f],f)}}}finally{C(r)}}}function Uh(e,t){return e[Xi]?e[qa][N]=t:e[Xi]=t,e[qa]=t,t}function Gp(e,t,n){Bl(0);const r=C(null);try{t(e,n)}finally{C(r)}}function xb(e){return e[we]||(e[we]=[])}function Db(e){return e.cleanup||(e.cleanup=[])}function Tb(e,t,n){return(null===e||eo(e))&&(n=function ia(e){for(;Array.isArray(e);){if("object"==typeof e[ls])return e;e=e[En]}return null}(n[t.index])),n[Bt]}function zh(e,t){const n=e[Rt],r=n?n.get(Ls,null):null;r&&r.handleError(t)}function Wp(e,t,n,r,s){for(let d=0;d<n.length;){const f=n[d++],m=n[d++];yb(e.data[f],t[f],r,m,s)}}function lx(e,t,n,r){const s=t[It];if(256==(256&s))return;t[Sn].inlineEffectRunner?.flush(),ms(t);let f=null,m=null;(function dx(e){return 2!==e.type})(e)&&(m=function SC(e){return e[go]??function AC(e){const t=nb.pop()??Object.create(OC);return t.lView=e,t}(e)}(t),f=function Q(e){return e&&(e.nextProducerIndex=0),C(e)}(m));try{Sl(t),function Wf(e){return Ut.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&fb(e,t,n,2,r);const g=3==(3&s);if(g){const ie=e.preOrderCheckHooks;null!==ie&&lc(t,ie,null)}else{const ie=e.preOrderHooks;null!==ie&&da(t,ie,0,null),_u(t,0)}if(function ux(e){for(let t=Qm(e);null!==t;t=Xm(t)){if(!(t[It]&ar.HasTransplantedViews))continue;const n=t[Rr];for(let r=0;r<n.length;r++){Al(n[r])}}}(t),Eb(t,0),null!==e.contentQueries&&Cb(e,t),g){const ie=e.contentCheckHooks;null!==ie&&lc(t,ie)}else{const ie=e.contentHooks;null!==ie&&da(t,ie,1),_u(t,1)}!function LC(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)Lr(~s);else{const d=s,f=n[++r],m=n[++r];Kf(f,d),m(2,t[d])}}}finally{Lr(-1)}}(e,t);const O=e.components;null!==O&&Sb(t,O,0);const H=e.viewQuery;if(null!==H&&Gp(2,H,r),g){const ie=e.viewCheckHooks;null!==ie&&lc(t,ie)}else{const ie=e.viewHooks;null!==ie&&da(t,ie,2),_u(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[Pr]){for(const ie of t[Pr])ie();t[Pr]=null}t[It]&=-73}catch(g){throw nc(t),g}finally{null!==m&&(function ce(e,t){if(C(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Oe(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Se(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(m,f),function IC(e){e.lView[go]!==e&&(e.lView=null,nb.push(e))}(m)),ps()}}function Eb(e,t){for(let n=Qm(e);null!==n;n=Xm(n)){n[It]&=~ar.HasChildViewsToRefresh;for(let r=Nn;r<n.length;r++)Mb(n[r],t)}}function hx(e,t,n){Mb($i(t,e),n)}function Mb(e,t){bo(e)&&Kp(e,t)}function Kp(e,t){const r=e[at],s=e[It],d=e[go];let f=!!(0===t&&16&s);if(f||=!!(64&s&&0===t),f||=!!(1024&s),f||=!(!d?.dirty||!Be(d)),d&&(d.dirty=!1),e[It]&=-9217,f)lx(r,e,r.template,e[ot]);else if(8192&s){Eb(e,1);const m=r.components;null!==m&&Sb(e,m,1)}}function Sb(e,t,n){for(let r=0;r<t.length;r++)hx(e,t[r],n)}function Vd(e){for(e[Sn].changeDetectionScheduler?.notify();e;){e[It]|=64;const t=Aa(e);if(Qa(e)&&!t)return e;e=t}return null}class $d{get rootNodes(){const t=this._lView,n=t[at];return Ld(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ot]}set context(t){this._lView[ot]=t}get destroyed(){return 256==(256&this._lView[It])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[k];if(qn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Pa(t,r),xs(n,r))}this._attachedToViewContainer=!1}Nc(this._lView[at],this._lView)}onDestroy(t){!function hs(e,t){if(256==(256&e[It]))throw new rt(911,!1);null===e[pi]&&(e[pi]=[]),e[pi].push(t)}(this._lView,t)}markForCheck(){Vd(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){tc(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,function Yp(e,t=!0){const n=e[Sn],r=n.rendererFactory,s=n.afterRenderEventManager;r.begin?.(),s?.begin();try{!function cx(e){Kp(e,0);let t=0;for(;ec(e);){if(100===t)throw new rt(103,!1);t++,Kp(e,1)}}(e)}catch(f){throw t&&zh(e,f),f}finally{r.end?.(),n.inlineEffectRunner?.flush(),s?.end()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new rt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Oa(e,t){Fa(e,t,t[Bt],2,null,null)}(this._lView[at],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new rt(902,!1);this._appRef=t,tc(this._lView)}}let Ab=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=fx}return e})();function fx(e){return function mx(e,t,n){if(cr(e)&&!n){const r=$i(e.index,t);return new $d(r,r)}return 47&e.type?new $d(t[kn],t):null}(Cn(),Ze(),16==(16&e))}const Ib=new Set;function Ba(e){Ib.has(e)||(Ib.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function qp(e){return t=>{setTimeout(e,void 0,t)}}const wr=class Dx extends mt.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let s=t,d=n||(()=>null),f=r;if(t&&"object"==typeof t){const g=t;s=g.next?.bind(g),d=g.error?.bind(g),f=g.complete?.bind(g)}this.__isAsync&&(d=qp(d),s&&(s=qp(s)),f&&(f=qp(f)));const m=super.subscribe({next:s,error:d,complete:f});return t instanceof Ae.w0&&t.add(m),m}};function Ob(...e){}class si{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new rt(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function Tx(){const e="function"==typeof $t.requestAnimationFrame;let t=$t[e?"requestAnimationFrame":"setTimeout"],n=$t[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Sx(e){const t=()=>{!function Mx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call($t,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Qp(e),e.isCheckStableRunning=!0,Jp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Qp(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,d,f,m)=>{if(function Ix(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(m))return n.invokeTask(s,d,f,m);try{return Pb(e),n.invokeTask(s,d,f,m)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),kb(e)}},onInvoke:(n,r,s,d,f,m,g)=>{try{return Pb(e),n.invoke(s,d,f,m,g)}finally{e.shouldCoalesceRunChangeDetection&&t(),kb(e)}},onHasTask:(n,r,s,d)=>{n.hasTask(s,d),r===s&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Qp(e),Jp(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(n,r,s,d)=>(n.handleError(s,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!si.isInAngularZone())throw new rt(909,!1)}static assertNotInAngularZone(){if(si.isInAngularZone())throw new rt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const d=this._inner,f=d.scheduleEventTask("NgZoneEvent: "+s,t,Ex,Ob,Ob);try{return d.runTask(f,n,r)}finally{d.cancelTask(f)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Ex={};function Jp(e){if(0==e._nesting&&!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 Qp(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Pb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function kb(e){e._nesting--,Jp(e)}class Ax{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}let Gh=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth){for(const n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:()=>new e})}return e})();function Rx(e,t){const n=$i(t,e),r=n[at];!function Fx(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const s=n[En];null!==s&&null===n[ee]&&(n[ee]=Ap(s,n[Rt])),Xp(r,n,n[ot])}function Xp(e,t,n){ms(t);try{const r=e.viewQuery;null!==r&&Gp(1,r,n);const s=e.template;null!==s&&fb(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Cb(e,t),e.staticViewQueries&&Gp(2,e.viewQuery,n);const d=e.components;null!==d&&function Nx(e,t){for(let n=0;n<t.length;n++)Rx(e,t[n])}(t,d)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[It]&=-5,ps()}}function Wh(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,d=0;if(null!==t)for(let f=0;f<t.length;f++){const m=t[f];"number"==typeof m?d=m:1==d?s=it(s,m):2==d&&(r=it(r,m+": "+t[++f]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}class Bb extends Fd{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Yt(t);return new Hd(n,this.ngModule)}}function Vb(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Bx{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=nr(r);const s=this.injector.get(t,Pp,r);return s!==Pp||n===Pp?s:this.parentInjector.get(t,n,r)}}class Hd extends W_{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Vb(t.inputs);if(null!==n)for(const s of r)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return r}get outputs(){return Vb(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Uo(e){return e.map(Ka).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,s){let d=(s=s||this.ngModule)instanceof gi?s:s?.injector;d&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);const f=d?new Bx(t,d):t,m=f.get(K_,null);if(null===m)throw new rt(407,!1);const ie={rendererFactory:m,sanitizer:f.get(gC,null),inlineEffectRunner:null,afterRenderEventManager:f.get(Gh,null),changeDetectionScheduler:f.get(Nh,null)},be=m.createRenderer(null,this.componentDef),xe=this.componentDef.selectors[0][0]||"div",Ue=r?function VC(e,t,n,r){const d=r.get(sb,!1)||n===Ai.ShadowDom,f=e.selectRootElement(t,d);return function $C(e){pb(e)}(f),f}(be,r,this.componentDef.encapsulation,f):Ia(be,xe,function Lx(e){const t=e.toLowerCase();return"svg"===t?to:"math"===t?"math":null}(xe));let nt=512;this.componentDef.signals?nt|=4096:this.componentDef.onPush||(nt|=16);let ht=null;null!==Ue&&(ht=Ap(Ue,f,!0));const Tt=Hp(0,null,null,1,0,null,null,null,null,null,null),et=jh(null,Tt,null,nt,null,null,ie,be,f,null,ht);let Kt,an;ms(et);try{const mn=this.componentDef;let ki,Rf=null;mn.findHostDirectiveDefs?(ki=[],Rf=new Map,mn.findHostDirectiveDefs(mn,ki,Rf),ki.push(mn)):ki=[mn];const NA=function $x(e,t){const n=e[at],r=Vt;return e[r]=t,Jc(n,r,2,"#host",null)}(et,Ue),LA=function Hx(e,t,n,r,s,d,f){const m=s[at];!function jx(e,t,n,r){for(const s of e)t.mergedAttrs=Pn(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(Wh(t,t.mergedAttrs,!0),null!==n&&Sh(r,n,t))}(r,e,t,f);let g=null;null!==t&&(g=Ap(t,s[Rt]));const O=d.rendererFactory.createRenderer(t,n);let H=16;n.signals?H=4096:n.onPush&&(H=64);const ie=jh(s,mb(n),null,H,s[e.index],e,d,O,null,null,g);return m.firstCreatePass&&Up(m,e,r.length-1),Uh(s,ie),s[e.index]=ie}(NA,Ue,mn,ki,et,ie,be);an=So(Tt,Vt),Ue&&function zx(e,t,n,r){if(r)ho(e,n,["ng-version","17.0.8"]);else{const{attrs:s,classes:d}=function Sr(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let d=e[r];if("string"==typeof d)2===s?""!==d&&t.push(d,e[++r]):8===s&&n.push(d);else{if(!Rn(s))break;s=d}r++}return{attrs:t,classes:n}}(t.selectors[0]);s&&ho(e,n,s),d&&d.length>0&&Mh(e,n,d.join(" "))}}(be,mn,Ue,r),void 0!==n&&function Gx(e,t,n){const r=e.projection=[];for(let s=0;s<t.length;s++){const d=n[s];r.push(null!=d?Array.from(d):null)}}(an,this.ngContentSelectors,n),Kt=function Ux(e,t,n,r,s,d){const f=Cn(),m=s[at],g=xi(f,s);bb(m,s,f,n,null,r);for(let H=0;H<n.length;H++)vi(Vr(s,m,f.directiveStart+H,f),s);vb(m,s,f),g&&vi(g,s);const O=Vr(s,m,f.directiveStart+f.componentOffset,f);if(e[ot]=s[ot]=O,null!==d)for(const H of d)H(O,t);return Bp(m,f,e),O}(LA,mn,ki,Rf,et,[Wx]),Xp(Tt,et,null)}finally{ps()}return new Vx(this.componentType,Kt,Zc(an,et),et,an)}}class Vx extends lC{constructor(t,n,r,s,d){super(),this.location=r,this._rootLView=s,this._tNode=d,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new $d(s,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let s;if(null!==r&&(s=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const d=this._rootLView;Wp(d[at],d,s,t,n),this.previousInputValues.set(t,n),Vd($i(this._tNode.index,d))}}get injector(){return new Jn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Wx(){const e=Cn();Io(Ze()[at],e)}function eg(e){let t=function $b(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(eo(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new rt(903,!1);s=t.\u0275dir}if(s){if(n){r.push(s);const f=e;f.inputs=Yh(e.inputs),f.inputTransforms=Yh(e.inputTransforms),f.declaredInputs=Yh(e.declaredInputs),f.outputs=Yh(e.outputs);const m=s.hostBindings;m&&qx(e,m);const g=s.viewQuery,O=s.contentQueries;if(g&&Kx(e,g),O&&Zx(e,O),Te(e.inputs,s.inputs),Te(e.declaredInputs,s.declaredInputs),Te(e.outputs,s.outputs),null!==s.inputTransforms&&(null===f.inputTransforms&&(f.inputTransforms={}),Te(f.inputTransforms,s.inputTransforms)),eo(s)&&s.data.animation){const H=e.data;H.animation=(H.animation||[]).concat(s.data.animation)}}const d=s.features;if(d)for(let f=0;f<d.length;f++){const m=d[f];m&&m.ngInherit&&m(e),m===eg&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Yx(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Pn(s.hostAttrs,n=Pn(n,s.hostAttrs))}}(r)}function Yh(e){return e===Li?{}:e===rn?[]:e}function Kx(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Zx(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,d)=>{t(r,s,d),n(r,s,d)}:t}function qx(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}function zb(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];Array.isArray(s)&&s[2]&&(n[r]=s[2])}e.inputTransforms=n}function Cr(e,t,n){return e[t]=n}function jd(e,t){return e[t]}function ai(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function $a(e,t,n,r){const s=ai(e,t,n);return ai(e,t+1,r)||s}function tg(e,t,n,r){const s=Ze();return ai(s,Hi(),t)&&(ln(),yr(xn(),s,e,t,n,r)),tg}function Zh(e,t){return e<<17|t<<2}function Bs(e){return e>>17&32767}function ng(e){return 2|e}function Ha(e){return(131068&e)>>2}function ig(e,t){return-131069&e|t<<2}function og(e){return 1|e}function ev(e,t,n,r,s){const d=e[n+1],f=null===t;let m=r?Bs(d):Ha(d),g=!1;for(;0!==m&&(!1===g||f);){const H=e[m+1];aD(e[m],t)&&(g=!0,e[m+1]=r?og(H):ng(H)),m=r?Bs(H):Ha(H)}g&&(e[n+1]=r?ng(d):og(d))}function aD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Yo(e,t)>=0}const hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tv(e){return e.substring(hi.key,hi.keyEnd)}function nv(e,t){const n=hi.textEnd;return n===t?-1:(t=hi.keyEnd=function uD(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,hi.key=t,n),al(e,t,n))}function al(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function rg(e,t,n){const r=Ze();return ai(r,Hi(),t)&&vo(ln(),xn(),r,e,t,r[Bt],n,!1),rg}function sg(e,t,n,r,s){const f=s?"class":"style";Wp(e,n,t.inputs[f],f,r)}function ag(e,t,n){return Xo(e,t,n,!1),ag}function cg(e,t){return Xo(e,t,null,!0),cg}function av(e){!function er(e,t,n,r){const s=ln(),d=io(2);s.firstUpdatePass&&lv(s,null,d,r);const f=Ze();if(n!==Jt&&ai(f,d,n)){const m=s.data[ri()];if(fv(m,r)&&!cv(s,d)){let g=r?m.classesWithoutHost:m.stylesWithoutHost;null!==g&&(n=it(g,n||"")),sg(s,m,f,n,r)}else!function wD(e,t,n,r,s,d,f,m){s===Jt&&(s=rn);let g=0,O=0,H=0<s.length?s[0]:null,ie=0<d.length?d[0]:null;for(;null!==H||null!==ie;){const be=g<s.length?s[g+1]:void 0,xe=O<d.length?d[O+1]:void 0;let nt,Ue=null;H===ie?(g+=2,O+=2,be!==xe&&(Ue=ie,nt=xe)):null===ie||null!==H&&H<ie?(g+=2,Ue=H):(O+=2,Ue=ie,nt=xe),null!==Ue&&uv(e,t,n,r,Ue,nt,f,m),H=g<s.length?s[g]:null,ie=O<d.length?d[O]:null}}(s,m,f,f[Bt],f[d+1],f[d+1]=function vD(e,t,n){if(null==n||""===n)return rn;const r=[],s=qo(n);if(Array.isArray(s))for(let d=0;d<s.length;d++)e(r,s[d],!0);else if("object"==typeof s)for(const d in s)s.hasOwnProperty(d)&&e(r,d,s[d]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,d)}}(yD,Dr,e,!0)}function Dr(e,t){for(let n=function lD(e){return function ov(e){hi.key=0,hi.keyEnd=0,hi.value=0,hi.valueEnd=0,hi.textEnd=e.length}(e),nv(e,al(e,0,hi.textEnd))}(t);n>=0;n=nv(t,n))ji(e,tv(t),!0)}function Xo(e,t,n,r){const s=Ze(),d=ln(),f=io(2);d.firstUpdatePass&&lv(d,e,f,r),t!==Jt&&ai(s,f,t)&&uv(d,d.data[ri()],s,s[Bt],e,s[f+1]=function CD(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=$e(qo(e)))),e}(t,n),r,f)}function cv(e,t){return t>=e.expandoStartIndex}function lv(e,t,n,r){const s=e.data;if(null===s[n+1]){const d=s[ri()],f=cv(e,n);fv(d,r)&&null===t&&!f&&(t=!1),t=function pD(e,t,n,r){const s=Ll(e);let d=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=Ud(n=lg(null,e,t,n,r),t.attrs,r),d=null);else{const f=t.directiveStylingLast;if(-1===f||e[f]!==s)if(n=lg(s,e,t,n,r),null===d){let g=function gD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ha(r))return e[Bs(r)]}(e,t,r);void 0!==g&&Array.isArray(g)&&(g=lg(null,e,t,g[1],r),g=Ud(g,t.attrs,r),function _D(e,t,n,r){e[Bs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,g))}else d=function bD(e,t,n){let r;const s=t.directiveEnd;for(let d=1+t.directiveStylingLast;d<s;d++)r=Ud(r,e[d].hostAttrs,n);return Ud(r,t.attrs,n)}(e,t,r)}return void 0!==d&&(r?t.residualClasses=d:t.residualStyles=d),n}(s,d,t,r),function rD(e,t,n,r,s,d){let f=d?t.classBindings:t.styleBindings,m=Bs(f),g=Ha(f);e[r]=n;let H,O=!1;if(Array.isArray(n)?(H=n[1],(null===H||Yo(n,H)>0)&&(O=!0)):H=n,s)if(0!==g){const be=Bs(e[m+1]);e[r+1]=Zh(be,m),0!==be&&(e[be+1]=ig(e[be+1],r)),e[m+1]=function iD(e,t){return 131071&e|t<<17}(e[m+1],r)}else e[r+1]=Zh(m,0),0!==m&&(e[m+1]=ig(e[m+1],r)),m=r;else e[r+1]=Zh(g,0),0===m?m=r:e[g+1]=ig(e[g+1],r),g=r;O&&(e[r+1]=ng(e[r+1])),ev(e,H,r,!0),ev(e,H,r,!1),function sD(e,t,n,r,s){const d=s?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Yo(d,t)>=0&&(n[r+1]=og(n[r+1]))}(t,H,e,r,d),f=Zh(m,g),d?t.classBindings=f:t.styleBindings=f}(s,d,t,n,f,r)}}function lg(e,t,n,r,s){let d=null;const f=n.directiveEnd;let m=n.directiveStylingLast;for(-1===m?m=n.directiveStart:m++;m<f&&(d=t[m],r=Ud(r,d.hostAttrs,s),d!==e);)m++;return null!==e&&(n.directiveStylingLast=m),r}function Ud(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let d=0;d<t.length;d++){const f=t[d];"number"==typeof f?s=f:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ji(e,f,!!n||t[++d]))}return void 0===e?null:e}function yD(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&ji(e,r,n)}function uv(e,t,n,r,s,d,f,m){if(!(3&t.type))return;const g=e.data,O=g[m+1],H=function oD(e){return 1==(1&e)}(O)?hv(g,t,n,s,Ha(O),f):void 0;qh(H)||(qh(d)||function nD(e){return 2==(2&e)}(O)&&(d=hv(g,null,n,s,m,f)),function lp(e,t,n,r,s){if(t)s?e.addClass(n,r):e.removeClass(n,r);else{let d=-1===r.indexOf("-")?void 0:Cd.DashCase;null==s?e.removeStyle(n,r,d):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),d|=Cd.Important),e.setStyle(n,r,s,d))}}(r,f,Mo(ri(),n),s,d))}function hv(e,t,n,r,s,d){const f=null===t;let m;for(;s>0;){const g=e[s],O=Array.isArray(g),H=O?g[1]:g,ie=null===H;let be=n[s+1];be===Jt&&(be=ie?rn:void 0);let xe=ie?fa(be,r):H===r?be:void 0;if(O&&!qh(xe)&&(xe=fa(g,r)),qh(xe)&&(m=xe,f))return m;const Ue=e[s+1];s=f?Bs(Ue):Ha(Ue)}if(null!==t){let g=d?t.residualClasses:t.residualStyles;null!=g&&(m=fa(g,r))}return m}function qh(e){return void 0!==e}function fv(e,t){return 0!=(e.flags&(t?8:16))}let vv=(e,t)=>null;function cl(e,t){return vv(e,t)}class eT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),s=Math.max(t,n),d=this.detach(s);if(s-r>1){const f=this.detach(r);this.attach(r,d),this.attach(s,f)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function pg(e,t,n,r,s){return e===n&&Object.is(t,r)?1:Object.is(s(e,t),s(n,r))?-1:0}function gg(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function yv(e,t,n,r,s){if(gg(e,t,r,n(r,s)))e.updateValue(r,s);else{const d=e.create(r,s);e.attach(r,d)}}function wv(e,t,n,r){const s=new Set;for(let d=t;d<=n;d++)s.add(r(d,e.at(d)));return s}class Cv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const s=this._vMap;for(;s.has(r);)r=s.get(r);s.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const s=this._vMap;for(;s.has(r);)r=s.get(r),t(r,n)}}}function Kd(e,t,n,r){const s=t.tView,m=jh(e,s,n,4096&e[It]?4096:16,null,t,null,null,null,r?.injector??null,r?.dehydratedView??null);m[rr]=e[t.index];const O=e[po];return null!==O&&(m[po]=O.createEmbeddedView(s)),Xp(s,m,n),m}function xv(e,t){const n=Nn+t;if(n<e.length)return e[n]}function ll(e,t){return!t||null===t.firstChild||yd(e)}function Zd(e,t,n,r=!0){const s=t[at];if(function _h(e,t,n,r){const s=Nn+r,d=n.length;r>0&&(n[s-1][N]=t),r<d-Nn?(t[N]=n[s],pm(n,Nn+r,t)):(n.push(t),t[N]=null),t[k]=n;const f=t[rr];null!==f&&n!==f&&function ft(e,t){const n=e[Rr];t[kn]!==t[k][k][kn]&&(e[It]|=ar.HasTransplantedViews),null===n?e[Rr]=[t]:n.push(t)}(f,t);const m=t[po];null!==m&&m.insertView(e),tc(t),t[It]|=128}(s,t,e,n),r){const f=Od(n,e),m=t[Bt],g=Bc(m,e[Vi]);null!==g&&function tp(e,t,n,r,s,d){r[En]=s,r[D]=t,Fa(e,r,n,1,s,d)}(s,e[D],m,t,g,f)}const d=t[ee];null!==d&&null!==d.firstChild&&(d.firstChild=null)}function _g(e,t){const n=Pa(e,t);return void 0!==n&&Nc(n[at],n),n}let tf=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=nT}return e})();function nT(){return Ev(Cn(),Ze())}const iT=tf,Dv=class extends iT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Zc(this._hostTNode,this._hostLView)}get injector(){return new Jn(this._hostTNode,this._hostLView)}get parentInjector(){const t=fc(this._hostTNode,this._hostLView);if(jl(t)){const n=uc(t,this._hostLView),r=Br(t);return new Jn(n[at].data[r+8],n)}return new Jn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Tv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Nn}createEmbeddedView(t,n,r){let s,d;"number"==typeof r?s=r:null!=r&&(s=r.index,d=r.injector);const f=cl(this._lContainer,t.ssrId),m=t.createEmbeddedViewImpl(n||{},d,f);return this.insertImpl(m,s,ll(this._hostTNode,f)),m}createComponent(t,n,r,s,d){const f=t&&!function pc(e){return"function"==typeof e}(t);let m;if(f)m=n;else{const Ue=n||{};m=Ue.index,r=Ue.injector,s=Ue.projectableNodes,d=Ue.environmentInjector||Ue.ngModuleRef}const g=f?t:new Hd(Yt(t)),O=r||this.parentInjector;if(!d&&null==g.ngModule){const nt=(f?O:this.parentInjector).get(gi,null);nt&&(d=nt)}const H=Yt(g.componentType??{}),ie=cl(this._lContainer,H?.id??null),xe=g.create(O,s,ie?.firstChild??null,d);return this.insertImpl(xe.hostView,m,ll(this._hostTNode,ie)),xe}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const s=t._lView;if(function Ml(e){return qn(e[k])}(s)){const m=this.indexOf(t);if(-1!==m)this.detach(m);else{const g=s[k],O=new Dv(g,g[D],g[k]);O.detach(O.indexOf(t))}}const d=this._adjustIndex(n),f=this._lContainer;return Zd(f,s,d,r),t.attachToViewContainerRef(),pm(bg(f),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Tv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Pa(this._lContainer,n);r&&(xs(bg(this._lContainer),n),Nc(r[at],r))}detach(t){const n=this._adjustIndex(t,-1),r=Pa(this._lContainer,n);return r&&null!=xs(bg(this._lContainer),n)?new $d(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Tv(e){return e[8]}function bg(e){return e[8]||(e[8]=[])}function Ev(e,t){let n;const r=t[e.index];return qn(r)?n=r:(n=wb(r,t,null,e),t[e.index]=n,Uh(t,n)),Mv(n,t,e,r),new Dv(n,e,t)}let Mv=function Av(e,t,n,r){if(e[Vi])return;let s;s=8&n.type?Mn(r):function oT(e,t){const n=e[Bt],r=n.createComment(""),s=xi(t,e);return ko(n,Bc(n,s),r,function sp(e,t){return e.nextSibling(t)}(n,s),!1),r}(t,n),e[Vi]=s},vg=(e,t,n)=>!1;function dl(e,t,n,r,s,d,f,m){const g=Ze(),O=ln(),H=e+Vt,ie=O.firstCreatePass?function cT(e,t,n,r,s,d,f,m,g){const O=t.consts,H=Jc(t,e,4,f||null,no(O,m));jp(t,n,H,no(O,g)),Io(t,H);const ie=H.tView=Hp(2,H,r,s,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,O,null);return null!==t.queries&&(t.queries.template(t,H),ie.queries=t.queries.embeddedTView(H)),H}(H,O,g,t,n,r,s,d,f):O.data[H];Wo(ie,!1);const be=Iv(O,g,ie,e);cc()&&Vc(O,g,be,ie),vi(be,g);const xe=wb(be,g,be,ie);return g[H]=xe,Uh(g,xe),function Sv(e,t,n){return vg(e,t,n)}(xe,ie,g),ea(ie)&&Vp(O,g,ie),null!=f&&$p(g,ie,m),dl}let Iv=function Ov(e,t,n,r){return ur(!0),t[Bt].createComment("")};function Pv(e,t,n){Ba("NgControlFlow");const r=Ze(),s=Hi(),d=yg(r,Vt+e);if(ai(r,s,t)){const m=C(null);try{if(_g(d,0),-1!==t){const g=wg(r[at],Vt+t),O=cl(d,g.tView.ssrId);Zd(d,Kd(r,g,n,{dehydratedView:O}),0,ll(g,O))}}finally{C(m)}}else{const m=xv(d,0);void 0!==m&&(m[ot]=n)}}class uT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Nn}}function kv(e,t){return t}class fT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function Rv(e,t,n,r,s,d,f,m,g,O,H){Ba("NgControlFlow");const ie=void 0!==g,be=Ze(),xe=m?f.bind(be[kn][ot]):f,Ue=new fT(ie,xe);be[Vt+e]=Ue,dl(e+1,t,n,r,s,d),ie&&dl(e+2,g,O,H)}class mT extends eT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Nn}at(t){return this.getLView(t)[ot].$implicit}attach(t,n){const r=n[ee];this.needsIndexUpdate||=t!==this.length,Zd(this.lContainer,n,t,ll(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function pT(e,t){return Pa(e,t)}(this.lContainer,t)}create(t,n){const r=cl(this.lContainer,this.templateTNode.tView.ssrId);return Kd(this.hostLView,this.templateTNode,new uT(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Nc(t[at],t)}updateValue(t,n){this.getLView(t)[ot].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ot].$index=t}getLView(t){return function gT(e,t){return xv(e,t)}(this.lContainer,t)}}function Fv(e){const t=C(null),n=ri();try{const r=Ze(),s=r[at],d=r[n];if(void 0===d.liveCollection){const m=n+1,g=yg(r,m),O=wg(s,m);d.liveCollection=new mT(g,r,O)}else d.liveCollection.reset();const f=d.liveCollection;if(function tT(e,t,n){let r,s,d=0,f=e.length-1;if(Array.isArray(t)){let m=t.length-1;for(;d<=f&&d<=m;){const g=e.at(d),O=t[d],H=pg(d,g,d,O,n);if(0!==H){H<0&&e.updateValue(d,O),d++;continue}const ie=e.at(f),be=t[m],xe=pg(f,ie,m,be,n);if(0!==xe){xe<0&&e.updateValue(f,be),f--,m--;continue}const Ue=n(d,g),nt=n(f,ie),ht=n(d,O);if(Object.is(ht,nt)){const Tt=n(m,be);Object.is(Tt,Ue)?(e.swap(d,f),e.updateValue(f,be),m--,f--):e.move(f,d),e.updateValue(d,O),d++}else if(r??=new Cv,s??=wv(e,d,f,n),gg(e,r,d,ht))e.updateValue(d,O),d++,f++;else if(s.has(ht))r.set(Ue,e.detach(d)),f--;else{const Tt=e.create(d,t[d]);e.attach(d,Tt),d++,f++}}for(;d<=m;)yv(e,r,n,d,t[d]),d++}else if(null!=t){const m=t[Symbol.iterator]();let g=m.next();for(;!g.done&&d<=f;){const O=e.at(d),H=g.value,ie=pg(d,O,d,H,n);if(0!==ie)ie<0&&e.updateValue(d,H),d++,g=m.next();else{r??=new Cv,s??=wv(e,d,f,n);const be=n(d,H);if(gg(e,r,d,be))e.updateValue(d,H),d++,f++,g=m.next();else if(s.has(be)){const xe=n(d,O);r.set(xe,e.detach(d)),f--}else e.attach(d,e.create(d,H)),d++,f++,g=m.next()}}for(;!g.done;)yv(e,r,n,e.length,g.value),g=m.next()}for(;d<=f;)e.destroy(e.detach(f--));r?.forEach(m=>{e.destroy(m)})}(f,e,d.trackByFn),f.updateIndexes(),d.hasEmptyBlock){const m=Hi(),g=0===f.length;if(ai(r,m,g)){const O=n+2,H=yg(r,O);if(g){const ie=wg(s,O),be=cl(H,ie.tView.ssrId);Zd(H,Kd(r,ie,void 0,{dehydratedView:be}),0,ll(ie,be))}else _g(H,0)}}}finally{C(t)}}function yg(e,t){return e[t]}function wg(e,t){return So(e,t)}function lf(e,t,n,r){const s=Ze(),d=ln(),f=Vt+e,m=s[Bt],g=d.firstCreatePass?function YT(e,t,n,r,s,d){const f=t.consts,g=Jc(t,e,2,r,no(f,s));return jp(t,n,g,no(f,d)),null!==g.attrs&&Wh(g,g.attrs,!1),null!==g.mergedAttrs&&Wh(g,g.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,g),g}(f,d,s,t,n,r):d.data[f],O=oy(d,s,g,m,t,e);s[f]=O;const H=ea(g);return Wo(g,!0),Sh(m,O,g),32!=(32&g.flags)&&cc()&&Vc(d,s,O,g),0===function Hf(){return Ut.lFrame.elementDepthCount}()&&vi(O,s),function oa(){Ut.lFrame.elementDepthCount++}(),H&&(Vp(d,s,g),Bp(d,g,s)),null!==r&&$p(s,g),lf}function df(){let e=Cn();ra()?Rl():(e=e.parent,Wo(e,!1));const t=e;(function Pl(e){return Ut.skipHydrationRootTNode===e})(t)&&function jf(){Ut.skipHydrationRootTNode=null}(),function ic(){Ut.lFrame.elementDepthCount--}();const n=ln();return n.firstCreatePass&&(Io(n,e),Xs(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function em(e){return 0!=(8&e.flags)}(t)&&sg(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function tm(e){return 0!=(16&e.flags)}(t)&&sg(n,t,Ze(),t.stylesWithoutHost,!1),df}function Ig(e,t,n,r){return lf(e,t,n,r),df(),Ig}let oy=(e,t,n,r,s,d)=>(ur(!0),Ia(r,s,function Jf(){return Ut.lFrame.currentNamespace}()));function uf(e,t,n){const r=Ze(),s=ln(),d=e+Vt,f=s.firstCreatePass?function qT(e,t,n,r,s){const d=t.consts,f=no(d,r),m=Jc(t,e,8,"ng-container",f);return null!==f&&Wh(m,f,!0),jp(t,n,m,no(d,s)),null!==t.queries&&t.queries.elementStart(t,m),m}(d,s,r,t,n):s.data[d];Wo(f,!0);const m=ry(s,r,f,e);return r[d]=m,cc()&&Vc(s,r,m,f),vi(m,r),ea(f)&&(Vp(s,r,f),Bp(s,f,r)),null!=n&&$p(r,f),uf}function hf(){let e=Cn();const t=ln();return ra()?Rl():(e=e.parent,Wo(e,!1)),t.firstCreatePass&&(Io(t,e),Xs(e)&&t.queries.elementEnd(e)),hf}function Og(e,t,n){return uf(e,t,n),hf(),Og}let ry=(e,t,n,r)=>(ur(!0),Rc(t[Bt],""));function sy(){return Ze()}function Pg(e,t,n){const r=Ze();return ai(r,Hi(),t)&&vo(ln(),xn(),r,e,t,r[Bt],n,!0),Pg}function kg(e,t,n){const r=Ze();if(ai(r,Hi(),t)){const d=ln(),f=xn();vo(d,f,r,e,t,Tb(Ll(d.data),f,r),n,!0)}return kg}const Ua=void 0;var eE=["en",[["a","p"],["AM","PM"],Ua],[["AM","PM"],Ua,Ua],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ua,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ua,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ua,"{1} 'at' {0}",Ua],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function XT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let _l={};function Rg(e){const t=function tE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=cy(t);if(n)return n;const r=t.split("-")[0];if(n=cy(r),n)return n;if("en"===r)return eE;throw new rt(701,!1)}function ay(e){return Rg(e)[bl.PluralCase]}function cy(e){return e in _l||(_l[e]=$t.ng&&$t.ng.common&&$t.ng.common.locales&&$t.ng.common.locales[e]),_l[e]}var bl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(bl||{});const vl="en-US";let ly=vl;function Lg(e){return!!e&&"function"==typeof e.then}function Ry(e){return!!e&&"function"==typeof e.subscribe}function Bg(e,t,n,r){const s=Ze(),d=ln(),f=Cn();return function Ny(e,t,n,r,s,d,f){const m=ea(r),O=e.firstCreatePass&&Db(e),H=t[ot],ie=xb(t);let be=!0;if(3&r.type||f){const nt=xi(r,t),ht=f?f(nt):nt,Tt=ie.length,et=f?an=>f(Mn(an[r.index])):r.index;let Kt=null;if(!f&&m&&(Kt=function ZE(e,t,n,r){const s=e.cleanup;if(null!=s)for(let d=0;d<s.length-1;d+=2){const f=s[d];if(f===n&&s[d+1]===r){const m=t[we],g=s[d+2];return m.length>g?m[g]:null}"string"==typeof f&&(d+=2)}return null}(e,t,s,r.index)),null!==Kt)(Kt.__ngLastListenerFn__||Kt).__ngNextListenerFn__=d,Kt.__ngLastListenerFn__=d,be=!1;else{d=By(r,t,H,d,!1);const an=n.listen(ht,s,d);ie.push(d,an),O&&O.push(s,et,Tt,Tt+1)}}else d=By(r,t,H,d,!1);const xe=r.outputs;let Ue;if(be&&null!==xe&&(Ue=xe[s])){const nt=Ue.length;if(nt)for(let ht=0;ht<nt;ht+=2){const mn=t[Ue[ht]][Ue[ht+1]].subscribe(d),ki=ie.length;ie.push(d,mn),O&&O.push(s,r.index,ki,-(ki+1))}}}(d,s,s[Bt],f,e,t,r),Bg}function Ly(e,t,n,r){try{return ii(6,t,n),!1!==n(r)}catch(s){return zh(e,s),!1}finally{ii(7,t,n)}}function By(e,t,n,r,s){return function d(f){if(f===Function)return r;Vd(e.componentOffset>-1?$i(e.index,t):t);let g=Ly(t,n,r,f),O=d.__ngNextListenerFn__;for(;O;)g=Ly(t,n,O,f)&&g,O=O.__ngNextListenerFn__;return s&&!1===g&&f.preventDefault(),g}}function Vy(e=1){return function x_(e){return(Ut.lFrame.contextLView=function Il(e,t){for(;e>0;)t=t[Ir],e--;return t}(e,Ut.lFrame.contextLView))[ot]}(e)}function qE(e,t){let n=null;const r=function Zs(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const d=t[s];if("*"!==d){if(null===r?or(e,d,!0):Ya(r,d))return s}else n=s}return n}function $y(e){const t=Ze()[kn][D];if(!t.projection){const r=t.projection=Ur(e?e.length:1,null),s=r.slice();let d=t.child;for(;null!==d;){const f=e?qE(d,e):0;null!==f&&(s[f]?s[f].projectionNext=d:r[f]=d,s[f]=d),d=d.next}}}function Hy(e,t=0,n){const r=Ze(),s=ln(),d=Jc(s,Vt+e,16,null,n||null);null===d.projection&&(d.projection=t),Rl(),(!r[ee]||lr())&&32!=(32&d.flags)&&function ap(e,t,n){Eh(t[Bt],0,t,n,Lc(e,n,t),yh(n.parent||t[D],n,t))}(s,r,d)}function Jy(e){return Go(function sc(){return Ut.lFrame.contextLView}(),Vt+e)}function c0(e,t=""){const n=Ze(),r=ln(),s=e+Vt,d=r.firstCreatePass?Jc(r,s,1,t,null):r.data[s],f=l0(r,n,d,t,e);n[s]=f,cc()&&Vc(r,n,f,d),Wo(d,!1)}let l0=(e,t,n,r,s)=>(ur(!0),function kc(e,t){return e.createText(t)}(t[Bt],r));function $g(e){return _f("",e,""),$g}function _f(e,t,n){const r=Ze(),s=function Xc(e,t,n,r){return ai(e,Hi(),n)?t+Et(n)+r:Jt}(r,e,t,n);return s!==Jt&&function qr(e,t,n){const r=Mo(t,e);!function gh(e,t,n){e.setValue(t,n)}(e[Bt],r,n)}(r,ri(),s),_f}function Hg(e,t,n,r,s){if(e=ut(e),Array.isArray(e))for(let d=0;d<e.length;d++)Hg(e[d],t,n,r,s);else{const d=ln(),f=Ze(),m=Cn();let g=mr(e)?e:ut(e.provide);const O=Gu(e),H=1048575&m.providerIndexes,ie=m.directiveStart,be=m.providerIndexes>>20;if(mr(e)||!e.multi){const xe=new ua(O,s,qc),Ue=Ug(g,t,s?H:H+be,ie);-1===Ue?(Wl(hc(m,f),d,g),jg(d,e,t.length),t.push(g),m.directiveStart++,m.directiveEnd++,s&&(m.providerIndexes+=1048576),n.push(xe),f.push(xe)):(n[Ue]=xe,f[Ue]=xe)}else{const xe=Ug(g,t,H+be,ie),Ue=Ug(g,t,H,H+be),ht=Ue>=0&&n[Ue];if(s&&!ht||!s&&!(xe>=0&&n[xe])){Wl(hc(m,f),d,g);const Tt=function hM(e,t,n,r,s){const d=new ua(e,n,qc);return d.multi=[],d.index=t,d.componentProviders=0,b0(d,s,r&&!n),d}(s?uM:dM,n.length,s,r,O);!s&&ht&&(n[Ue].providerFactory=Tt),jg(d,e,t.length,0),t.push(g),m.directiveStart++,m.directiveEnd++,s&&(m.providerIndexes+=1048576),n.push(Tt),f.push(Tt)}else jg(d,e,xe>-1?xe:Ue,b0(n[s?Ue:xe],O,!s&&r));!s&&r&&ht&&n[Ue].componentProviders++}}}function jg(e,t,n,r){const s=mr(t),d=function Cm(e){return!!e.useClass}(t);if(s||d){const g=(d?ut(t.useClass):t).prototype.ngOnDestroy;if(g){const O=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const H=O.indexOf(n);-1===H?O.push(n,[r,g]):O[H+1].push(r,g)}else O.push(n,g)}}}function b0(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ug(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function dM(e,t,n,r){return zg(this.multi,[])}function uM(e,t,n,r){const s=this.multi;let d;if(this.providerFactory){const f=this.providerFactory.componentProviders,m=Vr(n,n[at],this.providerFactory.index,r);d=m.slice(0,f),zg(s,d);for(let g=f;g<m.length;g++)d.push(m[g])}else d=[],zg(s,d);return d}function zg(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function v0(e,t=[]){return n=>{n.providersResolver=(r,s)=>function lM(e,t,n){const r=ln();if(r.firstCreatePass){const s=eo(e);Hg(n,r.data,r.blueprint,s,!0),Hg(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class za{}class fM{}function mM(e,t){return new Gg(e,t??null,[])}class Gg extends za{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Bb(this);const s=function jn(e,t){const n=e[Ri]||null;if(!n&&!0===t)throw new Error(`Type ${$e(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function _i(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=Ju(t,n,[{provide:za,useValue:this},{provide:Fd,useValue:this.componentFactoryResolver},...r],$e(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Wg extends fM{constructor(t){super(),this.moduleType=t}create(t){return new Gg(this.moduleType,t,[])}}class y0 extends za{constructor(t){super(),this.componentFactoryResolver=new Bb(this),this.instance=null;const n=new pr([...t.providers,{provide:za,useValue:this},{provide:Fd,useValue:this.componentFactoryResolver}],t.parent||xc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let _M=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Hu(0,n.type),s=r.length>0?function gM(e,t,n=null){return new y0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Qt({token:e,providedIn:"environment",factory:()=>new e(Vn(gi))})}return e})();function w0(e){Ba("NgStandalone"),e.getStandaloneInjector=t=>t.get(_M).getOrCreateStandaloneInjector(e)}function A0(e,t,n){const r=oi()+e,s=Ze();return s[r]===Jt?Cr(s,r,n?t.call(n):t()):jd(s,r)}function I0(e,t,n,r){return k0(Ze(),oi(),e,t,n,r)}function O0(e,t,n,r,s){return R0(Ze(),oi(),e,t,n,r,s)}function P0(e,t,n,r,s,d,f,m,g){const O=oi()+e,H=Ze(),ie=function Fo(e,t,n,r,s,d){const f=$a(e,t,n,r);return $a(e,t+2,s,d)||f}(H,O,n,r,s,d);return $a(H,O+4,f,m)||ie?Cr(H,O+6,g?t.call(g,n,r,s,d,f,m):t(n,r,s,d,f,m)):jd(H,O+6)}function ou(e,t){const n=e[t];return n===Jt?void 0:n}function k0(e,t,n,r,s,d){const f=t+n;return ai(e,f,s)?Cr(e,f+1,d?r.call(d,s):r(s)):ou(e,f+1)}function R0(e,t,n,r,s,d,f){const m=t+n;return $a(e,m,s,d)?Cr(e,m+2,f?r.call(f,s,d):r(s,d)):ou(e,m+2)}function B0(e,t){const n=ln();let r;const s=e+Vt;n.firstCreatePass?(r=function RM(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks??=[]).push(s,r.onDestroy)):r=n.data[s];const d=r.factory||(r.factory=hn(r.type)),m=st(qc);try{const g=zl(!1),O=d();return zl(g),function JE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ze(),s,O),O}finally{st(m)}}function V0(e,t,n){const r=e+Vt,s=Ze(),d=Go(s,r);return ru(s,r)?k0(s,oi(),t,d.transform,n,d):d.transform(n)}function $0(e,t,n,r){const s=e+Vt,d=Ze(),f=Go(d,s);return ru(d,s)?R0(d,oi(),t,f.transform,n,r,f):f.transform(n,r)}function ru(e,t){return e[at].data[t].pure}function BM(){return this._results[Symbol.iterator]()}class yf{static#e=Symbol.iterator;get changes(){return this._changes??=new wr}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=yf.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=BM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Di(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function mm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],d=t[r];if(n&&(s=n(s),d=n(d)),d!==s)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}let su=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HM}return e})();const VM=su,$M=class extends VM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const s=Kd(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new $d(s)}};function HM(){return wf(Cn(),Ze())}function wf(e,t){return 4&e.type?new $M(t,e,Zc(e,t)):null}class Kg{constructor(t){this.queryList=t,this.matches=null}clone(){return new Kg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let d=0;d<r;d++){const f=n.getByIndex(d);s.push(this.queries[f.indexInDeclarationView].clone())}return new Zg(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Z0(t,n).matches&&this.queries[n].setDirty()}}class H0{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class qg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const s=null!==n?n.length:0,d=this.getByIndex(r).embeddedTView(t,s);d&&(d.indexInDeclarationView=r,null!==n?n.push(d):n=[d])}return null!==n?new qg(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Jg{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Jg(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const d=r[s];this.matchTNodeWithReadOption(t,n,jM(n,d)),this.matchTNodeWithReadOption(t,n,mc(n,t,d,!1,!1))}else r===su?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,mc(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Nd||s===tf||s===su&&4&n.type)this.addMatch(n.index,-2);else{const d=mc(n,t,s,!1,!1);null!==d&&this.addMatch(n.index,d)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function jM(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function zM(e,t,n,r){return-1===n?function UM(e,t){return 11&e.type?Zc(e,t):4&e.type?wf(e,t):null}(t,e):-2===n?function GM(e,t,n){return n===Nd?Zc(t,e):n===su?wf(t,e):n===tf?Ev(t,e):void 0}(e,t,r):Vr(e,e[at],n,t)}function j0(e,t,n,r){const s=t[po].queries[r];if(null===s.matches){const d=e.data,f=n.matches,m=[];for(let g=0;g<f.length;g+=2){const O=f[g];m.push(O<0?null:zM(t,d[O],f[g+1],n.metadata.read))}s.matches=m}return s.matches}function Qg(e,t,n,r){const s=e.queries.getByIndex(n),d=s.matches;if(null!==d){const f=j0(e,t,s,n);for(let m=0;m<d.length;m+=2){const g=d[m];if(g>0)r.push(f[m/2]);else{const O=d[m+1],H=t[-g];for(let ie=Nn;ie<H.length;ie++){const be=H[ie];be[rr]===be[k]&&Qg(be[at],be,O,r)}if(null!==H[Rr]){const ie=H[Rr];for(let be=0;be<ie.length;be++){const xe=ie[be];Qg(xe[at],xe,O,r)}}}}}return r}function U0(e){const t=Ze(),n=ln(),r=mu();Bl(r+1);const s=Z0(n,r);if(e.dirty&&function $f(e){return 4==(4&e[It])}(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const d=s.crossesNgTemplate?Qg(n,t,r,[]):j0(n,t,s,r);e.reset(d,fC),e.notifyOnChanges()}return!0}return!1}function z0(e,t,n){const r=ln();r.firstCreatePass&&(K0(r,new H0(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Y0(r,Ze(),t)}function G0(e,t,n,r){const s=ln();if(s.firstCreatePass){const d=Cn();K0(s,new H0(t,n,r),d.index),function YM(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Y0(s,Ze(),n)}function W0(){return function WM(e,t){return e[po].queries[t].queryList}(Ze(),mu())}function Y0(e,t,n){const r=new yf(4==(4&n));(function UC(e,t,n,r){const s=xb(t);s.push(n),e.firstCreatePass&&Db(e).push(r,s.length-1)})(e,t,r,r.destroy),null===t[po]&&(t[po]=new Zg),t[po].queries.push(new Kg(r))}function K0(e,t,n){null===e.queries&&(e.queries=new qg),e.queries.track(new Jg(t,n))}function Z0(e,t){return e.queries.getByIndex(t)}function q0(e,t){return wf(e,t)}class hw{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let fw=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),i_=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ge.X(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const bw=new yt(""),vw=new yt("");let r_,$S=(()=>{class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,r_||(function HS(e){r_=e}(s),s.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{si.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(f=>f.timeoutId!==d),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:s})}whenStable(n,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Vn(si),Vn(yw),Vn(vw))};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac})}return e})(),yw=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return r_?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const jS=new yt("Application Initializer");let s_=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=tn(jS,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const s of this.appInits){const d=s();if(Lg(d))n.push(d);else if(Ry(d)){const f=new Promise((m,g)=>{d.subscribe({complete:m,error:g})});n.push(f)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ww=new yt("appBootstrapListener");function Dw(e,t){return Array.isArray(t)?t.reduce(Dw,e):{...e,...t}}let Cl=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=tn(ob),this.componentTypes=[],this.components=[],this.isStable=tn(i_).hasPendingTasks.pipe((0,ne.U)(n=>!n)),this._injector=tn(gi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const s=n instanceof W_;if(!this._injector.get(s_).done)throw!s&&function Bi(e){const t=Yt(e)||$n(e)||Hn(e);return null!==t&&t.standalone}(n),new rt(405,!1);let f;f=s?n:this._injector.get(Fd).resolveComponentFactory(n),this.componentTypes.push(f.componentType);const m=function zS(e){return e.isBoundToModule}(f)?void 0:this._injector.get(za),O=f.create(ro.NULL,[],r||f.selector,m),H=O.location.nativeElement,ie=O.injector.get(bw,null);return ie?.registerApplication(H),O.onDestroy(()=>{this.detachView(O.hostView),Df(this.components,O),ie?.unregisterApplication(H)}),this._loadComponent(O),O}tick(){if(this._runningTick)throw new rt(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Df(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(ww,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Df(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new rt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Df(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let WS=(()=>{class e{constructor(){this.zone=tn(si),this.applicationRef=tn(Cl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function YS(){const e=tn(si),t=tn(Ls);return n=>e.runOutsideAngular(()=>t.handleError(n))}let ZS=(()=>{class e{constructor(){this.subscription=new Ae.w0,this.initialized=!1,this.zone=tn(si),this.pendingTasks=tn(i_)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{si.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{si.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ef=new yt("LocaleId",{providedIn:"root",factory:()=>tn(Ef,Re.Optional|Re.SkipSelf)||function qS(){return typeof $localize<"u"&&$localize.locale||vl}()}),JS=new yt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),a_=new yt("PlatformDestroyListeners");let Sw=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const s=function Ox(e="zone.js",t){return"noop"===e?new Ax:"zone.js"===e?new si(t):e}(r?.ngZone,function Mw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{const d=function pM(e,t,n){return new Gg(e,t,n)}(n.moduleType,this.injector,function Ew(e){return[{provide:si,useFactory:e},{provide:ba,multi:!0,useFactory:()=>{const t=tn(WS,{optional:!0});return()=>t.initialize()}},{provide:ba,multi:!0,useFactory:()=>{const t=tn(ZS);return()=>{t.initialize()}}},{provide:ob,useFactory:YS}]}(()=>s)),f=d.injector.get(Ls,null);return s.runOutsideAngular(()=>{const m=s.onError.subscribe({next:g=>{f.handleError(g)}});d.onDestroy(()=>{Df(this._modules,d),m.unsubscribe()})}),function xw(e,t,n){try{const r=n();return Lg(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(f,s,()=>{const m=d.injector.get(s_);return m.runInitializers(),m.donePromise.then(()=>(function dy(e){qt(e,"Expected localeId to be defined"),"string"==typeof e&&(ly=e.toLowerCase().replace(/_/g,"-"))}(d.injector.get(Ef,vl)||vl),this._moduleDoBootstrap(d),d))})})}bootstrapModule(n,r=[]){const s=Dw({},r);return function US(e,t,n){const r=new Wg(n);return Promise.resolve(r)}(0,0,n).then(d=>this.bootstrapModuleFactory(d,s))}_moduleDoBootstrap(n){const r=n.injector.get(Cl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new rt(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new rt(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(a_,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(Vn(ro))};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),$s=null;const Aw=new yt("AllowMultipleToken");function Iw(e,t,n=[]){const r=`Platform: ${t}`,s=new yt(r);return(d=[])=>{let f=c_();if(!f||f.injector.get(Aw,!1)){const m=[...n,...d,{provide:s,useValue:!0}];e?e(m):function XS(e){if($s&&!$s.get(Aw,!1))throw new rt(400,!1);(function Cw(){!function ae(e){Gt=e}(()=>{throw new rt(600,!1)})})(),$s=e;const t=e.get(Sw);(function Pw(e){e.get(cd,null)?.forEach(n=>n())})(e)}(function Ow(e=[],t){return ro.create({name:t,providers:[{provide:id,useValue:"platform"},{provide:a_,useValue:new Set([()=>$s=null])},...e]})}(m,r))}return function eA(e){const t=c_();if(!t)throw new rt(401,!1);return t}()}}function c_(){return $s?.get(Sw)??null}function nA(){}const aA=Iw(null,"core",[]);let cA=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(Vn(Cl))};static#t=this.\u0275mod=mo({type:e});static#n=this.\u0275inj=lo({})}return e})();function kA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RA(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}},8832:(Ee,y,b)=>{"use strict";b.d(y,{Cf:()=>Q,F:()=>$t,Fj:()=>U,JJ:()=>Te,JL:()=>$e,JU:()=>A,NI:()=>yt,On:()=>Fi,UX:()=>It,_Y:()=>Kn,a5:()=>Ae,kI:()=>ze,oH:()=>tn,sg:()=>Ni,u5:()=>at});var a=b(1322),i=b(9462),te=b(107),q=b(6312),v=b(8412);let C=(()=>{class k{constructor(D,ee){this._renderer=D,this._elementRef=ee,this.onChange=we=>{},this.onTouched=()=>{}}setProperty(D,ee){this._renderer.setProperty(this._elementRef.nativeElement,D,ee)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(a.Qsj),a.Y36(a.SBq))};static#t=this.\u0275dir=a.lG2({type:k})}return k})(),E=(()=>{class k extends C{static#e=this.\u0275fac=(()=>{let D;return function(we){return(D||(D=a.n5z(k)))(we||k)}})();static#t=this.\u0275dir=a.lG2({type:k,features:[a.qOj]})}return k})();const A=new a.OlP("NgValueAccessor"),P={provide:A,useExisting:(0,a.Gpc)(()=>U),multi:!0},w=new a.OlP("CompositionEventMode");let U=(()=>{class k extends C{constructor(D,ee,we){super(D,ee),this._compositionMode=we,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function x(){const k=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(D){this.setProperty("value",D??"")}_handleInput(D){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(D)}_compositionStart(){this._composing=!0}_compositionEnd(D){this._composing=!1,this._compositionMode&&this.onChange(D)}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(w,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ee,we){1&ee&&a.NdJ("input",function(Rt){return we._handleInput(Rt.target.value)})("blur",function(){return we.onTouched()})("compositionstart",function(){return we._compositionStart()})("compositionend",function(Rt){return we._compositionEnd(Rt.target.value)})},features:[a._Bn([P]),a.qOj]})}return k})();function X(k){return null==k||("string"==typeof k||Array.isArray(k))&&0===k.length}function le(k){return null!=k&&"number"==typeof k.length}const Q=new a.OlP("NgValidators"),ce=new a.OlP("NgAsyncValidators"),Be=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ze{static min(N){return function Ve(k){return N=>{if(X(N.value)||X(k))return null;const D=parseFloat(N.value);return!isNaN(D)&&D<k?{min:{min:k,actual:N.value}}:null}}(N)}static max(N){return function Se(k){return N=>{if(X(N.value)||X(k))return null;const D=parseFloat(N.value);return!isNaN(D)&&D>k?{max:{max:k,actual:N.value}}:null}}(N)}static required(N){return function Oe(k){return X(k.value)?{required:!0}:null}(N)}static requiredTrue(N){return function Me(k){return!0===k.value?null:{required:!0}}(N)}static email(N){return function ke(k){return X(k.value)||Be.test(k.value)?null:{email:!0}}(N)}static minLength(N){return function Ce(k){return N=>X(N.value)||!le(N.value)?null:N.value.length<k?{minlength:{requiredLength:k,actualLength:N.value.length}}:null}(N)}static maxLength(N){return function De(k){return N=>le(N.value)&&N.value.length>k?{maxlength:{requiredLength:k,actualLength:N.value.length}}:null}(N)}static pattern(N){return function He(k){if(!k)return dt;let N,D;return"string"==typeof k?(D="","^"!==k.charAt(0)&&(D+="^"),D+=k,"$"!==k.charAt(k.length-1)&&(D+="$"),N=new RegExp(D)):(D=k.toString(),N=k),ee=>{if(X(ee.value))return null;const we=ee.value;return N.test(we)?null:{pattern:{requiredPattern:D,actualValue:we}}}}(N)}static nullValidator(N){return null}static compose(N){return G(N)}static composeAsync(N){return F(N)}}function dt(k){return null}function xt(k){return null!=k}function zt(k){return(0,a.QGY)(k)?(0,te.D)(k):k}function Gt(k){let N={};return k.forEach(D=>{N=null!=D?{...N,...D}:N}),0===Object.keys(N).length?null:N}function Je(k,N){return N.map(D=>D(k))}function oe(k){return k.map(N=>function ae(k){return!k.validate}(N)?N:D=>N.validate(D))}function G(k){if(!k)return null;const N=k.filter(xt);return 0==N.length?null:function(D){return Gt(Je(D,N))}}function V(k){return null!=k?G(oe(k)):null}function F(k){if(!k)return null;const N=k.filter(xt);return 0==N.length?null:function(D){const ee=Je(D,N).map(zt);return(0,q.D)(ee).pipe((0,v.U)(Gt))}}function j(k){return null!=k?F(oe(k)):null}function $(k,N){return null===k?[N]:Array.isArray(k)?[...k,N]:[k,N]}function K(k){return k._rawValidators}function de(k){return k._rawAsyncValidators}function ge(k){return k?Array.isArray(k)?k:[k]:[]}function Fe(k,N){return Array.isArray(k)?k.includes(N):k===N}function Le(k,N){const D=ge(N);return ge(k).forEach(we=>{Fe(D,we)||D.push(we)}),D}function Xe(k,N){return ge(N).filter(D=>!Fe(k,D))}class Ke{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(N){this._rawValidators=N||[],this._composedValidatorFn=V(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=j(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N=void 0){this.control&&this.control.reset(N)}hasError(N,D){return!!this.control&&this.control.hasError(N,D)}getError(N,D){return this.control?this.control.getError(N,D):null}}class mt extends Ke{get formDirective(){return null}get path(){return null}}class Ae extends Ke{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ge{constructor(N){this._cd=N}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Te=(()=>{class k extends Ge{constructor(D){super(D)}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(Ae,2))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ee,we){2&ee&&a.ekj("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)},features:[a.qOj]})}return k})(),$e=(()=>{class k extends Ge{constructor(D){super(D)}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(mt,10))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ee,we){2&ee&&a.ekj("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)("ng-submitted",we.isSubmitted)},features:[a.qOj]})}return k})();const wn="VALID",Et="INVALID",Ot="PENDING",On="DISABLED";function Ln(k){return(z(k)?k.validators:k)||null}function We(k,N){return(z(N)?N.asyncValidators:k)||null}function z(k){return null!=k&&!Array.isArray(k)&&"object"==typeof k}class J{constructor(N,D){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(N),this._assignAsyncValidators(D)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===wn}get invalid(){return this.status===Et}get pending(){return this.status==Ot}get disabled(){return this.status===On}get enabled(){return this.status!==On}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._assignValidators(N)}setAsyncValidators(N){this._assignAsyncValidators(N)}addValidators(N){this.setValidators(Le(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(Le(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(Xe(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(Xe(N,this._rawAsyncValidators))}hasValidator(N){return Fe(this._rawValidators,N)}hasAsyncValidator(N){return Fe(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(D=>{D.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(D=>{D.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=Ot,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const D=this._parentMarkedDirty(N.onlySelf);this.status=On,this.errors=null,this._forEachChild(ee=>{ee.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:D}),this._onDisabledChange.forEach(ee=>ee(!0))}enable(N={}){const D=this._parentMarkedDirty(N.onlySelf);this.status=wn,this._forEachChild(ee=>{ee.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:D}),this._onDisabledChange.forEach(ee=>ee(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wn||this.status===Ot)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(D=>D._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?On:wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=Ot,this._hasOwnPendingAsyncValidator=!0;const D=zt(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(ee=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ee,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,D={}){this.errors=N,this._updateControlsErrors(!1!==D.emitEvent)}get(N){let D=N;return null==D||(Array.isArray(D)||(D=D.split(".")),0===D.length)?null:D.reduce((ee,we)=>ee&&ee._find(we),this)}getError(N,D){const ee=D?this.get(D):this;return ee&&ee.errors?ee.errors[N]:null}hasError(N,D){return!!this.getError(N,D)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?On:this.errors?Et:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ot)?Ot:this._anyControlsHaveStatus(Et)?Et:wn}_anyControlsHaveStatus(N){return this._anyControls(D=>D.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){z(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}_assignValidators(N){this._rawValidators=Array.isArray(N)?N.slice():N,this._composedValidatorFn=function Bn(k){return Array.isArray(k)?V(k):k||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function me(k){return Array.isArray(k)?j(k):k||null}(this._rawAsyncValidators)}}class he extends J{constructor(N,D,ee){super(Ln(D),We(ee,D)),this.controls=N,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(N,D){return this.controls[N]?this.controls[N]:(this.controls[N]=D,D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange),D)}addControl(N,D,ee={}){this.registerControl(N,D),this.updateValueAndValidity({emitEvent:ee.emitEvent}),this._onCollectionChange()}removeControl(N,D={}){this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),delete this.controls[N],this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}setControl(N,D,ee={}){this.controls[N]&&this.controls[N]._registerOnCollectionChange(()=>{}),delete this.controls[N],D&&this.registerControl(N,D),this.updateValueAndValidity({emitEvent:ee.emitEvent}),this._onCollectionChange()}contains(N){return this.controls.hasOwnProperty(N)&&this.controls[N].enabled}setValue(N,D={}){(function se(k,N,D){k._forEachChild((ee,we)=>{if(void 0===D[we])throw new a.vHH(1002,"")})})(this,0,N),Object.keys(N).forEach(ee=>{(function L(k,N,D){const ee=k.controls;if(!(N?Object.keys(ee):ee).length)throw new a.vHH(1e3,"");if(!ee[D])throw new a.vHH(1001,"")})(this,!0,ee),this.controls[ee].setValue(N[ee],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(N,D={}){null!=N&&(Object.keys(N).forEach(ee=>{const we=this.controls[ee];we&&we.patchValue(N[ee],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(N={},D={}){this._forEachChild((ee,we)=>{ee.reset(N?N[we]:null,{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this._reduceChildren({},(N,D,ee)=>(N[ee]=D.getRawValue(),N))}_syncPendingControls(){let N=this._reduceChildren(!1,(D,ee)=>!!ee._syncPendingControls()||D);return N&&this.updateValueAndValidity({onlySelf:!0}),N}_forEachChild(N){Object.keys(this.controls).forEach(D=>{const ee=this.controls[D];ee&&N(ee,D)})}_setUpControls(){this._forEachChild(N=>{N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(N){for(const[D,ee]of Object.entries(this.controls))if(this.contains(D)&&N(ee))return!0;return!1}_reduceValue(){return this._reduceChildren({},(D,ee,we)=>((ee.enabled||this.disabled)&&(D[we]=ee.value),D))}_reduceChildren(N,D){let ee=N;return this._forEachChild((we,ot)=>{ee=D(ee,we,ot)}),ee}_allControlsDisabled(){for(const N of Object.keys(this.controls))if(this.controls[N].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(N){return this.controls.hasOwnProperty(N)?this.controls[N]:null}}const St=new a.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>kt}),kt="always";function gn(k,N,D=kt){mi(k,N),N.valueAccessor.writeValue(k.value),(k.disabled||"always"===D)&&N.valueAccessor.setDisabledState?.(k.disabled),function tr(k,N){N.valueAccessor.registerOnChange(D=>{k._pendingValue=D,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&co(k,N)})}(k,N),function lo(k,N){const D=(ee,we)=>{N.valueAccessor.writeValue(ee),we&&N.viewToModelUpdate(ee)};k.registerOnChange(D),N._registerOnDestroy(()=>{k._unregisterOnChange(D)})}(k,N),function Qt(k,N){N.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&co(k,N),"submit"!==k.updateOn&&k.markAsTouched()})}(k,N),function Ci(k,N){if(N.valueAccessor.setDisabledState){const D=ee=>{N.valueAccessor.setDisabledState(ee)};k.registerOnDisabledChange(D),N._registerOnDestroy(()=>{k._unregisterOnDisabledChange(D)})}}(k,N)}function qt(k,N,D=!0){const ee=()=>{};N.valueAccessor&&(N.valueAccessor.registerOnChange(ee),N.valueAccessor.registerOnTouched(ee)),ao(k,N),k&&(N._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function Dt(k,N){k.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(N)})}function mi(k,N){const D=K(k);null!==N.validator?k.setValidators($(D,N.validator)):"function"==typeof D&&k.setValidators([D]);const ee=de(k);null!==N.asyncValidator?k.setAsyncValidators($(ee,N.asyncValidator)):"function"==typeof ee&&k.setAsyncValidators([ee]);const we=()=>k.updateValueAndValidity();Dt(N._rawValidators,we),Dt(N._rawAsyncValidators,we)}function ao(k,N){let D=!1;if(null!==k){if(null!==N.validator){const we=K(k);if(Array.isArray(we)&&we.length>0){const ot=we.filter(Rt=>Rt!==N.validator);ot.length!==we.length&&(D=!0,k.setValidators(ot))}}if(null!==N.asyncValidator){const we=de(k);if(Array.isArray(we)&&we.length>0){const ot=we.filter(Rt=>Rt!==N.asyncValidator);ot.length!==we.length&&(D=!0,k.setAsyncValidators(ot))}}}const ee=()=>{};return Dt(N._rawValidators,ee),Dt(N._rawAsyncValidators,ee),D}function co(k,N){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function Zi(k,N){mi(k,N)}function _e(k,N){if(!k.hasOwnProperty("model"))return!1;const D=k.model;return!!D.isFirstChange()||!Object.is(N,D.currentValue)}function Re(k,N){k._syncPendingControls(),N.forEach(D=>{const ee=D.control;"submit"===ee.updateOn&&ee._pendingChange&&(D.viewToModelUpdate(ee._pendingValue),ee._pendingChange=!1)})}function qe(k,N){if(!N)return null;let D,ee,we;return Array.isArray(N),N.forEach(ot=>{ot.constructor===U?D=ot:function ve(k){return Object.getPrototypeOf(k.constructor)===E}(ot)?ee=ot:we=ot}),we||ee||D||null}const Ht={provide:mt,useExisting:(0,a.Gpc)(()=>$t)},At=(()=>Promise.resolve())();let $t=(()=>{class k extends mt{constructor(D,ee,we){super(),this.callSetDisabledState=we,this.submitted=!1,this._directives=new Set,this.ngSubmit=new a.vpe,this.form=new he({},V(D),j(ee))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){At.then(()=>{const ee=this._findContainer(D.path);D.control=ee.registerControl(D.name,D.control),gn(D.control,D,this.callSetDisabledState),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){At.then(()=>{const ee=this._findContainer(D.path);ee&&ee.removeControl(D.name),this._directives.delete(D)})}addFormGroup(D){At.then(()=>{const ee=this._findContainer(D.path),we=new he({});Zi(we,D),ee.registerControl(D.name,we),we.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){At.then(()=>{const ee=this._findContainer(D.path);ee&&ee.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,ee){At.then(()=>{this.form.get(D.path).setValue(ee)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,Re(this.form,this._directives),this.ngSubmit.emit(D),"dialog"===D?.target?.method}onReset(){this.resetForm()}resetForm(D=void 0){this.form.reset(D),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(D){return D.pop(),D.length?this.form.get(D):this.form}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(Q,10),a.Y36(ce,10),a.Y36(St,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ee,we){1&ee&&a.NdJ("submit",function(Rt){return we.onSubmit(Rt)})("reset",function(){return we.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([Ht]),a.qOj]})}return k})();function _n(k,N){const D=k.indexOf(N);D>-1&&k.splice(D,1)}function vn(k){return"object"==typeof k&&null!==k&&2===Object.keys(k).length&&"value"in k&&"disabled"in k}const yt=class extends J{constructor(N=null,D,ee){super(Ln(D),We(ee,D)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),z(D)&&(D.nonNullable||D.initialValueIsDefault)&&(this.defaultValue=vn(N)?N.value:N)}setValue(N,D={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(ee=>ee(this.value,!1!==D.emitViewToModelChange)),this.updateValueAndValidity(D)}patchValue(N,D={}){this.setValue(N,D)}reset(N=this.defaultValue,D={}){this._applyFormState(N),this.markAsPristine(D),this.markAsUntouched(D),this.setValue(this.value,D),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){_n(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){_n(this._onDisabledChange,N)}_forEachChild(N){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(N){vn(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}},qi={provide:Ae,useExisting:(0,a.Gpc)(()=>Fi)},Vo=(()=>Promise.resolve())();let Fi=(()=>{class k extends Ae{constructor(D,ee,we,ot,Rt,Sn){super(),this._changeDetectorRef=Rt,this.callSetDisabledState=Sn,this.control=new yt,this._registered=!1,this.name="",this.update=new a.vpe,this._parent=D,this._setValidators(ee),this._setAsyncValidators(we),this.valueAccessor=qe(0,ot)}ngOnChanges(D){if(this._checkForErrors(),!this._registered||"name"in D){if(this._registered&&(this._checkName(),this.formDirective)){const ee=D.name.previousValue;this.formDirective.removeControl({name:ee,path:this._getPath(ee)})}this._setUpControl()}"isDisabled"in D&&this._updateDisabled(D),_e(D,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){gn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(D){Vo.then(()=>{this.control.setValue(D,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(D){const ee=D.isDisabled.currentValue,we=0!==ee&&(0,a.VuI)(ee);Vo.then(()=>{we&&!this.control.disabled?this.control.disable():!we&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(D){return this._parent?function cn(k,N){return[...N.path,k]}(D,this._parent):[D]}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(mt,9),a.Y36(Q,10),a.Y36(ce,10),a.Y36(A,10),a.Y36(a.sBO,8),a.Y36(St,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([qi]),a.qOj,a.TTD]})}return k})(),Kn=(()=>{class k{static#e=this.\u0275fac=function(ee){return new(ee||k)};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return k})(),xo=(()=>{class k{static#e=this.\u0275fac=function(ee){return new(ee||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({})}return k})();const Vn=new a.OlP("NgModelWithFormControlWarning"),Er={provide:Ae,useExisting:(0,a.Gpc)(()=>tn)};let tn=(()=>{class k extends Ae{set isDisabled(D){}static#e=this._ngModelWarningSentOnce=!1;constructor(D,ee,we,ot,Rt){super(),this._ngModelWarningConfig=ot,this.callSetDisabledState=Rt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(ee),this.valueAccessor=qe(0,we)}ngOnChanges(D){if(this._isControlChanged(D)){const ee=D.form.previousValue;ee&&qt(ee,this,!1),gn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}_e(D,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_isControlChanged(D){return D.hasOwnProperty("form")}static#t=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(Q,10),a.Y36(ce,10),a.Y36(A,10),a.Y36(Vn,8),a.Y36(St,8))};static#n=this.\u0275dir=a.lG2({type:k,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([Er]),a.qOj,a.TTD]})}return k})();const nr={provide:mt,useExisting:(0,a.Gpc)(()=>Ni)};let Ni=(()=>{class k extends mt{constructor(D,ee,we){super(),this.callSetDisabledState=we,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(D),this._setAsyncValidators(ee)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ao(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(D){const ee=this.form.get(D.path);return gn(ee,D,this.callSetDisabledState),ee.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),ee}getControl(D){return this.form.get(D.path)}removeControl(D){qt(D.control||null,D,!1),function ct(k,N){const D=k.indexOf(N);D>-1&&k.splice(D,1)}(this.directives,D)}addFormGroup(D){this._setUpFormContainer(D)}removeFormGroup(D){this._cleanUpFormContainer(D)}getFormGroup(D){return this.form.get(D.path)}addFormArray(D){this._setUpFormContainer(D)}removeFormArray(D){this._cleanUpFormContainer(D)}getFormArray(D){return this.form.get(D.path)}updateModel(D,ee){this.form.get(D.path).setValue(ee)}onSubmit(D){return this.submitted=!0,Re(this.form,this.directives),this.ngSubmit.emit(D),"dialog"===D?.target?.method}onReset(){this.resetForm()}resetForm(D=void 0){this.form.reset(D),this.submitted=!1}_updateDomValue(){this.directives.forEach(D=>{const ee=D.control,we=this.form.get(D.path);ee!==we&&(qt(ee||null,D),(k=>k instanceof yt)(we)&&(gn(we,D,this.callSetDisabledState),D.control=we))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const ee=this.form.get(D.path);Zi(ee,D),ee.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const ee=this.form.get(D.path);ee&&function Lo(k,N){return ao(k,N)}(ee,D)&&ee.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){mi(this.form,this),this._oldForm&&ao(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ee){return new(ee||k)(a.Y36(Q,10),a.Y36(ce,10),a.Y36(St,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","formGroup",""]],hostBindings:function(ee,we){1&ee&&a.NdJ("submit",function(Rt){return we.onSubmit(Rt)})("reset",function(){return we.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([nr]),a.qOj,a.TTD]})}return k})(),Hn=(()=>{class k{static#e=this.\u0275fac=function(ee){return new(ee||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({imports:[xo]})}return k})(),at=(()=>{class k{static withConfig(D){return{ngModule:k,providers:[{provide:St,useValue:D.callSetDisabledState??kt}]}}static#e=this.\u0275fac=function(ee){return new(ee||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({imports:[Hn]})}return k})(),It=(()=>{class k{static withConfig(D){return{ngModule:k,providers:[{provide:Vn,useValue:D.warnOnNgModelWithFormControl??"always"},{provide:St,useValue:D.callSetDisabledState??kt}]}}static#e=this.\u0275fac=function(ee){return new(ee||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({imports:[Hn]})}return k})()},7950:(Ee,y,b)=>{"use strict";b.d(y,{RK:()=>xt,cs:()=>Ce,lW:()=>Ve,ot:()=>Gt,zs:()=>Se});var a=b(3844),i=b(1322),te=b(8654),q=b(9021);const v=["mat-button",""],C=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],E=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],R=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",S=["mat-fab",""],w=["mat-icon-button",""],U=["*"],Q=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let ce=(()=>{class Je{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(oe){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,oe)}get disableRipple(){return this._disableRipple}set disableRipple(oe){this._disableRipple=oe,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(oe){this._disabled=oe,this._updateRippleDisabled()}constructor(oe,G,V,F){this._elementRef=oe,this._platform=G,this._ngZone=V,this._animationMode=F,this._focusMonitor=(0,i.f3M)(te.tE),this._rippleLoader=(0,i.f3M)(q.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const j=this._elementRef.nativeElement,$=j.classList;for(const{attribute:K,mdcClasses:de}of Q)j.hasAttribute(K)&&$.add(...de)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(oe="program",G){oe?this._focusMonitor.focusVia(this._elementRef.nativeElement,oe,G):this._elementRef.nativeElement.focus(G)}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(G){i.$Z()};static#t=this.\u0275dir=i.lG2({type:Je,inputs:{color:"color",disableRipple:["disableRipple","disableRipple",i.VuI],disabled:["disabled","disabled",i.VuI]},features:[i.Xq5]})}return Je})(),ze=(()=>{class Je extends ce{constructor(oe,G,V,F){super(oe,G,V,F),this._haltDisabledEvents=j=>{this.disabled&&(j.preventDefault(),j.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(G){i.$Z()};static#t=this.\u0275dir=i.lG2({type:Je,inputs:{tabIndex:["tabIndex","tabIndex",oe=>null==oe?void 0:(0,i.Cb_)(oe)]},features:[i.Xq5,i.qOj]})}return Je})(),Ve=(()=>{class Je extends ce{constructor(oe,G,V,F){super(oe,G,V,F)}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:9,hostBindings:function(G,V){2&G&&(i.uIk("disabled",V.disabled||null),i.Tol(V.color?"mat-"+V.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-unthemed",!V.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.qOj],attrs:v,ngContentSelectors:E,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,V){1&G&&(i.F$t(C),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&G&&i.ekj("mdc-button__ripple",!V._isFab)("mdc-fab__ripple",V._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Je})(),Se=(()=>{class Je extends ze{constructor(oe,G,V,F){super(oe,G,V,F)}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:11,hostBindings:function(G,V){2&G&&(i.uIk("disabled",V.disabled||null)("tabindex",V.disabled?-1:V.tabIndex)("aria-disabled",V.disabled.toString()),i.Tol(V.color?"mat-"+V.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-unthemed",!V.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.qOj],attrs:v,ngContentSelectors:E,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,V){1&G&&(i.F$t(C),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&G&&i.ekj("mdc-button__ripple",!V._isFab)("mdc-fab__ripple",V._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',R],encapsulation:2,changeDetection:0})}return Je})();const Oe=new i.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:Me});function Me(){return{color:"accent"}}const ke=Me();let Ce=(()=>{class Je extends ce{constructor(oe,G,V,F,j){super(oe,G,V,F),this._options=j,this._isFab=!0,this._options=this._options||ke,this.color=this._options.color||ke.color}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8),i.Y36(Oe,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-fab",""]],hostVars:13,hostBindings:function(G,V){2&G&&(i.uIk("disabled",V.disabled||null),i.Tol(V.color?"mat-"+V.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-unthemed",!V.color)("mat-mdc-button-base",!0)("mdc-fab--extended",V.extended)("mat-mdc-extended-fab",V.extended))},inputs:{extended:["extended","extended",i.VuI]},exportAs:["matButton"],features:[i.Xq5,i.qOj],attrs:S,ngContentSelectors:E,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,V){1&G&&(i.F$t(C),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&G&&i.ekj("mdc-button__ripple",!V._isFab)("mdc-fab__ripple",V._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);flex-shrink:0;color:var(--mat-fab-foreground-color, inherit)}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return Je})(),xt=(()=>{class Je extends ce{constructor(oe,G,V,F){super(oe,G,V,F),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-icon-button",""]],hostVars:9,hostBindings:function(G,V){2&G&&(i.uIk("disabled",V.disabled||null),i.Tol(V.color?"mat-"+V.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-unthemed",!V.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.qOj],attrs:w,ngContentSelectors:U,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,V){1&G&&(i.F$t(),i._UZ(0,"span",0),i.Hsn(1),i._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',R],encapsulation:2,changeDetection:0})}return Je})(),Gt=(()=>{class Je{static#e=this.\u0275fac=function(G){return new(G||Je)};static#t=this.\u0275mod=i.oAB({type:Je});static#n=this.\u0275inj=i.cJS({imports:[q.BQ,q.si,q.BQ]})}return Je})()},9021:(Ee,y,b)=>{"use strict";b.d(y,{rD:()=>de,Y2:()=>gt,BQ:()=>Ve,wG:()=>Lt,Fq:()=>We,si:()=>ut,pj:()=>Ce,Kr:()=>De,Id:()=>ke,FD:()=>dt,sb:()=>He});var a=b(1322),i=b(8654),te=b(4877),v=b(9462),C=b(3844),E=b(5988);const ze=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function Be(){return!0}});let Ve=(()=>{class me{constructor(L,se,J){this._sanityChecks=se,this._document=J,this._hasDoneGlobalChecks=!1,L._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(L){return!(0,C.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[L])}static#e=this.\u0275fac=function(se){return new(se||me)(a.LFG(i.qm),a.LFG(ze,8),a.LFG(v.K0))};static#t=this.\u0275mod=a.oAB({type:me});static#n=this.\u0275inj=a.cJS({imports:[te.vT,te.vT]})}return me})();function ke(me){return class extends me{get disabled(){return this._disabled}set disabled(z){this._disabled=(0,E.Ig)(z)}constructor(...z){super(...z),this._disabled=!1}}}function Ce(me,z){return class extends me{get color(){return this._color}set color(L){const se=L||this.defaultColor;se!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),se&&this._elementRef.nativeElement.classList.add(`mat-${se}`),this._color=se)}constructor(...L){super(...L),this.defaultColor=z,this.color=z}}}function De(me){return class extends me{get disableRipple(){return this._disableRipple}set disableRipple(z){this._disableRipple=(0,E.Ig)(z)}constructor(...z){super(...z),this._disableRipple=!1}}}function He(me,z=0){return class extends me{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(L){this._tabIndex=null!=L?(0,E.su)(L):this.defaultTabIndex}constructor(...L){super(...L),this._tabIndex=z,this.defaultTabIndex=z}}}function dt(me){return class extends me{updateErrorState(){const z=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==z&&(this.errorState=he,this.stateChanges.next())}constructor(...z){super(...z),this.errorState=!1}}}let de=(()=>{class me{isErrorState(L,se){return!!(L&&L.invalid&&(L.touched||se&&se.submitted))}static#e=this.\u0275fac=function(se){return new(se||me)};static#t=this.\u0275prov=a.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})();class Ke{constructor(z,L,se,J=!1){this._renderer=z,this.element=L,this.config=se,this._animationForciblyDisabledThroughCss=J,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const mt=(0,C.i$)({passive:!0,capture:!0});class Ae{constructor(){this._events=new Map,this._delegateEventHandler=z=>{const L=(0,C.sA)(z);L&&this._events.get(z.type)?.forEach((se,J)=>{(J===L||J.contains(L))&&se.forEach(he=>he.handleEvent(z))})}}addHandler(z,L,se,J){const he=this._events.get(L);if(he){const I=he.get(se);I?I.add(J):he.set(se,new Set([J]))}else this._events.set(L,new Map([[se,new Set([J])]])),z.runOutsideAngular(()=>{document.addEventListener(L,this._delegateEventHandler,mt)})}removeHandler(z,L,se){const J=this._events.get(z);if(!J)return;const he=J.get(L);he&&(he.delete(se),0===he.size&&J.delete(L),0===J.size&&(this._events.delete(z),document.removeEventListener(z,this._delegateEventHandler,mt)))}}const Ge={enterDuration:225,exitDuration:150},re=(0,C.i$)({passive:!0,capture:!0}),Te=["mousedown","touchstart"],$e=["mouseup","mouseleave","touchend","touchcancel"];class it{static#e=this._eventManager=new Ae;constructor(z,L,se,J){this._target=z,this._ngZone=L,this._platform=J,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,J.isBrowser&&(this._containerElement=(0,E.fI)(se))}fadeInRipple(z,L,se={}){const J=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he={...Ge,...se.animation};se.centered&&(z=J.left+J.width/2,L=J.top+J.height/2);const I=se.radius||function bt(me,z,L){const se=Math.max(Math.abs(me-L.left),Math.abs(me-L.right)),J=Math.max(Math.abs(z-L.top),Math.abs(z-L.bottom));return Math.sqrt(se*se+J*J)}(z,L,J),Y=z-J.left,ue=L-J.top,Pe=he.enterDuration,Qe=document.createElement("div");Qe.classList.add("mat-ripple-element"),Qe.style.left=Y-I+"px",Qe.style.top=ue-I+"px",Qe.style.height=2*I+"px",Qe.style.width=2*I+"px",null!=se.color&&(Qe.style.backgroundColor=se.color),Qe.style.transitionDuration=`${Pe}ms`,this._containerElement.appendChild(Qe);const St=window.getComputedStyle(Qe),cn=St.transitionDuration,gn="none"===St.transitionProperty||"0s"===cn||"0s, 0s"===cn||0===J.width&&0===J.height,qt=new Ke(this,Qe,se,gn);Qe.style.transform="scale3d(1, 1, 1)",qt.state=0,se.persistent||(this._mostRecentTransientRipple=qt);let Dt=null;return!gn&&(Pe||he.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ci=()=>this._finishRippleTransition(qt),mi=()=>this._destroyRipple(qt);Qe.addEventListener("transitionend",Ci),Qe.addEventListener("transitioncancel",mi),Dt={onTransitionEnd:Ci,onTransitionCancel:mi}}),this._activeRipples.set(qt,Dt),(gn||!Pe)&&this._finishRippleTransition(qt),qt}fadeOutRipple(z){if(2===z.state||3===z.state)return;const L=z.element,se={...Ge,...z.config.animation};L.style.transitionDuration=`${se.exitDuration}ms`,L.style.opacity="0",z.state=2,(z._animationForciblyDisabledThroughCss||!se.exitDuration)&&this._finishRippleTransition(z)}fadeOutAll(){this._getActiveRipples().forEach(z=>z.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(z=>{z.config.persistent||z.fadeOut()})}setupTriggerEvents(z){const L=(0,E.fI)(z);!this._platform.isBrowser||!L||L===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=L,Te.forEach(se=>{it._eventManager.addHandler(this._ngZone,se,L,this)}))}handleEvent(z){"mousedown"===z.type?this._onMousedown(z):"touchstart"===z.type?this._onTouchStart(z):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$e.forEach(L=>{this._triggerElement.addEventListener(L,this,re)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(z){0===z.state?this._startFadeOutTransition(z):2===z.state&&this._destroyRipple(z)}_startFadeOutTransition(z){const L=z===this._mostRecentTransientRipple,{persistent:se}=z.config;z.state=1,!se&&(!L||!this._isPointerDown)&&z.fadeOut()}_destroyRipple(z){const L=this._activeRipples.get(z)??null;this._activeRipples.delete(z),this._activeRipples.size||(this._containerRect=null),z===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),z.state=3,null!==L&&(z.element.removeEventListener("transitionend",L.onTransitionEnd),z.element.removeEventListener("transitioncancel",L.onTransitionCancel)),z.element.remove()}_onMousedown(z){const L=(0,i.X6)(z),se=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!L&&!se&&(this._isPointerDown=!0,this.fadeInRipple(z.clientX,z.clientY,this._target.rippleConfig))}_onTouchStart(z){if(!this._target.rippleDisabled&&!(0,i.yG)(z)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const L=z.changedTouches;if(L)for(let se=0;se<L.length;se++)this.fadeInRipple(L[se].clientX,L[se].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(z=>{!z.config.persistent&&(1===z.state||z.config.terminateOnPointerUp&&0===z.state)&&z.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const z=this._triggerElement;z&&(Te.forEach(L=>it._eventManager.removeHandler(L,z,this)),this._pointerUpEventsRegistered&&$e.forEach(L=>z.removeEventListener(L,this,re)))}}const gt=new a.OlP("mat-ripple-global-options");let Lt=(()=>{class me{get disabled(){return this._disabled}set disabled(L){L&&this.fadeOutAllNonPersistent(),this._disabled=L,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(L){this._trigger=L,this._setupTriggerEventsIfEnabled()}constructor(L,se,J,he,I){this._elementRef=L,this._animationMode=I,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new it(this,se,L,J)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(L,se=0,J){return"number"==typeof L?this._rippleRenderer.fadeInRipple(L,se,{...this.rippleConfig,...J}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...L})}static#e=this.\u0275fac=function(se){return new(se||me)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(C.t4),a.Y36(gt,8),a.Y36(a.QbO,8))};static#t=this.\u0275dir=a.lG2({type:me,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(se,J){2&se&&a.ekj("mat-ripple-unbounded",J.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return me})(),ut=(()=>{class me{static#e=this.\u0275fac=function(se){return new(se||me)};static#t=this.\u0275mod=a.oAB({type:me});static#n=this.\u0275inj=a.cJS({imports:[Ve,Ve]})}return me})();const wn={capture:!0},Et=["focus","click","mouseenter","touchstart"],Ot="mat-ripple-loader-uninitialized",On="mat-ripple-loader-class-name",Ln="mat-ripple-loader-centered",Bn="mat-ripple-loader-disabled";let We=(()=>{class me{constructor(){this._document=(0,a.f3M)(v.K0,{optional:!0}),this._animationMode=(0,a.f3M)(a.QbO,{optional:!0}),this._globalRippleOptions=(0,a.f3M)(gt,{optional:!0}),this._platform=(0,a.f3M)(C.t4),this._ngZone=(0,a.f3M)(a.R0b),this._hosts=new Map,this._onInteraction=L=>{if(!(L.target instanceof HTMLElement))return;const J=L.target.closest(`[${Ot}]`);J&&this._createRipple(J)},this._ngZone.runOutsideAngular(()=>{for(const L of Et)this._document?.addEventListener(L,this._onInteraction,wn)})}ngOnDestroy(){const L=this._hosts.keys();for(const se of L)this.destroyRipple(se);for(const se of Et)this._document?.removeEventListener(se,this._onInteraction,wn)}configureRipple(L,se){L.setAttribute(Ot,""),(se.className||!L.hasAttribute(On))&&L.setAttribute(On,se.className||""),se.centered&&L.setAttribute(Ln,""),se.disabled&&L.setAttribute(Bn,"")}getRipple(L){return this._hosts.get(L)||this._createRipple(L)}setDisabled(L,se){const J=this._hosts.get(L);J?J.disabled=se:se?L.setAttribute(Bn,""):L.removeAttribute(Bn)}_createRipple(L){if(!this._document)return;const se=this._hosts.get(L);if(se)return se;L.querySelector(".mat-ripple")?.remove();const J=this._document.createElement("span");J.classList.add("mat-ripple",L.getAttribute(On)),L.append(J);const he=new Lt(new a.SBq(J),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return he._isInitialized=!0,he.trigger=L,he.centered=L.hasAttribute(Ln),he.disabled=L.hasAttribute(Bn),this.attachRipple(L,he),he}attachRipple(L,se){L.removeAttribute(Ot),this._hosts.set(L,se)}destroyRipple(L){const se=this._hosts.get(L);se&&(se.ngOnDestroy(),this._hosts.delete(L))}static#e=this.\u0275fac=function(se){return new(se||me)};static#t=this.\u0275prov=a.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})()},1238:(Ee,y,b)=>{"use strict";b.d(y,{Hw:()=>Ke,Ps:()=>mt,jv:()=>ae});var a=b(1322),i=b(9021),te=b(5988),q=b(9462),v=b(9627),C=b(7371),E=b(3276),R=b(6312),S=b(9592),P=b(4104),x=b(8412),w=b(8299),U=b(2829),X=b(4049);function le(Ae){return(0,X.e)((Ge,ne)=>{let $e,re=null,Te=!1;re=Ge.subscribe((0,U.x)(ne,void 0,void 0,it=>{$e=(0,w.Xf)(Ae(it,le(Ae)(Ge))),re?(re.unsubscribe(),re=null,$e.subscribe(ne)):Te=!0})),Te&&(re.unsubscribe(),re=null,$e.subscribe(ne))})}var Q=b(1927),ce=b(9453),Be=b(9224);function Ve(Ae,Ge,...ne){if(!0===Ge)return void Ae();if(!1===Ge)return;const re=new Be.Hp({next:()=>{re.unsubscribe(),Ae()}});return(0,w.Xf)(Ge(...ne)).subscribe(re)}var Se=b(3581),Oe=b(9272),Me=b(4707);const ke=["*"];let Ce;function He(Ae){return function De(){if(void 0===Ce&&(Ce=null,typeof window<"u")){const Ae=window;void 0!==Ae.trustedTypes&&(Ce=Ae.trustedTypes.createPolicy("angular#components",{createHTML:Ge=>Ge}))}return Ce}()?.createHTML(Ae)||Ae}function dt(Ae){return Error(`Unable to find icon with the name "${Ae}"`)}function zt(Ae){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ae}".`)}function Gt(Ae){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ae}".`)}class Je{constructor(Ge,ne,re){this.url=Ge,this.svgText=ne,this.options=re}}let ae=(()=>{class Ae{constructor(ne,re,Te,$e){this._httpClient=ne,this._sanitizer=re,this._errorHandler=$e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Te}addSvgIcon(ne,re,Te){return this.addSvgIconInNamespace("",ne,re,Te)}addSvgIconLiteral(ne,re,Te){return this.addSvgIconLiteralInNamespace("",ne,re,Te)}addSvgIconInNamespace(ne,re,Te,$e){return this._addSvgIconConfig(ne,re,new Je(Te,null,$e))}addSvgIconResolver(ne){return this._resolvers.push(ne),this}addSvgIconLiteralInNamespace(ne,re,Te,$e){const it=this._sanitizer.sanitize(a.q3G.HTML,Te);if(!it)throw Gt(Te);const bt=He(it);return this._addSvgIconConfig(ne,re,new Je("",bt,$e))}addSvgIconSet(ne,re){return this.addSvgIconSetInNamespace("",ne,re)}addSvgIconSetLiteral(ne,re){return this.addSvgIconSetLiteralInNamespace("",ne,re)}addSvgIconSetInNamespace(ne,re,Te){return this._addSvgIconSetConfig(ne,new Je(re,null,Te))}addSvgIconSetLiteralInNamespace(ne,re,Te){const $e=this._sanitizer.sanitize(a.q3G.HTML,re);if(!$e)throw Gt(re);const it=He($e);return this._addSvgIconSetConfig(ne,new Je("",it,Te))}registerFontClassAlias(ne,re=ne){return this._fontCssClassesByAlias.set(ne,re),this}classNameForFontAlias(ne){return this._fontCssClassesByAlias.get(ne)||ne}setDefaultFontSetClass(...ne){return this._defaultFontSetClass=ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ne){const re=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,ne);if(!re)throw zt(ne);const Te=this._cachedIconsByUrl.get(re);return Te?(0,v.of)(V(Te)):this._loadSvgIconFromConfig(new Je(ne,null)).pipe((0,P.b)($e=>this._cachedIconsByUrl.set(re,$e)),(0,x.U)($e=>V($e)))}getNamedSvgIcon(ne,re=""){const Te=F(re,ne);let $e=this._svgIconConfigs.get(Te);if($e)return this._getSvgFromConfig($e);if($e=this._getIconConfigFromResolvers(re,ne),$e)return this._svgIconConfigs.set(Te,$e),this._getSvgFromConfig($e);const it=this._iconSetConfigs.get(re);return it?this._getSvgFromIconSetConfigs(ne,it):function A(Ae,Ge){const ne=(0,E.m)(Ae)?Ae:()=>Ae,re=Te=>Te.error(ne());return new C.y(Ge?Te=>Ge.schedule(re,0,Te):re)}(dt(Te))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ne){return ne.svgText?(0,v.of)(V(this._svgElementFromConfig(ne))):this._loadSvgIconFromConfig(ne).pipe((0,x.U)(re=>V(re)))}_getSvgFromIconSetConfigs(ne,re){const Te=this._extractIconWithNameFromAnySet(ne,re);if(Te)return(0,v.of)(Te);const $e=re.filter(it=>!it.svgText).map(it=>this._loadSvgIconSetFromConfig(it).pipe(le(bt=>{const Lt=`Loading icon set URL: ${this._sanitizer.sanitize(a.q3G.RESOURCE_URL,it.url)} failed: ${bt.message}`;return this._errorHandler.handleError(new Error(Lt)),(0,v.of)(null)})));return(0,R.D)($e).pipe((0,x.U)(()=>{const it=this._extractIconWithNameFromAnySet(ne,re);if(!it)throw dt(ne);return it}))}_extractIconWithNameFromAnySet(ne,re){for(let Te=re.length-1;Te>=0;Te--){const $e=re[Te];if($e.svgText&&$e.svgText.toString().indexOf(ne)>-1){const it=this._svgElementFromConfig($e),bt=this._extractSvgIconFromSet(it,ne,$e.options);if(bt)return bt}}return null}_loadSvgIconFromConfig(ne){return this._fetchIcon(ne).pipe((0,P.b)(re=>ne.svgText=re),(0,x.U)(()=>this._svgElementFromConfig(ne)))}_loadSvgIconSetFromConfig(ne){return ne.svgText?(0,v.of)(null):this._fetchIcon(ne).pipe((0,P.b)(re=>ne.svgText=re))}_extractSvgIconFromSet(ne,re,Te){const $e=ne.querySelector(`[id="${re}"]`);if(!$e)return null;const it=$e.cloneNode(!0);if(it.removeAttribute("id"),"svg"===it.nodeName.toLowerCase())return this._setSvgAttributes(it,Te);if("symbol"===it.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(it),Te);const bt=this._svgElementFromString(He("<svg></svg>"));return bt.appendChild(it),this._setSvgAttributes(bt,Te)}_svgElementFromString(ne){const re=this._document.createElement("DIV");re.innerHTML=ne;const Te=re.querySelector("svg");if(!Te)throw Error("<svg> tag not found");return Te}_toSvgElement(ne){const re=this._svgElementFromString(He("<svg></svg>")),Te=ne.attributes;for(let $e=0;$e<Te.length;$e++){const{name:it,value:bt}=Te[$e];"id"!==it&&re.setAttribute(it,bt)}for(let $e=0;$e<ne.childNodes.length;$e++)ne.childNodes[$e].nodeType===this._document.ELEMENT_NODE&&re.appendChild(ne.childNodes[$e].cloneNode(!0));return re}_setSvgAttributes(ne,re){return ne.setAttribute("fit",""),ne.setAttribute("height","100%"),ne.setAttribute("width","100%"),ne.setAttribute("preserveAspectRatio","xMidYMid meet"),ne.setAttribute("focusable","false"),re&&re.viewBox&&ne.setAttribute("viewBox",re.viewBox),ne}_fetchIcon(ne){const{url:re,options:Te}=ne,$e=Te?.withCredentials??!1;if(!this._httpClient)throw function xt(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==re)throw Error(`Cannot fetch icon from URL "${re}".`);const it=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,re);if(!it)throw zt(re);const bt=this._inProgressUrlFetches.get(it);if(bt)return bt;const gt=this._httpClient.get(it,{responseType:"text",withCredentials:$e}).pipe((0,x.U)(Lt=>He(Lt)),(0,Q.x)(()=>this._inProgressUrlFetches.delete(it)),function ze(Ae={}){const{connector:Ge=(()=>new ce.x),resetOnError:ne=!0,resetOnComplete:re=!0,resetOnRefCountZero:Te=!0}=Ae;return $e=>{let it,bt,gt,Lt=0,ut=!1,Pt=!1;const wt=()=>{bt?.unsubscribe(),bt=void 0},nn=()=>{wt(),it=gt=void 0,ut=Pt=!1},li=()=>{const rt=it;nn(),rt?.unsubscribe()};return(0,X.e)((rt,Dn)=>{Lt++,!Pt&&!ut&&wt();const dn=gt=gt??Ge();Dn.add(()=>{Lt--,0===Lt&&!Pt&&!ut&&(bt=Ve(li,Te))}),dn.subscribe(Dn),!it&&Lt>0&&(it=new Be.Hp({next:Yn=>dn.next(Yn),error:Yn=>{Pt=!0,wt(),bt=Ve(nn,ne,Yn),dn.error(Yn)},complete:()=>{ut=!0,wt(),bt=Ve(nn,re),dn.complete()}}),(0,w.Xf)(rt).subscribe(it))})($e)}}());return this._inProgressUrlFetches.set(it,gt),gt}_addSvgIconConfig(ne,re,Te){return this._svgIconConfigs.set(F(ne,re),Te),this}_addSvgIconSetConfig(ne,re){const Te=this._iconSetConfigs.get(ne);return Te?Te.push(re):this._iconSetConfigs.set(ne,[re]),this}_svgElementFromConfig(ne){if(!ne.svgElement){const re=this._svgElementFromString(ne.svgText);this._setSvgAttributes(re,ne.options),ne.svgElement=re}return ne.svgElement}_getIconConfigFromResolvers(ne,re){for(let Te=0;Te<this._resolvers.length;Te++){const $e=this._resolvers[Te](re,ne);if($e)return j($e)?new Je($e.url,null,$e.options):new Je($e,null)}}static#e=this.\u0275fac=function(re){return new(re||Ae)(a.LFG(Oe.eN,8),a.LFG(Me.H7),a.LFG(q.K0,8),a.LFG(a.qLn))};static#t=this.\u0275prov=a.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})();function V(Ae){return Ae.cloneNode(!0)}function F(Ae,Ge){return Ae+":"+Ge}function j(Ae){return!(!Ae.url||!Ae.options)}const $=(0,i.pj)(class{constructor(Ae){this._elementRef=Ae}}),K=new a.OlP("MAT_ICON_DEFAULT_OPTIONS"),de=new a.OlP("mat-icon-location",{providedIn:"root",factory:function ge(){const Ae=(0,a.f3M)(q.K0),Ge=Ae?Ae.location:null;return{getPathname:()=>Ge?Ge.pathname+Ge.search:""}}}),Fe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Le=Fe.map(Ae=>`[${Ae}]`).join(", "),Xe=/^url\(['"]?#(.*?)['"]?\)$/;let Ke=(()=>{class Ae extends ${get inline(){return this._inline}set inline(ne){this._inline=(0,te.Ig)(ne)}get svgIcon(){return this._svgIcon}set svgIcon(ne){ne!==this._svgIcon&&(ne?this._updateSvgIcon(ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ne)}get fontSet(){return this._fontSet}set fontSet(ne){const re=this._cleanupFontValue(ne);re!==this._fontSet&&(this._fontSet=re,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ne){const re=this._cleanupFontValue(ne);re!==this._fontIcon&&(this._fontIcon=re,this._updateFontIconClasses())}constructor(ne,re,Te,$e,it,bt){super(ne),this._iconRegistry=re,this._location=$e,this._errorHandler=it,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=S.w0.EMPTY,bt&&(bt.color&&(this.color=this.defaultColor=bt.color),bt.fontSet&&(this.fontSet=bt.fontSet)),Te||ne.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ne){if(!ne)return["",""];const re=ne.split(":");switch(re.length){case 1:return["",re[0]];case 2:return re;default:throw Error(`Invalid icon name: "${ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ne=this._elementsWithExternalReferences;if(ne&&ne.size){const re=this._location.getPathname();re!==this._previousPath&&(this._previousPath=re,this._prependPathToReferences(re))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ne){this._clearSvgElement();const re=this._location.getPathname();this._previousPath=re,this._cacheChildrenWithExternalReferences(ne),this._prependPathToReferences(re),this._elementRef.nativeElement.appendChild(ne)}_clearSvgElement(){const ne=this._elementRef.nativeElement;let re=ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();re--;){const Te=ne.childNodes[re];(1!==Te.nodeType||"svg"===Te.nodeName.toLowerCase())&&Te.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ne=this._elementRef.nativeElement,re=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Te=>Te.length>0);this._previousFontSetClass.forEach(Te=>ne.classList.remove(Te)),re.forEach(Te=>ne.classList.add(Te)),this._previousFontSetClass=re,this.fontIcon!==this._previousFontIconClass&&!re.includes("mat-ligature-font")&&(this._previousFontIconClass&&ne.classList.remove(this._previousFontIconClass),this.fontIcon&&ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ne){return"string"==typeof ne?ne.trim().split(" ")[0]:ne}_prependPathToReferences(ne){const re=this._elementsWithExternalReferences;re&&re.forEach((Te,$e)=>{Te.forEach(it=>{$e.setAttribute(it.name,`url('${ne}#${it.value}')`)})})}_cacheChildrenWithExternalReferences(ne){const re=ne.querySelectorAll(Le),Te=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let $e=0;$e<re.length;$e++)Fe.forEach(it=>{const bt=re[$e],gt=bt.getAttribute(it),Lt=gt?gt.match(Xe):null;if(Lt){let ut=Te.get(bt);ut||(ut=[],Te.set(bt,ut)),ut.push({name:it,value:Lt[1]})}})}_updateSvgIcon(ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ne){const[re,Te]=this._splitIconName(ne);re&&(this._svgNamespace=re),Te&&(this._svgName=Te),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Te,re).pipe((0,Se.q)(1)).subscribe($e=>this._setSvgElement($e),$e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${re}:${Te}! ${$e.message}`))})}}static#e=this.\u0275fac=function(re){return new(re||Ae)(a.Y36(a.SBq),a.Y36(ae),a.$8M("aria-hidden"),a.Y36(de),a.Y36(a.qLn),a.Y36(K,8))};static#t=this.\u0275cmp=a.Xpm({type:Ae,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(re,Te){2&re&&(a.uIk("data-mat-icon-type",Te._usingFontIcon()?"font":"svg")("data-mat-icon-name",Te._svgName||Te.fontIcon)("data-mat-icon-namespace",Te._svgNamespace||Te.fontSet)("fontIcon",Te._usingFontIcon()?Te.fontIcon:null),a.ekj("mat-icon-inline",Te.inline)("mat-icon-no-color","primary"!==Te.color&&"accent"!==Te.color&&"warn"!==Te.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[a.qOj],ngContentSelectors:ke,decls:1,vars:0,template:function(re,Te){1&re&&(a.F$t(),a.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Ae})(),mt=(()=>{class Ae{static#e=this.\u0275fac=function(re){return new(re||Ae)};static#t=this.\u0275mod=a.oAB({type:Ae});static#n=this.\u0275inj=a.cJS({imports:[i.BQ,i.BQ]})}return Ae})()},7361:(Ee,y,b)=>{"use strict";b.d(y,{Nh:()=>se,SP:()=>On,uD:()=>$e,uX:()=>Dn});var a=b(9462),i=b(1322),te=b(9021),q=b(6512),v=b(8267),C=b(8654),E=b(4877),A=b(9592),R=b(9453),S=b(6058),P=b(9627),x=b(4991),w=b(8025),U=b(7371),X=b(5117),le=b(19),Q=b(4263),ce=b(5779),Be=b(3581),ze=b(2835),Ve=b(1800),Se=b(1497),Oe=b(6e3),Me=b(5988),ke=b(9467),Ce=b(3844),De=b(7605);function He(J,he){}const dt=J=>({animationDuration:J}),xt=(J,he)=>({value:J,params:he});function zt(J,he){1&J&&i.Hsn(0)}const Gt=["*"],Je=["tabListContainer"],ae=["tabList"],oe=["tabListInner"],G=["nextPaginator"],V=["previousPaginator"],F=["tabBodyWrapper"],j=["tabHeader"];function $(J,he){}function K(J,he){if(1&J&&i.YNc(0,$,0,0,"ng-template",10),2&J){const I=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",I.templateLabel)}}function de(J,he){if(1&J&&i._uU(0),2&J){const I=i.oxw().$implicit;i.Oqu(I.textLabel)}}function ge(J,he){if(1&J){const I=i.EpF();i.TgZ(0,"div",4,5),i.NdJ("click",function(){const ue=i.CHM(I),Pe=ue.$implicit,Qe=ue.$index,St=i.oxw(),kt=i.MAs(1);return i.KtG(St._handleClick(Pe,kt,Qe))})("cdkFocusChange",function(ue){const Qe=i.CHM(I).$index,St=i.oxw();return i.KtG(St._tabFocusChanged(ue,Qe))}),i._UZ(2,"span",6)(3,"div",7),i.TgZ(4,"span",8)(5,"span",9),i.YNc(6,K,1,1,null,10)(7,de,1,1),i.qZA()()()}if(2&J){const I=he.$implicit,Y=he.$index,ue=i.MAs(1),Pe=i.oxw();i.ekj("mdc-tab--active",Pe.selectedIndex===Y),i.Q6J("id",Pe._getTabLabelId(Y))("ngClass",I.labelClass)("disabled",I.disabled)("fitInkBarToContent",Pe.fitInkBarToContent),i.uIk("tabIndex",Pe._getTabIndex(Y))("aria-posinset",Y+1)("aria-setsize",Pe._tabs.length)("aria-controls",Pe._getTabContentId(Y))("aria-selected",Pe.selectedIndex===Y)("aria-label",I.ariaLabel||null)("aria-labelledby",!I.ariaLabel&&I.ariaLabelledby?I.ariaLabelledby:null),i.xp6(3),i.Q6J("matRippleTrigger",ue)("matRippleDisabled",I.disabled||Pe.disableRipple),i.xp6(3),i.um2(6,I.templateLabel?6:7)}}function Fe(J,he){if(1&J){const I=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(I);const ue=i.oxw();return i.KtG(ue._removeTabBodyWrapperHeight())})("_onCentering",function(ue){i.CHM(I);const Pe=i.oxw();return i.KtG(Pe._setTabBodyWrapperHeight(ue))}),i.qZA()}if(2&J){const I=he.$implicit,Y=he.$index,ue=i.oxw();i.ekj("mat-mdc-tab-body-active",ue.selectedIndex===Y),i.Q6J("id",ue._getTabContentId(Y))("ngClass",I.bodyClass)("content",I.content)("position",I.position)("origin",I.origin)("animationDuration",ue.animationDuration)("preserveContent",ue.preserveContent),i.uIk("tabindex",null!=ue.contentTabIndex&&ue.selectedIndex===Y?ue.contentTabIndex:null)("aria-labelledby",ue._getTabLabelId(Y))("aria-hidden",ue.selectedIndex!==Y)}}const Ke={translateTab:(0,Oe.X$)("translateTab",[(0,Oe.SB)("center, void, left-origin-center, right-origin-center",(0,Oe.oB)({transform:"none"})),(0,Oe.SB)("left",(0,Oe.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Oe.SB)("right",(0,Oe.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Oe.eR)("* => left, * => right, left => center, right => center",(0,Oe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Oe.eR)("void => left-origin-center",[(0,Oe.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Oe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Oe.eR)("void => right-origin-center",[(0,Oe.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Oe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let mt=(()=>{class J extends q.Pl{constructor(I,Y,ue,Pe){super(I,Y,Pe),this._host=ue,this._centeringSub=A.w0.EMPTY,this._leavingSub=A.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,le.O)(this._host._isCenterPosition(this._host._position))).subscribe(I=>{I&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>Ae)),i.Y36(a.K0))};static#t=this.\u0275dir=i.lG2({type:J,selectors:[["","matTabBodyHost",""]],features:[i.qOj]})}return J})(),Ae=(()=>{class J{set position(I){this._positionIndex=I,this._computePositionAnimationState()}constructor(I,Y,ue){this._elementRef=I,this._dir=Y,this._dirChangeSubscription=A.w0.EMPTY,this._translateTabComplete=new R.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Y&&(this._dirChangeSubscription=Y.change.subscribe(Pe=>{this._computePositionAnimationState(Pe),ue.markForCheck()})),this._translateTabComplete.pipe((0,Q.x)((Pe,Qe)=>Pe.fromState===Qe.fromState&&Pe.toState===Qe.toState)).subscribe(Pe=>{this._isCenterPosition(Pe.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Pe.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(I){const Y=this._isCenterPosition(I.toState);this._beforeCentering.emit(Y),Y&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(I){return"center"==I||"left-origin-center"==I||"right-origin-center"==I}_computePositionAnimationState(I=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==I?"left":"right":this._positionIndex>0?"ltr"==I?"right":"left":"center"}_computePositionFromOrigin(I){const Y=this._getLayoutDirection();return"ltr"==Y&&I<=0||"rtl"==Y&&I>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.SBq),i.Y36(E.Is,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:J,selectors:[["mat-tab-body"]],viewQuery:function(Y,ue){if(1&Y&&i.Gf(q.Pl,5),2&Y){let Pe;i.iGM(Pe=i.CRH())&&(ue._portalHost=Pe.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Y,ue){1&Y&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(Qe){return ue._onTranslateTabStarted(Qe)})("@translateTab.done",function(Qe){return ue._translateTabComplete.next(Qe)}),i.YNc(2,He,0,0,"ng-template",2),i.qZA()),2&Y&&i.Q6J("@translateTab",i.WLB(3,xt,ue._position,i.VKq(1,dt,ue.animationDuration)))},dependencies:[mt],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ke.translateTab]}})}return J})();const Ge=new i.OlP("MatTabContent");let ne=(()=>{class J{constructor(I){this.template=I}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:J,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:Ge,useExisting:J}])]})}return J})();const re=new i.OlP("MatTabLabel"),Te=new i.OlP("MAT_TAB");let $e=(()=>{class J extends q.ig{constructor(I,Y,ue){super(I,Y),this._closestTab=ue}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Te,8))};static#t=this.\u0275dir=i.lG2({type:J,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:re,useExisting:J}]),i.qOj]})}return J})();const it="mdc-tab-indicator--active",bt="mdc-tab-indicator--no-transition";class gt{constructor(he){this._items=he}hide(){this._items.forEach(he=>he.deactivateInkBar())}alignToElement(he){const I=this._items.find(ue=>ue.elementRef.nativeElement===he),Y=this._currentItem;if(I!==Y&&(Y?.deactivateInkBar(),I)){const ue=Y?.elementRef.nativeElement.getBoundingClientRect?.();I.activateInkBar(ue),this._currentItem=I}}}function Lt(J){return class extends J{constructor(...he){super(...he),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(he){const I=(0,Me.Ig)(he);this._fitToContent!==I&&(this._fitToContent=I,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(he){const I=this.elementRef.nativeElement;if(!he||!I.getBoundingClientRect||!this._inkBarContentElement)return void I.classList.add(it);const Y=I.getBoundingClientRect(),ue=he.width/Y.width,Pe=he.left-Y.left;I.classList.add(bt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Pe}px) scaleX(${ue})`),I.getBoundingClientRect(),I.classList.remove(bt),I.classList.add(it),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(it)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const he=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=he.createElement("span"),this._inkBarContentElement=he.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const wt=Lt((0,te.Id)(class{}));let nn=(()=>{class J extends wt{constructor(I){super(),this.elementRef=I}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:J,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Y,ue){2&Y&&(i.uIk("aria-disabled",!!ue.disabled),i.ekj("mat-mdc-tab-disabled",ue.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[i.qOj]})}return J})();const li=(0,te.Id)(class{}),rt=new i.OlP("MAT_TAB_GROUP");let Dn=(()=>{class J extends li{get templateLabel(){return this._templateLabel}set templateLabel(I){this._setTemplateLabelInput(I)}get content(){return this._contentPortal}constructor(I,Y){super(),this._viewContainerRef=I,this._closestTabGroup=Y,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new R.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(I){(I.hasOwnProperty("textLabel")||I.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new q.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(I){I&&I._closestTab===this&&(this._templateLabel=I)}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.s_b),i.Y36(rt,8))};static#t=this.\u0275cmp=i.Xpm({type:J,selectors:[["mat-tab"]],contentQueries:function(Y,ue,Pe){if(1&Y&&(i.Suo(Pe,$e,5),i.Suo(Pe,ne,7,i.Rgc)),2&Y){let Qe;i.iGM(Qe=i.CRH())&&(ue.templateLabel=Qe.first),i.iGM(Qe=i.CRH())&&(ue._explicitContent=Qe.first)}},viewQuery:function(Y,ue){if(1&Y&&i.Gf(i.Rgc,7),2&Y){let Pe;i.iGM(Pe=i.CRH())&&(ue._implicitContent=Pe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[i._Bn([{provide:Te,useExisting:J}]),i.qOj,i.TTD],ngContentSelectors:Gt,decls:1,vars:0,template:function(Y,ue){1&Y&&(i.F$t(),i.YNc(0,zt,1,0,"ng-template"))},encapsulation:2})}return J})();const dn=(0,Ce.i$)({passive:!0});let Ri=(()=>{class J{get disablePagination(){return this._disablePagination}set disablePagination(I){this._disablePagination=(0,Me.Ig)(I)}get selectedIndex(){return this._selectedIndex}set selectedIndex(I){I=(0,Me.su)(I),this._selectedIndex!=I&&(this._selectedIndexChanged=!0,this._selectedIndex=I,this._keyManager&&this._keyManager.updateActiveItem(I))}constructor(I,Y,ue,Pe,Qe,St,kt){this._elementRef=I,this._changeDetectorRef=Y,this._viewportRuler=ue,this._dir=Pe,this._ngZone=Qe,this._platform=St,this._animationMode=kt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new R.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new R.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,Qe.runOutsideAngular(()=>{(0,S.R)(I.nativeElement,"mouseleave").pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,S.R)(this._previousPaginator.nativeElement,"touchstart",dn).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",dn).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const I=this._dir?this._dir.change:(0,P.of)("ltr"),Y=this._viewportRuler.change(150),ue=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new C.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Be.q)(1)).subscribe(ue),(0,x.T)(I,Y,this._items.changes,this._itemsResized()).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),ue()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Pe=>{this.indexFocused.emit(Pe),this._setTabFocus(Pe)})}_itemsResized(){return"function"!=typeof ResizeObserver?w.E:this._items.changes.pipe((0,le.O)(this._items),(0,ze.w)(I=>new U.y(Y=>this._ngZone.runOutsideAngular(()=>{const ue=new ResizeObserver(Pe=>Y.next(Pe));return I.forEach(Pe=>ue.observe(Pe.elementRef.nativeElement)),()=>{ue.disconnect()}}))),(0,Ve.T)(1),(0,Se.h)(I=>I.some(Y=>Y.contentRect.width>0&&Y.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(I){if(!(0,De.Vb)(I))switch(I.keyCode){case De.K5:case De.L_:if(this.focusIndex!==this.selectedIndex){const Y=this._items.get(this.focusIndex);Y&&!Y.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(I))}break;default:this._keyManager.onKeydown(I)}}_onContentChanges(){const I=this._elementRef.nativeElement.textContent;I!==this._currentTextContent&&(this._currentTextContent=I||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(I){!this._isValidIndex(I)||this.focusIndex===I||!this._keyManager||this._keyManager.setActiveItem(I)}_isValidIndex(I){return!this._items||!!this._items.toArray()[I]}_setTabFocus(I){if(this._showPaginationControls&&this._scrollToLabel(I),this._items&&this._items.length){this._items.toArray()[I].focus();const Y=this._tabListContainer.nativeElement;Y.scrollLeft="ltr"==this._getLayoutDirection()?0:Y.scrollWidth-Y.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const I=this.scrollDistance,Y="ltr"===this._getLayoutDirection()?-I:I;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Y)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(I){this._scrollTo(I)}_scrollHeader(I){return this._scrollTo(this._scrollDistance+("before"==I?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(I){this._stopInterval(),this._scrollHeader(I)}_scrollToLabel(I){if(this.disablePagination)return;const Y=this._items?this._items.toArray()[I]:null;if(!Y)return;const ue=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Pe,offsetWidth:Qe}=Y.elementRef.nativeElement;let St,kt;"ltr"==this._getLayoutDirection()?(St=Pe,kt=St+Qe):(kt=this._tabListInner.nativeElement.offsetWidth-Pe,St=kt-Qe);const cn=this.scrollDistance,gn=this.scrollDistance+ue;St<cn?this.scrollDistance-=cn-St:kt>gn&&(this.scrollDistance+=Math.min(kt-gn,St-cn))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const I=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;I||(this.scrollDistance=0),I!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=I}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const I=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Y=I?I.elementRef.nativeElement:null;Y?this._inkBar.alignToElement(Y):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(I,Y){Y&&null!=Y.button&&0!==Y.button||(this._stopInterval(),(0,X.H)(650,100).pipe((0,ce.R)((0,x.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ue,distance:Pe}=this._scrollHeader(I);(0===Pe||Pe>=ue)&&this._stopInterval()}))}_scrollTo(I){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Y=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Y,I)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Y,distance:this._scrollDistance}}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ke.rL),i.Y36(E.Is,8),i.Y36(i.R0b),i.Y36(Ce.t4),i.Y36(i.QbO,8))};static#t=this.\u0275dir=i.lG2({type:J,inputs:{disablePagination:"disablePagination"}})}return J})(),jt=(()=>{class J extends Ri{get disableRipple(){return this._disableRipple}set disableRipple(I){this._disableRipple=(0,Me.Ig)(I)}constructor(I,Y,ue,Pe,Qe,St,kt){super(I,Y,ue,Pe,Qe,St,kt),this._disableRipple=!1}ngAfterContentInit(){this._inkBar=new gt(this._items),super.ngAfterContentInit()}_itemSelected(I){I.preventDefault()}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ke.rL),i.Y36(E.Is,8),i.Y36(i.R0b),i.Y36(Ce.t4),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:J,selectors:[["mat-tab-header"]],contentQueries:function(Y,ue,Pe){if(1&Y&&i.Suo(Pe,nn,4),2&Y){let Qe;i.iGM(Qe=i.CRH())&&(ue._items=Qe)}},viewQuery:function(Y,ue){if(1&Y&&(i.Gf(Je,7),i.Gf(ae,7),i.Gf(oe,7),i.Gf(G,5),i.Gf(V,5)),2&Y){let Pe;i.iGM(Pe=i.CRH())&&(ue._tabListContainer=Pe.first),i.iGM(Pe=i.CRH())&&(ue._tabList=Pe.first),i.iGM(Pe=i.CRH())&&(ue._tabListInner=Pe.first),i.iGM(Pe=i.CRH())&&(ue._nextPaginator=Pe.first),i.iGM(Pe=i.CRH())&&(ue._previousPaginator=Pe.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(Y,ue){2&Y&&i.ekj("mat-mdc-tab-header-pagination-controls-enabled",ue._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ue._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:Gt,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,ue){1&Y&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return ue._handlePaginatorClick("before")})("mousedown",function(Qe){return ue._handlePaginatorPress("before",Qe)})("touchend",function(){return ue._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(Qe){return ue._handleKeydown(Qe)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return ue._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA()()(),i.TgZ(10,"button",9,10),i.NdJ("mousedown",function(Qe){return ue._handlePaginatorPress("after",Qe)})("click",function(){return ue._handlePaginatorClick("after")})("touchend",function(){return ue._stopInterval()}),i._UZ(12,"div",2),i.qZA()),2&Y&&(i.ekj("mat-mdc-tab-header-pagination-disabled",ue._disableScrollBefore),i.Q6J("matRippleDisabled",ue._disableScrollBefore||ue.disableRipple)("disabled",ue._disableScrollBefore||null),i.xp6(3),i.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode),i.xp6(7),i.ekj("mat-mdc-tab-header-pagination-disabled",ue._disableScrollAfter),i.Q6J("matRippleDisabled",ue._disableScrollAfter||ue.disableRipple)("disabled",ue._disableScrollAfter||null))},dependencies:[te.wG,v.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return J})();const ei=new i.OlP("MAT_TABS_CONFIG");let wn=0;const Et=(0,te.pj)((0,te.Kr)(class{constructor(J){this._elementRef=J}}),"primary");let On=(()=>{class J extends Et{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(I){this._fitInkBarToContent=(0,Me.Ig)(I),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(I){this._stretchTabs=(0,Me.Ig)(I)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(I){this._dynamicHeight=(0,Me.Ig)(I)}get selectedIndex(){return this._selectedIndex}set selectedIndex(I){this._indexToSelect=(0,Me.su)(I,null)}get animationDuration(){return this._animationDuration}set animationDuration(I){this._animationDuration=/^\d+$/.test(I+"")?I+"ms":I}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(I){this._contentTabIndex=(0,Me.su)(I,null)}get disablePagination(){return this._disablePagination}set disablePagination(I){this._disablePagination=(0,Me.Ig)(I)}get preserveContent(){return this._preserveContent}set preserveContent(I){this._preserveContent=(0,Me.Ig)(I)}get backgroundColor(){return this._backgroundColor}set backgroundColor(I){const Y=this._elementRef.nativeElement.classList;Y.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),I&&Y.add("mat-tabs-with-background",`mat-background-${I}`),this._backgroundColor=I}constructor(I,Y,ue,Pe){super(I),this._changeDetectorRef=Y,this._animationMode=Pe,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=A.w0.EMPTY,this._tabLabelSubscription=A.w0.EMPTY,this._fitInkBarToContent=!1,this._stretchTabs=!0,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=wn++,this.animationDuration=ue&&ue.animationDuration?ue.animationDuration:"500ms",this.disablePagination=!(!ue||null==ue.disablePagination)&&ue.disablePagination,this.dynamicHeight=!(!ue||null==ue.dynamicHeight)&&ue.dynamicHeight,this.contentTabIndex=ue?.contentTabIndex??null,this.preserveContent=!!ue?.preserveContent,this.fitInkBarToContent=!(!ue||null==ue.fitInkBarToContent)&&ue.fitInkBarToContent,this.stretchTabs=!ue||null==ue.stretchTabs||ue.stretchTabs}ngAfterContentChecked(){const I=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=I){const Y=null==this._selectedIndex;if(!Y){this.selectedTabChange.emit(this._createChangeEvent(I));const ue=this._tabBodyWrapper.nativeElement;ue.style.minHeight=ue.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ue,Pe)=>ue.isActive=Pe===I),Y||(this.selectedIndexChange.emit(I),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Y,ue)=>{Y.position=ue-I,null!=this._selectedIndex&&0==Y.position&&!Y.origin&&(Y.origin=I-this._selectedIndex)}),this._selectedIndex!==I&&(this._selectedIndex=I,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const I=this._clampTabIndex(this._indexToSelect);if(I===this._selectedIndex){const Y=this._tabs.toArray();let ue;for(let Pe=0;Pe<Y.length;Pe++)if(Y[Pe].isActive){this._indexToSelect=this._selectedIndex=Pe,this._lastFocusedTabIndex=null,ue=Y[Pe];break}!ue&&Y[I]&&Promise.resolve().then(()=>{Y[I].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(I))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,le.O)(this._allTabs)).subscribe(I=>{this._tabs.reset(I.filter(Y=>Y._closestTabGroup===this||!Y._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(I){const Y=this._tabHeader;Y&&(Y.focusIndex=I)}_focusChanged(I){this._lastFocusedTabIndex=I,this.focusChange.emit(this._createChangeEvent(I))}_createChangeEvent(I){const Y=new Ln;return Y.index=I,this._tabs&&this._tabs.length&&(Y.tab=this._tabs.toArray()[I]),Y}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,x.T)(...this._tabs.map(I=>I._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(I){return Math.min(this._tabs.length-1,Math.max(I||0,0))}_getTabLabelId(I){return`mat-tab-label-${this._groupId}-${I}`}_getTabContentId(I){return`mat-tab-content-${this._groupId}-${I}`}_setTabBodyWrapperHeight(I){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Y=this._tabBodyWrapper.nativeElement;Y.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Y.style.height=I+"px")}_removeTabBodyWrapperHeight(){const I=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=I.clientHeight,I.style.height="",this.animationDone.emit()}_handleClick(I,Y,ue){Y.focusIndex=ue,I.disabled||(this.selectedIndex=ue)}_getTabIndex(I){return I===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(I,Y){I&&"mouse"!==I&&"touch"!==I&&(this._tabHeader.focusIndex=Y)}static#e=this.\u0275fac=function(Y){return new(Y||J)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ei,8),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:J,selectors:[["mat-tab-group"]],contentQueries:function(Y,ue,Pe){if(1&Y&&i.Suo(Pe,Dn,5),2&Y){let Qe;i.iGM(Qe=i.CRH())&&(ue._allTabs=Qe)}},viewQuery:function(Y,ue){if(1&Y&&(i.Gf(F,5),i.Gf(j,5)),2&Y){let Pe;i.iGM(Pe=i.CRH())&&(ue._tabBodyWrapper=Pe.first),i.iGM(Pe=i.CRH())&&(ue._tabHeader=Pe.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(Y,ue){2&Y&&(i.Udp("--mat-tab-animation-duration",ue.animationDuration),i.ekj("mat-mdc-tab-group-dynamic-height",ue.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ue.headerPosition)("mat-mdc-tab-group-stretch-tabs",ue.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"],dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[i._Bn([{provide:rt,useExisting:J}]),i.qOj],decls:8,vars:5,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(Y,ue){1&Y&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(Qe){return ue._focusChanged(Qe)})("selectFocusedIndex",function(Qe){return ue.selectedIndex=Qe}),i.SjG(2,ge,8,16,"div",12,i.x6l),i.qZA(),i.TgZ(4,"div",2,3),i.SjG(6,Fe,1,12,"mat-tab-body",13,i.x6l),i.qZA()),2&Y&&(i.Q6J("selectedIndex",ue.selectedIndex||0)("disableRipple",ue.disableRipple)("disablePagination",ue.disablePagination),i.xp6(2),i.wJu(ue._tabs),i.xp6(2),i.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode),i.xp6(2),i.wJu(ue._tabs))},dependencies:[a.mk,q.Pl,te.wG,C.kH,Ae,nn,jt],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return J})();class Ln{}let se=(()=>{class J{static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275mod=i.oAB({type:J});static#n=this.\u0275inj=i.cJS({imports:[a.ez,te.BQ,q.eL,te.si,v.Q8,C.rt,te.BQ]})}return J})()},4707:(Ee,y,b)=>{"use strict";b.d(y,{H7:()=>wn,b2:()=>Ge,q6:()=>Xe,se:()=>ke});var a=b(1322),i=b(9462);class te extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class q extends te{static makeCurrent(){(0,i.HT)(new q)}onAndCancel(he,I,Y){return he.addEventListener(I,Y),()=>{he.removeEventListener(I,Y)}}dispatchEvent(he,I){he.dispatchEvent(I)}remove(he){he.parentNode&&he.parentNode.removeChild(he)}createElement(he,I){return(I=I||this.getDefaultDocument()).createElement(he)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(he){return he.nodeType===Node.ELEMENT_NODE}isShadowRoot(he){return he instanceof DocumentFragment}getGlobalEventTarget(he,I){return"window"===I?window:"document"===I?he:"body"===I?he.body:null}getBaseHref(he){const I=function C(){return v=v||document.querySelector("base"),v?v.getAttribute("href"):null}();return null==I?null:function E(J){return new URL(J,document.baseURI).pathname}(I)}resetBaseElement(){v=null}getUserAgent(){return window.navigator.userAgent}getCookie(he){return(0,i.Mx)(document.cookie,he)}}let v=null,R=(()=>{class J{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275prov=a.Yz7({token:J,factory:J.\u0275fac})}return J})();const S=new a.OlP("EventManagerPlugins");let P=(()=>{class J{constructor(I,Y){this._zone=Y,this._eventNameToPlugin=new Map,I.forEach(ue=>{ue.manager=this}),this._plugins=I.slice().reverse()}addEventListener(I,Y,ue){return this._findPluginFor(Y).addEventListener(I,Y,ue)}getZone(){return this._zone}_findPluginFor(I){let Y=this._eventNameToPlugin.get(I);if(Y)return Y;if(Y=this._plugins.find(Pe=>Pe.supports(I)),!Y)throw new a.vHH(5101,!1);return this._eventNameToPlugin.set(I,Y),Y}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(S),a.LFG(a.R0b))};static#t=this.\u0275prov=a.Yz7({token:J,factory:J.\u0275fac})}return J})();class x{constructor(he){this._doc=he}}const w="ng-app-id";let U=(()=>{class J{constructor(I,Y,ue,Pe={}){this.doc=I,this.appId=Y,this.nonce=ue,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,i.PM)(Pe),this.resetHostNodes()}addStyles(I){for(const Y of I)1===this.changeUsageCount(Y,1)&&this.onStyleAdded(Y)}removeStyles(I){for(const Y of I)this.changeUsageCount(Y,-1)<=0&&this.onStyleRemoved(Y)}ngOnDestroy(){const I=this.styleNodesInDOM;I&&(I.forEach(Y=>Y.remove()),I.clear());for(const Y of this.getAllStyles())this.onStyleRemoved(Y);this.resetHostNodes()}addHost(I){this.hostNodes.add(I);for(const Y of this.getAllStyles())this.addStyleToHost(I,Y)}removeHost(I){this.hostNodes.delete(I)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(I){for(const Y of this.hostNodes)this.addStyleToHost(Y,I)}onStyleRemoved(I){const Y=this.styleRef;Y.get(I)?.elements?.forEach(ue=>ue.remove()),Y.delete(I)}collectServerRenderedStyles(){const I=this.doc.head?.querySelectorAll(`style[${w}="${this.appId}"]`);if(I?.length){const Y=new Map;return I.forEach(ue=>{null!=ue.textContent&&Y.set(ue.textContent,ue)}),Y}return null}changeUsageCount(I,Y){const ue=this.styleRef;if(ue.has(I)){const Pe=ue.get(I);return Pe.usage+=Y,Pe.usage}return ue.set(I,{usage:Y,elements:[]}),Y}getStyleElement(I,Y){const ue=this.styleNodesInDOM,Pe=ue?.get(Y);if(Pe?.parentNode===I)return ue.delete(Y),Pe.removeAttribute(w),Pe;{const Qe=this.doc.createElement("style");return this.nonce&&Qe.setAttribute("nonce",this.nonce),Qe.textContent=Y,this.platformIsServer&&Qe.setAttribute(w,this.appId),I.appendChild(Qe),Qe}}addStyleToHost(I,Y){const ue=this.getStyleElement(I,Y),Pe=this.styleRef,Qe=Pe.get(Y)?.elements;Qe?Qe.push(ue):Pe.set(Y,{elements:[ue],usage:1})}resetHostNodes(){const I=this.hostNodes;I.clear(),I.add(this.doc.head)}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(i.K0),a.LFG(a.AFp),a.LFG(a.Ojb,8),a.LFG(a.Lbi))};static#t=this.\u0275prov=a.Yz7({token:J,factory:J.\u0275fac})}return J})();const X={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/MathML/"},le=/%COMP%/g,Q="%COMP%",ce=`_nghost-${Q}`,Be=`_ngcontent-${Q}`,Ve=new a.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function Me(J,he){return he.map(I=>I.replace(le,J))}let ke=(()=>{class J{constructor(I,Y,ue,Pe,Qe,St,kt,cn=null){this.eventManager=I,this.sharedStylesHost=Y,this.appId=ue,this.removeStylesOnCompDestroy=Pe,this.doc=Qe,this.platformId=St,this.ngZone=kt,this.nonce=cn,this.rendererByCompId=new Map,this.platformIsServer=(0,i.PM)(St),this.defaultRenderer=new Ce(I,Qe,kt,this.platformIsServer)}createRenderer(I,Y){if(!I||!Y)return this.defaultRenderer;this.platformIsServer&&Y.encapsulation===a.ifc.ShadowDom&&(Y={...Y,encapsulation:a.ifc.Emulated});const ue=this.getOrCreateRenderer(I,Y);return ue instanceof Gt?ue.applyToHost(I):ue instanceof zt&&ue.applyStyles(),ue}getOrCreateRenderer(I,Y){const ue=this.rendererByCompId;let Pe=ue.get(Y.id);if(!Pe){const Qe=this.doc,St=this.ngZone,kt=this.eventManager,cn=this.sharedStylesHost,gn=this.removeStylesOnCompDestroy,qt=this.platformIsServer;switch(Y.encapsulation){case a.ifc.Emulated:Pe=new Gt(kt,cn,Y,this.appId,gn,Qe,St,qt);break;case a.ifc.ShadowDom:return new xt(kt,cn,I,Y,Qe,St,this.nonce,qt);default:Pe=new zt(kt,cn,Y,gn,Qe,St,qt)}ue.set(Y.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(P),a.LFG(U),a.LFG(a.AFp),a.LFG(Ve),a.LFG(i.K0),a.LFG(a.Lbi),a.LFG(a.R0b),a.LFG(a.Ojb))};static#t=this.\u0275prov=a.Yz7({token:J,factory:J.\u0275fac})}return J})();class Ce{constructor(he,I,Y,ue){this.eventManager=he,this.doc=I,this.ngZone=Y,this.platformIsServer=ue,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(he,I){return I?this.doc.createElementNS(X[I]||I,he):this.doc.createElement(he)}createComment(he){return this.doc.createComment(he)}createText(he){return this.doc.createTextNode(he)}appendChild(he,I){(dt(he)?he.content:he).appendChild(I)}insertBefore(he,I,Y){he&&(dt(he)?he.content:he).insertBefore(I,Y)}removeChild(he,I){he&&he.removeChild(I)}selectRootElement(he,I){let Y="string"==typeof he?this.doc.querySelector(he):he;if(!Y)throw new a.vHH(-5104,!1);return I||(Y.textContent=""),Y}parentNode(he){return he.parentNode}nextSibling(he){return he.nextSibling}setAttribute(he,I,Y,ue){if(ue){I=ue+":"+I;const Pe=X[ue];Pe?he.setAttributeNS(Pe,I,Y):he.setAttribute(I,Y)}else he.setAttribute(I,Y)}removeAttribute(he,I,Y){if(Y){const ue=X[Y];ue?he.removeAttributeNS(ue,I):he.removeAttribute(`${Y}:${I}`)}else he.removeAttribute(I)}addClass(he,I){he.classList.add(I)}removeClass(he,I){he.classList.remove(I)}setStyle(he,I,Y,ue){ue&(a.JOm.DashCase|a.JOm.Important)?he.style.setProperty(I,Y,ue&a.JOm.Important?"important":""):he.style[I]=Y}removeStyle(he,I,Y){Y&a.JOm.DashCase?he.style.removeProperty(I):he.style[I]=""}setProperty(he,I,Y){null!=he&&(he[I]=Y)}setValue(he,I){he.nodeValue=I}listen(he,I,Y){if("string"==typeof he&&!(he=(0,i.q)().getGlobalEventTarget(this.doc,he)))throw new Error(`Unsupported event target ${he} for event ${I}`);return this.eventManager.addEventListener(he,I,this.decoratePreventDefault(Y))}decoratePreventDefault(he){return I=>{if("__ngUnwrap__"===I)return he;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>he(I)):he(I))&&I.preventDefault()}}}function dt(J){return"TEMPLATE"===J.tagName&&void 0!==J.content}class xt extends Ce{constructor(he,I,Y,ue,Pe,Qe,St,kt){super(he,Pe,Qe,kt),this.sharedStylesHost=I,this.hostEl=Y,this.shadowRoot=Y.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const cn=Me(ue.id,ue.styles);for(const gn of cn){const qt=document.createElement("style");St&&qt.setAttribute("nonce",St),qt.textContent=gn,this.shadowRoot.appendChild(qt)}}nodeOrShadowRoot(he){return he===this.hostEl?this.shadowRoot:he}appendChild(he,I){return super.appendChild(this.nodeOrShadowRoot(he),I)}insertBefore(he,I,Y){return super.insertBefore(this.nodeOrShadowRoot(he),I,Y)}removeChild(he,I){return super.removeChild(this.nodeOrShadowRoot(he),I)}parentNode(he){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(he)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class zt extends Ce{constructor(he,I,Y,ue,Pe,Qe,St,kt){super(he,Pe,Qe,St),this.sharedStylesHost=I,this.removeStylesOnCompDestroy=ue,this.styles=kt?Me(kt,Y.styles):Y.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Gt extends zt{constructor(he,I,Y,ue,Pe,Qe,St,kt){const cn=ue+"-"+Y.id;super(he,I,Y,Pe,Qe,St,kt,cn),this.contentAttr=function Se(J){return Be.replace(le,J)}(cn),this.hostAttr=function Oe(J){return ce.replace(le,J)}(cn)}applyToHost(he){this.applyStyles(),this.setAttribute(he,this.hostAttr,"")}createElement(he,I){const Y=super.createElement(he,I);return super.setAttribute(Y,this.contentAttr,""),Y}}let Je=(()=>{class J extends x{constructor(I){super(I)}supports(I){return!0}addEventListener(I,Y,ue){return I.addEventListener(Y,ue,!1),()=>this.removeEventListener(I,Y,ue)}removeEventListener(I,Y,ue){return I.removeEventListener(Y,ue)}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:J,factory:J.\u0275fac})}return J})();const ae=["alt","control","meta","shift"],oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},G={alt:J=>J.altKey,control:J=>J.ctrlKey,meta:J=>J.metaKey,shift:J=>J.shiftKey};let V=(()=>{class J extends x{constructor(I){super(I)}supports(I){return null!=J.parseEventName(I)}addEventListener(I,Y,ue){const Pe=J.parseEventName(Y),Qe=J.eventCallback(Pe.fullKey,ue,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(I,Pe.domEventName,Qe))}static parseEventName(I){const Y=I.toLowerCase().split("."),ue=Y.shift();if(0===Y.length||"keydown"!==ue&&"keyup"!==ue)return null;const Pe=J._normalizeKey(Y.pop());let Qe="",St=Y.indexOf("code");if(St>-1&&(Y.splice(St,1),Qe="code."),ae.forEach(cn=>{const gn=Y.indexOf(cn);gn>-1&&(Y.splice(gn,1),Qe+=cn+".")}),Qe+=Pe,0!=Y.length||0===Pe.length)return null;const kt={};return kt.domEventName=ue,kt.fullKey=Qe,kt}static matchEventFullKeyCode(I,Y){let ue=oe[I.key]||I.key,Pe="";return Y.indexOf("code.")>-1&&(ue=I.code,Pe="code."),!(null==ue||!ue)&&(ue=ue.toLowerCase()," "===ue?ue="space":"."===ue&&(ue="dot"),ae.forEach(Qe=>{Qe!==ue&&(0,G[Qe])(I)&&(Pe+=Qe+".")}),Pe+=ue,Pe===Y)}static eventCallback(I,Y,ue){return Pe=>{J.matchEventFullKeyCode(Pe,I)&&ue.runGuarded(()=>Y(Pe))}}static _normalizeKey(I){return"esc"===I?"escape":I}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:J,factory:J.\u0275fac})}return J})();const Xe=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:i.bD},{provide:a.g9A,useValue:function de(){q.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function Fe(){return(0,a.RDi)(document),document},deps:[]}]),Ke=new a.OlP(""),mt=[{provide:a.rWj,useClass:class A{addToWindow(he){a.dqk.getAngularTestability=(Y,ue=!0)=>{const Pe=he.findTestabilityInTree(Y,ue);if(null==Pe)throw new a.vHH(5103,!1);return Pe},a.dqk.getAllAngularTestabilities=()=>he.getAllTestabilities(),a.dqk.getAllAngularRootElements=()=>he.getAllRootElements(),a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(Y=>{const ue=a.dqk.getAllAngularTestabilities();let Pe=ue.length,Qe=!1;const St=function(kt){Qe=Qe||kt,Pe--,0==Pe&&Y(Qe)};ue.forEach(kt=>{kt.whenStable(St)})})}findTestabilityInTree(he,I,Y){return null==I?null:he.getTestability(I)??(Y?(0,i.q)().isShadowRoot(I)?this.findTestabilityInTree(he,I.host,!0):this.findTestabilityInTree(he,I.parentElement,!0):null)}},deps:[]},{provide:a.lri,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]}],Ae=[{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function ge(){return new a.qLn},deps:[]},{provide:S,useClass:Je,multi:!0,deps:[i.K0,a.R0b,a.Lbi]},{provide:S,useClass:V,multi:!0,deps:[i.K0]},ke,U,P,{provide:a.FYo,useExisting:ke},{provide:i.JF,useClass:R,deps:[]},[]];let Ge=(()=>{class J{constructor(I){}static withServerTransition(I){return{ngModule:J,providers:[{provide:a.AFp,useValue:I.appId}]}}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(Ke,12))};static#t=this.\u0275mod=a.oAB({type:J});static#n=this.\u0275inj=a.cJS({providers:[...Ae,...mt],imports:[i.ez,a.hGG]})}return J})();typeof window<"u"&&window;let wn=(()=>{class J{static#e=this.\u0275fac=function(Y){return new(Y||J)};static#t=this.\u0275prov=a.Yz7({token:J,factory:function(Y){let ue=null;return ue=Y?new(Y||J):a.LFG(Ot),ue},providedIn:"root"})}return J})(),Ot=(()=>{class J extends wn{constructor(I){super(),this._doc=I}sanitize(I,Y){if(null==Y)return null;switch(I){case a.q3G.NONE:return Y;case a.q3G.HTML:return(0,a.qzn)(Y,"HTML")?(0,a.z3N)(Y):(0,a.EiD)(this._doc,String(Y)).toString();case a.q3G.STYLE:return(0,a.qzn)(Y,"Style")?(0,a.z3N)(Y):Y;case a.q3G.SCRIPT:if((0,a.qzn)(Y,"Script"))return(0,a.z3N)(Y);throw new a.vHH(5200,!1);case a.q3G.URL:return(0,a.qzn)(Y,"URL")?(0,a.z3N)(Y):(0,a.mCW)(String(Y));case a.q3G.RESOURCE_URL:if((0,a.qzn)(Y,"ResourceURL"))return(0,a.z3N)(Y);throw new a.vHH(5201,!1);default:throw new a.vHH(5202,!1)}}bypassSecurityTrustHtml(I){return(0,a.JVY)(I)}bypassSecurityTrustStyle(I){return(0,a.L6k)(I)}bypassSecurityTrustScript(I){return(0,a.eBb)(I)}bypassSecurityTrustUrl(I){return(0,a.LAX)(I)}bypassSecurityTrustResourceUrl(I){return(0,a.pB0)(I)}static#e=this.\u0275fac=function(Y){return new(Y||J)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:J,factory:function(Y){let ue=null;return ue=Y?new Y:function Et(J){return new Ot(J.get(i.K0))}(a.LFG(a.zs3)),ue},providedIn:"root"})}return J})()},9309:(Ee,y,b)=>{"use strict";b.d(y,{F_:()=>R,T2:()=>x,nm:()=>U});var a=b(1322),i=b(1497),te=b(3581),q=b(1625),v=b(8832);const C=["editor"],R="MONACO_PATH";let S=(()=>{class X{constructor(Q,ce){this.ngZone=Q,this.monacoPathConfig=ce,this.isMonacoLoaded$=new q.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?Q.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(Q){Q&&(this._monacoPath=Q)}loadMonaco(){const Q=()=>{let Ve=this._monacoPath;window.amdRequire=window.require;const Se=!!this.nodeRequire,Oe=Ve.includes("http");Se&&(window.require=this.nodeRequire,Oe||(Ve=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Ve}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},Me=>console.error("Error loading monaco-editor: ",Me))};if(window.amdRequire)return Q();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const ze=document.createElement("script");ze.type="text/javascript",ze.src=`${this._monacoPath}/loader.js`,ze.addEventListener("load",Q),document.body.appendChild(ze)}addElectronFixScripts(){const Q=document.createElement("script"),ce=document.createTextNode("self.module = undefined;"),Be=document.createTextNode("self.process.browser = true;");Q.appendChild(ce),Q.appendChild(Be),document.body.appendChild(Q)}}return X.\u0275fac=function(Q){return new(Q||X)(a.LFG(a.R0b),a.LFG(R,8))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),x=(()=>{class X{constructor(Q){this.monacoLoader=Q,this.init=new a.vpe,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,i.h)(Q=>Q),(0,te.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(Q){if(this.editor&&Q.options&&!Q.options.firstChange){const{language:ce,theme:Be,...ze}=Q.options.currentValue,{language:Ve,theme:Se}=Q.options.previousValue;Ve!==ce&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),Se!==Be&&monaco.editor.setTheme(Be),this.editor.updateOptions(ze)}if(this.editor&&Q.uri){const ce=Q.uri.currentValue,Be=Q.uri.previousValue;if(Be&&!ce||!Be&&ce||ce&&Be&&ce.path!==Be.path){const ze=this.editor.getValue();let Ve;this.modelUriInstance&&this.modelUriInstance.dispose(),ce&&(Ve=monaco.editor.getModels().find(Se=>Se.uri.path===ce.path)),this.modelUriInstance=Ve||monaco.editor.createModel(ze,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(Q){this.value=Q,this.editor&&Q?this.editor.setValue(Q):this.editor&&this.editor.setValue("")}registerOnChange(Q){this.propagateChange=Q}registerOnTouched(Q){this.onTouched=Q}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(Q){this.onErrorStatusChange=Q}initEditor(){const Q={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?{...Q,...this.options}:Q),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const Q=this.modelMarkers.map(({message:Be})=>Be).join("|");this.parsedError!==Q&&(this.parsedError=Q,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return X.\u0275fac=function(Q){return new(Q||X)(a.Y36(S))},X.\u0275cmp=a.Xpm({type:X,selectors:[["ngx-monaco-editor"]],viewQuery:function(Q,ce){if(1&Q&&a.Gf(C,7),2&Q){let Be;a.iGM(Be=a.CRH())&&(ce.editorContent=Be.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[a._Bn([{provide:v.JU,useExisting:(0,a.Gpc)(()=>X),multi:!0},{provide:v.Cf,useExisting:(0,a.Gpc)(()=>X),multi:!0}]),a.TTD],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(Q,ce){1&Q&&(a.TgZ(0,"div",0,1),a._UZ(2,"div",2,3),a.qZA())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),X})(),U=(()=>{class X{}return X.\u0275fac=function(Q){return new(Q||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({imports:[[]]}),X})()},534:(Ee,y,b)=>{"use strict";b.d(y,{Mq:()=>Je,fX:()=>V,zE:()=>ae});var a=b(1322),i=b(9462),te=b(7371),q=b(9453),v=b(2067);const C=["gutterEls"];function E(F,j){1&F&&a.GkF(0)}const A=(F,j,$,K,de,ge)=>({areaBefore:F,areaAfter:j,gutterNum:$,first:K,last:de,isDragged:ge});function R(F,j){if(1&F&&(a.ynx(0),a.YNc(1,E,1,0,"ng-container",7),a.BQk()),2&F){const $=j.$implicit,K=a.oxw(3),de=K.$implicit,ge=K.index,Fe=K.first,Le=a.oxw();a.xp6(1),a.Q6J("ngTemplateOutlet",Le.customGutter.template)("ngTemplateOutletContext",a.HTZ(3,A,de,Le.displayedAreas[ge+1],ge+1,Fe,ge===Le.displayedAreas.length-2,Le.draggedGutterNum===ge+1))("ngTemplateOutletInjector",$)}}function S(F,j){if(1&F&&(a.ynx(0),a.YNc(1,R,2,10,"ng-container",6),a.BQk()),2&F){const $=a.oxw(2).index;a.xp6(1),a.Q6J("asSplitGutterDynamicInjector",$+1)}}function P(F,j){1&F&&a._UZ(0,"div",8)}function x(F,j){if(1&F){const $=a.EpF();a.TgZ(0,"div",2,3),a.NdJ("keydown",function(de){a.CHM($);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.startKeyboardDrag(de,2*ge+1,ge+1))})("mousedown",function(de){a.CHM($);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.startMouseDrag(de,2*ge+1,ge+1))})("touchstart",function(de){a.CHM($);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.startMouseDrag(de,2*ge+1,ge+1))})("mouseup",function(de){a.CHM($);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.clickGutter(de,ge+1))})("touchend",function(de){a.CHM($);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.clickGutter(de,ge+1))}),a.YNc(2,S,2,1,"ng-container",4)(3,P,1,0,"ng-template",null,5,a.W1O),a.qZA()}if(2&F){const $=a.MAs(4),K=a.oxw(),de=K.index,ge=K.$implicit,Fe=a.oxw();a.Udp("flex-basis",Fe.gutterSize,"px")("order",2*de+1),a.ekj("as-dragged",Fe.draggedGutterNum===de+1),a.uIk("aria-label",Fe.gutterAriaLabel)("aria-orientation",Fe.direction)("aria-valuemin",ge.minSize)("aria-valuemax",ge.maxSize)("aria-valuenow","*"===ge.size?null:ge.size)("aria-valuetext",Fe.getAriaAreaSizeText(ge.size)),a.xp6(2),a.Q6J("ngIf",null==Fe.customGutter?null:Fe.customGutter.template)("ngIfElse",$)}}function w(F,j){1&F&&a.YNc(0,x,5,14,"div",1),2&F&&a.Q6J("ngIf",!1===j.last)}const U=["*"];function X(F){if(void 0!==F.changedTouches&&F.changedTouches.length>0)return{x:F.changedTouches[0].clientX,y:F.changedTouches[0].clientY};if(void 0!==F.clientX&&void 0!==F.clientY)return{x:F.clientX,y:F.clientY};if(void 0!==F.currentTarget){const j=F.currentTarget;return{x:j.offsetLeft,y:j.offsetTop}}return null}function le(F,j,$){return Math.abs(F.x-j.x)<=$&&Math.abs(F.y-j.y)<=$}function ce(F,j){const $=F.nativeElement.getBoundingClientRect();return"horizontal"===j?$.width:$.height}function Be(F){return"boolean"==typeof F?F:"false"!==F}function ze(F,j){return null==F?j:(F=Number(F),!isNaN(F)&&F>=0?F:j)}function Ve(F,j){if("percent"===F){const $=j.reduce((de,ge)=>"*"!==ge?de+ge:de,0),K=j.filter(de=>"*"===de);return!(K.length>1)&&(1===K.length||$>99.9)&&$<100.1}if("pixel"===F)return 1===j.filter($=>"*"===$).length}function Se(F){return"*"===F.size?null:!0===F.component.lockSize?F.size:null===F.component.minSize?null:F.component.minSize>F.size?F.size:F.component.minSize}function Oe(F){return"*"===F.size?null:!0===F.component.lockSize?F.size:null===F.component.maxSize?null:F.component.maxSize<F.size?F.size:F.component.maxSize}function Me(F,j,$,K){return j.reduce((de,ge)=>{const Fe=function ke(F,j,$,K){return 0===$?{areaSnapshot:j,pixelAbsorb:0,percentAfterAbsorption:j.sizePercentAtStart,pixelRemain:0}:0===j.sizePixelAtStart&&$<0?{areaSnapshot:j,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:$}:"percent"===F?function Ce(F,j,$){const de=(F.sizePixelAtStart+j)/$*100;if(j>0){if(null!==F.area.maxSize&&de>F.area.maxSize){const ge=F.area.maxSize/100*$;return{areaSnapshot:F,pixelAbsorb:ge,percentAfterAbsorption:F.area.maxSize,pixelRemain:F.sizePixelAtStart+j-ge}}return{areaSnapshot:F,pixelAbsorb:j,percentAfterAbsorption:de>100?100:de,pixelRemain:0}}if(j<0){if(null!==F.area.minSize&&de<F.area.minSize){const ge=F.area.minSize/100*$;return{areaSnapshot:F,pixelAbsorb:ge,percentAfterAbsorption:F.area.minSize,pixelRemain:F.sizePixelAtStart+j-ge}}return de<0?{areaSnapshot:F,pixelAbsorb:-F.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:j+F.sizePixelAtStart}:{areaSnapshot:F,pixelAbsorb:j,percentAfterAbsorption:de,pixelRemain:0}}}(j,$,K):"pixel"===F?function De(F,j,$){const K=F.sizePixelAtStart+j;return j>0?null!==F.area.maxSize&&K>F.area.maxSize?{areaSnapshot:F,pixelAbsorb:F.area.maxSize-F.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:K-F.area.maxSize}:{areaSnapshot:F,pixelAbsorb:j,percentAfterAbsorption:-1,pixelRemain:0}:j<0?null!==F.area.minSize&&K<F.area.minSize?{areaSnapshot:F,pixelAbsorb:F.area.minSize+j-K,percentAfterAbsorption:-1,pixelRemain:K-F.area.minSize}:K<0?{areaSnapshot:F,pixelAbsorb:-F.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:j+F.sizePixelAtStart}:{areaSnapshot:F,pixelAbsorb:j,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(j,$):void 0}(F,ge,de.remain,K);return de.list.push(Fe),de.remain=Fe.pixelRemain,de},{remain:$,list:[]})}function He(F,j){"*"!==j.areaSnapshot.area.size&&("percent"===F?j.areaSnapshot.area.size=j.percentAfterAbsorption:"pixel"===F&&(j.areaSnapshot.area.size=j.areaSnapshot.sizePixelAtStart+j.pixelAbsorb))}const dt=new a.OlP("angular-split-global-config");let xt=(()=>{class F{constructor($){this.template=$,this.gutterToHandleElementMap=new Map,this.gutterToExcludeDragElementMap=new Map}canStartDragging($,K){return(!this.gutterToExcludeDragElementMap.has(K)||!this.gutterToExcludeDragElementMap.get(K).some(ge=>ge.nativeElement.contains($)))&&(!this.gutterToHandleElementMap.has(K)||this.gutterToHandleElementMap.get(K).some(de=>de.nativeElement.contains($)))}addToMap($,K,de){$.has(K)?$.get(K).push(de):$.set(K,[de])}removedFromMap($,K,de){const ge=$.get(K);ge.splice(ge.indexOf(de),1),0===ge.length&&$.delete(K)}static ngTemplateContextGuard($,K){return!0}static#e=this.\u0275fac=function(K){return new(K||F)(a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["","asSplitGutter",""]]})}return F})();const zt=new a.OlP("Gutter num");let Gt=(()=>{class F{set gutterNum($){this.vcr.clear();const K=a.zs3.create({providers:[{provide:zt,useValue:$}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:K})}constructor($,K){this.vcr=$,this.templateRef=K}static ngTemplateContextGuard($,K){return!0}static#e=this.\u0275fac=function(K){return new(K||F)(a.Y36(a.s_b),a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:["asSplitGutterDynamicInjector","gutterNum"]}})}return F})(),Je=(()=>{class F{set direction($){this._direction="vertical"===$?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit($){this._unit="pixel"===$?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize($){this._gutterSize=ze($,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep($){this._gutterStep=ze($,1)}get gutterStep(){return this._gutterStep}set restrictMove($){this._restrictMove=Be($)}get restrictMove(){return this._restrictMove}set useTransition($){this._useTransition=Be($),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled($){this._disabled=Be($),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir($){this._dir="rtl"===$?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration($){this._gutterDblClickDuration=ze($,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new te.y($=>this.transitionEndSubscriber=$).pipe((0,v.b)(20))}constructor($,K,de,ge,Fe){this.ngZone=$,this.elRef=K,this.cdRef=de,this.renderer=ge,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new a.vpe(!1),this.dragEnd=new a.vpe(!1),this.gutterClick=new a.vpe(!1),this.gutterDblClick=new a.vpe(!1),this.dragProgressSubject=new q.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.draggedGutterNum=void 0,this.direction=this._direction,this._config=Fe?Object.assign(this._config,Fe):this._config,Object.keys(this._config).forEach(Le=>{this[Le]=this._config[Le]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea($){const K={component:$,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===$.visible?(this.displayedAreas.push(K),this.build(!0,!0)):this.hiddenAreas.push(K)}removeArea($){if(this.displayedAreas.some(K=>K.component===$)){const K=this.displayedAreas.find(de=>de.component===$);this.displayedAreas.splice(this.displayedAreas.indexOf(K),1),this.build(!0,!0)}else if(this.hiddenAreas.some(K=>K.component===$)){const K=this.hiddenAreas.find(de=>de.component===$);this.hiddenAreas.splice(this.hiddenAreas.indexOf(K),1)}}updateArea($,K,de){!0===$.visible&&this.build(K,de)}showArea($){const K=this.hiddenAreas.find(ge=>ge.component===$);if(void 0===K)return;const de=this.hiddenAreas.splice(this.hiddenAreas.indexOf(K),1);this.displayedAreas.push(...de),this.build(!0,!0)}hideArea($){const K=this.displayedAreas.find(ge=>ge.component===$);if(void 0===K)return;const de=this.displayedAreas.splice(this.displayedAreas.indexOf(K),1);de.forEach(ge=>{ge.order=0,ge.size=0}),this.hiddenAreas.push(...de),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map($=>$.size)}setVisibleAreaSizes($){if($.length!==this.displayedAreas.length)return!1;const K=$.map(ge=>ze(ge,"*"));return!1!==Ve(this.unit,K)&&(this.displayedAreas.forEach((ge,Fe)=>ge.component._size=K[Fe]),this.build(!1,!0),!0)}build($,K){if(this.stopDragging(),!0===$&&(this.displayedAreas.every(de=>null!==de.component.order)&&this.displayedAreas.sort((de,ge)=>de.component.order-ge.component.order),this.displayedAreas.forEach((de,ge)=>{de.order=2*ge,de.component.setStyleOrder(de.order)})),!0===K){const de=Ve(this.unit,this.displayedAreas.map(ge=>ge.component.size));switch(this.unit){case"percent":{const ge=100/this.displayedAreas.length;this.displayedAreas.forEach(Fe=>{Fe.size=de?Fe.component.size:ge,Fe.minSize=Se(Fe),Fe.maxSize=Oe(Fe)});break}case"pixel":if(de)this.displayedAreas.forEach(ge=>{ge.size=ge.component.size,ge.minSize=Se(ge),ge.maxSize=Oe(ge)});else{const ge=this.displayedAreas.filter(Fe=>"*"===Fe.component.size);if(0===ge.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Fe,Le)=>{Fe.size=0===Le?"*":Fe.component.size,Fe.minSize=0===Le?null:Se(Fe),Fe.maxSize=0===Le?null:Oe(Fe)});else if(ge.length>1){let Fe=!1;this.displayedAreas.forEach(Le=>{"*"===Le.component.size?!1===Fe?(Le.size="*",Le.minSize=null,Le.maxSize=null,Fe=!0):(Le.size=100,Le.minSize=null,Le.maxSize=null):(Le.size=Le.component.size,Le.minSize=Se(Le),Le.maxSize=Oe(Le))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const $=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(K=>{"*"===K.size?K.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):K.component.setStyleFlex(0,0,`calc( ${K.size}% - ${K.size/100*$}px )`,null!==K.minSize&&K.minSize===K.size,null!==K.maxSize&&K.maxSize===K.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach($=>{"*"===$.size?$.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?$.component.setStyleFlex(0,0,"100%",!1,!1):$.component.setStyleFlex(0,0,`${$.size}px`,null!==$.minSize&&$.minSize===$.size,null!==$.maxSize&&$.maxSize===$.size)})}clickGutter($,K){const de=X($);this.startPoint&&le(this.startPoint,de,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",K),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",K),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag($,K,de){if(!0===this.disabled||!0===this.isWaitingClear)return;const ge=function Q(F,j){if("horizontal"===j)switch(F.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===j)switch(F.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const $=F.currentTarget,K="PageUp"===F.key||"PageDown"===F.key?500:50;let de=$.offsetLeft,ge=$.offsetTop;switch(F.key){case"ArrowLeft":de-=K;break;case"ArrowRight":de+=K;break;case"ArrowUp":ge-=K;break;case"ArrowDown":ge+=K;break;case"PageUp":"vertical"===j?ge-=K:de+=K;break;case"PageDown":"vertical"===j?ge+=K:de-=K;break;default:return null}return{x:de,y:ge}}($,this.direction);null!==ge&&(this.endPoint=ge,this.startPoint=X($),$.preventDefault(),$.stopPropagation(),this.setupForDragEvent(K,de),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag($,K,de){this.customGutter&&!this.customGutter.canStartDragging($.target,de)||($.preventDefault(),$.stopPropagation(),this.startPoint=X($),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(K,de),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging()))}setupForDragEvent($,K){if(this.snapshot={gutterNum:K,lastSteppedOffset:0,allAreasSizePixel:ce(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(de=>{const ge={area:de,sizePixelAtStart:ce(de.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?de.size:-1};de.order<$?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[ge]:this.snapshot.areasBeforeGutter.unshift(ge):de.order>$&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[ge]):this.snapshot.areasAfterGutter.push(ge))}),this.restrictMove&&"percent"===this.unit){const de=this.snapshot.areasBeforeGutter[0],ge=this.snapshot.areasAfterGutter[0];if("*"===de.area.size||"*"===ge.area.size){const Fe=this.displayedAreas.reduce((Le,Xe)=>de.area!==Xe&&ge.area!==Xe?Le+Xe.size:Le,0);this.snapshot.allInvolvedAreasSizePercent=100-Fe}else this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((Fe,Le)=>Fe+Le.sizePercentAtStart,0)}}startDragging(){this.displayedAreas.forEach($=>$.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent($){$.preventDefault(),$.stopPropagation();const K=X($);null!==this._clickTimeout&&!le(this.startPoint,K,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=X($),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=this.snapshot.gutterNum,this.cdRef.markForCheck(),this.notify("start",this.snapshot.gutterNum)})}let $="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&($=-$);const K=Math.round($/this.gutterStep)*this.gutterStep;if(K===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=K;let de=Me(this.unit,this.snapshot.areasBeforeGutter,-K,this.snapshot.allAreasSizePixel),ge=Me(this.unit,this.snapshot.areasAfterGutter,K,this.snapshot.allAreasSizePixel);if(0!==de.remain&&0!==ge.remain?Math.abs(de.remain)===Math.abs(ge.remain)||(Math.abs(de.remain)>Math.abs(ge.remain)?ge=Me(this.unit,this.snapshot.areasAfterGutter,K+de.remain,this.snapshot.allAreasSizePixel):de=Me(this.unit,this.snapshot.areasBeforeGutter,-(K-ge.remain),this.snapshot.allAreasSizePixel)):0!==de.remain?ge=Me(this.unit,this.snapshot.areasAfterGutter,K+de.remain,this.snapshot.allAreasSizePixel):0!==ge.remain&&(de=Me(this.unit,this.snapshot.areasBeforeGutter,-(K-ge.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const Fe=[...de.list,...ge.list],Xe=Fe.find(Ke=>"*"==Ke.percentAfterAbsorption)??Fe.find(Ke=>0!==Ke.percentAfterAbsorption&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.minSize&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.maxSize);Xe&&(Xe.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-Fe.filter(Ke=>Ke!==Xe).reduce((Ke,mt)=>Ke+mt.percentAfterAbsorption,0))}de.list.forEach(Fe=>He(this.unit,Fe)),ge.list.forEach(Fe=>He(this.unit,Fe)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging($){if($&&($.preventDefault(),$.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(K=>K.component.unlockEvents());this.dragListeners.length>0;){const K=this.dragListeners.pop();K&&K()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=void 0,this.cdRef.markForCheck(),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify($,K){const de=this.getVisibleAreaSizes();"start"===$?this.dragStart.emit({gutterNum:K,sizes:de}):"end"===$?this.dragEnd.emit({gutterNum:K,sizes:de}):"click"===$?this.gutterClick.emit({gutterNum:K,sizes:de}):"dblclick"===$?this.gutterDblClick.emit({gutterNum:K,sizes:de}):"transitionEnd"===$?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(de)):"progress"===$&&this.dragProgressSubject.next({gutterNum:K,sizes:de})}ngOnDestroy(){this.stopDragging()}collapseArea($,K,de){const ge=this.displayedAreas.find(Xe=>Xe.component===$);if(void 0===ge)return;const Fe="right"===de?1:-1;ge.sizeBeforeCollapse||(ge.sizeBeforeCollapse=ge.size,ge.gutterBeforeCollapse=Fe),ge.size=K;const Le=this.gutterEls.find(Xe=>Xe.nativeElement.style.order===`${ge.order+Fe}`);Le&&this.renderer.addClass(Le.nativeElement,"as-split-gutter-collapsed"),this.updateArea($,!1,!1)}expandArea($){const K=this.displayedAreas.find(ge=>ge.component===$);if(void 0===K||!K.sizeBeforeCollapse)return;K.size=K.sizeBeforeCollapse,K.sizeBeforeCollapse=null;const de=this.gutterEls.find(ge=>ge.nativeElement.style.order===`${K.order+K.gutterBeforeCollapse}`);de&&this.renderer.removeClass(de.nativeElement,"as-split-gutter-collapsed"),this.updateArea($,!1,!1)}getAriaAreaSizeText($){return"*"===$?null:$.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(K){return new(K||F)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(a.Qsj),a.Y36(dt,8))};static#t=this.\u0275cmp=a.Xpm({type:F,selectors:[["as-split"]],contentQueries:function(K,de,ge){if(1&K&&a.Suo(ge,xt,5),2&K){let Fe;a.iGM(Fe=a.CRH())&&(de.customGutter=Fe.first)}},viewQuery:function(K,de){if(1&K&&a.Gf(C,5),2&K){let ge;a.iGM(ge=a.CRH())&&(de.gutterEls=ge)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:U,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"as-dragged","flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[4,"ngIf","ngIfElse"],["defaultGutterTpl",""],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[1,"as-split-gutter-icon"]],template:function(K,de){1&K&&(a.F$t(),a.Hsn(0),a.YNc(1,w,1,1,"ng-template",0)),2&K&&(a.xp6(1),a.Q6J("ngForOf",de.displayedAreas))},dependencies:[i.sg,i.O5,i.tP,Gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return F})(),ae=(()=>{class F{set order($){this._order=ze($,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size($){this._size=ze($,"*"),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize($){this._minSize=ze($,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize($){this._maxSize=ze($,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize($){this._lockSize=Be($),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible($){this._visible=Be($),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor($,K,de,ge){this.ngZone=$,this.elRef=K,this.renderer=de,this.split=ge,this._order=null,this._size="*",this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",K=>{"flex-basis"===K.propertyName&&this.split.notify("transitionEnd",-1)})});const $=this.renderer.createElement("div");this.renderer.addClass($,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,$)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,$)})}setStyleOrder($){this.renderer.setStyle(this.elRef.nativeElement,"order",$)}setStyleFlex($,K,de,ge,Fe){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",$),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",K),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",de),!0===ge?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Fe?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const $=this.lockListeners.pop();$&&$()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse($=0,K="right"){this.split.collapseArea(this,$,K)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(K){return new(K||F)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.Qsj),a.Y36(Je))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return F})(),V=(()=>{class F{static#e=this.\u0275fac=function(K){return new(K||F)};static#t=this.\u0275mod=a.oAB({type:F});static#n=this.\u0275inj=a.cJS({imports:[i.ez]})}return F})()},6086:(Ee,y,b)=>{"use strict";b.d(y,{Y:()=>R,s:()=>S});var a=b(1322),i=b(9462);function te(P,x){1&P&&a._UZ(0,"div",9)}function q(P,x){if(1&P&&(a.TgZ(0,"span",10),a._uU(1),a.qZA()),2&P){const w=a.oxw().$implicit;a.xp6(1),a.Oqu(w.description)}}function v(P,x){if(1&P&&(a.TgZ(0,"section",11),a._UZ(1,"ngx-json-viewer",12),a.qZA()),2&P){const w=a.oxw().$implicit,U=a.oxw();a.xp6(1),a.Q6J("json",w.value)("expanded",U.expanded)("depth",U.depth)("_currentDepth",U._currentDepth+1)}}const C=P=>["segment",P],E=(P,x)=>({"segment-main":!0,expandable:P,expanded:x});function A(P,x){if(1&P){const w=a.EpF();a.TgZ(0,"section",2)(1,"section",3),a.NdJ("click",function(){const le=a.CHM(w).$implicit,Q=a.oxw();return a.KtG(Q.toggle(le))}),a.YNc(2,te,1,0,"div",4),a.TgZ(3,"span",5),a._uU(4),a.qZA(),a.TgZ(5,"span",6),a._uU(6,": "),a.qZA(),a.YNc(7,q,2,1,"span",7),a.qZA(),a.YNc(8,v,2,4,"section",8),a.qZA()}if(2&P){const w=x.$implicit,U=a.oxw();a.Q6J("ngClass",a.VKq(6,C,"segment-type-"+w.type)),a.xp6(1),a.Q6J("ngClass",a.WLB(8,E,U.isExpandable(w),w.expanded)),a.xp6(1),a.Q6J("ngIf",U.isExpandable(w)),a.xp6(2),a.Oqu(w.key),a.xp6(3),a.Q6J("ngIf",!w.expanded||!U.isExpandable(w)),a.xp6(1),a.Q6J("ngIf",w.expanded&&U.isExpandable(w))}}let R=(()=>{class P{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(w=>{this.segments.push(this.parseKeyValue(w,this.json[w]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(w){return"object"===w.type||"array"===w.type}toggle(w){this.isExpandable(w)&&(w.expanded=!w.expanded)}parseKeyValue(w,U){const X={key:w,value:U,type:void 0,description:""+U,expanded:this.isExpanded()};switch(typeof X.value){case"number":X.type="number";break;case"boolean":X.type="boolean";break;case"function":X.type="function";break;case"string":X.type="string",X.description='"'+X.value+'"';break;case"undefined":X.type="undefined",X.description="undefined";break;case"object":null===X.value?(X.type="null",X.description="null"):Array.isArray(X.value)?(X.type="array",X.description="Array["+X.value.length+"] "+JSON.stringify(X.value)):X.value instanceof Date?X.type="date":(X.type="object",X.description="Object "+JSON.stringify(X.value))}return X}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(w){const U=new WeakMap;return function X(le,Q){let ce,Be;return"object"!=typeof le||null===le||le instanceof Boolean||le instanceof Date||le instanceof Number||le instanceof RegExp||le instanceof String?le:(ce=U.get(le),void 0!==ce?{$ref:ce}:(U.set(le,Q),Array.isArray(le)?(Be=[],le.forEach(function(ze,Ve){Be[Ve]=X(ze,Q+"["+Ve+"]")})):(Be={},Object.keys(le).forEach(function(ze){Be[ze]=X(le[ze],Q+"["+JSON.stringify(ze)+"]")})),Be))}(w,"$")}}return P.\u0275fac=function(w){return new(w||P)},P.\u0275cmp=a.Xpm({type:P,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[a.TTD],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(w,U){1&w&&(a.TgZ(0,"section",0),a.YNc(1,A,9,11,"section",1),a.qZA()),2&w&&(a.xp6(1),a.Q6J("ngForOf",U.segments))},dependencies:[i.mk,i.sg,i.O5,P],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),P})(),S=(()=>{class P{}return P.\u0275fac=function(w){return new(w||P)},P.\u0275mod=a.oAB({type:P}),P.\u0275inj=a.cJS({imports:[i.ez]}),P})()},5861:(Ee,y,b)=>{"use strict";function a(te,q,v,C,E,A,R){try{var S=te[A](R),P=S.value}catch(x){return void v(x)}S.done?q(P):Promise.resolve(P).then(C,E)}function i(te){return function(){var q=this,v=arguments;return new Promise(function(C,E){var A=te.apply(q,v);function R(P){a(A,C,E,R,S,"next",P)}function S(P){a(A,C,E,R,S,"throw",P)}R(void 0)})}}b.d(y,{Z:()=>i})}},Ee=>{Ee(Ee.s=4301)}]);
|